Changeset 70fee58 in flex_extract.git for source/python/mods/prepare_flexpart.py


Ignore:
Timestamp:
Oct 12, 2018, 1:17:12 PM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
785b882
Parents:
5827ff6
Message:

some bug corrections, minor code improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/mods/prepare_flexpart.py

    rc5074d2 r70fee58  
    5959
    6060# software specific classes and modules from flex_extract
    61 sys.path.append('../')
     61
     62sys.path.append(os.path.dirname(os.path.abspath(
     63    inspect.getfile(inspect.currentframe()))) + '/../')
    6264import _config
    6365from classes.UioFiles import UioFiles
     
    156158
    157159    # get all files with flux data to be deaccumulated
    158     inputfiles = UioFiles(c.inputdir, '*OG_acc_SL*.' + c.ppid + '.*')
     160    inputfiles = UioFiles(c.inputdir, '*OG_acc_SL*.' + str(c.ppid) + '.*')
    159161
    160162    # deaccumulate the flux data
     
    164166
    165167    # get a list of all files from the root inputdir
    166     inputfiles = UioFiles(c.inputdir, '????__??.*' + c.ppid + '.*')
     168    inputfiles = UioFiles(c.inputdir, '????__??.*' + str(c.ppid) + '.*')
    167169
    168170    # produce FLEXPART-ready GRIB files and process them -
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG