Changeset 274f9ef in flex_extract.git for source/python/mods/get_mars_data.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/get_mars_data.py

    r70fee58 r274f9ef  
    6969# ------------------------------------------------------------------------------
    7070def main():
    71     '''
    72     @Description:
    73         If get_mars_data is called directly from command line,
    74 
    75         the program flow and calls the argumentparser function and
    76         the get_mars_data function for retrieving EC data.
    77 
    78     @Input:
    79         <nothing>
    80 
    81     @Return:
    82         <nothing>
     71    '''Controls the program to get data out of mars.
     72
     73    This is done if it is called directly from command line.
     74    Then it also takes program call arguments and control file input.
     75
     76    Parameters
     77    ----------
     78
     79    Return
     80    ------
     81
    8382    '''
    8483
     
    9796
    9897def get_mars_data(c):
    99     '''
    100     @Description:
    101         Retrieves the EC data needed for a FLEXPART simulation.
    102         Start and end dates for retrieval period is set. Retrievals
    103         are divided into smaller periods if necessary and datechunk parameter
    104         is set.
    105 
    106     @Input:
    107         c: instance of class ControlFile
    108             Contains all the parameters of CONTROL file and
    109             command line.
    110             For more information about format and content of the parameter
    111             see documentation.
    112 
    113     @Return:
    114         <nothing>
     98    '''Retrieves the EC data needed for a FLEXPART simulation.
     99
     100    Start and end dates for retrieval period is set. Retrievals
     101    are divided into smaller periods if necessary and datechunk parameter
     102    is set.
     103
     104    Parameters
     105    ----------
     106    c : :obj:`ControlFile`
     107        Contains all the parameters of CONTROL file and
     108        command line.
     109
     110    Return
     111    ------
     112
    115113    '''
    116114
     
    206204
    207205def do_retrievement(c, server, start, end, delta_t, fluxes=False):
    208     '''
    209     @Description:
    210         Divides the complete retrieval period in smaller chunks and
    211         retrieves the data from MARS.
    212 
    213     @Input:
    214         c: instance of class ControlFile
    215             Contains all the parameters of CONTROL file and
    216             command line.
    217             For more information about format and content of the parameter
    218             see documentation.
    219 
    220         server: instance of ECMWFService
    221             The server connection to ECMWF
    222 
    223         start: instance of datetime
    224             The start date of the retrieval.
    225 
    226         end: instance of datetime
    227             The end date of the retrieval.
    228 
    229         delta_t: instance of datetime
    230             Delta_t +1 is the maximal time period of a single
    231             retrieval.
    232 
    233         fluxes: boolean, optional
    234             Decides if the flux parameters are to be retrieved or
    235             the rest of the parameter list.
    236             Default value is False.
    237 
    238     @Return:
    239         <nothing>
     206    '''Divides the complete retrieval period in smaller chunks and
     207    retrieves the data from MARS.
     208
     209    Parameters
     210    ----------
     211    c : :obj:`ControlFile`
     212        Contains all the parameters of CONTROL file and
     213        command line.
     214
     215    server : :obj:`ECMWFService`
     216            The server connection to ECMWF.
     217
     218    start : :obj:`datetime`
     219        The start date of the retrieval.
     220
     221    end : :obj:`datetime`
     222        The end date of the retrieval.
     223
     224    delta_t : :obj:`datetime`
     225        Delta_t + 1 is the maximal time period of a single
     226        retrieval.
     227
     228    fluxes : :obj:`boolean`, optional
     229        Decides if the flux parameters are to be retrieved or
     230        the rest of the parameter list.
     231        Default value is False.
     232
     233    Return
     234    ------
     235
    240236    '''
    241237
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG