Changeset 1471 in lmdz_wrf
- Timestamp:
- Mar 23, 2017, 4:05:10 PM (8 years ago)
- Location:
- trunk/tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/documentation/plotting/gallery.html
r1469 r1471 25 25 <A HREF="Nlines_time.html"><IMG SRC="figs/lines_time.png" ALT="Nlines time" STYLE="float:left;width:200px;height:200px" TARGET="value"></IMG></A> 26 26 <A HREF="plot_points.html"><IMG SRC="figs/stations_loc.png" ALT="plot points" STYLE="float:left;width:200px;height:200px" TARGET="value"></IMG></A> 27 <A HREF="plot_points_lonlat.html"><IMG SRC="figs/points_lonlat_5k.png" ALT="plot lon,lat points" STYLE="float:left;width:200px;height:200px" TARGET="value"></IMG></A> 28 <A HREF="plot_points_lonlat.html"><IMG SRC="figs/points_lonlat_hurs-tas.png" ALT="plot lon,lat points" STYLE="float:left;width:200px;height:200px" TARGET="value"></IMG></A> 27 29 <A HREF="pointsZval.html"><IMG SRC="figs/pointsZval.png" ALT="plot points by Z value" STYLE="float:left;width:200px;height:200px" TARGET="value"></IMG></A> 28 30 <A HREF="river_desc.html"><IMG SRC="figs/or_rivers.png" ALT="plot rivers from ORCHIDEE's description" STYLE="float:left;width:200px;height:200px" TARGET="value"></IMG></A> -
trunk/tools/documentation/plotting/plotting.html
r1469 r1471 15 15 <A CLASS="lc" HREF="2Dshad_line_time.html" TARGET="value">2D shadow line time</A><BR> 16 16 <A CLASS="lc" HREF="barbs.html" TARGET="value">barbs</A><BR> 17 <A CLASS="lc" HREF="basin .html" TARGET="value">basin</A><BR>17 <A CLASS="lc" HREF="basins.html" TARGET="value">ORCHIDEE's basins</A><BR> 18 18 <A CLASS="lc" HREF="Neighbourgh_evol.html" TARGET="value">Neighbourghood evolution</A><BR> 19 19 <A CLASS="lc" HREF="Nlines.html" TARGET="value">Nlines</A><BR> 20 20 <A CLASS="lc" HREF="Nlines_time.html" TARGET="value">Nlines time</A><BR> 21 21 <A CLASS="lc" HREF="plot_points.html" TARGET="value">points</A><BR> 22 <A CLASS="lc" HREF="points_lonlat.html" TARGET="value">lon,lat points</A><BR> 22 23 <A CLASS="lc" HREF="pointsZval.html" TARGET="value">points Zval</A><BR> 23 <A CLASS="lc" HREF="river_desc.html" TARGET="value"> river description</A><BR>24 <A CLASS="lc" HREF="subbasin.html" TARGET="value"> sub-basin</A><BR>24 <A CLASS="lc" HREF="river_desc.html" TARGET="value">ORCHIDEE's river description</A><BR> 25 <A CLASS="lc" HREF="subbasin.html" TARGET="value">ORCHIDEE's sub-basin</A><BR> 25 26 <A CLASS="lc" HREF="Taylor.html" TARGET="value">Taylor diagram</A><BR> 26 27 <A CLASS="lc" HREF="TimeSeries.html" TARGET="value">TimeSeries</A><BR> -
trunk/tools/documentation/plotting/subbasin.html
r1469 r1471 11 11 </DIV> 12 12 <DIV CLASS="valimg"> 13 Plotting subbasin from a given point of its discharge from 'routing.nc' ORCDHIEE file <BR> 14 Each river is composed of different subbasins. Grouped up-flow. This function use a different color <BR> 15 for the first level of suubbasins, and a different degree of color for the sub-subbasins of the first level <BR> 16 It takes output from `subbasin' function from 'nc_var.py' 13 Plotting subbasin from a given point of its discharge from 'routing.nc' ORCDHIEE file. Each river is composed of different subbasins. Grouped up-flow. This function use a different color for the first level of suubbasins, and a different degree of color for the sub-subbasins of the first level. It takes output from `subbasin' function from 'nc_var.py' 17 14 <IMG WIDTH="100%" SRC="figs/tas_rainbow_auto.png"></IMG> 18 15 </DIV> … … 49 46 </DIV> 50 47 <DIV CLASS="valins"> 51 python ${pyHOME}/drawing.py -o draw_subbasin -f Caceres_subbasin.nc -S 'Caceres:None:cyl,l:2:True:Parana!subbasins!from!C&a grave;ceres:png:0:Caceres_subbasin:True:True'48 python ${pyHOME}/drawing.py -o draw_subbasin -f Caceres_subbasin.nc -S 'Caceres:None:cyl,l:2:True:Parana!subbasins!from!Cáceres:png:0:Caceres_subbasin:True:True' 52 49 </DIV> 53 50 </BODY> -
trunk/tools/drawing.py
r1470 r1471 3235 3235 """ Function to plot a series of lon/lat points 3236 3236 filen= name of the file 3237 values= [lonvarname]:[latvarname]:[gkind]:[gtit]:[ptcolor]:[pttype]:[ptsize]:[labels]:[legvals]:[figureK] 3237 values= [lonvarname]:[latvarname]:[gkind]:[gtit]:[ptcolor]:[pttype]:[ptsize]:[labels]:[legvals]:[figureK]: 3238 [figclose] 3238 3239 [lonvarname]: name of the variable longitude 3239 3240 [latvarname]: name of the variable latitude 3240 [gkind]: kind of graphical output 3241 [gkind]: kind of graphical output (pdf, png, ps) 3241 3242 [gtit]: graphic title '!' for spaces 3242 3243 [ptcolor]: color of the points ('auto', for "red") … … 3253 3254 'legend': only points in the map with the legend with the names 3254 3255 'labelled',[txtsize],[txtcol]: points with the names and size, color of text 3256 [figclose]: whether figures should be closed or not 3255 3257 """ 3256 3258 fname = 'draw_points_lonlat' … … 3262 3264 3263 3265 expectargs = '[lonvarname]:[latvarname]:[gkind]:[gtit]:[ptcolor]:[pttype]:' + \ 3264 '[ptsize]:[labels]:[locleg]:[figureK] '3266 '[ptsize]:[labels]:[locleg]:[figureK]:[figclose]' 3265 3267 3266 3268 drw.check_arguments(fname,values,expectargs,':') … … 3276 3278 legvals = values.split(':')[8] 3277 3279 figureK = values.split(':')[9] 3278 3279 fname = 'points_lonlat' 3280 figclose = gen.Str_Bool(values.split(':')[10]) 3280 3281 3281 3282 onc = NetCDFFile(filen, 'r') … … 3333 3334 labels = labelsv.split(',') 3334 3335 3335 locleg, sizeleg = legend_values(legvals,'|')3336 locleg, sizeleg = drw.legend_values(legvals,'|') 3336 3337 3337 3338 drw.plot_list_points(lonvals, latvals, lonname, latname, gtit, figureK, pointcolor, pointtype, \ 3338 pointsize, labels, locleg, sizeleg, kindfigure, fname )3339 pointsize, labels, locleg, sizeleg, kindfigure, fname, figclose) 3339 3340 3340 3341 onc.close() -
trunk/tools/drawing_tools.py
r1470 r1471 3221 3221 3222 3222 def plot_list_points(xval, yval, varxn, varyn, vtit, figk, color, ptk, pts, labels, \ 3223 lloc, lsiz, kfig, figname ):3223 lloc, lsiz, kfig, figname, fclose): 3224 3224 """ plotting points 3225 3225 [x/yval]: x,y values to plot … … 3237 3237 kfig= kind of figure (jpg, pdf, png) 3238 3238 figname= name of the figure 3239 3239 fclose= whether the figure should be close or not 3240 3240 """ 3241 3241 fname = 'plot_points' … … 3275 3275 plt.title(graphtit) 3276 3276 3277 output_kind(kfig, figname, True)3277 output_kind(kfig, figname, fclose) 3278 3278 3279 3279 return
Note: See TracChangeset
for help on using the changeset viewer.