Changeset 27fe969 in flex_extract.git for source/python/mods


Ignore:
Timestamp:
Oct 3, 2018, 7:55:24 AM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
ca867de
Parents:
65748f4
Message:

put grib2flexpart part of code into its own function; changed function documentation of input controlfile parameter

Location:
source/python/mods
Files:
3 edited

Legend:

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

    r295ff45 r27fe969  
    102102    @Input:
    103103        c: instance of class ControlFile
    104             Contains all the parameters of CONTROL file, which are e.g.:
    105             DAY1(start_date), DAY2(end_date), DTIME, MAXSTEP, TYPE, TIME,
    106             STEP, CLASS(marsclass), STREAM, NUMBER, EXPVER, GRID, LEFT,
    107             LOWER, UPPER, RIGHT, LEVEL, LEVELIST, RESOL, GAUSS, ACCURACY,
    108             OMEGA, OMEGADIFF, ETA, ETADIFF, DPDETA, SMOOTH, FORMAT,
    109             ADDPAR, WRF, CWC, PREFIX, ECSTORAGE, ECTRANS, ECFSDIR,
    110             MAILOPS, MAILFAIL, GRIB2FLEXPART, FLEXPARTDIR, BASETIME
    111             DATE_CHUNK, DEBUG, INPUTDIR, OUTPUTDIR, FLEXPART_ROOT_SCRIPTS
    112 
     104            Contains all the parameters of CONTROL file and
     105            command line.
    113106            For more information about format and content of the parameter
    114107            see documentation.
     
    219212
    220213    @Input:
    221         c: instance of ControlFile
    222             Contains all the parameters of CONTROL file, which are e.g.:
    223             DAY1(start_date), DAY2(end_date), DTIME, MAXSTEP, TYPE, TIME,
    224             STEP, CLASS(marsclass), STREAM, NUMBER, EXPVER, GRID, LEFT,
    225             LOWER, UPPER, RIGHT, LEVEL, LEVELIST, RESOL, GAUSS, ACCURACY,
    226             OMEGA, OMEGADIFF, ETA, ETADIFF, DPDETA, SMOOTH, FORMAT,
    227             ADDPAR, WRF, CWC, PREFIX, ECSTORAGE, ECTRANS, ECFSDIR,
    228             MAILOPS, MAILFAIL, GRIB2FLEXPART, FLEXPARTDIR, BASETIME
    229             DATE_CHUNK, DEBUG, INPUTDIR, OUTPUTDIR, FLEXPART_ROOT_SCRIPTS
    230 
     214        c: instance of class ControlFile
     215            Contains all the parameters of CONTROL file and
     216            command line.
    231217            For more information about format and content of the parameter
    232218            see documentation.
  • source/python/mods/prepare_flexpart.py

    r295ff45 r27fe969  
    115115
    116116        c: instance of class ControlFile
    117             Contains all the parameters of CONTROL file, which are e.g.:
    118             DAY1(start_date), DAY2(end_date), DTIME, MAXSTEP, TYPE, TIME,
    119             STEP, CLASS(marsclass), STREAM, NUMBER, EXPVER, GRID, LEFT,
    120             LOWER, UPPER, RIGHT, LEVEL, LEVELIST, RESOL, GAUSS, ACCURACY,
    121             OMEGA, OMEGADIFF, ETA, ETADIFF, DPDETA, SMOOTH, FORMAT,
    122             ADDPAR, WRF, CWC, PREFIX, ECSTORAGE, ECTRANS, ECFSDIR,
    123             MAILOPS, MAILFAIL, GRIB2FLEXPART, FLEXPARTDIR, BASETIME
    124             DATE_CHUNK, DEBUG, INPUTDIR, OUTPUTDIR, FLEXPART_ROOT_SCRIPTS
    125 
     117            Contains all the parameters of CONTROL file and
     118            command line.
    126119            For more information about format and content of the parameter
    127120            see documentation.
     
    176169    flexpart.create(inputfiles, c)
    177170    flexpart.process_output(c)
     171    if c.grib2flexpart:
     172        # prepare environment for a FLEXPART run
     173        # to convert grib to flexpart binary format
     174        flexpart.prepare_fp_files(c)
    178175
    179176    # check if in debugging mode, then store all files
    180177    # otherwise delete temporary files
    181     if int(c.debug) != 0:
     178    if c.debug:
    182179        print('\nTemporary files left intact')
    183180    else:
  • source/python/mods/tools.py

    r25b14be r27fe969  
    164164    @Input:
    165165        c: instance of class ControlFile
    166             Contains all the parameters of CONTROL file, which are e.g.:
    167             DAY1(start_date), DAY2(end_date), DTIME, MAXSTEP, TYPE, TIME,
    168             STEP, CLASS(marsclass), STREAM, NUMBER, EXPVER, GRID, LEFT,
    169             LOWER, UPPER, RIGHT, LEVEL, LEVELIST, RESOL, GAUSS, ACCURACY,
    170             OMEGA, OMEGADIFF, ETA, ETADIFF, DPDETA, SMOOTH, FORMAT,
    171             ADDPAR, WRF, CWC, PREFIX, ECSTORAGE, ECTRANS, ECFSDIR,
    172             MAILOPS, MAILFAIL, GRIB2FLEXPART, FLEXPARTDIR, BASETIME
    173             DATE_CHUNK, DEBUG, INPUTDIR, OUTPUTDIR, FLEXPART_ROOT_SCRIPTS
    174 
     166            Contains all the parameters of CONTROL file and
     167            command line.
    175168            For more information about format and content of the parameter
    176169            see documentation.
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG