Changeset 2243 in lmdz_wrf for trunk/tools/nc_var_tools.py
- Timestamp:
- Nov 19, 2018, 7:48:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2235 r2243 26988 26988 #same_deltasign(values, '/home/lluis/PY/wrfout_d01_1995-01-01_00:00:00', 'T2,Q2,XLAT,XLONG') 26989 26989 26990 def compute_Koeppen_Geiger_clims(values, ncfile, variable): 26991 """ Function to compute the Kooeppen-Geiger climatological classification 26992 values= [slicedims] 26993 [slicedims]: '|' separated list of [dimname]:[valdim] with he values to the 26994 dimensions with which perform a slice of the variables 26995 [valdim]: 26996 * [integer]: which value of the dimension 26997 * -1: all along the dimension 26998 * -9: last value of the dimension 26999 * [beg]@[end]@[freq] slice from [beg] to [end] every [freq] 27000 * NOTE, no dim name all the dimension size 27001 ncfile= netCDF file to use 27002 variable: ',' list of variables ('all' for all variables) 27003 """ 27004 fname = 'same_deltasign' 27005 27006 if values == 'h': 27007 print fname + '_____________________________________________________________' 27008 print same_deltasign.__doc__ 27009 quit() 27010 27011 expectargs = '[slicedims]' 27012 gen.check_arguments(fname, values, expectargs, ',') 27013 27014 slicedims = values.split(',')[0] 27015 27016 26990 27017 #quit() 26991 27018
Note: See TracChangeset
for help on using the changeset viewer.