List of available functions to plot figures. Most of them follow a similar structure:
$ python drawing.py -o [figure] -f [file(or files)] -S [values] -v [variables]
In most of the cases
[values] is a string which contains a list of values separated by a character
[sep], becomming the value as:
[values]=[val1][sep][val2][sep][...[valN]]
One can obtain all the list of plots and their instructions by demanding to the script:
$ python drawing.py -o list_grahics
For almost all figures, one can obtain all the help of a specific plot by:
$ python drawing.py -o [figure] -S h
One should be able to obtain an example of execution by
$ cat drawing.py | grep [figure] | grep 'e.g.'
The plotting script has two steps:
- drawing.py: Main script which gets the data from files
- drawing_tools.py: Script which draw the figure and its used by drawing.py
- generic_tools.py: Script which contains generic operations and it is used by both scripts
Available plots:
- create_movie: Function to create a movie assuming ImageMagick installed!
- draw_2D_shad: plotting a fields with shading
- draw_2D_shad_cont: plotting two fields, one with shading and the other with contour lines
- draw_2D_shad_cont_time: plotting two fields, one with shading and the other with contour lines being one of the dimensions of time characteristics
- draw_2D_shad_line: plotting a fields with shading and another with line
- draw_2D_shad_line_time: plotting a fields with shading and a line with time values
- draw_2D_shad_time: plotting a fields with shading with time values
- draw_2lines: Fucntion to plot two lines in different axes (x/x2 or y/y2)
- draw_2lines_time: Function to plot two time-lines in different axes (x/x2 or y/y2)
- draw_barbs: Function to plot wind barbs
- draw_basins: Function to plot river basins with their discharge vector and basins id (from 'routing.nc')
- draw_lines: Function to draw different lines at the same time from different files
- draw_lines_time: Function to draw different lines at the same time from different files with times
- draw_Neighbourghood_evol: Function to draw the temporal evolution of a neighbourghood around a point
- draw_points: Function to plot a series of points
- draw_points_lonlat: Function to plot a series of lon/lat points
- draw_ptZvals: Function to plot a given list of points and values
- draw_timeSeries: Function to draw a time-series
- draw_topo_geogrid: plotting geo_em.d[nn].nc topography from WPS files
- draw_topo_geogrid_boxes: plotting different geo_em.d[nn].nc topography from WPS files
- draw_trajectories: Function to draw different trajectories at the same time
- draw_vals_trajectories: Function to draw values from the outputs from 'compute_tevolboxtraj'
- draw_vectors: Function to plot wind vectors
- movievalslice: Function to provide variable slice according to a geneation of a movie
- variable_values: Function to give back values for a given variable
- draw_river_desc: Function to plot rivers' description from ORCHIDEE's routing scheme
- draw_subbasin: Function to plot subbasin from 'routnig.nc' ORCDHIEE
- draw_vertical_levels: plotting vertical levels distribution