Changeset 944 for trunk/UTIL/PYTHON/mcd/frozen_myplot.py
- Timestamp:
- Apr 27, 2013, 3:47:01 PM (12 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/frozen_myplot.py
r942 r944 252 252 ### ... note, anomaly is only computed over d1 and d2 for the moment 253 253 import numpy as np 254 from mymath import max,mean,min,sum,getmask254 from frozen_mymath import max,mean,min,sum,getmask 255 255 csmooth = 12 ## a fair amount of grid points (too high results in high computation time) 256 256 if redope is not None: … … 437 437 ## Author: AC + AS 438 438 def reduce_zaxis (input,ax=None,yint=False,vert=None,indice=None): 439 from mymath import max,mean439 from frozen_mymath import max,mean 440 440 from scipy import integrate 441 441 import numpy as np … … 869 869 import numpy as np 870 870 import matplotlib as mpl 871 from mymath import max871 from frozen_mymath import max 872 872 meanlon = 0.5*(wlon[0]+wlon[1]) 873 873 meanlat = 0.5*(wlat[0]+wlat[1]) … … 972 972 def calculate_bounds(field,vmin=None,vmax=None): 973 973 import numpy as np 974 from mymath import max,min,mean974 from frozen_mymath import max,min,mean 975 975 ind = np.where(field < 9e+35) 976 976 fieldcalc = field[ ind ] # la syntaxe compacte ne marche si field est un tuple … … 993 993 ## Author: AS 994 994 def bounds(what_I_plot,zevmin,zevmax): 995 from mymath import max,min,mean995 from frozen_mymath import max,min,mean 996 996 ### might be convenient to add the missing value in arguments 997 997 #what_I_plot[ what_I_plot < zevmin ] = zevmin#*(1. + 1.e-7) … … 1006 1006 ## Author: AS 1007 1007 def nolow(what_I_plot): 1008 from mymath import max,min1008 from frozen_mymath import max,min 1009 1009 lim = 0.15*0.5*(abs(max(what_I_plot))+abs(min(what_I_plot))) 1010 1010 print "NO PLOT BELOW VALUE ", lim … … 1476 1476 ## Handles calls to specific computations (e.g. wind norm, enrichment factor...) 1477 1477 def select_getfield(zvarname=None,znc=None,ztypefile=None,mode=None,ztsat=None,ylon=None,ylat=None,yalt=None,ytime=None,analysis=None): 1478 from mymath import get_tsat1478 from frozen_mymath import get_tsat 1479 1479 1480 1480 ## Specific variables are described here: … … 1578 1578 import numpy as np 1579 1579 from scipy import ndimage 1580 from mymath import array2image,image2array1580 from frozen_mymath import array2image,image2array 1581 1581 1582 1582 varinfile = nc.variables.keys()
Note: See TracChangeset
for help on using the changeset viewer.