Skip to content
Snippets Groups Projects
Commit 8a6bc4db authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Bash script for EuroCordex preprocessing.

parent 3bdcfc99
No related branches found
No related tags found
No related merge requests found
......@@ -10,16 +10,17 @@ TARGET_PATH='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX'
TARGET_GRID='/mnt/CEPH_PROJECTS/FACT_CLIMAX/OBS_DATA/grid_1km_laea'
# path to inventories
INVENTORY_PATH='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX/Inventory/'
TASMIN_INVENTORY='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX/Inventory/tasmin/tasmin_inventory_selection.csv'
TASMAX_INVENTORY='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX/Inventory/tasmax/tasmax_inventory_selection.csv'
PR_INVENTORY='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX/Inventory/pr/pr_inventory_selection.csv'
# EuroCordex variables: tasmin, tasmax and pr
VARIABLES=('tasmin' 'tasmax' 'pr')
# preprocess EuroCordex simulations
# preprocess EuroCordex simulations: remap to target grid and resample
for var in ${VARIABLES[@]}:
# inventory of selected EuroCordex simulations
inventory = $INVENTORY_PATH + $var + '/$var/$var_inventory_selection.csv'
echo $inventory
# tasmin
time python climax/main/preprocess.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $TASMIN_INVENTORY -m 'bilinear' -rm -a -o
# preprocess
# time python climax/main/preprocess.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f
# tasmax
time python climax/main/preprocess.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $TASMAX_INVENTORY -m 'bilinear' -rm -a -o
# pr
time python climax/main/preprocess.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $PR_INVENTORY -m 'conservative' -rm -a -o
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment