Skip to content
Snippets Groups Projects
Commit 6f9b6a6d authored by Gergely Bölöni's avatar Gergely Bölöni
Browse files

[pyicon_dwd] deleted tools/run_qp_driver_atm_dwd_datampi.sh

parent 22e1a2e8
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#SBATCH --job-name=pyicon_qp
#SBATCH --time=00:30:00
#SBATCH --output=log.o-%j.out
#SBATCH --error=log.o-%j.out
#SBATCH --ntasks=1
#SBATCH --partition=compute,compute2
#SBATCH --account=mh0033
module list
source ./conda_act_dwd_pyicon_env.sh
which python
rand=$(cat /dev/urandom | tr -dc 'A-Z' | fold -w 3 | head -n 1)
path_pyicon=`(cd .. && pwd)`"/"
config_file="./config_qp_${rand}.py"
qp_driver="${path_pyicon}pyicon/quickplots/qp_driver.py"
cat > ${config_file} << %eof%
# --- path to quickplots
path_quickplots = '../all_qps/'
# --- set this to True if the simulation is still running
omit_last_file = False
# --- do ocean and/or atmosphere plots
do_atmosphere_plots = True
do_ocean_plots = False
# --- grid information
gname = 'R2B4-R2B4'
lev = 'L40'
gname_atm = 'r2b4_atm_r0013'
lev_atm = 'L87'
# --- path to interpolation files
path_grid = '/hpc/uwork/gboeloen/pyICON/grids/'+gname+'/'
path_grid_atm = '/hpc/uwork/gboeloen/pyICON/grids/'+gname_atm+'/'
path_ckdtree = path_grid+'/ckdtree/'
path_ckdtree_atm = path_grid_atm+'/ckdtree/'
# --- grid files and reference data
path_pool_oce = '/hpc/uwork/gboeloen/pyICON/grids/'
gnameu = gname.split('_')[0].upper()
fpath_tgrid = path_grid + gname+'_tgrid.nc'
fpath_tgrid_atm = path_grid_atm + gname_atm+'_tgrid.nc'
fpath_ref_data_oce = path_grid + 'ts_phc3.0_annual_icon_grid_0043_R02B04_G_L40.nc'
fpath_ref_data_atm = path_grid_atm + 'pyicon_prepare_era.nc'
fpath_fx = path_grid + 'oce_fx.19600102T000000Z.nc'
# --- nc file prefixes
oce_def = '_oce_def'
oce_moc = '_oce_moc'
oce_mon = '_oce_MON'
oce_ice = '_oce_ice'
oce_monthly = '_oce_dbg'
atm_2d = '_atm_2d_ml'
atm_3d = '_atm_3d_ml'
atm_mon = '_atm_mon'
# --- nc output
save_data = False
path_nc = '/scratch/m/m300602/tmp/test_pyicon_output/'
# --- time average information (can be overwritten by qp_driver call)
tave_ints = [
#['1630-02-01', '1640-01-01'],
['4450-02-01', '4500-01-01'],
]
%eof%
# --- start qp_driver
startdate=`date +%Y-%m-%d\ %H:%M:%S`
run="slo1327"
path_data="/hpc/uwork/gboeloen/pyICON/test_data_atm/${run}/"
#python -u ${qp_driver} --batch=True ${config_file} --path_data=$path_data --run=$run --tave_int='1870-01-01,1870-12-31'
#python -u ${qp_driver} --batch=True ${config_file} --path_data=$path_data --run=$run --tave_int='1870-01-01,1879-12-31'
python -u ${qp_driver} --batch=True ${config_file} --path_data=$path_data --run=$run --tave_int='1870-01-01,1889-12-31'
#python -u ${qp_driver} --batch=True ${config_file} --path_data=$path_data --run=$run --tave_int='1800-01-01,1990-12-31'
enddate=`date +%Y-%m-%d\ %H:%M:%S`
rm ${config_file}
echo "--------------------------------------------------------------------------------"
echo "Started at ${startdate}"
echo "Ended at ${enddate}"
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