Changeset 1841 in lmdz_wrf


Ignore:
Timestamp:
Mar 22, 2018, 7:04:23 PM (7 years ago)
Author:
lfita
Message:

Adding:

  • length: length of the coordinate (0: unknown, -1: unlimited) on 'CFDIMvalues'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1840 r1841  
    1268212682        _CoordinateAxisType: generic type of axis
    1268312683        maxrank: maximunm allowed rank of the coordinate
     12684        length: length of the coordinate (0: unknown, -1: unlimited)
    1268412685    >>> CFcorValues('lon')
    1268512686   {'units': 'degrees_east', '_CoordinateAxisType': 'Lon', 'stdn': 'longitude',
    12686      'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude', 'maxrank:' 2}
     12687     'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude', 'maxrank:' 2, 'length': 0}
    1268712688    >>> CFcorValues('T')
    1268812689   {'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', 'dimn': 'time',
    12689      '_CoordinateAxisType': 'Time', 'maxrank:' 1, 'calendar': '[calendar]', 'axis': 'T'}
     12690     '_CoordinateAxisType': 'Time', 'maxrank:' 1, 'calendar': '[calendar]',         
     12691     'axis': 'T', 'length': -1}
    1269012692    """
    1269112693    fname = 'CFDIMvalues'
     
    1269312695    # Dictionary for each dimension
    1269412696    CFlon= {'dimn': 'lon', 'stdn': 'longitude', 'longname': 'Longitude', 'units':    \
    12695       'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon', 'maxrank:', 2}
     12697      'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon', 'maxrank:', 2,      \
     12698      'length': 0}
    1269612699    CFlat= {'dimn': 'lat', 'stdn': 'latitude', 'longname': 'Latitude', 'units':      \
    12697       'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat', 'maxrank:', 2}
     12700      'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat', 'maxrank:', 2,     \
     12701      'length': 0}
    1269812702    CFpress= {'dimn': 'pressure', 'stdn': 'pressure', 'longname': 'Pressure',        \
    1269912703      'units': 'Pa', 'axis': 'Z', '_CoordinateAxisType': 'Pres', 'positive': 'down', \
    12700       'maxrank:', 1}
     12704      'maxrank:', 1, 'length': 0}
    1270112705    CFheight= {'dimn': 'height', 'stdn': 'height', 'longname': 'Height',             \
    1270212706      'units': 'm', 'axis': 'Z', '_CoordinateAxisType': 'Height', 'positive': 'up',  \
    12703       'maxrank:', 1}
     12707      'maxrank:', 1, 'length': 0}
    1270412708    CFtime= {'dimn': 'time', 'stdn': 'time', 'longname': 'Time',                     \
    1270512709      'units': '[t] since [date]', 'axis': 'T', '_CoordinateAxisType': 'Time',       \
    12706       'calendar': '[calendar]', 'maxrank:', 1}
     12710      'calendar': '[calendar]', 'maxrank:', 1, 'length': -1}
    1270712711
    1270812712    # names to search for
Note: See TracChangeset for help on using the changeset viewer.