Skip to content
Snippets Groups Projects
Commit 500fa81d authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Starting modifications to use dwd analysis to start a simulation

parent 575e399e
No related branches found
No related tags found
1 merge request!2Split prepare_rundir.sh into three different stages for the whole experiment,...
...@@ -37,10 +37,61 @@ function download_file() { ...@@ -37,10 +37,61 @@ function download_file() {
} }
# Download or copy required input files # Download or copy required input files
# download_file http://icon-downloads.mpimet.mpg.de/grids/public/edzw/$BGRID_GLOBAL
# download_file http://icon-downloads.mpimet.mpg.de/grids/public/edzw/$RGRID_GLOBAL
download_file http://icon-downloads.mpimet.mpg.de/grids/public/edzw/$BGRID_GLOBAL # # input for radiation
download_file http://icon-downloads.mpimet.mpg.de/grids/public/edzw/$RGRID_GLOBAL # ln -sf ${ICON_DATA_PATH}/rrtmg_lw.nc .
# ln -sf ${ICON_DATA_PATH}/ECHAM6_CldOptProps.nc .
# some settings
MEMBER=001
INITIAL_CONDITIONS_PARENT_FOLDER=/archive/meteo/external-models/dwd/icon/oper/icon_oper_eps_gridded-global_rolling/
#INITIAL_CONDITIONS_PATH=${INITIAL_CONDITIONS_PARENT_FOLDER}/$(date -u +"%Y%m")/$(date -u +"%Y%m%dT00")
#AN_FILE=igaf$(date -u +"%Y%m%d")00.m${MEMBER}.grb
#FG_FILE=igfff00030000.m${MEMBER}.grb
AN_SOURCE=$(find ${INITIAL_CONDITIONS_PARENT_FOLDER} -name igfff00030000.m${MEMBER}.grb | sort | tail -n 1)
FG_SOURCE=$(find ${INITIAL_CONDITIONS_PARENT_FOLDER} -name "igaf*00.m${MEMBER}.grb" | sort | tail -n 1)
AN_FILE=analysis.nc
FG_FILE=fg.nc
START_DATE=$(date -u +"%Y-%m-%dT00:00:00Z")
NHOURS=02
#END_DATE=$(date -u -d "+1 day" +"%Y-%m-%dT00:00:00Z")
END_DATE=$(date -u +"%Y-%m-%dT${NHOURS}:00:00Z")
BGRID=icon_grid_0016_R02B06_G.nc
RGRID=icon_grid_0015_R02B05_R.nc
BEXTPAR=icon_extpar_0016_R02B06_G_20131206.nc
BASEURL=http://icon-downloads.mpimet.mpg.de/grids/public/edzw
download_file $BASEURL/$BGRID
download_file $BASEURL/$RGRID
download_file $BASEURL/$BEXTPAR
# grid definition
# get first guess and analysis from irods
# if [ ! -e $FG_FILE ]; then iget -v /LMUPH/$INITIAL_CONDITIONS_PATH/$FG_FILE; fi
# if [ ! -e $AN_FILE ]; then iget -v /LMUPH/$INITIAL_CONDITIONS_PATH/$AN_FILE; fi
# or in case that we are at LMU, from the archive
# ln -sf /archive/$INITIAL_CONDITIONS_PATH/$FG_FILE
# ln -sf /archive/$INITIAL_CONDITIONS_PATH/$AN_FILE
ln -sf $FG_FILE
ln -sf $AN_FILE
#enstools-compression compress ${FG_SOURCE} -o ${FG_FILE} --compression None
#enstools-compression compress ${AN_SOURCE} -o ${AN_FILE} --compression None
# input for radiation # input for radiation
ln -sf ${ICON_DATA_PATH}/rrtmg_lw.nc . ln -sf ${ICON_DATA_PATH}/rrtmg_lw.nc .
ln -sf ${ICON_DATA_PATH}/ECHAM6_CldOptProps.nc . ln -sf ${ICON_DATA_PATH}/ECHAM6_CldOptProps.nc .
ln -sf ${ICON_BASE_PATH}/run/ana_varnames_map_file.txt .
\ 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