CMR VIIRS Ocean Color L2 Download
Posted: Fri Jul 01, 2022 11:16 am America/New_York
We have a python script that searches for and downloads ocean color VIIRS granules from 2012 through 2018. Our script builds the following formatted search url:
https://cmr.earthdata.nasa.gov/search/granules.json?page_size=2000&provider=OB_DAAC&point=-66.8303,43.7478&instrument=VIIRS&platform=Suomi-NPP&short_name=VIIRSN_L2_oc&options[short_name][pattern]=true&temporal=2014-06-23T09:05:06Z,2014-06-23T21:05:06Z&sort_key=short_name
The script is only successful in finding 2018 granules. It searches for but does not find any VIIRS granules from 2012 - 2017. We can find the 2012 - 2017 granules manually on the earthdata website. We've noticed that on the earthdata website, the "title" in the metadata of the 2018 granules is formatted differently than the 2012 - 2017 granules. Should we be searching for the 2012 - 2017 granules in a different way? Is the title formatting the issue? Any insight is appreciated.
For reference, the following is a url that works and successfully finds a 2018 granule:
https://cmr.earthdata.nasa.gov/search/granules.json?page_size=2000&provider=OB_DAAC&point=-68.6081,43.6353&instrument=VIIRS&platform=Suomi-NPP&short_name=VIIRSN_L2_oc&options[short_name][pattern]=true&temporal=2018-09-17T08:48:34Z,2018-09-17T20:48:34Z&sort_key=short_name
https://cmr.earthdata.nasa.gov/search/granules.json?page_size=2000&provider=OB_DAAC&point=-66.8303,43.7478&instrument=VIIRS&platform=Suomi-NPP&short_name=VIIRSN_L2_oc&options[short_name][pattern]=true&temporal=2014-06-23T09:05:06Z,2014-06-23T21:05:06Z&sort_key=short_name
The script is only successful in finding 2018 granules. It searches for but does not find any VIIRS granules from 2012 - 2017. We can find the 2012 - 2017 granules manually on the earthdata website. We've noticed that on the earthdata website, the "title" in the metadata of the 2018 granules is formatted differently than the 2012 - 2017 granules. Should we be searching for the 2012 - 2017 granules in a different way? Is the title formatting the issue? Any insight is appreciated.
For reference, the following is a url that works and successfully finds a 2018 granule:
https://cmr.earthdata.nasa.gov/search/granules.json?page_size=2000&provider=OB_DAAC&point=-68.6081,43.6353&instrument=VIIRS&platform=Suomi-NPP&short_name=VIIRSN_L2_oc&options[short_name][pattern]=true&temporal=2018-09-17T08:48:34Z,2018-09-17T20:48:34Z&sort_key=short_name