Changeset 1839 in lmdz_wrf
- Timestamp:
- Mar 22, 2018, 6:19:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1838 r1839 12674 12674 """ Function to provide CF information about a given coordinate 12675 12675 name: name of dimension, axis, .... 12676 # Output dictionary values: 12677 dimn: name of the dimension 12678 stdn: standard name of the variable dimension 12679 longname: longname of the variable dimension 12680 units: units of the variable dimension 12681 axis: generic related axis 12682 _CoordinateAxisType: generic type of axis 12676 12683 >>> CFcorValues('lon') 12677 12684 {'units': 'degrees_east', '_CoordinateAxisType': 'Lon', 'stdn': 'longitude', 12678 'axis': 'X', ' longname': 'Longitude'}12685 'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude'} 12679 12686 >>> CFcorValues('T') 12680 {'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', 12687 {'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', 'dimn': 'time', 12681 12688 '_CoordinateAxisType': 'Time', 'calendar': '[calendar]', 'axis': 'T'} 12682 12689 """ … … 12684 12691 12685 12692 # Dictionary for each dimension 12686 CFlon= {'stdn': 'longitude', 'longname': 'Longitude', 'units': 'degrees_east', \ 12687 'axis': 'X', '_CoordinateAxisType': 'Lon'} 12688 CFlat= {'stdn': 'latitude', 'longname': 'Latitude', 'units': 'degrees_north', \ 12689 'axis': 'Y', '_CoordinateAxisType': 'Lat'} 12690 CFpress= {'stdn': 'pressure', 'longname': 'Pressure', 'units': 'Pa', 'axis': 'Z',\ 12691 '_CoordinateAxisType': 'Pres', 'positive': 'down'} 12692 CFheight= {'stdn': 'height', 'longname': 'Height', 'units': 'm', 'axis': 'Z', \ 12693 '_CoordinateAxisType': 'Height', 'positive': 'up'} 12694 CFtime= {'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', \ 12695 'axis': 'T', '_CoordinateAxisType': 'Time', 'calendar': '[calendar]'} 12693 CFlon= {'dimn': 'lon', 'stdn': 'longitude', 'longname': 'Longitude', 'units': \ 12694 'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon'} 12695 CFlat= {'dimn': 'lat', 'stdn': 'latitude', 'longname': 'Latitude', 'units': \ 12696 'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat'} 12697 CFpress= {'dimn': 'pressure', 'stdn': 'pressure', 'longname': 'Pressure', \ 12698 'units': 'Pa', 'axis': 'Z', '_CoordinateAxisType': 'Pres', 'positive': 'down'} 12699 CFheight= {'dimn': 'height', 'stdn': 'height', 'longname': 'Height', \ 12700 'units': 'm', 'axis': 'Z', '_CoordinateAxisType': 'Height', 'positive': 'up'} 12701 CFtime= {'dimn': 'time', 'stdn': 'time', 'longname': 'Time', \ 12702 'units': '[t] since [date]', 'axis': 'T', '_CoordinateAxisType': 'Time', \ 12703 'calendar': '[calendar]'} 12696 12704 12697 12705 # names to search for
Note: See TracChangeset
for help on using the changeset viewer.