draw_2D_shad_2cont(ncfile, values, varn)
ncfile= [ncfilevars],[ncfilevarc1],[ncfilevarc2] files to use (one value, same file)
values=[vnamefs],[vnamefc1],[vnamefc2]:[dimvals]:[dimvalc1]:[dimvalc2]:[dimxvn]:[dimyvn]:[dimxyfmt]:[colorbarvals]:
[ckind1]:[clabfmt1]:[ckind2]:[clabfmt2]:[sminv],[smaxv]:[sminc1],[smaxc1],[Nlev1]:[sminc2],[smaxc2],[Nlev2]:
[figt]:[kindfig]:[reverse]:[mapv]:[close]
[vnamefs],[vnamefc1],[vnamefc2]: Name in the figure of the shaded and the contour variable1 and contour variable2
[dimvals/c1/c2]: ',' list of [dimname]|[value] telling at which dimension of the
variable a given value is required:
* [integer]: which value of the dimension
* -1: all along the dimension
* -9: last value of the dimension
* [beg]@[end]@[inc] slice from [beg] to [end] every [inc]
* NOTE, no dim name all the dimension size
[dimx/yvn]: names of the variables with the values of the dimensions for the plot
[dimxyfmt]=[dxf],[Ndx],[dyf],[Ndy]: format of the values at each axis
[dxs]: style of x-axis ('auto' for 'pretty')
'Nfix', values computed at even 'Ndx'
'Vfix', values computed at even 'Ndx' increments
'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)
[dxf]: format of the labels at the x-axis
[Ndx]: Number of ticks at the x-axis
[ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)
[dys]: style of y-axis ('auto' for 'pretty')
[dyf]: format of the labels at the y-axis
[Ndy]: Number of ticks at the y-axis
[ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)
[colorbarvals]=[colbarn],[fmtcolorbar],[orientation]
[colorbarn]: name of the color bar
[fmtcolorbar]: format of the numbers in the color bar 'C'-like ('auto' for %6g)
[orientation]: orientation of the colorbar ('vertical' (default, by 'auto'), 'horizontal')
[ckind1/2]: kind of contours for variable 1 andf variable 2
'cmap': as it gets from colorbar
'fixc,[colname]': fixed color [colname], all stright lines
'fixsigc,[colname]': fixed color [colname], >0 stright, <0 dashed line
[clabfmt1/2]: format of the labels in the contour 1 and 2 (C-like 'None', also possible)
[smin/axv]: minimum and maximum value for the shading or
'Srange': for full range
'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)
'Saroundminmax@val': for min*val,max*val
'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),
percentile_(100-val)-median)
'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)
'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)
'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),
percentile_(100-val)-median)
[sminc1/2]:[smaxv1/2]:[Nlev1/2]: minimum, maximum and number of values for the contour 1 and 2
[figt]: title of the figure ('|' for spaces)
[kindfig]: kind of figure
[reverse]: does the values be transposed? 'True/False',
[mapv]: map characteristics: [proj],[res]
see full documentation:
http://matplotlib.org/basemap/
[proj]: projection
* 'cyl', cilindric
* 'lcc', lamvbert conformal
[res]: resolution:
* 'c', crude
* 'l', low
* 'i', intermediate
* 'h', high
* 'f', full
[close]: Whether figure should be finished or not
varn= [varsn],[varcn1],[varcn2] name of the variable to plot with shading variable with contour 1 and contour 2
python ${pyHOME}/drawing.py -o draw_2D_shad_2cont -f out/hur_157_100000_20051212120000-20051216120000.nc,out/z_129_30000_20051212120000-20051216120000.nc,out/psl_151_sfc_20051212120000-20051216120000.nc -S 'hur@100000,z@30000,psl@sfc:time|5,lev|0,lat|-1,lon|-1:time|5,lev|0,lat|-1,lon|-1:time|5,lev|0,lat|-1,lon|-1:lon:lat:auto:BuPu,auto,auto:fixc,green:None:fixc,red:None:60.,100.:82000.,93000.,8:99000.,104000.,8:hur@100000|z@30000|psl@sfc|on|20051213180000:png:flip@y:cyl,l:yes' -v hur,z,psl