Logo Lanfrica

Mercy-Corp/Locust-Covid19

Creator:
Mer
Host:
Locust & Covid 19 impact on East Africa # LocustCovid19 Python library for locustcovid19 project ## Installation Use the package manager pip to install required packages ```bash pip3 install -r requirements.txt ``` Unzip the repository compressed directory: ```bash unzip -d locustcovid19 locustcovid19.zip ``` ## Usage cd one level up from your locustcovid19 directory and run: ```bash python3 locustcovid19 ``` ## Configuration locustcovid19 uses an application.yaml file for configuration: #### config/application.yaml ```yaml environment: 'test' data: landing: 's3://mercy-locust-covid19-landing-test/' reporting: 's3://mercy-locust-covid19-reporting-test/' module: 'croplands' ``` environment is selfexplanatory, can be production or test data holds the location of the input bucket (landing) and output bucket (reporting) on s3 module is the python module that will be executed, valid module names are: conflicts cropland croplandlocust demand displacements famine fin_inclusion forageland foragelandlocust location measure shapefile population price production refugees risk.locust risk.rvf vegetation violence ## Modules 1. Location location_table.py output: location_dim/location_table.csv 2. Measures measure_table.py output: Measures_csv.csv 3. Price price_table.py input: wfpvam_foodprices.csv in landing and /Date_Dim/Date_Dim.csv 4. Production production_table.py input: FAOSTAT_data.csv in landing and location_dim 5. Demand demand_table.py input: population files 6. Population: population once a year just one year population_table.py 7. Croplands cropland_area.py input: crops_*csv files and GFSAD_tif cropland_locust.py input: cropland/crops_locust_distr_*.csv and mercy-locust-covid19-landing-test/Swarm_Master.shp 8. Forage: forageland_area.py input: /Date_Dim/Date_Dim.csv, forageland and Swarm_Master.shp forageland_locust.py input: Swarm_Master.sh, Swarm_Master.shx There are several files in the root folder. The code goes in *locustcovid19". - *requirements.txt* ha …