- the core data model: the models are defined in
**/models.py
files (see Models) - the Administration Portal, built around the Django Admin framework.
Leverages Django ORM to manage the data model. Objects are created as Python classes that inherit from the Django's Model class, and define any number of fields required for the business logic. They are then mapped to the database using the Django ORM, through migrations. The migrations are defined in **/migrations/
folders.
- Python 3.10
- Docker
The web backend expects the following environment variables to be set:
POSTGRES_DB
POSTGRES_PASSWORD
POSTGRES_USER
POSTGRES_HOST
POSTGRES_PORT
SECRET_KEY
SCI_HUB_USERNAME
SCI_HUB_PASSWORD
git clone -b main [email protected]:gip-python/plot.git
docker-compose up -d --build
docker-compose exec web ./manage.py createsuperuser
# Start unit test --------------------------------
sudo docker-compose exec web python manage.py test
# Start django test coverage ---------------------
sudo docker-compose exec web coverage report
Now we have opportunity to get 2 kind of index(NDVI, NDMI). You have to upload 4 satellite images in tiff format from Sentinel-2. Ther are B04, B08, B8A, B11.