gnome.scripting.plotting

Utility for plotting up various grids used by PyGNOMe / gridded.

Attributes

IMPORT_ERROR

parser

args

test_filename

spill_location

Classes

GridGeoGenerator

ApplicationWindow

Functions

main()

Module Contents

gnome.scripting.plotting.IMPORT_ERROR = Multiline-String
Show Value
"""
This script requires the following packages to run:

They all should be available on conda-forge

pygnome
matplotlib
pyqt
cartopy
shapely
geopandas
"""
gnome.scripting.plotting.parser
gnome.scripting.plotting.args
gnome.scripting.plotting.test_filename
gnome.scripting.plotting.spill_location
class gnome.scripting.plotting.GridGeoGenerator(crs=None, filename=None)

Bases: object

node_line_appearance
node_line_masked_appearance
node_marker_appearance
node_marker_masked_appearance
edge1_line_appearance
edge1_line_masked_appearance
edge1_marker_appearance
edge1_marker_masked_appearance
edge2_line_appearance
edge2_line_masked_appearance
edge2_marker_appearance
edge2_marker_masked_appearance
center_line_appearance
center_line_masked_appearance
center_marker_appearance
center_marker_masked_appearance
crs = None
get_lonlat(grid_obj, location_name)
check_for_mask(grid_obj, location_name)
get_mask_raw(grid_obj, location_name, scale=30)
get_mask_raw_invert(grid_obj, location_name, scale=30)
get_mask_bool(grid_obj, location_name)
draw_grid_lines(ax, grid_obj, location='node', use_mask=True, appearance=None, plot_crs=None, **kwargs)
gen_grid_lines_S_unmasked(grid_obj, location='node')
gen_grid_lines_S_masked(grid_obj, location='node')
gen_grid_lines_U(grid_obj, location='node')
gen_grid_lines_R(grid_obj, location='node')
get_max_extent(grid_obj, margin=0.1)
gen_grid_points(grid_obj, location='node')
gen_quad_subsample_grid(grid_obj, quad_index, subsample=10)
index_query(grid_obj, position)
class gnome.scripting.plotting.ApplicationWindow

Bases: matplotlib.backends.qt_compat.QtWidgets.QMainWindow

all_lines_checkbox
center_markers_water_checkbox
center_markers_land_checkbox
edge1_markers_water_checkbox
edge1_markers_land_checkbox
edge2_markers_water_checkbox
edge2_markers_land_checkbox
plot_crs_class
g3_crs_class
gc
markerscale = 60
callback_wrapper(func, location, land_or_water, *args, **kwargs)
static toggle_markers(state, self, location, land_or_water)
cell_index_lookup(event)
draw_query_result(query_result)
draw_spill(spill_location)
static toggle_unmasked_grid_lines(state, self, *args)
gnome.scripting.plotting.main()