From 696e8a29332c99ea1b9524fe71b2d6cafb9d3123 Mon Sep 17 00:00:00 2001 From: Michael <m.langguth@fz-juelich.de> Date: Wed, 10 Feb 2021 13:50:49 +0100 Subject: [PATCH] Remove script_dir and exp_id from argument list in preprocess_data_era5_step1_template.sh . --- .../preprocess_data_era5_step1_template.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/video_prediction_tools/HPC_scripts/preprocess_data_era5_step1_template.sh b/video_prediction_tools/HPC_scripts/preprocess_data_era5_step1_template.sh index ef03438f..631b1a98 100644 --- a/video_prediction_tools/HPC_scripts/preprocess_data_era5_step1_template.sh +++ b/video_prediction_tools/HPC_scripts/preprocess_data_era5_step1_template.sh @@ -40,21 +40,18 @@ variables=( "t2" "t2" "t2" ) lat_inds=( 74 202 ) lon_inds=( 550 710 ) -max_year=$( printf "%d\n" "${years[@]}" | sort -n | tail -1 ) -min_year=$( printf "%d\n" "${years[@]}" | sort -nr | tail -1 ) # set some paths # note, that destination_dir is used during runtime to set a proper experiment directory -source_dir=/p/scratch/deepacf/video_prediction_shared_folder/extractedData -destination_dir=/p/project/deepacf/deeprain/video_prediction_shared_folder/preprocessedData/era5-Y${min_year}to${max_year}M01to12 -script_dir=`pwd` +source_dir=/p/project/deepacf/deeprain/video_prediction_shared_folder/ +destination_dir=/p/project/deepacf/deeprain/video_prediction_shared_folder/ # execute Python-scripts for year in "${years[@]}"; do echo "Year $year" echo "source_dir ${source_dir}/${year}" srun python ../main_scripts/main_preprocess_data_step1.py \ - --source_dir ${source_dir} -scr_dir ${script_dir} -exp_id ${exp_id} \ - --destination_dir ${destination_dir} --years ${year} --vars ${variables[0]} ${variables[1]} ${variables[2]} + --source_dir ${source_dir} --destination_dir ${destination_dir} --years ${year} \ + --vars ${variables[0]} ${variables[1]} ${variables[2]} --lat_s ${lat_inds[0]} --lat_e ${lat_inds[1]} --lon_s ${lon_inds[0]} --lon_e ${lon_inds[1]} done -- GitLab