Changeset 903 in lmdz_wrf for trunk/tools/nc_var_tools.py
- Timestamp:
- Jun 19, 2016, 6:56:35 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r902 r903 2152 2152 self.sname = var.getncattr('standard_name') 2153 2153 else: 2154 # print ' variable_inf.classpy: variable "' + self.name + '" does not have attribute "standard_name"'2155 2154 self.sname = None 2156 2155 … … 2158 2157 self.lname = var.getncattr('long_name') 2159 2158 else: 2160 # print ' variable_inf.classpy: variable "' + self.name + '" does not have attribute "long_name"'2161 2159 self.lname = None 2162 2160 … … 2164 2162 self.coor = var.getncattr('coordinates') 2165 2163 else: 2166 # print ' variable_inf.classpy: variable "' + self.name + '" does not have attribute "coordinates"'2167 2164 self.coor = None 2168 2165 … … 2170 2167 self.units = var.getncattr('units') 2171 2168 else: 2172 # print ' variable_inf.classpy: variable "' + self.name + '" does not have attribute "units"'2173 2169 self.units = None 2174 2170 … … 2176 2172 self.FillValue = var.getncattr('_FillValue') 2177 2173 else: 2178 # print ' variable_inf.classpy: variable "' + self.name + '" does not have attribute "_FillValue"'2179 2174 self.FillValue = None 2180 2175 … … 15745 15740 self.dimzn = 'bottom_top' 15746 15741 self.dimtn = 'Time' 15742 self.dimsn = 'soil_layers_stag' 15747 15743 self.vardxn = 'XLONG' 15748 15744 self.vardyn = 'XLAT' 15749 15745 self.vardzn = 'ZNU' 15750 15746 self.vardtn = 'Times' 15747 self.vardsn = 'ZS' 15751 15748 if ncfile is not None and ncfile[0:2] == 'geo': 15752 15749 self.vardxn = 'XLONG_M' … … 15800 15797 ciclad: f2py --f90flags="-fPIC" -L/opt/canopy-1.3.0/Canopy_64bit/System/lib/ -L/usr/lib64/ -L/opt/canopy-1.3.0/Canopy_64bit/System/lib/ -m module_ForInterpolate -c module_generic.F90 module_ForInterpolate.F90 15801 15798 values= [interplevs],[linloginterp],[extrap] 15802 [interplevs]: ':' separated list of pressure values to interpolate [ hPa] (decreassing in hPa)15799 [interplevs]: ':' separated list of pressure values to interpolate [Pa] (decreassing in Pa) 15803 15800 [linloginterp]: kind of linear interpolation 15804 15801 1: linear interp in pressure … … 15952 15949 elif vn == 'WRFrh': 15953 15950 # relative humidity 15954 ovar1 = 10.*0.6112* exp(17.67*(temp-273.16)/(temp-29.65))15951 ovar1 = 10.*0.6112*np.exp(17.67*(temp-273.16)/(temp-29.65)) 15955 15952 ovar2 = 0.622*ovar1/(0.01*pres-(1.-0.622)*ovar1) 15956 15953 varin = 100.*qv/ovar2 … … 16016 16013 onewnc.setncattr('version', '1.0') 16017 16014 onewnc.setncattr('oringal', 'Interpolation using p_interp.F90 subroutines') 16018 newattr = set_at ributek(onewnc, 'original_subroutines_author', unicode('Cindy '+\16015 newattr = set_attributek(onewnc, 'original_subroutines_author', unicode('Cindy '+\ 16019 16016 'Bruy' + unichr(232) + 're'), 'U') 16020 16017 onewnc.setncattr('original_subroutines_date', 'November 2007')
Note: See TracChangeset
for help on using the changeset viewer.