diff --git a/requirements.txt b/requirements.txt index c84786c..8f1b0d3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,7 +13,7 @@ gdal[numpy] git+https://github.com/quantifyearth/iucn_modlib git+https://github.com/quantifyearth/pyshark -git+https://github.com/quantifyearth/yirgacheffe@ff78ca4c51609ee0750d5c62d38c230632c312f1 +git+https://github.com/quantifyearth/yirgacheffe@4a2cab77f4a64e3f09497ee7098dc9ba499cda90 pylint mypy diff --git a/scripts/run.sh b/scripts/run.sh index 6bd7b79..7234ace 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -74,3 +74,10 @@ python3 ./aoh-calculator/validation/collate_data.py --aoh_results ${DATADIR}/aoh --output ${DATADIR}/validation/aohs.csv python3 ./aoh-calculator/validation/validate_map_prevalence.py --collated_aoh_data ${DATADIR}/validation/aohs.csv \ --output ${DATADIR}/validation/model_validation.csv + +# Threats +python3 ./utils/threats_generator.py --input ${DATADIR}/species-info --datadir ${DATADIR} --output ${DATADIR}/threatbatch.csv + +littlejohn -j 200 -o ${DATADIR}/threatbatch.log -c ${DATADIR}/threatcatch.csv ${VIRTUAL_ENV}/bin/python3 -- ./threats/threat_processing.py + +python3 ./threats/threat_summation.py --threat_rasters ${DATADIR}/threat_rasters --output ${DATADIR}/threat_results