Changeset 1850 in lmdz_wrf for trunk/tools/generic_tools.py
- Timestamp:
- Mar 25, 2018, 3:11:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1844 r1850 12692 12692 # Output dictionary values: 12693 12693 dimn: name of the dimension 12694 vdimn: name of the variable-dimension 12694 12695 stdn: standard name of the variable dimension 12695 12696 longname: longname of the variable dimension … … 12701 12702 >>> CFcorValues('lon') 12702 12703 {'units': 'degrees_east', '_CoordinateAxisType': 'Lon', 'stdn': 'longitude', 12703 'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude', 'maxrank:' 2, 'length': 0} 12704 'axis': 'X', 'dimn': 'lon', 'longname': 'Longitude', 'maxrank:' 2, 'length': 0, 12705 'vdimn': 'lon'} 12704 12706 >>> CFcorValues('T') 12705 12707 {'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', 'dimn': 'time', 12706 12708 '_CoordinateAxisType': 'Time', 'maxrank:' 1, 'calendar': '[calendar]', 12707 ' axis': 'T', 'length': -1}12709 'vdimn': 'time', 'axis': 'T', 'length': -1} 12708 12710 """ 12709 12711 fname = 'CFDIMvalues' 12710 12712 12711 12713 # Dictionary for each dimension 12712 CFlon= {'dimn': 'lon', 'stdn': 'longitude', 'longname': 'Longitude', 'units': \ 12713 'degrees_east', 'axis': 'X', '_CoordinateAxisType': 'Lon', 'maxrank': 2, \ 12714 'length': 0} 12715 CFlat= {'dimn': 'lat', 'stdn': 'latitude', 'longname': 'Latitude', 'units': \ 12716 'degrees_north', 'axis': 'Y', '_CoordinateAxisType': 'Lat', 'maxrank': 2, \ 12717 'length': 0} 12718 CFpress= {'dimn': 'pressure', 'stdn': 'pressure', 'longname': 'Pressure', \ 12719 'units': 'Pa', 'axis': 'Z', '_CoordinateAxisType': 'Pres', 'positive': 'down', \ 12714 CFlon= {'dimn': 'lon', 'vdimn': 'lon', 12715 'stdn': 'longitude', 'longname': 'Longitude', 'units': 'degrees_east', \ 12716 'axis': 'X', '_CoordinateAxisType': 'Lon', \ 12717 'maxrank': 2, 'length': 0} 12718 CFlat= {'dimn': 'lat', 'vdimn:', 'lat', \ 12719 'stdn': 'latitude', 'longname': 'Latitude', 'units': 'degrees_north', \ 12720 'axis': 'Y', '_CoordinateAxisType': 'Lat', \ 12721 'maxrank': 2, 'length': 0} 12722 CFpress= {'dimn': 'pressure', 'vdimn': 'pressure', \ 12723 'stdn': 'pressure', 'longname': 'Pressure', 'units': 'Pa', \ 12724 'axis': 'Z', '_CoordinateAxisType': 'Pres', 'positive': 'down', \ 12720 12725 'maxrank': 1, 'length': 0} 12721 CFheight= {'dimn': 'height', 'stdn': 'height', 'longname': 'Height', \ 12722 'units': 'm', 'axis': 'Z', '_CoordinateAxisType': 'Height', 'positive': 'up', \ 12726 CFheight= {'dimn': 'height', 'vdimn': 'height', \ 12727 'stdn': 'height', 'longname': 'Height', 'units': 'm', \ 12728 'axis': 'Z', '_CoordinateAxisType': 'Height', 'positive': 'up', \ 12723 12729 'maxrank': 1, 'length': 0} 12724 CFtime= {'dimn': 'time', 'stdn': 'time', 'longname': 'Time', \ 12725 'units': '[t] since [date]', 'axis': 'T', '_CoordinateAxisType': 'Time', \ 12726 'calendar': '[calendar]', 'maxrank': 1, 'length': -1} 12730 CFtime= {'dimn': 'time', 'vdimn': 'time', \ 12731 'stdn': 'time', 'longname': 'Time', 'units': '[t] since [date]', \ 12732 'axis': 'T', '_CoordinateAxisType': 'Time', 'calendar': '[calendar]', \ 12733 'maxrank': 1, 'length': -1} 12727 12734 12728 12735 # names to search for
Note: See TracChangeset
for help on using the changeset viewer.