source: lmdz_wrf/trunk/tools/documentation/plotting/intro.html @ 2129

Last change on this file since 2129 was 2129, checked in by lfita, 6 years ago

updating files after last whole commits

File size: 7.5 KB
Line 
1<HTML>
2  <HEAD>
3    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"/>
4    <LINK REL="stylesheet" TYPE="text/css" HREF="../PyNCplot.css"/>
5  </HEAD>
6
7  <BODY>
8    <DIV CLASS="valheader">
9      Plotting functions
10    </DIV>
11    <DIV CLASS="valintro">
12      List of available functions to plot figures. Most of them follow a similar structure:<BR>
13      <!--DIV CLASS="codetxt"-->
14      <PRE><CODE>
15        $ python drawing.py -o [figure] -f [file(or files)] -S [values] -v [variables]
16      </CODE></PRE>
17      <!--/DIV-->
18      In most of the cases <SPAN CLASS="codetxt">[values]</SPAN> is a string which contains a list of values separated by a character <SPAN CLASS="codetxt">[sep]</SPAN>, becomming the value as:
19      <PRE><CODE>
20      [values]=[val1][sep][val2][sep][...[valN]]</CODE></PRE>
21      One can obtain all the list of plots and their instructions by demanding to the script:
22      <PRE><CODE>
23        $ python drawing.py -o list_grahics
24      </CODE></PRE>
25      For almost all figures, one can obtain all the help of a specific plot by:
26      <PRE><CODE>
27        $ python drawing.py -o [figure] -S h
28      </CODE></PRE>
29      One should be able to obtain an example of execution by
30      <PRE><CODE>
31        $ cat drawing.py | grep [figure] | grep 'e.g.'
32      </CODE></PRE>
33      The plotting script has two steps:
34      <OL>
35        <LI><SPAN CLASS="codetxt">drawing.py:</SPAN> Main script which gets the data from files
36        <LI><SPAN CLASS="codetxt">drawing_tools.py:</SPAN> Script which draw the figure and its used by <SPAN CLASS="codetxt">drawing.py</SPAN>
37        <LI><SPAN CLASS="codetxt">generic_tools.py:</SPAN> Script which contains generic operations and it is used by both scripts</LI>
38      </OL>
39      Available plots:
40      <UL>
41       <LI><SPAN CLASS="codetxt">create_movie:</SPAN> Function to create a movie assuming ImageMagick installed! </LI>
42       <LI><SPAN CLASS="codetxt">draw_2D_shad:</SPAN> plotting a fields with shading </LI>
43       <LI><SPAN CLASS="codetxt">draw_2D_shad_cont:</SPAN> plotting two fields, one with shading and the other with contour lines </LI>
44       <LI><SPAN CLASS="codetxt">draw_2D_shad_2cont:</SPAN> plotting three fields, one with shading and the other two with contour lines</LI>
45       <LI><SPAN CLASS="codetxt">draw_2D_shad_contdisc:</SPAN> plotting one continuous fields with shading and another discrete one with points</LI>
46       <LI><SPAN CLASS="codetxt">draw_2D_shad_contdisc_time:</SPAN> plotting one continuous fields with shading and another discrete one with points with a time-axis </LI>
47       <LI><SPAN CLASS="codetxt"> draw_2D_shad_cont_time:</SPAN> plotting two fields, one with shading and the other with contour lines being one of the dimensions of time characteristics </LI>
48       <LI><SPAN CLASS="codetxt">draw_2D_shad_line:</SPAN> plotting a fields with shading and another with line </LI>
49       <LI><SPAN CLASS="codetxt">draw_2D_shad_line_time:</SPAN> plotting a fields with shading and a line with time values </LI>
50       <LI><SPAN CLASS="codetxt">draw_2D_shad_time:</SPAN> plotting a fields with shading with time values </LI>
51       <LI><SPAN CLASS="codetxt">draw_2Dshad_map:</SPAN>  plotting a shadow field with a background map</LI>
52       <LI><SPAN CLASS="codetxt">draw_2lines:</SPAN> Fucntion to plot two lines in different axes (x/x2 or y/y2) </LI>
53       <LI><SPAN CLASS="codetxt">draw_2lines_time:</SPAN> Function to plot two time-lines in different axes (x/x2 or y/y2) </LI>
54       <LI><SPAN CLASS="codetxt">draw_bar:</SPAN>  Function to plot a bar char figure with multiple sources</LI>
55       <LI><SPAN CLASS="codetxt">draw_bar_line:</SPAN>  Function to plot a bar char and line figure with multiple sources</LI>
56       <LI><SPAN CLASS="codetxt">draw_bar_line_time:</SPAN>  Function to plot a bar char and line figure with multiple sources with a time-axis</LI>
57       <LI><SPAN CLASS="codetxt">draw_bar_time:</SPAN>  Function to plot a bar char figure with multiple sources and time axis</LI>
58       <LI><SPAN CLASS="codetxt">draw_barbs:</SPAN> Function to plot wind barbs </LI>
59       <LI><SPAN CLASS="codetxt">draw_basins:</SPAN> Function to plot river basins with their discharge vector and basins id (from 'routing.nc') </LI>
60       <LI><SPAN CLASS="codetxt">draw_cycle:</SPAN>  Function to plot a variale with a circular cycle</LI>
61       <LI><SPAN CLASS="codetxt">draw_ensembles_time:</SPAN>  Function to plot an ensembles of data following an axis-time</LI>
62       <LI><SPAN CLASS="codetxt">draw_lines:</SPAN> Function to draw different lines at the same time from different files </LI>
63       <LI><SPAN CLASS="codetxt">draw_lines_time:</SPAN> Function to draw different lines at the same time from different files with times </LI>
64       <LI><SPAN CLASS="codetxt">draw_multi_2D_shad:</SPAN> plotting multiple 2D fields with same projection with shading and sharing colorbar</LI>
65       <LI><SPAN CLASS="codetxt">draw_multi_SkewT:</SPAN>  creation of a SkewT-logP diagram with multiple lines using matplotlib's API example</LI>
66       <LI><SPAN CLASS="codetxt">draw_multiWindRose:</SPAN>  Function to plot multiple wind rose (from where the dinw blows)</LI>
67       <LI><SPAN CLASS="codetxt">draw_Neighbourghood_evol:</SPAN> Function to draw the temporal evolution of a neighbourghood around a point </LI>
68       <LI><SPAN CLASS="codetxt">draw_points:</SPAN> Function to plot a series of points </LI>
69       <LI><SPAN CLASS="codetxt">draw_points_lonlat:</SPAN> Function to plot a series of lon/lat points </LI>
70       <LI><SPAN CLASS="codetxt">draw_ptZvals:</SPAN> Function to plot a given list of points and values  </LI>
71       <LI><SPAN CLASS="codetxt">draw_SkewT:</SPAN>  creation of a SkewT-logP diagram using matplotlib's API example</LI> 
72       <LI><SPAN CLASS="codetxt">draw_stations_map:</SPAN>  Function to plot a map with the stations</LI>
73       <LI><SPAN CLASS="codetxt">draw_timeSeries:</SPAN> Function to draw a time-series </LI>
74       <LI><SPAN CLASS="codetxt">draw_topo_geogrid:</SPAN> plotting geo_em.d[nn].nc topography from WPS files </LI>
75       <LI><SPAN CLASS="codetxt">draw_topo_geogrid_boxes:</SPAN> plotting different geo_em.d[nn].nc topography from WPS files </LI>
76       <LI><SPAN CLASS="codetxt">draw_trajectories:</SPAN> Function to draw different trajectories at the same time </LI>
77       <LI><SPAN CLASS="codetxt">draw_vals_trajectories:</SPAN> Function to draw values from the outputs from 'compute_tevolboxtraj' </LI>
78       <LI><SPAN CLASS="codetxt">draw_vectors:</SPAN> Function to plot wind vectors </LI>
79       <LI><SPAN CLASS="codetxt">movievalslice:</SPAN> Function to provide variable slice according to a geneation of a movie </LI>
80       <LI><SPAN CLASS="codetxt">variable_values:</SPAN> Function to give back values for a given variable </LI>
81       <LI><SPAN CLASS="codetxt">draw_river_desc:</SPAN> Function to plot rivers' description from ORCHIDEE's routing scheme </LI>
82       <LI><SPAN CLASS="codetxt">draw_subbasin:</SPAN> Function to plot subbasin from 'routnig.nc' ORCDHIEE </LI>
83       <LI><SPAN CLASS="codetxt">draw_Taylor:</SPAN> Function to draw a Taytor diagram (Taylor 2001)</LI>
84       <LI><SPAN CLASS="codetxt">draw_vertical_levels:</SPAN> plotting vertical levels distribution </LI>
85       <LI><SPAN CLASS="codetxt">draw_WindRose:</SPAN> Function to plot a wind rose (from where the dinw blows)</LI>
86       <LI><SPAN CLASS="codetxt">draw_WRFeta_levels:</SPAN>  Function to plot vertical levels from WRF wrfinput_d[nn] file</LI>
87       <LI><SPAN CLASS="codetxt">movie_2D_shad:</SPAN> creation of a movie with shading</LI>
88      </UL>
89    </DIV>
90   
91  </BODY>
92</HTML>
93
Note: See TracBrowser for help on using the repository browser.