[DRAFT] Update earthdaily to support Sentinel 2#446
[DRAFT] Update earthdaily to support Sentinel 2#446robmarkcole wants to merge 10 commits intoallenai:masterfrom
Conversation
|
@robmarkcole About the question: If I understand it correctly, you want to pass the credentials directly to the You should be able to do that already: EDSConfig(
client_id="EARTHDAILY_API_TOKEN",
client_secret="SECRET_TOKEN",
token_url="https://api.earthdaily.com/account_management/v1/authentication/api_tokens/exchange",
base_url="https://api.earthdaily.com"
)Let me know if the above works for you. Thanks! |
|
Specifically the data |
|
Will take a closer look later but for the config, I think it is fine to require the environment variables to be set and not accept it via the Are all of the Sentinel-2 scenes in the catalog processed with processing baseline 04.00 or higher (so don't need harmonization like https://developers.google.com/earth-engine/datasets/catalog/COPERNICUS_S2_SR_HARMONIZED)? |
…move unused kwargs in Sentinel2 initialization
…date tests to validate query handling
…ment and enhance error handling during asset downloads
|
@favyen2 thanks for your comments! @imanshafiei540 to comment on the processing, thanks |
|
@favyen2 |
|
@robmarkcole Given that there could be scenes with a lower processing baseline, should it include the |
|
@favyen2 let me check with @imanshafiei540 if we can support this in the client, or if we should switch to |
|
Most of the other data sources use |
|
Update: we will switch to the C1 collection and implement rescale support in the python client |
- Enhanced EarthDailyItem to include optional asset_scale_offsets. - Updated EarthDaily class to extract scale and offset metadata from STAC assets. - Implemented scale/offset application in read_raster and ingest methods. - Added unit tests to verify scale/offset functionality.
|
@imanshafiei540 we can consider how to utilise the functionality in 1.9 of the client and refactor this PR as there is a lot of duplication |
…and additional configuration parameters
Updated to 1.8 and support Sentinel 2
Question: some of the other datasources support credentials via the configuration, support that also? Auth requires:
export EDS_AUTH_URL, EDS_CLIENT_ID, EDS_SECRET, EDS_API_URL
CC @imanshafiei540