def get_modis_tile_list(ds):
from demcoreg import modis_grid<EOL>modis_dict = {}<EOL>for key in modis_grid.modis_dict:<EOL><INDENT>modis_dict[key] = ogr.CreateGeometryFromWkt(modis_grid.modis_dict[key])<EOL><DEDENT>geom = geolib.ds_geom(ds)<EOL>geom_dup = geolib.geom_dup(geom)<EOL>ct = osr.CoordinateTransformation(geom_dup.GetSpatialReference(), geolib.wgs_srs)<EOL>geom_dup.Transform(ct)<EOL>tile_list = []<EOL>for key, val in list(modis_dict.items()):<EOL><INDENT>if geom_dup.Intersects(val):<EOL><INDENT>tile_list.append(key)<EOL><DEDENT><DEDENT>return tile_list<EOL>
Helper function to identify MODIS tiles that intersect input geometry

    modis_gird.py contains dictionary of tile boundaries (tile name and WKT polygon ring from bbox)

    See: https://modis-land.gsfc.nasa.gov/MODLAND_grid.html