Changeset 96e1533 in flex_extract.git for source/python/classes/EcFlexpart.py


Ignore:
Timestamp:
Nov 10, 2018, 9:37:36 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
1abf820
Parents:
8500ba1
Message:

redefined test data dir and completed unittests for tools module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/classes/EcFlexpart.py

    r274f9ef r96e1533  
    755755        # index_vals[2]: ('0', '12', '3', '6', '9') ; stepRange
    756756
     757        # initialize dictionaries
    757758        valsdict = {}
    758759        svalsdict = {}
    759 #        stepsdict = {}
    760760        for p in pars:
    761761            valsdict[str(p)] = []
    762762            svalsdict[str(p)] = []
    763 #            stepsdict[str(p)] = []
    764 
    765         print('maxstep: ', c.maxstep)
    766763
    767764        # "product" genereates each possible combination between the
     
    828825                    vdp = valsdict[cparamId]
    829826                    svdp = svalsdict[cparamId]
    830  #                   sd = stepsdict[cparamId]
    831827
    832828                    if cparamId == '142' or cparamId == '143':
     
    11941190
    11951191            if c.format.lower() == 'grib2':
    1196                 p = subprocess.check_call(['grib_set', '-s', 'edition=2, \
    1197                                            productDefinitionTemplateNumber=8',
     1192                p = subprocess.check_call(['grib_set', '-s', 'edition=2,',
     1193                                           'productDefinitionTemplateNumber=8',
    11981194                                           ofile, ofile + '_2'])
    11991195                p = subprocess.check_call(['mv', ofile + '_2', ofile])
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG