lair.geo#

Geo-spatial utilities.

Functions

add_extent_map

Add an extent map to the figure.

add_lat_ticks

Add latitude ticks to the map.

add_latlon_ticks

Add latitude and longitude ticks to the map.

add_lon_ticks

Add longitude ticks to the map.

bbox2extent

Bounding box to extent.

bearing

Great-circle bearing from point 1 to point 2 on a sphere.

clip

Clip the data to the given bounds.

cosine_weights

Calculate cosine weights from latitude.

dms2dd

Degree-minute-second to decimal degree

earth_radius

Calculate radius of Earth assuming oblate spheroid defined by WGS84

extent2bbox

Extent to bounding box.

generate_regular_grid

Generate a regular grid.

gridcell_area

Calculate the area of each grid cell in a grid.

gridcell_area_from_latlon

Calculate the area of each grid cell in a lat-lon grid.

haversine

Great-circle distance between two points on a sphere (haversine formula).

plot_grid

Plot a grid.

points_along_line

Generates Euclidean spaced points covering a single Line or a MultiLineString network.

regrid

Regrid data to a new grid.

resample

Resample the data to a new resolution.

round_latlon

Round latitude and longitude values to a specified number of decimal places.

wrap_lons

Transform the longitude values to be within the closed interval [base, base + period].

write_rio_crs

Write the CRS and coordinate system to the rioxarray accessor.

Classes

BaseGrid

Base class for working with gridded data.

CRS

Coordinate Reference System (CRS) class.