Changeset 6f951ca in flex_extract.git for source/python/mods/prepare_flexpart.py


Ignore:
Timestamp:
Jan 15, 2019, 1:05:10 AM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
d4696e0
Parents:
2625ca8
Message:

new style of docstring params and updates in docstrings

File:
1 edited

Legend:

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

    r9aefaad r6f951ca  
    2222#        - added documentation
    2323#        - minor changes in programming style for consistence
    24 #        - BUG: removed call of clean_up-Function after call of
     24#        - BUGFIX: removed call of clean_up-Function after call of
    2525#               prepareFlexpart in main since it is already called in
    2626#               prepareFlexpart at the end!
     
    2929#
    3030# @License:
    31 #    (C) Copyright 2014-2018.
     31#    (C) Copyright 2014-2019.
     32#    Anne Philipp, Leopold Haimberger
    3233#
    33 #    This software is licensed under the terms of the Apache Licence Version 2.0
    34 #    which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
    35 #
    36 # @Program Functionality:
    37 #    This program prepares the final version of the grib files which are
    38 #    then used by FLEXPART. It converts the bunch of grib files extracted
    39 #    via get_mars_data by doing for example the necessary conversion to get
    40 #    consistent grids or the disaggregation of flux data. Finally, the
    41 #    program combines the data fields in files per available hour with the
    42 #    naming convention xxYYMMDDHH, where xx should be 2 arbitrary letters
    43 #    (mostly xx is chosen to be "EN").
    44 #
    45 # @Program Content:
    46 #    - main
    47 #    - prepare_flexpart
    48 #
     34#    This work is licensed under the Creative Commons Attribution 4.0
     35#    International License. To view a copy of this license, visit
     36#    http://creativecommons.org/licenses/by/4.0/ or send a letter to
     37#    Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
    4938#*******************************************************************************
     39'''This script prepares the final version of the grib files which are
     40then used by FLEXPART.
     41
     42It converts the bunch of grib files extracted via get_mars_data before,
     43by doing the necessary conversion to get consistent grids or the
     44disaggregation of flux data. Finally, the data fields are combined
     45in files per available hour with the naming convention xxYYMMDDHH,
     46where xx should be 2 arbitrary letters (mostly xx is chosen to be "EN").
     47
     48This file can also be imported as a module which then contains the following
     49functions:
     50
     51    * main
     52    * prepare_flexpart
     53
     54Type: prepare_flexpart.py --help
     55to get information about command line parameters.
     56Read the documentation for usage instructions.
     57'''
    5058
    5159# ------------------------------------------------------------------------------
     
    5967
    6068# software specific classes and modules from flex_extract
    61 
     69# add path to local main python path for flex_extract to get full access
    6270sys.path.append(os.path.dirname(os.path.abspath(
    6371    inspect.getfile(inspect.currentframe()))) + '/../')
     
    115123    Parameters
    116124    ----------
    117     ppid : :obj:`int`
     125    ppid : int
    118126        Contains the ppid number of the current ECMWF job. It will be None if
    119127        the method was called within this module.
    120128
    121     c : :obj:`ControlFile`
     129    c : ControlFile
    122130        Contains all the parameters of CONTROL file and
    123131        command line.
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG