Changeset 6f951ca in flex_extract.git for source/python/mods/disaggregation.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/disaggregation.py

    r0e2f93e r6f951ca  
    1717#        - outsourced the disaggregation functions dapoly and darain
    1818#          to a new module named disaggregation
     19#        - added the new disaggregation method for precipitation
    1920#
    2021# @License:
    21 #    (C) Copyright 2015-2018.
    22 #
    23 #    This software is licensed under the terms of the Apache Licence Version 2.0
    24 #    which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
    25 #
    26 # @Module Description:
    27 #    disaggregation of deaccumulated flux data from an ECMWF model FG field.
    28 #    Initially the flux data to be concerned are:
    29 #    - large-scale precipitation
    30 #    - convective precipitation
    31 #    - surface sensible heat flux
    32 #    - surface solar radiation
    33 #    - u stress
    34 #    - v stress
    35 #    Different versions of disaggregation is provided for rainfall
    36 #    data (darain, modified linear) and the surface fluxes and
    37 #    stress data (dapoly, cubic polynomial).
    38 #
    39 # @Module Content:
     22#    (C) Copyright 2014-2019.
     23#    Anne Philipp, Leopold Haimberger
     24#
     25#    This work is licensed under the Creative Commons Attribution 4.0
     26#    International License. To view a copy of this license, visit
     27#    http://creativecommons.org/licenses/by/4.0/ or send a letter to
     28#    Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
     29#
     30# @Methods:
    4031#    - dapoly
    4132#    - darain
    4233#    - IA3
    43 #
    4434#*******************************************************************************
     35'''Disaggregation of deaccumulated flux data from an ECMWF model FG field.
     36
     37Initially the flux data to be concerned are:
     38    - large-scale precipitation
     39    - convective precipitation
     40    - surface sensible heat flux
     41    - surface solar radiation
     42    - u stress
     43    - v stress
     44
     45Different versions of disaggregation is provided for rainfall
     46data (darain, modified linear) and the surface fluxes and
     47stress data (dapoly, cubic polynomial).
     48'''
    4549
    4650# ------------------------------------------------------------------------------
     
    6569    Parameters
    6670    ----------
    67     alist : :obj:`list` of :obj:`array` of :obj:`float`
     71    alist : list of array of float
    6872        List of 4 timespans as 2-dimensional, horizontal fields.
    6973        E.g. [[array_t1], [array_t2], [array_t3], [array_t4]]
     
    7175    Return
    7276    ------
    73     nfield : :obj:`array` of :obj:`float`
     77    nfield : array of float
    7478        Interpolated flux at central point of accumulation timespan.
    7579
     
    109113    Parameters
    110114    ----------
    111     alist : :obj:`list` of :obj:`array` of :obj:`float`
     115    alist : list of array of float
    112116        List of 4 timespans as 2-dimensional, horizontal fields.
    113117        E.g. [[array_t1], [array_t2], [array_t3], [array_t4]]
     
    115119    Return
    116120    ------
    117     nfield : :obj:`array` of :obj:`float`
     121    nfield : array of float
    118122        Interpolated flux at central point of accumulation timespan.
    119123
     
    160164    Note
    161165    ----
    162     Copyright 2017
     166    (C) Copyright 2017-2019
    163167    Sabine Hittmeir, Anne Philipp, Petra Seibert
    164168
     
    170174    Parameters
    171175    ----------
    172     g : :obj:`list` of :obj:`float`
     176    g : list of float
    173177        Complete data series that will be interpolated having
    174178        the dimension of the original raw series.
     
    176180    Return
    177181    ------
    178     f : :obj:`list` of :obj:`float`
     182    f : list of float
    179183        The interpolated data series with additional subgrid points.
    180184        Its dimension is equal to the length of the input data series
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG