Changeset 2d56c04 in flex_extract.git for source/python/classes/EcFlexpart.py


Ignore:
Timestamp:
Nov 27, 2018, 11:34:34 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
6cda7c1
Parents:
d8785f8
Message:

automatic detection of grid and area component formats (1/1000 or normal degree format)

File:
1 edited

Legend:

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

    rd43706b r2d56c04  
    194194        self.glevelist = '1/to/' + c.level
    195195        self.gaussian = c.gaussian
    196 
    197         if 'N' in c.grid:  # Gaussian output grid
    198             self.grid = c.grid
    199             self.area = 'G'
    200         else:
    201             self.grid = '{}/{}'.format(int(c.grid) / 1000., int(c.grid) / 1000.)
    202             self.area = '{}/{}/{}/{}'.format(int(c.upper) / 1000.,
    203                                              int(c.left) / 1000.,
    204                                              int(c.lower) / 1000.,
    205                                              int(c.right) / 1000.)
    206 
     196        self.grid = c.grid
     197        self.area = c.area
    207198        self.outputfilelist = []
    208199
     
    11071098                         is set to 1 in CONTROL file')
    11081099
     1100            # write out all output to log file before starting fortran programm
     1101            sys.stdout.flush()
     1102
    11091103            # Fortran program creates file fort.15 (with u,v,etadot,t,sp,q)
    11101104            p = subprocess.check_call([os.path.join(
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG