From 8834b1e399c761dd12596ac60a4e59777cfe151c Mon Sep 17 00:00:00 2001 From: alavin87 Date: Wed, 4 Jul 2018 11:16:11 +0200 Subject: [PATCH] Fixed bug when save_wps=yes: wrfinput,wrflow and wrfbdy were not downloaded into /realout. It was pointed to the wrong path. Also, fixed bug concatenating the path which looks for the files. --- lib/python/wrf4g/wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/wrf4g/wrapper.py b/lib/python/wrf4g/wrapper.py index 47c927df..286d7f9c 100644 --- a/lib/python/wrf4g/wrapper.py +++ b/lib/python/wrf4g/wrapper.py @@ -892,9 +892,9 @@ def launch_wrapper( params ): # The command: $ upload_file wps 1990-01-01_00:00:00 # will create in the repositore three files with the following format: wrfinput_d01_19900101T000000Z suffix = "_" + datetime2dateiso( params.chunk_rdate )+ ".nc" - for wps_file in VCPURL( params.wps_path ).ls("wrf[lbif]*_d\d\d") : + for wps_file in VCPURL( params.wrf_run_path ).ls("wrf[lbif]*_d\d\d") : oiring = wps_file - dest = join( params.real_rea_output_path, basename( wps_file) , suffix ) + dest = join( params.real_rea_output_path, basename( wps_file) + suffix ) try: logging.info( "Uploading '%s' file" % oiring ) os.chmod( oiring, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH )