Skip to main content

Module unstructured

Module unstructured 

Source
Expand description

Helpers shared by unstructured-grid formats: intermediate grid spacing and sphere nearest-point lookup.

Structs§

SphereIndex
Nearest-point lookup on the unit sphere, so distances stay true near the poles. Queries farther than the mesh’s local spacing from every mesh point return None.

Constants§

DEFAULT_INTERMEDIATE_SPACING_DEG
INTERMEDIATE_SPACING_ENV
Cell size of the intermediate regular grid, in degrees.
MIN_REFINED_SPACING_DEG
Finest sample spacing a zoomed view may request, in degrees.
ZOOM_REFINE_ENV
Opt-in flag: zoomed views sample a finer grid than the global spacing.

Functions§

parse_intermediate_spacing
Parse the intermediate grid spacing; None or a blank value selects the default.
parse_zoom_refine
Only truthy values enable zoom refinement; unset or other values leave it off.
refinement_factor
Largest per-axis subdivision whose samples fit the global grid’s cell budget.