From 3bdcfc995afbba3ccd76d9bb7a36d96ae7d97356 Mon Sep 17 00:00:00 2001 From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu> Date: Mon, 21 Jun 2021 16:54:26 +0200 Subject: [PATCH] Bash script for EuroCordex preprocessing. --- Scripts/preprocess.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Scripts/preprocess.sh diff --git a/Scripts/preprocess.sh b/Scripts/preprocess.sh new file mode 100644 index 0000000..cfb1b58 --- /dev/null +++ b/Scripts/preprocess.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# source path: input data +SOURCE_PATH='/mnt/CEPH_PROJECTS/SCENARIO/CLIMATEDATA/' + +# target path: remapped and cropped target data +TARGET_PATH='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX' + +# target grid +TARGET_GRID='/mnt/CEPH_PROJECTS/FACT_CLIMAX/OBS_DATA/grid_1km_laea' + +# path to inventories +INVENTORY_PATH='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX/Inventory/' + +# EuroCordex variables: tasmin, tasmax and pr +VARIABLES=('tasmin' 'tasmax' 'pr') + +# 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 + +# preprocess +# time python climax/main/preprocess.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f -- GitLab