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_2cont: plotting three fields, one with shading and the other two with contour lines
- draw_2D_shad_contdisc: plotting one continuous fields with shading and another discrete one with points
- draw_2D_shad_contdisc_time: plotting one continuous fields with shading and another discrete one with points with a time-axis
- 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_2Dshad_map: plotting a shadow field with a background map
- 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_bar: Function to plot a bar char figure with multiple sources
- draw_bar_line: Function to plot a bar char and line figure with multiple sources
- draw_bar_line_time: Function to plot a bar char and line figure with multiple sources with a time-axis
- draw_bar_time: Function to plot a bar char figure with multiple sources and time axis
- 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_cycle: Function to plot a variale with a circular cycle
- draw_ensembles_time: Function to plot an ensembles of data following an axis-time
- 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_multi_2D_shad: plotting multiple 2D fields with same projection with shading and sharing colorbar
- draw_multi_SkewT: creation of a SkewT-logP diagram with multiple lines using matplotlib's API example
- draw_multiWindRose: Function to plot multiple wind rose (from where the dinw blows)
- 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_SkewT: creation of a SkewT-logP diagram using matplotlib's API example
- draw_stations_map: Function to plot a map with the stations
- 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_topofix_geogrid_boxes: plotting different geo_em.d[nn].nc topography from WPS files with fixed color ranges
- 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_Taylor: Function to draw a Taytor diagram (Taylor 2001)
- draw_vertical_levels: plotting vertical levels distribution
- draw_WindRose: Function to plot a wind rose (from where the dinw blows)
- draw_WRFeta_levels: Function to plot vertical levels from WRF wrfinput_d[nn] file
- movie_2D_shad: creation of a movie with shading