Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pymer4
pyproj
scikit-image
redlistapi
yirgacheffe>=1.9
yirgacheffe>=1.10
aoh[validation]>=1.0

# GDAL should be installed manually to match the version of the library installed on your machine
Expand Down
12 changes: 12 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ aoh-collate-data --aoh_results "${DATADIR}"/aohs/current/ \
echo "Calculating model validation..."
aoh-validate-prevalence --collated_aoh_data "${DATADIR}"/validation/aohs.csv \
--output "${DATADIR}"/validation/model_validation.csv
for TAXA in "${TAXALIST[@]}"
do
echo "Fetching GBIF data for ${TAXA}..."
aoh-fetch-gbif-data --collated_aoh_data "${DATADIR}"/validation/aohs.csv \
--taxa "${TAXA}" \
--output_dir "${DATADIR}"/validation/occurrences/"${TAXA}"
echo "Validating occurrences for ${TAXA}..."
aoh-validate-occurrences --gbif_data_path "${DATADIR}"/validation/occurrences/"${TAXA}" \
--species_data "${DATADIR}"/species-info/"${TAXA}"/current/ \
--aoh_results "${DATADIR}"/aohs/current/"${TAXA}"/ \
--output "${DATADIR}"/validation/occurrences/"${TAXA}".csv
done

# Threats
echo "Generating threat task list..."
Expand Down