Your gateway to the Earth Data Store STAC Catalog.
Who we are
Project description
·
Report Bug
·
Request Feature
Table of Contents
In the realm of geospatial data analysis and Earth observation, the EarthDaily Python package emerges as a powerful toolset that seamlessly connects you to the vast and invaluable Stac catalog Earth Data Store. This package is designed with the vision of simplifying and optimizing your workflow, ensuring that you can harness the full potential of Earth observation data with ease and efficiency.
Our package is built upon a foundation of best practices, meticulously crafted to elevate your data analysis experience. With EarthDaily, you can effortlessly navigate the complexities of datacube creation, including crucial processes like conversion to reflectance and automatic clipping to your area of interest. Additionally, we've taken care to make EarthDaily fully compatible with Dask, enabling you to scale your data preprocessing tasks with confidence and precision.
See documentation for more information
Make sure you have valid EDS credentials. If you need to get trial access, please contact us.
This package has been tested on Python 3.10, 3.11 and 3.12.
pip install earthdaily
# Clone the repository and go inside
git clone git@github.com:earthdaily/earthdaily-python-client.git
cd earthdaily-python-client
# Create a virtual environment named earthdaily and install package dependencies
mamba env create -n earthdaily -f requirements.yml
conda activate earthdaily
# Install package in editable mode
pip install -e .
In order to generate a credentials file with the right variables and layout, you can use the copy-earthdaily-credentials-template
script that is installed along the earthdaily package. It can generate credentials file as JSON, TOML or .env.
Generate the credentials file of your liking and edit it to insert your credentials.
Create a TOML credentials file in the default location:
- "$HOME/.earthdaily/credentials" on linux
- "$USERPROFILE/.earthdaily/credentials" on Windows
copy-earthdaily-credentials-template --default
Edit it to insert your credentials. The following code will automatically find and use the credentials for authentification.
from earthdaily import EarthDataStore
eds = EarthDataStore()
Authentication credentials can be given as an input JSON file. You can generate a JSON credentials file with the following command:
copy-earthdaily-credentials-template --json "/path/to/the/credentials_file.json"
Edit it to insert your credentials. Then use it as input for authentification:
from pathlib import Path
from earthdaily import EarthDataStore
eds = EarthDataStore(json_path = Path("/path/to/the/credentials_file.json"))
Authentication credentials can be given as input with a TOML file. You can generate a TOML credentials file with the following command:
copy-earthdaily-credentials-template --toml "/path/to/the/credentials_file"
Edit it to insert your credentials. Then use it as input for authentification:
from pathlib import Path
from earthdaily import EarthDataStore
eds = EarthDataStore(toml_path = Path("/path/to/the/credentials_file"))
Authentication credentials can be automatically parsed from environment variables. As a convenience python-dotenv is supported.
You can generate a .env credentials file with the following command:
copy-earthdaily-credentials-template --env "/path/to/the/.env"
Or you can copy the .env.sample
file from the repository and rename it to .env
.
Edit it to insert your credentials.
Then add to your script/notebook:
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
See the documentation for more information.
If you find this package useful, please consider supporting its development.
If this project has been useful, that it helped you or your business to save precious time, don't hesitate to give it a star.
Distributed under the MIT License.
For any additonal information, please email us.
© EarthDaily | All Rights Reserved.