Introduction
The SIPT Python package is organized into 3 main modules:
-
Data Retrieval
These functions allow you to download and manage satellite data from various sources.
-
Data Processing
These functions help you manipulate and process the retrieved satellite data, including tasks like cropping, reprojecting, combining bands, and applying masks.
-
Data Fusion The fusion algorithms can be used to approximately calculate missing image information, change the temporal resolution and combine data from different cources. One application example is the replacement of clouds with artificially generated pixels.
Use Environments for Credentials¤
To securely manage sensitive credentials and configuration settings, the repository includes an example.env file. This file serves as a template for defining environment variables required by the application. Environment variables store information such as API tokens, usernames, and passwords in a separate, secure location, ensuring these values are not directly embedded in the code. Never commit login data to a GIT repository.!!
Steps to setup Environment Variables:
-
Install dotenv
pip install python-dotenv -
Locate the
example.envfile in the repository. Copy this file and rename the copy to user.env. -
Open
user.envin a text editor and replace the placeholders with your credentials. For example:Text Only⚠️ Important: Do not commitUSGS_USER=<your-username> USGS_TOKEN=<your-token> EOSDIS_BEARER_TOKEN=<your-bearer-token> CDSE_USER=<your-cdse-username> CDSE_PASSWORD=<your-cdse-password>user.envor any other.envfiles containing sensitive information to version control. The repository is configured to ignore all.envfiles except forexample.envto ensure sensitive data remains private. -
Use the Python dotenv library to load variables from the
.envfile into your application. Below is an example: