Changeset 4971f63 in flex_extract.git for source/python/classes/EcFlexpart.py


Ignore:
Timestamp:
Sep 27, 2018, 12:31:47 PM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
82b624a
Parents:
25b14be
Message:

eliminated some redundancy and exchanged CONTROL2 with the config-filename

File:
1 edited

Legend:

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

    r25b14be r4971f63  
    807807            over all messages in each grib file which were passed through the
    808808            parameter "inputfiles" to seperate specific parameters into fort.*
    809             files. Afterwards the FORTRAN program Convert2 is called to convert
     809            files. Afterwards the FORTRAN program is called to convert
    810810            the data fields all to the same grid and put them in one file
    811811            per unique time step (combination of "date", "time" and
     
    866866            # per date e.g. time = 0, 1200
    867867            # per time e.g. step = 3, 6, 9, 12
    868             # flag for Fortran program CONVERT2 and file merging
     868            # flag for Fortran program and file merging
    869869            convertFlag = False
    870870            print('current prod: ', prod)
     
    884884                # Combine all temporary data files into final grib file if
    885885                # gid is at least one time not None. Therefore set convertFlag
    886                 # to save information. The fortran program CONVERT2 is also
    887                 # only done if convertFlag is True
     886                # to save information. The Fortran program is also
     887                # only executed if convertFlag is True
    888888                convertFlag = True
    889889                # remove old fort.* files and open new ones
     
    997997                f.close()
    998998
    999             # call for CONVERT2 if flag is True
     999            # call for Fortran program if flag is True
    10001000            if convertFlag:
    10011001                pwd = os.getcwd()
     
    10091009
    10101010                # create the corresponding output file fort.15
    1011                 # (generated by CONVERT2) + fort.16 (paramId 167 and 168)
    1012                 p = subprocess.check_call([os.path.join(c.exedir, 'CONVERT2')],
    1013                                           shell=True)
     1011                # (generated by Fortran program) + fort.16 (paramId 167 and 168)
     1012                p = subprocess.check_call([os.path.join(
     1013                    c.exedir, _config.FORTRAN_EXECUTABLE)], shell=True)
    10141014                os.chdir(pwd)
    10151015
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG