Skip to content

Commit

Permalink
Merge pull request #65 from umr-lops/newWW3hindcast
Browse files Browse the repository at this point in the history
fix typo and make possible to move output to archive directory
  • Loading branch information
agrouaze authored Jan 18, 2024
2 parents aab28c9 + 6c7db2c commit 72aa907
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slcl1butils/compute/stack_wv_l1c_monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import xarray as xr
import glob
import logging
import shutil
import numpy as np
import os
import datetime
Expand Down Expand Up @@ -773,6 +774,10 @@ def main():
else:
logging.info("no data available")
if os.path.exists(outputfile):
archive_path = outputfile.replace(args.outputdir,args.finalarchive)
if outputfile!=archive_path:
logging.info('move file %s to %s',outputfile,archive_path)
shutil.move(outputfile,archive_path)

logging.info("peak memory usage: %s Mbytes", get_memory_usage())
logging.info("done in %1.3f min", (time.time() - t0) / 60.0)
Expand Down

0 comments on commit 72aa907

Please sign in to comment.