From cfe103e9e4e671e05af15e9c9603757ce713e862 Mon Sep 17 00:00:00 2001 From: Bing Gong <b.gong@fz-juelich.de> Date: Tue, 22 Feb 2022 15:18:16 +0100 Subject: [PATCH] add visulization postprocess template for non HPC users --- .../visualize_postprocess_era5_template.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 video_prediction_tools/other_scripts/visualize_postprocess_era5_template.sh diff --git a/video_prediction_tools/other_scripts/visualize_postprocess_era5_template.sh b/video_prediction_tools/other_scripts/visualize_postprocess_era5_template.sh new file mode 100644 index 00000000..50d49ae0 --- /dev/null +++ b/video_prediction_tools/other_scripts/visualize_postprocess_era5_template.sh @@ -0,0 +1,22 @@ +#!/bin/bash -x + +#User's input : your virtual enviornment name +VIRT_ENV_NAME=venv_test + +echo "Activating virtual environment..." +source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate + +#the source directory contains the tfrecords +checkpoint_dir=/home/b.gong/model/checkpoint_89 +results_dir=/home/b.gong/results/ +lquick=1 +climate_file=/home/b.gong/data_era5/T2monthly/climatology_t2m_1991-2020.nc +#select models +model=convLSTM +mkdir ${results_dir} +python3 ../main_scripts/main_visualize_postprocess.py --checkpoint ${checkpoint_dir} --mode test \ + --results_dir ${results_dir} --batch_size 4 \ + --num_stochastic_samples 1 \ + --lquick_evaluation \ + --climatology_file ${climate_file} + -- GitLab