Changeset 274f9ef in flex_extract.git for source/python/mods/prepare_flexpart.py


Ignore:
Timestamp:
Oct 22, 2018, 11:44:47 AM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
db27c09
Parents:
708c667
Message:

Converted docstrings to numpy style and build first structure for sphinxdocumentation (incl API)

File:
1 edited

Legend:

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

    r70fee58 r274f9ef  
    7979# ------------------------------------------------------------------------------
    8080def main():
    81     '''
    82     @Description:
    83         If prepare_flexpart is called from command line, this function controls
    84         the program flow and calls the argumentparser function and
    85         the prepare_flexpart function for preparation of GRIB data for FLEXPART.
     81    '''Controls the program to prepare flexpart input files from mars data.
    8682
    87     @Input:
    88         <nothing>
     83    This is done if it is called directly from command line.
     84    Then it also takes program call arguments and control file input.
    8985
    90     @Return:
    91         <nothing>
     86    Parameters
     87    ----------
     88
     89    Return
     90    ------
     91
    9292    '''
    9393
     
    105105
    106106def prepare_flexpart(ppid, c):
    107     '''
    108     @Description:
    109         Lists all grib files retrieved from MARS with get_mars_data and
    110         uses prepares data for the use in FLEXPART. Specific data fields
    111         are converted to a different grid and the flux data are going to be
    112         disaggregated. The data fields are collected by hour and stored in
    113         a file with a specific FLEXPART relevant naming convention.
     107    '''Converts the mars data into flexpart ready input files.
    114108
    115     @Input:
    116         ppid: int
    117             Contains the ppid number of the current ECMWF job. If it is called
    118             from this script, it is "None".
     109    Specific data fields are converted to a different grid and the flux
     110    data are going to be disaggregated. The data fields are collected by
     111    hour and stored in a file with a specific FLEXPART relevant naming
     112    convention.
    119113
    120         c: instance of class ControlFile
    121             Contains all the parameters of CONTROL file and
    122             command line.
    123             For more information about format and content of the parameter
    124             see documentation.
     114    Parameters
     115    ----------
     116    ppid : :obj:`int`
     117        Contains the ppid number of the current ECMWF job. It will be None if
     118        the method was called within this module.
    125119
    126     @Return:
    127         <nothing>
     120    c : :obj:`ControlFile`
     121        Contains all the parameters of CONTROL file and
     122        command line.
     123
     124    Return
     125    ------
     126
    128127    '''
    129128
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG