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

Last change on this file since 1425 was 1223, checked in by lfita, 8 years ago

Adding `generic'
Fixing some issues

File size: 5.1 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_cont_time:</SPAN> plotting two fields, one with shading and the other with contour lines being one of the dimensions of time characteristics </LI>
45       <LI><SPAN CLASS="codetxt">draw_2D_shad_line:</SPAN> plotting a fields with shading and another with line </LI>
46       <LI><SPAN CLASS="codetxt">draw_2D_shad_line_time:</SPAN> plotting a fields with shading and a line with time values </LI>
47       <LI><SPAN CLASS="codetxt">draw_2D_shad_time:</SPAN> plotting a fields with shading with time values </LI>
48       <LI><SPAN CLASS="codetxt">draw_2lines:</SPAN> Fucntion to plot two lines in different axes (x/x2 or y/y2) </LI>
49       <LI><SPAN CLASS="codetxt">draw_2lines_time:</SPAN> Function to plot two time-lines in different axes (x/x2 or y/y2) </LI>
50       <LI><SPAN CLASS="codetxt">draw_barbs:</SPAN> Function to plot wind barbs </LI>
51       <LI><SPAN CLASS="codetxt">draw_basins:</SPAN> Function to plot river basins with their discharge vector and basins id (from 'routing.nc') </LI>
52       <LI><SPAN CLASS="codetxt">draw_lines:</SPAN> Function to draw different lines at the same time from different files </LI>
53       <LI><SPAN CLASS="codetxt">draw_lines_time:</SPAN> Function to draw different lines at the same time from different files with times </LI>
54       <LI><SPAN CLASS="codetxt">draw_Neighbourghood_evol:</SPAN> Function to draw the temporal evolution of a neighbourghood around a point </LI>
55       <LI><SPAN CLASS="codetxt">draw_points:</SPAN> Function to plot a series of points </LI>
56       <LI><SPAN CLASS="codetxt">draw_points_lonlat:</SPAN> Function to plot a series of lon/lat points </LI>
57       <LI><SPAN CLASS="codetxt">draw_ptZvals:</SPAN> Function to plot a given list of points and values  </LI>
58       <LI><SPAN CLASS="codetxt">draw_timeSeries:</SPAN> Function to draw a time-series </LI>
59       <LI><SPAN CLASS="codetxt">draw_topo_geogrid:</SPAN> plotting geo_em.d[nn].nc topography from WPS files </LI>
60       <LI><SPAN CLASS="codetxt">draw_topo_geogrid_boxes:</SPAN> plotting different geo_em.d[nn].nc topography from WPS files </LI>
61       <LI><SPAN CLASS="codetxt">draw_trajectories:</SPAN> Function to draw different trajectories at the same time </LI>
62       <LI><SPAN CLASS="codetxt">draw_vals_trajectories:</SPAN> Function to draw values from the outputs from 'compute_tevolboxtraj' </LI>
63       <LI><SPAN CLASS="codetxt">draw_vectors:</SPAN> Function to plot wind vectors </LI>
64       <LI><SPAN CLASS="codetxt">movievalslice:</SPAN> Function to provide variable slice according to a geneation of a movie </LI>
65       <LI><SPAN CLASS="codetxt">variable_values:</SPAN> Function to give back values for a given variable </LI>
66       <LI><SPAN CLASS="codetxt">draw_river_desc:</SPAN> Function to plot rivers' description from ORCHIDEE's routing scheme </LI>
67       <LI><SPAN CLASS="codetxt">draw_subbasin:</SPAN> Function to plot subbasin from 'routnig.nc' ORCDHIEE </LI>
68       <LI><SPAN CLASS="codetxt">draw_vertical_levels:</SPAN> plotting vertical levels distribution </LI>
69      </UL>
70    </DIV>
71   
72  </BODY>
73</HTML>
74
Note: See TracBrowser for help on using the repository browser.