Skip to content

Commit

Permalink
Fixed bug when save_wps=yes: wrfinput,wrflow and wrfbdy were not down…
Browse files Browse the repository at this point in the history
…loaded into /realout. It was pointed to the wrong path.

Also, fixed bug concatenating the path which looks for the files.
  • Loading branch information
alavin87 committed Jul 4, 2018
1 parent 1401dea commit 8834b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/wrf4g/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 8834b1e

Please sign in to comment.