Changeset 1840 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 22, 2018, 6:40:31 PM (7 years ago)
Author:
lfita
Message:

Adding maximum allowed rank of the dimension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1839 r1840  
    1268112681        axis: generic related axis
    1268212682        _CoordinateAxisType: generic type of axis
     12683        maxrank: maximunm allowed rank of the coordinate
    1268312684    >>> CFcorValues('lon')
    1268412685   {'units': 'degrees_east', '_CoordinateAxisType': 'Lon', 'stdn': 'longitude',
    12685      'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude'}
     12686     'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude', 'maxrank:' 2}
    1268612687    >>> CFcorValues('T')
    1268712688   {'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', 'dimn': 'time',
    12688      '_CoordinateAxisType': 'Time', 'calendar': '[calendar]', 'axis': 'T'}
     12689     '_CoordinateAxisType': 'Time', 'maxrank:' 1, 'calendar': '[calendar]', 'axis': 'T'}
    1268912690    """
    1269012691    fname = 'CFDIMvalues'
     
    1269212693    # Dictionary for each dimension
    1269312694    CFlon= {'dimn': 'lon', 'stdn': 'longitude', 'longname': 'Longitude', 'units':    \
    12694       'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon'}
     12695      'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon', 'maxrank:', 2}
    1269512696    CFlat= {'dimn': 'lat', 'stdn': 'latitude', 'longname': 'Latitude', 'units':      \
    12696       'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat'}
     12697      'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat', 'maxrank:', 2}
    1269712698    CFpress= {'dimn': 'pressure', 'stdn': 'pressure', 'longname': 'Pressure',        \
    12698       'units': 'Pa', 'axis': 'Z', '_CoordinateAxisType': 'Pres', 'positive': 'down'}
     12699      'units': 'Pa', 'axis': 'Z', '_CoordinateAxisType': 'Pres', 'positive': 'down', \
     12700      'maxrank:', 1}
    1269912701    CFheight= {'dimn': 'height', 'stdn': 'height', 'longname': 'Height',             \
    12700       'units': 'm', 'axis': 'Z', '_CoordinateAxisType': 'Height', 'positive': 'up'}
     12702      'units': 'm', 'axis': 'Z', '_CoordinateAxisType': 'Height', 'positive': 'up',  \
     12703      'maxrank:', 1}
    1270112704    CFtime= {'dimn': 'time', 'stdn': 'time', 'longname': 'Time',                     \
    1270212705      'units': '[t] since [date]', 'axis': 'T', '_CoordinateAxisType': 'Time',       \
    12703       'calendar': '[calendar]'}
     12706      'calendar': '[calendar]', 'maxrank:', 1}
    1270412707
    1270512708    # names to search for
Note: See TracChangeset for help on using the changeset viewer.