fixing typo in confidence of ground detections
[JPSSData.git] / JPSSdata.py
blobdea1ed9638cc71434e09926ca8e6ebc079a12f21
1 from cmr import CollectionQuery, GranuleQuery
2 import json
3 api = GranuleQuery()
5 #MOD14: data - auto-sorted by start_time
6 MOD14granules = api.parameters(
7 short_name="MOD14",
8 platform="Terra",
9 downloadable=True)
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(
20 short_name="MOD03",
21 platform="Terra",
22 downloadable=True)
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