darts_acquisition.utils.copernicus
¶
Copernicus STAC utilities.
init_copernicus
¶
init_copernicus(profile_name: str = 'default')
Configure odc.stac and rio to authenticate with Copernicus cloud.
This functions expects that credentials are present in the .aws/credentials file. Credentials can be obtained from https://eodata-s3keysmanager.dataspace.copernicus.eu/
Example credentials file:
Parameters:
-
profile_name(str, default:'default') –The boto3 profile name. This must match with the name in the credentials file!. Defaults to "default".
References
- S3 access: https://documentation.dataspace.copernicus.eu/APIs/S3.html
Source code in darts-acquisition/src/darts_acquisition/utils/copernicus.py
init_copernicus_from_keys
¶
Set up the environment for accessing the Copernicus Data Space Ecosystem S3 storage.
This will configure the necessary environment variables for accessing the S3 storage and calls configure_rio to set up the rasterio environment.
Keys can be obtained from the Copernicus S3 Credentials manager: https://eodata-s3keysmanager.dataspace.copernicus.eu/panel/s3-credentials
Parameters:
References
- S3 access: https://documentation.dataspace.copernicus.eu/APIs/S3.html