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

remove unnecessary complexity

parent 010459bf
No related branches found
No related tags found
No related merge requests found
Pipeline #19142 canceled
......@@ -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
......
......@@ -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}!"
......
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