-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagnostics_debugging_hour.sh
executable file
·37 lines (28 loc) · 2.38 KB
/
diagnostics_debugging_hour.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# This is a simple debugging script that takes the hour of the day as an input and runs the program through using the corresponding testdata
# The scripts assumes that the testdata is located at nowcasting_fcst/testdata/$HOD
# PARAMETER INPUTS: $1 is the HOD (hour of the day), $2 is yes/no (plot_diagnostics)
HOD=$1
PLOT_DIAGNOSTICS=$2
echo $HOD
echo $PLOT_DIAGNOSTICS
### MAKE DIRECTORIES
#mkdir -p figures/fields
#mkdir -p figures/jumpiness_absdiff
#mkdir -p figures/jumpiness_meandiff
#mkdir -p figures/jumpiness_ratio
#mkdir -p figures/linear_change
#mkdir -p figures/linear_change3h
#mkdir -p figures/linear_change4h
### RETRIEVE LATEST DATA
#cd testdata/latest/
#./retrieval_script.sh
#cd ../..
### DEBUGGING CALLS
python3 ./call_interpolation.py --model_data testdata/$HOD/fcst_10si.grib2 --dynamic_nwc_data testdata/$HOD/mnwc_10si.grib2 --output_data testdata/$HOD/output/interpolated_10si.grib2 --parameter 10si --mode model_fcst_smoothed --predictability 4 --plot_diagnostics $PLOT_DIAGNOSTICS
python3 ./call_interpolation.py --model_data testdata/$HOD/fcst_2r.grib2 --dynamic_nwc_data testdata/$HOD/mnwc_2r.grib2 --output_data testdata/$HOD/output/interpolated_2r.grib2 --parameter 2r --mode model_fcst_smoothed --predictability 4 --plot_diagnostics $PLOT_DIAGNOSTICS
python3 ./call_interpolation.py --model_data testdata/$HOD/fcst_2t.grib2 --dynamic_nwc_data testdata/$HOD/mnwc_2t.grib2 --output_data testdata/$HOD/output/interpolated_2t.grib2 --parameter 2t --mode model_fcst_smoothed --predictability 4 --plot_diagnostics $PLOT_DIAGNOSTICS
python3 ./call_interpolation.py --model_data testdata/$HOD/fcst_cc.grib2 --dynamic_nwc_data testdata/$HOD/mnwc_cc.grib2 --output_data testdata/$HOD/output/interpolated_cc.grib2 --parameter total_cloud_cover --mode model_fcst_smoothed --predictability 8 --plot_diagnostics $PLOT_DIAGNOSTICS
python3 ./call_interpolation.py --obs_data testdata/$HOD/ppn_tprate_obs.grib2 --model_data testdata/$HOD/fcst_tprate.grib2 --background_data testdata/$HOD/mnwc_tprate.grib2 --dynamic_nwc_data testdata/$HOD/mnwc_tprate_full.grib2 --extrapolated_data testdata/$HOD/ppn_tprate.grib2 --detectability_data testdata/radar_detectability_field_255_280.h5 --output_data testdata/$HOD/output/interpolated_tprate.grib2 --parameter precipitation_1h_bg --mode model_fcst_smoothed --predictability 8 --plot_diagnostics $PLOT_DIAGNOSTICS
#cd testdata/latest/
#find . -name '*.grib2' -delete