fraymio / modis-tools

Tools for working with the MODIS API and MODIS data.
Apache License 2.0
23 stars 12 forks source link

Issue 3 change updated to optional in api entry #9

Closed ShengpeiWang closed 2 years ago

ShengpeiWang commented 2 years ago

Description

Closes #3

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Checklist:

Next Steps

On behalf of the Modis Tools Dev Team, thank you for your hard work! ✨

ShengpeiWang commented 2 years ago

Request error during data download as of 898fa80. @jtanwk and I figured out the issue: the download_cookies have different data structures for the modis vs the nsidc data. We got successful data download from both sources once we changed the has_download_cookies method by removing the lines: data = cookies["DATA"] assert data.domain == URLs.RESOURCE.value Next step: Check with original contributors and other code owners about how to proceed with the fix.

jtanwk commented 2 years ago

Additional note: cookie name for NSIDC is "CIsforCookie_OPS" whereas it is "DATA" for LP DAAC-sourced data.

Extra documentation probably required for future updates if we want to add other DAACs/data sources.

jamie-sgro commented 2 years ago

@ShengpeiWang Status update on this?

ShengpeiWang commented 2 years ago

@ShengpeiWang Status update on this?

nothing right now

iamchrisearle commented 2 years ago

MOD10A1 download works now. LGTM