This ETL is meant to automate the process of Estimating Biomass. The maps can be accessed through the forage tool .
The installation described here will make use of conda to ensure there are no package conflicts with existing or future applications on the machine. It is highly recommended using a dedicated environment for this application to avoid any issues.
Conda (To manage packages within the applications own environment)
- Create the env
conda env create -f environment.yml
Add a file named data.json in the base directory. This file will hold a json object containing the secure information needed to run your application. Copy the following object into your file then edit the values as described in each of the { ... } blocks. This file is in the .gitignore so it will not be exposed publicly when you push and updates to your repo.
{
"service_account": "{service account to authenticate to Earth Engine}",
"geoserve_url": "{geoserver REST URL}",
"geoserver_user": "{geoserver publisher account username}",
"geoserver_pwd": "{geoserver publisher account password}"
}
The order of script execution is:
- data_extraction.py
- gwr_model.py
- rasterize.py
- import_biomass.py
You will need a private_key.json file associated with service_account placed in the base directory.This file is also in the .gitignore so it will not be exposed publicly when you push and updates to your repo.
There is master_script.py to run all the other scripts.