1 from cmr
import CollectionQuery
, GranuleQuery
5 #MOD14: data - auto-sorted by start_time
6 MOD14granules
= api
.parameters(
11 print MOD14granules
.hits()
12 #MOD14granules = api.get_all()
13 MOD14granules
= api
.get(10)
15 for granule
in MOD14granules
:
16 print granule
["title"], granule
["time_start"], granule
["time_end"], granule
["polygons"]
18 #MOD03: geolocation data - auto-sorted by start_time
19 MOD03granules
= api
.parameters(
24 print MOD03granules
.hits()
25 MOD03granules
= api
.get(10)
27 for granule
in MOD03granules
:
28 print json
.dumps(granule
, indent
=4, separators
=(',', ': '))
29 #print granule["title"], granule["time_start"], granule["time_end"], granule["longitude"]
30 #"polygons" gives long/lat data in pairs-first/last pair are the same
31 # note - it appears that all granules are quadrilaterals