nasa / HLS-Data-Resources

This repository provides guides, short how-tos, and tutorials to help users access and work with Harmonized Landsat Sentinel-2 (HLS) data.
Apache License 2.0
57 stars 15 forks source link

Update getHLS.sh #20

Closed trufanov-nok closed 2 weeks ago

trufanov-nok commented 5 months ago

It seems the inconsistance mentioned in original code commentary is resolved. The request:

wget -q --retry-connrefused --waitretry=1 --read-timeout=10 --timeout=10 -t 0 'https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=C2021957295-LPCLOUD&collection_concept_id=C2021957657-LPCLOUD&page_size=2000&temporal=2013-01-01T00:00:00Z,2030-01-01T23:59:59Z&attribute[]=int,SPATIAL_COVERAGE,0,&attribute[]=int,CLOUD_COVERAGE,,100&attribute[]=string,MGRS_TILE_ID,18TXL' -O -

return plenty of data for Long Island (18TXL) between 2013-2030 . While request:

wget -q --retry-connrefused --waitretry=1 --read-timeout=10 --timeout=10 -t 0 'https://cmr.earthdata.nasa.gov/search/granules.json?collection_concept_id=C2021957295-LPCLOUD&collection_concept_id=C2021957657-LPCLOUD&page_size=2000&temporal=2013-01-01T00:00:00Z,2030-01-01T23:59:59Z&attribute[]=float,SPATIAL_COVERAGE,0,&attribute[]=int,CLOUD_COVERAGE,,100&attribute[]=string,MGRS_TILE_ID,18TXL' -O -

return an empty set. They differ only by a type of CLOUD_COVERAGE attribute. So I suppose the float version of this request is discontinued.