From d02a8f2bc3e434fdfe882b1be167626f3bdf4001 Mon Sep 17 00:00:00 2001 From: "Takumi.Matsunobu" <Takumi.Matsunobu@physik.uni-muenchen.de> Date: Mon, 26 Jun 2023 15:16:54 +0200 Subject: [PATCH] remove unnecessary complexity --- templates/real-from-d2-ana/icon-remap-helper.py | 4 +--- templates/real-from-d2-ana/prepare_lbc_remote.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/real-from-d2-ana/icon-remap-helper.py b/templates/real-from-d2-ana/icon-remap-helper.py index 50e9df9..c08ebfe 100644 --- a/templates/real-from-d2-ana/icon-remap-helper.py +++ b/templates/real-from-d2-ana/icon-remap-helper.py @@ -184,11 +184,9 @@ def remap_one_file(in_grid, out_grid, one_file, dst_fodler, rename=None, src_vgr filename, ext = os.path.splitext(rename) if args.output_format == "grb": ext = ".grb" + out_filetype = 2 elif args.output_format == "nc": ext = ".nc" - if ext in [".grib", ".grb", ".grib2", ".grb2"]: - out_filetype = 2 - else: out_filetype = 4 rename = filename + ext diff --git a/templates/real-from-d2-ana/prepare_lbc_remote.sh b/templates/real-from-d2-ana/prepare_lbc_remote.sh index 1be8be9..31e473d 100644 --- a/templates/real-from-d2-ana/prepare_lbc_remote.sh +++ b/templates/real-from-d2-ana/prepare_lbc_remote.sh @@ -99,7 +99,7 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then # Fetch tar.gz file of ICON-EU-EPS outputs necessary for the lateral boundary conditions - LBC_SOURCE=$(find ${MEMBER_DIR} -name "latbc_*00.${MEMBER,}.grib" | sort -n ) + LBC_SOURCE=$(find ${MEMBER_DIR} -name "latbc_*00.${MEMBER^}.grib" | sort -n ) if [ -z "${LBC_SOURCE}" ]; then echo "Failed to make boundary conditions file for date ${STARTDATE}!" -- GitLab