Skip to content
Snippets Groups Projects
Commit 0bfecbcf authored by Takumi.Matsunobu's avatar Takumi.Matsunobu
Browse files

update

parent 1b18532f
No related branches found
No related tags found
No related merge requests found
Pipeline #19912 passed
...@@ -27,7 +27,7 @@ if [ "${IC_DATA_IS_LOCAL}" != "True" ]; then ...@@ -27,7 +27,7 @@ if [ "${IC_DATA_IS_LOCAL}" != "True" ]; then
# Exploit the number from the member name # Exploit the number from the member name
INITIAL_CONDITIONS_PARENT_FOLDER=%SIMULATION.INITIAL_CONDITIONS.PARENT_FOLDER% INITIAL_CONDITIONS_PARENT_FOLDER=%SIMULATION.INITIAL_CONDITIONS.PARENT_FOLDER%
INITIAL_CONDITIONS_PATH=${INITIAL_CONDITIONS_PARENT_FOLDER}/${STARTDATE:0:8}00 INITIAL_CONDITIONS_PATH=${INITIAL_CONDITIONS_PARENT_FOLDER}/${STARTDATE:0:10}
AN_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "an_R19B07.*00_an.*" | sort -n ) AN_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "an_R19B07.*00_an.*" | sort -n )
AN_INC_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "an_R19B07.*00_inc.*" | sort -n ) AN_INC_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "an_R19B07.*00_inc.*" | sort -n )
......
...@@ -38,7 +38,7 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then ...@@ -38,7 +38,7 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then
# Leave out the character part # Leave out the character part
BOUNDARY_CONDITIONS_PARENT_FOLDER=%SIMULATION.BOUNDARY_CONDITIONS.PARENT_FOLDER% BOUNDARY_CONDITIONS_PARENT_FOLDER=%SIMULATION.BOUNDARY_CONDITIONS.PARENT_FOLDER%
BOUNDARY_CONDITIONS_PATH=${BOUNDARY_CONDITIONS_PARENT_FOLDER}/${STARTDATE:0:8}00 BOUNDARY_CONDITIONS_PATH=${BOUNDARY_CONDITIONS_PARENT_FOLDER}/${STARTDATE:0:10}
# Fetch tar.gz file of ICON-EU-EPS outputs necessary for the lateral boundary conditions # Fetch tar.gz file of ICON-EU-EPS outputs necessary for the lateral boundary conditions
...@@ -53,7 +53,7 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then ...@@ -53,7 +53,7 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then
fi fi
# make a working directory for converting boundary conditions # make a working directory for converting boundary conditions
mkdir -p work/${MEMBER} || exit mkdir -p work/${STARTDATE}/${MEMBER} || exit
tar -zxvf ${FC_TAR_SOURCE} -C work tar -zxvf ${FC_TAR_SOURCE} -C work
...@@ -80,20 +80,20 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then ...@@ -80,20 +80,20 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then
${WORKDIR}/%python_environment.folder_name%/bin/python3 ${WORKDIR}/proj/templates/real-from-d2-ana/icon-remap-helper.py \ ${WORKDIR}/%python_environment.folder_name%/bin/python3 ${WORKDIR}/proj/templates/real-from-d2-ana/icon-remap-helper.py \
--src-grid ${COMMON_GRID_FOLDER}/${PARENT_GRID_FILE} \ --src-grid ${COMMON_GRID_FOLDER}/${PARENT_GRID_FILE} \
--dst-grid ${COMMON_GRID_FOLDER}/${BOUNDARY_GRID_FILE} \ --dst-grid ${COMMON_GRID_FOLDER}/${BOUNDARY_GRID_FILE} \
--source work/iefff${EU_FC_TIME}0000.${MEMBER,} \ --source work/${STARTDATE}/iefff${EU_FC_TIME}0000.${MEMBER,} \
--dest work/${MEMBER} \ --dest work/${STARTDATE}/${MEMBER} \
--output-format grb --output-format grb
# compensate missing vertical wind field # compensate missing vertical wind field
if [ $((tt2 % 3)) -ne 0 ]; then if [ $((tt2 % 3)) -ne 0 ]; then
grib_copy work/${MEMBER}/iefff${EU_FC_TIME}0000.grb work/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t -w shortName!=wz grib_copy work/${STARTDATE}/${MEMBER}/iefff${EU_FC_TIME}0000.grb work/${STARTDATE}/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t -w shortName!=wz
mv work/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t work/${MEMBER}/iefff${EU_FC_TIME}0000.grb mv wor/${STARTDATE}k/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t work/${STARTDATE}/${MEMBER}/iefff${EU_FC_TIME}0000.grb
grib_set -s stepRange=$((tt2 * 60)),dataTime=0,dataDate=${STARTDATE:0:8} ${COMMON_DATE_FOLDER}/WZ.grib work/${MEMBER}/WZ.grib grib_set -s stepRange=$((tt2 * 60)),dataTime=0,dataDate=${STARTDATE:0:8} ${COMMON_DATE_FOLDER}/WZ.grib work/${STARTDATE}/${MEMBER}/WZ.grib
cat work/${MEMBER}/WZ.grib >> work/${MEMBER}/iefff${EU_FC_TIME}0000.grb cat work/${STARTDATE}/${MEMBER}/WZ.grib >> work/${STARTDATE}/${MEMBER}/iefff${EU_FC_TIME}0000.grb
fi fi
# rename to the comfortable style for ICON # rename to the comfortable style for ICON
mv work/${MEMBER}/iefff${EU_FC_TIME}0000.grb ${MEMBER_DIR}/latbc_${D2_FC_TIME}.${MEMBER^}.grib mv work/${STARTDATE}/${MEMBER}/iefff${EU_FC_TIME}0000.grb ${MEMBER_DIR}/latbc_${D2_FC_TIME}.${MEMBER^}.grib
done done
...@@ -102,8 +102,8 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then ...@@ -102,8 +102,8 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then
cat ${COMMON_DATE_FOLDER}/HHL.grib >> ${MEMBER_DIR}/latbc_00000.${MEMBER^}.grib cat ${COMMON_DATE_FOLDER}/HHL.grib >> ${MEMBER_DIR}/latbc_00000.${MEMBER^}.grib
# clean up the working directory # clean up the working directory
rm -r work/${MEMBER} rm -r work/${STARTDATE}/${MEMBER}
rm -r work/iefff*.${MEMBER,} rm -r work/${STARTDATE}/iefff*.${MEMBER,}
# Fetch tar.gz file of ICON-EU-EPS outputs necessary for the lateral boundary conditions # Fetch tar.gz file of ICON-EU-EPS outputs necessary for the lateral boundary conditions
......
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