Changeset 1589 in lmdz_wrf for trunk/tools/documentation/plotting/2Dshad_time.html
- Timestamp:
- Jul 3, 2017, 6:02:47 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/documentation/plotting/2Dshad_time.html
r1403 r1589 13 13 <DIV CLASS="valimg"> 14 14 Plotting a 2D field with shading where one of the acis has temporal values 15 <IMG WIDTH="100%" SRC="figs/hurs_Blues_auto_time.png"></IMG> 15 <TABLE> 16 <TR><TD>y-values following data</TD><TD>y-values fixed-pixel size</TD></TR> 17 <TR><TD><IMG WIDTH="100%" SRC="figs/ta_valley_data-grid.png"></IMG></TD><TD><IMG WIDTH="100%" SRC="figs/ta_valley_fixpixel-grid.png"></IMG></TD></TR> 18 </TABLE> 16 19 </DIV> 17 20 <DIV CLASS="valhelp"> 18 21 draw_2D_shad_time(ncfile, values, varn)<BR> 19 22 ncfile= file to use<BR> 20 values=[vnamefs]~[dimvals]~[dimxvn]~[dimyvn]~[dimvfmt]~[colorbarvals]~[sminv],[smaxv]~[ figt]~<BR>23 values=[vnamefs]~[dimvals]~[dimxvn]~[dimyvn]~[dimvfmt]~[colorbarvals]~[sminv],[smaxv]~[gridkind]~[figt]~<BR> 21 24 [kindfig]~[reverse]~[timevals]~[close]<BR> 22 25 [vnamefs]: Name in the figure of the variable to be shaded<BR> … … 46 49 'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR> 47 50 percentile_(100-val)-median)<BR> 51 [gridkind]= [gridxk],[gridyk] kind of grid along x and y axis<BR> 52 'data': size pixel along the given axis change according to the values along the axis<BR> 53 'fixpixel': size pixel along the given axis does not change <BR> 48 54 [figt]: title of the figure ('|' for spaces)<BR> 49 55 [kindfig]: kind of figure<BR> 50 [reverse]: Transformation ofthe values<BR>56 [reverse]: '|' list of transformations to apply on the values<BR> 51 57 * 'transpose': reverse the axes (x-->y, y-->x)<BR> 52 58 * 'flip'@[x/y]: flip the axis x or y<BR> … … 67 73 </DIV> 68 74 <DIV CLASS="valins"> 69 $ python ${pyHOME}/drawing.py -o draw_2D_shad_time -f wrfout_d01_2001-11-11_00:00:00 -S 'hurs~west_east|-1,south_north|27,Time|-1~XLONG~WRFtime~auto~Blues,auto,auto~Srange,Srange~tas|evolution|at|south_north=27~png~None~WRFtime|hours!since!1949-12-01|exct,1,h|$%d^{%H}$|date!($[DD]^{[HH]}$)~True' -v Q2 75 * Data-relative y-axis <BR> 76 python ${pyHOME}/drawing.py -o draw_2D_shad_time -f ERAI_pl201507_130.nc -S 'ta~lon|52,lat|30,time|76@100~lev~time~auto~rainbow,auto,vertical~200.,310.~data,data~ta|in|valley|from|ERA-Interim~png~transpose~time|hours!since!2015-07-01!00:00:00|exct,12,h|$%d^{%H}$|date!($[DD]^{[HH]}$)~True' -v t<BR> 77 * Fixel pixel size y-axis <BR> 78 python ${pyHOME}/drawing.py -o draw_2D_shad_time -f ERAI_pl201507_130.nc -S 'ta~lon|52,lat|30,time|76@100~lev~time~auto~rainbow,auto,vertical~200.,310.~data,fixpixel~ta|in|valley|from|ERA-Interim~png~transpose~time|hours!since!2015-07-01!00:00:00|exct,12,h|$%d^{%H}$|date!($[DD]^{[HH]}$)~True' -v t<BR> 70 79 </DIV> 71 80 </BODY>
Note: See TracChangeset
for help on using the changeset viewer.