- Timestamp:
- Mar 22, 2018, 6:40:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1839 r1840 12681 12681 axis: generic related axis 12682 12682 _CoordinateAxisType: generic type of axis 12683 maxrank: maximunm allowed rank of the coordinate 12683 12684 >>> CFcorValues('lon') 12684 12685 {'units': 'degrees_east', '_CoordinateAxisType': 'Lon', 'stdn': 'longitude', 12685 'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude' }12686 'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude', 'maxrank:' 2} 12686 12687 >>> CFcorValues('T') 12687 12688 {'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'} 12689 12690 """ 12690 12691 fname = 'CFDIMvalues' … … 12692 12693 # Dictionary for each dimension 12693 12694 CFlon= {'dimn': 'lon', 'stdn': 'longitude', 'longname': 'Longitude', 'units': \ 12694 'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon' }12695 'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon', 'maxrank:', 2} 12695 12696 CFlat= {'dimn': 'lat', 'stdn': 'latitude', 'longname': 'Latitude', 'units': \ 12696 'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat' }12697 'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat', 'maxrank:', 2} 12697 12698 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} 12699 12701 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} 12701 12704 CFtime= {'dimn': 'time', 'stdn': 'time', 'longname': 'Time', \ 12702 12705 'units': '[t] since [date]', 'axis': 'T', '_CoordinateAxisType': 'Time', \ 12703 'calendar': '[calendar]' }12706 'calendar': '[calendar]', 'maxrank:', 1} 12704 12707 12705 12708 # names to search for
Note: See TracChangeset
for help on using the changeset viewer.