Changeset 2775 in lmdz_wrf for trunk/tools
- Timestamp:
- Nov 27, 2019, 3:01:18 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r2762 r2775 10841 10841 # Variables' values 10842 10842 objvars = objsf.variables[varn] 10843 notmasked = False 10843 10844 if type(objvars[:]) != type(gen.mamat): 10844 print errormsg10845 print infmsg 10845 10846 print ' ' + fname + ": drawing variable is not masked !!" 10846 quit(-1)10847 notmasked = True 10847 10848 10848 10849 valshad, dimsshad = drw.slice_variable(objvars, dimvals.replace(',','|')) 10850 10851 valshad = ma.masked_greater(valshad, gen.fillValueF) 10849 10852 10850 10853 dimnamesv = [vdimxn, vdimyn] … … 10906 10909 nbarv = np.min(valshad) 10907 10910 xbarv = np.max(valshad) 10911 if nbarv == xbarv: 10912 print infmsg 10913 print ' ' + fname + ': range of selected variable is zero !!' 10914 print ' minimum value:', nbarv, 'maximum', xbarv 10915 nbarv = xbarv - 1. 10916 xbarv = xbarv + 1. 10917 print ' imposing range as:', nbarv, xbarv 10908 10918 rbarv = xbarv - nbarv 10909 10919 dbarv = rbarv/5.
Note: See TracChangeset
for help on using the changeset viewer.