Skip to content

Commit c5c9399

Browse files
committed
Update a copy of output files for the shiny app
1 parent 7ba1b11 commit c5c9399

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

run_pipeline_uc_grassland.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ python ../runReplicatedSimulations.py "$LAT" "$LON" "$startYear" "$endYear"
7575

7676
echo "Simulation completed successfully!"
7777

78-
cp -r ./* /output/ 2>/dev/null || true
78+
mkdir -p /output/simulations/project_lat${LAT}_lon${LON}
79+
cp -r ./* /output/simulations/project_lat${LAT}_lon${LON}/ 2>/dev/null || true
80+
81+
mkdir -p /output/scenarios
82+
cp -r /uc-grassland-model/scenarios/lat${LAT}_lon${LON}/* /output/scenarios/
83+
84+
# Save a copy of the parameters used by the model into the output folder so they are
85+
# preserved alongside the simulation results. This will include any in-place edits
86+
# performed by modifyConfig.py.
87+
mkdir -p /output/parameters
88+
cp -r /uc-grassland-model/parameters/* /output/parameters/ 2>/dev/null || true
7989

8090
echo "Results saved to ./output/"

0 commit comments

Comments
 (0)