diff --git a/scripts/run.sh b/scripts/run.sh index 001ec71..958bd8f 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -51,7 +51,7 @@ fi declare -a SCENARIOS=(${SCENARIOS:-"arable" "restore" "restore_all" "urban" "pasture" "restore_agriculture"}) # shellcheck disable=SC2206 declare -a TAXAS=(${TAXAS:-"AMPHIBIA" "AVES" "MAMMALIA" "REPTILIA"}) -export CURVE=${CURVE:-0.25} +export CURVE=${CURVE:0.25} export PIXEL_SCALE=${PIXEL_SCALE:-0.016666666666667} check_scenario() { diff --git a/usecases/query_deltap_batch.py b/usecases/query_deltap_batch.py index 6c5ce0d..c92a8ec 100644 --- a/usecases/query_deltap_batch.py +++ b/usecases/query_deltap_batch.py @@ -80,13 +80,13 @@ def query_deltap_per_project( lng = project_mask.area.left + \ (project_mask.pixel_scale.xstep * x) + \ (project_mask.pixel_scale.xstep / 2) - row = [lat, lng] + result_row = [lat, lng] if not maskval: continue for species in species_keys: val = species_dict[species].read_array(x, y, 1, 1)[0][0] - row.append(val) - table.append(row) + result_row.append(val) + table.append(result_row) df = pd.DataFrame(table, columns=["lat", "lng"] + species_keys) df.to_csv(os.path.join(outputs_path, f"{project_code}_{klass}_{scenario}.csv"), index=False)