Skip to content
Merged
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 scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions usecases/query_deltap_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down