plot_roms module¶
Plotting routines for ROMS forecasts
-
plot_roms.
extract_ncdata
(ncfile: str, varname: str)¶
-
plot_roms.
get_projection
(ncfile: str)¶ returns mask_rho and lat lon from netcdf file
-
plot_roms.
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_roms.
make_png
(varnames, files, target)¶
-
plot_roms.
plot
(ncfile: str, target: str, varname: str, crop: bool = False, zoom: int = 8)¶ given two input netcdf files, create a plot of ncfile1 - ncfile2 for specified variable
-
plot_roms.
plot_data
(data, msk, lo, la, varname: str, outfile: str, colormap: str, crop: bool = True, zoom: int = 8, diff: bool = False, vmin: float = - 1.0, vmax: float = 1.0)¶
-
plot_roms.
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