Ignore:
Timestamp:
Jul 3, 2017, 6:02:47 PM (7 years ago)
Author:
lfita
Message:

Adding new functionality of grid-reshape in `draw_2D_shad_time'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/documentation/plotting/2Dshad_time.html

    r1403 r1589  
    1313    <DIV CLASS="valimg">
    1414      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>
    1619    </DIV>
    1720    <DIV CLASS="valhelp">
    1821    draw_2D_shad_time(ncfile, values, varn)<BR>
    1922    &nbsp;&nbsp;ncfile= file to use<BR>
    20     &nbsp;&nbsp;values=[vnamefs]~[dimvals]~[dimxvn]~[dimyvn]~[dimvfmt]~[colorbarvals]~[sminv],[smaxv]~[figt]~<BR>
     23    &nbsp;&nbsp;values=[vnamefs]~[dimvals]~[dimxvn]~[dimyvn]~[dimvfmt]~[colorbarvals]~[sminv],[smaxv]~[gridkind]~[figt]~<BR>
    2124    &nbsp;&nbsp;[kindfig]~[reverse]~[timevals]~[close]<BR>
    2225    &nbsp;&nbsp;&nbsp;&nbsp;[vnamefs]: Name in the figure of the variable to be shaded<BR>
     
    4649    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR>
    4750    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percentile_(100-val)-median)<BR>
     51    &nbsp;&nbsp;&nbsp;&nbsp;[gridkind]= [gridxk],[gridyk] kind of grid along x and y axis<BR>
     52    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'data': size pixel along the given axis change according to the values along the axis<BR>
     53    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'fixpixel': size pixel along the given axis does not change <BR>
    4854    &nbsp;&nbsp;&nbsp;&nbsp;[figt]: title of the figure ('|' for spaces)<BR>
    4955    &nbsp;&nbsp;&nbsp;&nbsp;[kindfig]: kind of figure<BR>
    50     &nbsp;&nbsp;&nbsp;&nbsp;[reverse]: Transformation of the values<BR>
     56    &nbsp;&nbsp;&nbsp;&nbsp;[reverse]: '|' list of transformations to apply on the values<BR>
    5157    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'transpose': reverse the axes (x-->y, y-->x)<BR>
    5258    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'flip'@[x/y]: flip the axis x or y<BR>
     
    6773    </DIV>
    6874    <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      &nbsp;&nbsp;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      &nbsp;&nbsp;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>
    7079    </DIV>
    7180  </BODY>
Note: See TracChangeset for help on using the changeset viewer.