Changeset 903 in lmdz_wrf for trunk/tools/nc_var_tools.py


Ignore:
Timestamp:
Jun 19, 2016, 6:56:35 PM (8 years ago)
Author:
lfita
Message:

Adding `soil-layers' dimension and variable dimension in 'ModelChar?'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r902 r903  
    21522152                self.sname = var.getncattr('standard_name')
    21532153            else:
    2154 #                print '    variable_inf.classpy: variable "' + self.name + '" does not have attribute "standard_name"'
    21552154                self.sname = None
    21562155
     
    21582157                self.lname = var.getncattr('long_name')
    21592158            else:
    2160 #                print '    variable_inf.classpy: variable "' + self.name + '" does not have attribute "long_name"'
    21612159                self.lname = None
    21622160
     
    21642162                self.coor = var.getncattr('coordinates')
    21652163            else:
    2166 #                print '    variable_inf.classpy: variable "' + self.name + '" does not have attribute "coordinates"'
    21672164                self.coor = None
    21682165
     
    21702167                self.units = var.getncattr('units')
    21712168            else:
    2172 #                print '    variable_inf.classpy: variable "' + self.name + '" does not have attribute "units"'
    21732169                self.units = None
    21742170
     
    21762172                self.FillValue = var.getncattr('_FillValue')
    21772173            else:
    2178 #                print '    variable_inf.classpy: variable "' + self.name + '" does not have attribute "_FillValue"'
    21792174                self.FillValue = None
    21802175             
     
    1574515740            self.dimzn = 'bottom_top'
    1574615741            self.dimtn = 'Time'
     15742            self.dimsn = 'soil_layers_stag'
    1574715743            self.vardxn = 'XLONG'
    1574815744            self.vardyn = 'XLAT'
    1574915745            self.vardzn = 'ZNU'
    1575015746            self.vardtn = 'Times'
     15747            self.vardsn = 'ZS'
    1575115748            if ncfile is not None and ncfile[0:2] == 'geo':
    1575215749                self.vardxn = 'XLONG_M'
     
    1580015797      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
    1580115798      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)
    1580315800        [linloginterp]: kind of linear interpolation
    1580415801          1: linear interp in pressure
     
    1595215949            elif vn == 'WRFrh':
    1595315950                # 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))
    1595515952                ovar2 = 0.622*ovar1/(0.01*pres-(1.-0.622)*ovar1)
    1595615953                varin = 100.*qv/ovar2
     
    1601616013    onewnc.setncattr('version', '1.0')
    1601716014    onewnc.setncattr('oringal', 'Interpolation using p_interp.F90 subroutines')
    16018     newattr = set_atributek(onewnc, 'original_subroutines_author', unicode('Cindy ' +\
     16015    newattr = set_attributek(onewnc, 'original_subroutines_author', unicode('Cindy '+\
    1601916016      'Bruy' + unichr(232) + 're'), 'U')
    1602016017    onewnc.setncattr('original_subroutines_date', 'November 2007')
Note: See TracChangeset for help on using the changeset viewer.