plot_fvcom module¶
Plotting routines for FVCOM forecasts
-
plot_fvcom.
extract_ncdata
(ncfile: str, varname: str)¶
-
plot_fvcom.
get_projection
(ncfile: str)¶ returns lo,la,loc,lac
-
plot_fvcom.
get_vmin_vmax
(ncfile1_base: str, ncfile1_exp: str, varname: str) → float¶ use this to set the vmin and vmax for a series of diff plots with uniform scales use a pair of files that are late in the sequence
-
plot_fvcom.
make_png
(varnames, files, target)¶ - Parameters
varnames (list of str) – List of variables to plot
files (list of str) – List of files to create plots from
target (str) – Output directory for plots
-
plot_fvcom.
plot
(ncfile: str, target: str, varname: str, crop: bool = False, zoom: int = 8)¶
-
plot_fvcom.
plot_data
(data, lo, la, loc, lac, nv, varname: str, outfile: str, colormap: str, crop: bool = True, zoom: int = 8, diff: bool = False, vmin: float = - 1.0, vmax: float = 1.0)¶
-
plot_fvcom.
plot_diff
(ncfile1: str, ncfile2: str, target: str, varname: str, vmin: float = - 1.0, vmax: float = 1.0, crop: bool = False, zoom: int = 8)¶ given two input netcdf files, create a plot of ncfile1 - ncfile2 for specified variable