Every public name in the stack (1079 of them), each listed once at
its public home, with the first line of its docstring. Search this page
before writing a helper: if what you need is here, compose it; if it is
almost here, extend it where it lives. Regenerate with
make capabilities after changing a public API (CI checks it is
current).
geoops (geotoolz-ops)¶
geoops¶
| Name | Kind | What it does |
|---|---|---|
Branch | class | Re-exported from pipekit_ops. |
Carrier | class | Re-exported from typing. |
Const | class | Re-exported from pipekit_ops. |
Fanout | class | Re-exported from pipekit_ops. |
Graph | class | Re-exported from pipekit_ops. |
Identity | class | Re-exported from pipekit_ops. |
Input | class | Re-exported from pipekit_ops. |
Lambda | class | Re-exported from pipekit_ops. |
Node | class | Re-exported from pipekit_ops. |
Operator | class | Re-exported from pipekit_ops. |
Sequential | class | Re-exported from pipekit_ops. |
ShapeTrace | class | Re-exported from pipekit_ops. |
Sink | class | Re-exported from pipekit_ops. |
Snapshot | class | Re-exported from pipekit_ops. |
Switch | class | Re-exported from pipekit_ops. |
Tap | class | Re-exported from pipekit_ops. |
geoops.augment¶
| Name | Kind | What it does |
|---|---|---|
AtmosphericHaze | class | Add a sampled haze term following an inverse fourth-power spectrum. |
BandDropout | class | Fill each band independently with probability p. |
BandJitter | class | Permute bands within explicitly configured groups. |
BrightnessJitter | class | Scale reflectance values by a sampled scalar or per-band factor. |
Compose | class | Apply augmentations sequentially behind a pipeline probability gate. |
ContrastJitter | class | Scale deviations from the per-band spatial mean. |
CutMix | class | Paste a random rectangle from a pool donor on the input’s pixel grid. |
GaussianNoise | class | Add zero-mean Gaussian sensor noise. |
RandomCrop | class | Randomly crop a spatial window and update the transform. |
RandomFlip | class | Randomly flip a GeoArray horizontally and/or vertically. |
RandomRotate90 | class | Randomly rotate by 90, 180, or 270 degrees. |
RandomShift | class | Randomly shift a fixed-size spatial window in pixel units. |
SimulatedClouds | class | Overlay a smooth synthetic cloud field onto reflectance imagery. |
SpeckleNoise | class | Apply multiplicative Gaussian speckle noise, useful for SAR. |
SunAngleJitter | class | Rescale TOA reflectance for a simulated solar-zenith change. |
cloud_alpha | function | Cloud opacity map covering coverage of the pixels. |
rayleigh_weights | function | Per-band inverse-fourth-power haze weights, peak-normalised. |
rot90_transform | function | Compose transform with the pixel map of np.rot90(..., k). |
sun_angle_scale | function | TOA-reflectance factor for a solar-zenith change. |
geoops.carrier¶
| Name | Kind | What it does |
|---|---|---|
BandRef | constant | int | str |
Coupling | class | Which dims an operator’s output reads across, and what it does to each. |
INHERIT | constant | INHERIT |
SENTINEL2_L2A_BANDS | constant | ('B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B8A', '... |
SampleLayout | class | How a cube was flattened by :func:cube_to_samples. |
affine_of | function | The transform of x as an affine.Affine (~T, T * (c, r)). |
as_float | function | Promote integer / boolean arr to floating point before arithmetic. |
as_tuple | function | Normalise a list or tuple constructor argument to a tuple. |
band_axis | function | Axis holding the bands of a 3-D or 4-D carrier: always -3. |
band_dim | function | The dim an operator works over, from dim= or the deprecated axis=. |
band_names | function | The carrier’s band names, read from the first usable attrs key. |
callable_name | function | Re-exported from pipekit_ops. |
carried_fill | function | Fill value for an output that carries ref’s values in dtype. |
cube_to_samples | function | Flatten a cube into an (n_samples, n_bands) matrix. |
dim_axis | function | The (negative) position of dim in x. |
fit_once | function | Call op.fit(x) unless is_fitted(); at most once across threads. |
grid_matches | function | Return whether two rasters share a pixel grid. |
invalid_values | function | Elementwise invalid mask: non-finite, or equal to the fill value. |
jsonable | function | Recursively coerce a config value into JSON/YAML-safe builtins. |
keep_band_axis | function | Keep the time axis of a band-collapsing result on a 4-D input. |
map_frames | function | Apply a per-scene function to every frame of a (T, C, H, W) stack. |
mapping_from_pairs | function | Accept a mapping or its [[key, value], ...] config form. |
mapping_to_pairs | function | Emit a mapping config value as [[key, value], ...]. |
mask_invalid_to_nan | function | Float copy of x with every invalid pixel set to NaN in all bands. |
nested_config | function | Re-exported from pipekit_ops. |
optional_module | function | Import module, or raise an ImportError naming the extra. |
optional_name | function | from module import name lazily, with the extra’s install hint. |
optional_root | function | import a.b lazily: import module and return its top package a. |
over_frames | function | Decorate an operator’s _apply to run per frame on a time series. |
pixel_xy | function | Return CRS coordinates of pixel centres, vectorised. |
reach_of | function | op’s spatial reach in pixels; None for a global one. |
reject_config_summary | function | Refuse a debug summary passed back as a runtime constructor argument. |
reject_georeader | function | Raise TypeError for any georeader object; pass anything else. |
reject_geotensor | function | Raise TypeError for a georeader GeoTensor; pass anything else. |
require_geoarray | function | Return x if it is a GeoArray, else raise a clear TypeError. |
require_grid_match | function | Raise unless two carriers of a multi-input operator share a pixel grid. |
require_ndim | function | Raise a clear ValueError unless arr has an accepted rank. |
require_projected_crs | function | Raise unless gt is in a projected CRS (with metre units). |
resolve_band | function | Resolve a band reference to an integer band-axis index. |
resolve_bands | function | Resolve several band references with :func:resolve_band. |
restore_fill | function | Write fill_value into every invalid pixel of an operator output. |
sample_layout | function | The :class:SampleLayout :func:cube_to_samples uses for shape. |
samples_to_cube | function | Inverse of :func:cube_to_samples for per-row results. |
single_band | function | Return the 2-D view of a single-band array. |
valid_pixels | function | Boolean validity mask over the spatial grid of x. |
wrap_filled | function | Write an explicit fill into ref’s invalid pixels and rewrap out. |
wrap_like | function | Rewrap a computed array to match the carrier of ref. |
geoops.compositing¶
| Name | Kind | What it does |
|---|---|---|
BAPComposite | class | Best Available Pixel compositing from quality-score metadata. |
BlendMatched | class | Weighted mean across N aligned tensors. |
CloudFreeComposite | class | Per-pixel mean over frames where the cloud mask is false. |
MaxNDVIComposite | class | Pick the frame with maximum NDVI per pixel and return its band values. |
MedianComposite | class | Per-pixel median across a stack of co-registered GeoArrays. |
MinCloudComposite | class | Pick each pixel from the scene with the lowest global cloud coverage. |
StackMatched | class | Concatenate aligned tensors along the band axis. |
argreduce | function | pipekit_array.argreduce that never picks an invalid entry. |
bap_scores | function | Weighted Best-Available-Pixel score per frame-pixel. |
blend_weighted | function | Weighted mean over the leading source axis of a NaN-masked stack. |
cloud_distance_score | function | Sigmoid distance-to-cloud score (Griffiths et al., 2013, eq. 2). |
doy_distance | function | Circular day-of-year distance to target_doy, in days. |
doy_score | function | Gaussian day-of-year score (Griffiths et al., 2013), peak-normalised. |
mask_frames | function | Float copy of stack with every invalid frame-pixel set to NaN. |
mean_composite | function | Per-pixel mean over the clear samples of a frame stack. |
median_composite | function | Per-pixel median over the frame axis of a NaN-masked stack. |
opacity_score | function | Piecewise-linear atmospheric-opacity score (White et al., 2014). |
reduce | function | pipekit_array.reduce over the valid entries of a geoarray carrier. |
take_by_spatial_index | function | Select one frame per sample from a (T, ..., H, W) stack. |
view_angle_score | function | Gaussian view-zenith-angle score, best at nadir. |
geoops.einx¶
| Name | Kind | What it does |
|---|---|---|
CHWtoHWC | class | Reorder a (..., C, H, W) cube to channels-last (..., H, W, C). |
Einx | class | Apply any einx operation to the carrier, geo-aware. |
HWCtoCHW | class | Reorder a channels-last (..., H, W, C) array to (..., C, H, W). |
PerBandReduce | class | Reduce each band over its spatial extent to one scalar, ignoring nodata. |
SpatialPool | class | Downsample the spatial grid by integer factors, updating the transform. |
output_axes | function | Return the top-level axis tokens of a pattern’s output expression. |
spatial_survives | function | Return whether an einx pattern preserves the carrier’s spatial grid. |
geoops.feature¶
| Name | Kind | What it does |
|---|---|---|
BlobDOG | class | Blob detection via Difference of Gaussian. |
BlobDoH | class | Blob detection via Determinant of Hessian. |
BlobLoG | class | Blob detection via Laplacian of Gaussian. |
Canny | class | Canny edge detection returning a boolean edge map. |
CornerHarris | class | Harris corner response plus peak selection as point features. |
HOG | class | Histogram of Oriented Gradients descriptor. |
HoughCircles | class | Detect circles with the circular Hough transform. |
HoughLines | class | Detect prominent straight lines with the Hough transform. |
MultiscaleBasicFeatures | class | General-purpose multiscale feature stack. |
PeakLocalMax | class | Find local maxima and return point features with pixel scores. |
StructureTensor | class | Local structure-tensor eigenvalue stack. |
canny_edges | function | Canny edge map of a single-band image (:func:skimage.feature.canny). |
multiscale_features | function | Channel-first :func:skimage.feature.multiscale_basic_features stack. |
structure_tensor_eigvals | function | Eigenvalues of the local structure tensor, largest first. |
geoops.geom¶
| Name | Kind | What it does |
|---|---|---|
AntimeridianSplit | class | Split a geographic swath at a longitude wrap. |
BowtieCorrection | class | Remove whiskbroom bowtie overlap by resampling each scan along track. |
CropTo | class | Crop a GeoArray to a target spatial shape. |
CropToBounds | class | Crop a GeoArray to a geographic bounding box. |
Curl2D | class | Curl (relative vorticity) of a gridded 2-D vector field in map axes. |
Curl3D | class | Curl (vorticity vector) of a gridded 3-D vector field on vertical levels. |
Divergence1D | class | Divergence of a flux along one dim, :math:\partial u / \partial s. |
Divergence2D | class | Divergence of a gridded 2-D vector field in map axes, NaN- and mask-aware. |
Divergence3D | class | Divergence of a gridded 3-D vector field on vertical levels. |
Georeference | class | Georeference swath data using a GLT (geolocation lookup table) GeoArray. |
GeostationaryParallaxCorrect | class | Shift pixels from apparent geostationary view position to nadir. |
Gradient1D | class | Derivative of a gridded field along one dim, NaN- and mask-aware. |
Gradient2D | class | Diagnostic gradient of a gridded field in map axes, NaN- and mask-aware (OP-O7). |
Gradient3D | class | Gradient of a gridded field on vertical levels, NaN- and mask-aware. |
InterpAt | class | H(x): a grid read at the positions of points, as an operator. |
Laplacian1D | class | Second derivative of a gridded field along one dim, NaN- and mask-aware. |
Laplacian2D | class | Laplacian of a gridded field in 2-D map axes, NaN- and mask-aware. |
Laplacian3D | class | Laplacian of a gridded field on vertical levels, NaN- and mask-aware. |
Mosaic | class | Mosaic multiple GeoArrays onto a single grid. |
OpticalFlowILK | class | Dense per-pixel displacement via iterative Lucas-Kanade optical flow. |
OpticalFlowTVL1 | class | Dense per-pixel displacement via TV-L1 optical flow. |
PadTo | class | Pad a GeoArray up to a target spatial shape. |
PhaseAlign | class | Sub-pixel image registration via phase cross-correlation. |
Rasterize | class | Rasterize geometries onto the input GeoArray’s grid. |
RasterizeLike | class | Rasterize geometries onto a stored reference grid. |
Reproject | class | Reproject a GeoArray to a destination CRS or onto a target grid. |
ReprojectLike | class | Reproject a GeoArray onto another GeoArray’s CRS + grid. |
Resample | class | Resample a GeoArray to a target spatial resolution. |
ResampleLike | class | Resample a GeoArray onto another GeoArray’s spatial grid. |
Resize | class | Resize a GeoArray to a target spatial shape. |
SegmentStitch | class | Assemble indexed sensor segments into one contiguous GeoArray. |
SlidingWindow | class | Split a GeoArray into overlapping sliding-window tiles. |
Stitch | class | Stitch georeferenced tiles back into one GeoArray. |
Tile | class | Split a GeoArray into spatial tiles. |
Vectorize | class | Vectorize non-zero regions of a mask GeoArray into polygons. |
adaptive_curl_2d | function | Mask-aware curl: :func:adaptive_difference for each derivative. |
adaptive_curl_3d | function | Mask-aware 3-D curl: :func:adaptive_difference for each derivative. |
adaptive_difference | function | Mask-aware finite difference: the widest stencil that fits on valid data. |
adaptive_divergence_1d | function | Mask-aware 1-D divergence: :func:adaptive_difference of u. |
adaptive_divergence_2d | function | Mask-aware divergence: :func:adaptive_difference for each derivative. |
adaptive_divergence_3d | function | Mask-aware 3-D divergence: :func:adaptive_difference for each term. |
adaptive_gradient_1d | function | Mask-aware ∂f/∂s along one axis: :func:adaptive_difference. |
adaptive_gradient_2d | function | Mask-aware (∂f/∂y, ∂f/∂x): :func:adaptive_difference on both axes. |
adaptive_gradient_3d | function | Mask-aware (∂f/∂z, ∂f/∂y, ∂f/∂x): :func:adaptive_difference per axis. |
adaptive_laplacian_1d | function | Mask-aware ∂²f/∂s² along one axis: :func:adaptive_difference of order 2. |
adaptive_laplacian_2d | function | Mask-aware Laplacian: :func:adaptive_difference of second order on each axis. |
adaptive_laplacian_3d | function | Mask-aware 3-D Laplacian: :func:adaptive_difference of order 2 per axis. |
curl_2d | function | Curl2D (relative vorticity) ∂v/∂x − ∂u/∂y over the last two axes. |
curl_3d | function | Curl (vorticity vector) over the last three axes; a NaN propagates. |
difference | function | Finite-difference derivative along one axis; a NaN propagates. |
difference_coeffs | function | The coefficients of a stencil on offsets, from the Taylor conditions. |
difference_offsets | function | The offsets of one stencil, finitediffx’s rules. |
divergence_1d | function | The 1-D divergence ∂u/∂s of a flux along one axis; a NaN propagates. |
divergence_2d | function | Divergence ∂u/∂x + ∂v/∂y over the last two axes; a NaN propagates. |
divergence_3d | function | Divergence ∂u/∂x + ∂v/∂y + ∂w/∂z over the last three axes. |
gradient_1d | function | ∂f/∂s along one axis; a NaN propagates. |
gradient_2d | function | (∂f/∂y, ∂f/∂x) over the last two axes; a NaN propagates. |
gradient_3d | function | (∂f/∂z, ∂f/∂y, ∂f/∂x) over the last three axes; a NaN propagates. |
interp_at | function | H(x): grid read at the positions of points. |
laplacian_1d | function | ∂²f/∂s² along one axis, a second-derivative stencil; a NaN propagates. |
laplacian_2d | function | Laplacian ∂²f/∂x² + ∂²f/∂y² over the last two axes; a NaN propagates. |
laplacian_3d | function | Laplacian ∂²f/∂x² + ∂²f/∂y² + ∂²f/∂z², second-derivative stencils. |
nonuniform_coeffs | function | Stencil coefficients for points at arbitrary distances, on any backend. |
geoops.geom.coregister¶
| Name | Kind | What it does |
|---|---|---|
PointCloudToRaster | class | Rasterize a point cloud onto a target grid. |
PointsToRaster | class | Bin a vector cube of point measurements onto a target raster grid. |
RasterToPointCloud | class | Sample raster values onto each node of a point cloud. |
RasterToPoints | class | Extract raster values at a vector cube of points. |
RasterToRasterLike | class | Align one raster onto another’s CRS + grid in a single op. |
SwathToGrid | class | Grid a swath onto a target grid by inverse-distance weighting. |
VectorToRasterAgg | class | Rasterize a vector layer with an aggregation policy for overlaps. |
geoops.indices¶
| Name | Kind | What it does |
|---|---|---|
ARVI | class | Atmospherically Resistant Vegetation Index — Kaufman & Tanre 1992. |
AppendIndex | class | Run an index operator and concatenate its output back as a new band. |
BAIS2 | class | Burned Area Index for Sentinel-2 — Filipponi 2018. |
BSI | class | Bare Soil Index — Rikimaru et al. 2002. |
CIRI | class | Cirrus Reflectance Index — Sentinel-2 B10 passthrough. |
ClayMinerals | class | Clay Minerals ratio — Sabins 1999 / Crowley et al. 1989. |
EVI | class | Enhanced Vegetation Index — Huete et al. 2002. |
EVI2 | class | Two-band Enhanced Vegetation Index — Jiang et al. 2008. |
GCI | class | Green Chlorophyll Index — Gitelson et al. 2003. |
IronOxide | class | Iron Oxide ratio — Segal 1982 / Sabins 1999. |
MNDWI | class | Modified Normalized Difference Water Index — Xu 2006. |
NBR | class | Normalized Burn Ratio — Key & Benson 2006. |
NBR2 | class | Normalized Burn Ratio 2 — USGS Landsat product. |
NDBI | class | Normalized Difference Built-up Index — Zha et al. 2003. |
NDMI | class | Normalized Difference Moisture Index — Gao 1996. |
NDSI | class | Normalized Difference Snow Index — Hall et al. 1995. |
NDVI | class | Normalized Difference Vegetation Index — Rouse et al. 1974. |
NDWI | class | Normalized Difference Water Index — McFeeters 1996. |
NormalizedDifference | class | Generic normalized-difference index (a - b) / (a + b + eps). |
SAVI | class | Soil-Adjusted Vegetation Index — Huete 1988. |
arvi | function | Atmospherically Resistant Vegetation Index (Kaufman & Tanre 1992). |
bais2 | function | Burned Area Index for Sentinel-2 (Filipponi 2018). |
bsi | function | Bare Soil Index (Rikimaru et al. 2002). |
ciri | function | Cirrus Reflectance Index (Sentinel-2 B10 passthrough). |
clay_minerals | function | Clay Minerals ratio (Sabins 1999; Crowley et al. 1989). |
dNBR | class | Differenced Normalized Burn Ratio — Key & Benson 2006. |
dnbr | function | Differenced Normalized Burn Ratio (Key & Benson 2006). |
evi | function | Enhanced Vegetation Index (Huete et al. 2002). |
evi2 | function | Two-band Enhanced Vegetation Index (Jiang et al. 2008). |
gci | function | Green Chlorophyll Index (Gitelson et al. 2003). |
iron_oxide | function | Iron Oxide ratio (Sabins 1999). |
kNDVI | class | Kernel NDVI — Camps-Valls et al. 2021. |
kndvi | function | Kernel NDVI (Camps-Valls et al. 2021). |
mndwi | function | Modified Normalized Difference Water Index (Xu 2006). |
nbr | function | Normalized Burn Ratio (Key & Benson 2006). |
nbr2 | function | Normalized Burn Ratio 2 (USGS Landsat product). |
ndbi | function | Normalized Difference Built-up Index (Zha et al. 2003). |
ndmi | function | Normalized Difference Moisture Index (Gao 1996). |
ndsi | function | Normalized Difference Snow Index (Hall et al. 1995). |
ndvi | function | Normalized Difference Vegetation Index (Rouse et al. 1974). |
ndwi_mcfeeters | function | Normalized Difference Water Index (McFeeters 1996). |
normalized_difference | function | Generic normalized-difference band ratio. |
savi | function | Soil-Adjusted Vegetation Index (Huete 1988). |
geoops.io¶
| Name | Kind | What it does |
|---|---|---|
GeoToolzIOError | class | Raised when a geotoolz I/O operator cannot read or write data. |
LoadFromEE | class | Load an Earth Engine image into a GeoArray. |
LoadFromSTAC | class | Load a raster asset from a STAC item by asset key. |
ReadBounds | class | Read all pixels intersecting a geographic bounding box. |
ReadCenterCoords | class | Read a fixed-shape window centred on map coordinates. |
ReadHDF | class | Read a dataset from an HDF4/HDF-EOS or HDF5 file, local or remote. |
ReadNetCDF | class | Read a variable from a NetCDF-3 / NetCDF-4 file, local or remote. |
ReadPolygon | class | Read all pixels intersecting a polygon. |
ReadReprojectLike | class | Read a source and reproject it onto another raster’s grid. |
ReadTile | class | Read a single web-map tile and reproject it to a target CRS. |
ReadToCRS | class | Read a source and reproject it to a target CRS. |
ReadWindow | class | Read a pixel-space rectangular window from a raster source. |
SinkOperator | class | Terminal operator that consumes a GeoArray and writes it. |
SourceOperator | class | Operator that produces a GeoArray without an input carrier. |
WriteCOG | class | Write a GeoArray as a validated Cloud-Optimized GeoTIFF. |
WriteGeoTIFF | class | Write a GeoArray as a tiled GeoTIFF (no overviews). |
WriteZarr | class | Write a GeoArray to a Zarr store with spatial metadata. |
geoops.learn¶
| Name | Kind | What it does |
|---|---|---|
GeoArrayEstimator | class | Marshall a scikit-learn estimator to and from GeoArray-shaped data. |
ModelOp | class | Wrap any callable as an Operator. |
PixelwiseGMM | class | Gaussian mixture convenience operator. |
PixelwiseIPCA | class | Streaming IncrementalPCA convenience operator. |
PixelwiseIsolationForest | class | Pixel-wise IsolationForest anomaly-score convenience operator. |
PixelwiseIterativeImputer | class | Pixel-wise IterativeImputer convenience operator. |
PixelwiseKMeans | class | Pixel-wise KMeans label convenience operator. |
PixelwiseKNNImputer | class | Pixel-wise KNNImputer convenience operator. |
PixelwiseLocalOutlierFactor | class | Pixel-wise LocalOutlierFactor convenience operator. |
PixelwiseMiniBatchKMeans | class | Streaming MiniBatchKMeans convenience operator. |
PixelwiseNMF | class | Pixel-wise NMF convenience operator. |
PixelwiseOneClassSVM | class | Pixel-wise OneClassSVM anomaly-score convenience operator. |
PixelwisePCA | class | Pixel-wise PCA convenience operator. |
SklearnOp | class | Universal adapter for scikit-learn-compatible estimators on GeoArrays. |
geoops.mask¶
| Name | Kind | What it does |
|---|---|---|
AltitudeMask | class | Build a boolean mask from DEM elevation bounds. |
ApplyMask | class | Apply a boolean mask to the carrier, filling True pixels. |
BBoxMask | class | Rasterize an axis-aligned bounding box into a boolean mask. |
BufferMask | class | Radially expand True pixels in a mask by a Euclidean buffer. |
CleanMask | class | Remove small objects, fill small holes, then close the mask. |
CloseMask | class | Close (dilate then erode) a boolean mask. |
CombineMasks | class | Combine boolean masks on one pixel grid with or, and or xor. |
CountryMask | class | Rasterize Natural Earth country polygons selected by ISO A3 code. |
DilateMask | class | Dilate a boolean mask over its trailing spatial axes. |
DistanceMask | class | Mask pixels by their distance from a geometry (True = drop). |
ErodeMask | class | Erode a boolean mask over its trailing spatial axes. |
InvertMask | class | Invert a boolean mask element-wise. |
LandMask | class | Rasterize Natural Earth land polygons into a boolean mask. |
OceanMask | class | Rasterize Natural Earth ocean polygons into a boolean mask. |
OpenMask | class | Open (erode then dilate) a boolean mask. |
PolygonMask | class | Rasterize a shapely geometry or GeoDataFrame into a boolean mask. |
RemoveSmallHoles | class | Fill enclosed False components up to max_hole_area_px pixels. |
RemoveSmallObjects | class | Remove connected True components smaller than min_area_px pixels. |
SlopeMask | class | Build a boolean mask from DEM slope bounds in degrees. |
altitude_mask | function | Mask DEM cells by an elevation interval (True = drop). |
apply_mask | function | Apply a boolean mask to a multi-band array, filling masked pixels. |
buffer_mask | function | Radially expand True pixels by a Euclidean-distance buffer. |
clean_mask | function | Remove small objects, fill small holes, then close the mask. |
clear_natural_earth_cache | function | Release the in-process Natural Earth GeoDataFrames. |
close_mask | function | Apply binary closing (dilation then erosion) over the spatial axes. |
combine_masks | function | Combine boolean masks element-wise with an n-ary logical operator. |
dilate_mask | function | Dilate a mask over its trailing two (spatial) axes. |
distance_mask | function | Mask pixels by their distance to an already-rasterized geometry. |
erode_mask | function | Erode a mask over its trailing two (spatial) axes. |
invert_mask | function | Invert a boolean mask. |
open_mask | function | Apply binary opening (erosion then dilation) over the spatial axes. |
remove_small_holes | function | Fill enclosed False components up to max_hole_area_px pixels. |
remove_small_objects | function | Remove connected True components smaller than min_area_px pixels. |
slope_degrees | function | Compute slope in degrees from a single-band DEM. |
slope_mask | function | Mask DEM cells by a slope interval (True = drop). |
geoops.matched_filter¶
| Name | Kind | What it does |
|---|---|---|
AdaptiveBackground | class | Local per-pixel background statistics from square-window filtering. |
AdaptiveWindowBackground | class | Per-pixel local mean and diagonal variance over a square window. |
ApplyAdaptiveMF | class | Apply a matched filter against per-pixel local window statistics. |
ApplyClusterMF | class | Apply a matched filter dispatched by per-pixel cluster label. |
ClusterBackground | class | Cluster labels with per-cluster matched-filter background statistics. |
ColumnEnhancement | class | Convenience trace-gas column-enhancement matched-filter composite. |
DetectionThreshold | class | Gaussian false-alarm score threshold. |
EstimateCovEmpirical | class | Estimate an empirical covariance operator. |
EstimateCovLowRank | class | Estimate a low-rank-plus-Tikhonov covariance operator. |
EstimateCovShrunk | class | Estimate a diagonal-target shrinkage covariance operator. |
EstimateMean | class | Estimate a spectral background mean vector from a cube. |
GMMClusterBackground | class | Estimate clustered background statistics with a NumPy GMM backend. |
LinearTargetFromObs | class | Finite-difference tangent-linear target from an observation model. |
MatchedFilter | class | Per-pixel matched-filter score map. |
MatchedFilterPixel | class | Single-pixel matched-filter score. |
MatchedFilterSNR | class | Theoretical detection SNR amplitude * sqrt(t^T Sigma^-1 t). |
NonlinearTargetFromObs | class | Finite-amplitude target from a callable observation model. |
NumpyLinearOperator | class | Dense NumPy linear operator with a small solve interface. |
StreamingBackground | class | Aggregate mean/covariance across an iterable of cubes. |
StreamingBackgroundResult | class | Mean and covariance operator estimated from streamed cubes. |
ValidateMFInputs | class | Fail-fast pass-through validator for matched-filter inputs. |
WelfordAccumulator | class | Streaming mean/covariance accumulator using Chan-Welford updates. |
apply_adaptive_mf | function | Apply a matched filter against a local diagonal-covariance background. |
apply_image | function | Apply a matched filter over a hyperspectral image cube. |
apply_pixel | function | Score one pixel spectrum with the matched filter. |
detection_threshold | function | Return the score threshold for a Gaussian false-alarm rate. |
estimate_cov_empirical | function | Estimate an empirical covariance operator from a cube. |
estimate_cov_lowrank | function | Estimate a low-rank-plus-Tikhonov dense covariance operator. |
estimate_cov_shrunk | function | Estimate a scaled-identity-target shrinkage covariance operator. |
estimate_mean | function | Estimate a per-band background mean spectrum from a cube. |
matched_filter_snr | function | Return the theoretical matched-filter detection SNR. |
shrink_covariance | function | Shrink an empirical covariance toward a scaled-identity target. |
validate_mf_inputs | function | Raise ValueError for degenerate target/covariance pairs. |
geoops.measure¶
| Name | Kind | What it does |
|---|---|---|
Connectivity | function | Re-exported from typing. |
DEFAULT_REGIONPROPS | constant | ('label', 'area', 'area_convex', 'area_filled', 'centroid... |
FindContours | class | Extract iso-value contours as LineString geometries. |
LabelConnectedComponents | class | Convert a binary mask into an int32 connected-component label map. |
ProfileLine | class | Sample values along a line between two pixel coordinates. |
RANSAC | class | Robust model fitting via :func:skimage.measure.ransac. |
RegionProps | class | Extract a GeoDataFrame of per-region statistics from a label map. |
ShannonEntropy | class | Compute Shannon entropy of the input image. |
SkeletonLength | class | Longest path through the skeleton of a binary mask. |
label_components | function | Label connected True regions and drop components below min_area_px. |
regionprops_frame | function | Per-region property table of an integer label image. |
regionprops_to_crs_units | function | Convert pixel-unit region-property columns to CRS units. |
skeleton_length | function | Longest geodesic path through the skeleton of a binary mask. |
geoops.normalize¶
| Name | Kind | What it does |
|---|---|---|
AsinhScale | class | Inverse-hyperbolic-sine scaling. |
CLAHE | class | Contrast-Limited Adaptive Histogram Equalization. |
HistogramMatch | class | Match a GeoArray histogram to a reference GeoArray. |
HistogramStretch | class | Per-band percentile stretch into out_range for visualisation. |
LogScale | class | Logarithmic scaling with an epsilon offset for zeros. |
MinMaxScaler | class | Per-band min-max scaling into an arbitrary output range. |
Normalize | class | Fixed-stats per-band z-score normaliser. |
PerBandStats | class | Compute NaN-aware per-band statistics and cache them. |
PowerScale | class | Non-negative power scaling. |
RobustScaler | class | Per-band median / IQR scaling (robust to outliers). |
StandardScaler | class | Per-band z-score normalisation. |
ZeroOne | class | Scale the current scene extent into [0, 1]. |
asinh_scale | function | Apply inverse-hyperbolic-sine scaling. |
band_quantiles | function | Per-band quantiles of the valid pixels, on any backend. |
band_stats | function | Per-band mean, std, min and max of the valid pixels, on any backend. |
carrier_band_stats | function | Per-band statistics of a carrier’s valid pixels, by dim name, on its backend. |
clahe | function | Apply contrast-limited adaptive histogram equalization per image band. |
histogram_match | function | Match source values to the empirical CDF of reference. |
inverse_minmax_scale | function | Undo :func:minmax_scale: map out_range back onto [vmin, vmax]. |
inverse_robust_scale | function | Undo :func:robust_scale. |
inverse_standard_scale | function | Undo :func:standard_scale. |
log_scale | function | Apply log scaling with a small offset for zero-valued pixels. |
match_cdf | function | Map each band of x through its CDF onto a reference_cdf table. |
minmax_scale | function | Linearly map [vmin, vmax] into out_range. |
per_band_stats | function | Compute NaN-aware statistics over spatial axes. |
power_scale | function | Apply non-negative power scaling. |
reference_cdf | function | The per-band empirical CDF of reference, as a padded table for match_cdf. |
robust_scale | function | Apply median/IQR scaling while preserving NaN pixels. |
standard_scale | function | Apply z-score scaling while preserving NaN pixels. |
geoops.patch_ops¶
| Name | Kind | What it does |
|---|---|---|
BalancedSampler | class | Operator: scene → list[Patch] with N chips per class label. |
StratifiedSample | class | Operator: scene → list[Patch] with class proportions matching a target. |
TriangularWindow | class | Linear-ramp triangular spatial window for overlap-add blending. |
geoops.plume¶
| Name | Kind | What it does |
|---|---|---|
ColumnToMass | class | Convert column enhancement units (ppm m / mol m^-2 / kg m^-2). |
CrossSectionalFlux | class | Estimate cross-sectional flux at downwind transects. |
IMEEstimate | class | Integrated Mass Enhancement (IME) flux estimator. |
PlumeColumnStats | class | Per-instance in-mask vs background statistics of a column field. |
PlumeContours | class | Connected-component labelling of a plume mask. |
PlumeFootprint | class | Vectorize a plume mask into polygons with per-plume metadata. |
PlumeMask | class | Binary plume mask from a single-band score or enhancement map. |
PlumeQNDFeatures | class | Per-instance Quantile-Normality-Deviation features for plume QA. |
PlumeShapeFilter | class | Drop instance labels that fail a fiber-shape morphology gate. |
SBMP | class | Single-band multi-pass Sentinel-2 SWIR ratio retrieval. |
WindAdvectionCone | class | Mask likely downwind plume extent from a source and wind vector. |
convert_column_units | function | Convert column enhancement among ppm m, mol/m^2, and kg/m^2. |
plume_mask | function | Threshold an enhancement map and remove small connected components. |
wind_advection_cone | function | Rasterize an analytical downwind sector mask. |
geoops.qa¶
| Name | Kind | What it does |
|---|---|---|
CloudSEN12 | class | Placeholder for the optional ML-based CloudSEN12 detector. |
DecodeBitmask | class | Unpack a QA bitmask into named boolean mask layers. |
EMITBandMask | class | Saturation mask from EMIT’s packed band mask; True = mask out. |
EMITL2AMask | class | Named flags of the EMIT L2A mask product, OR-combined; True = mask out. |
LandsatQA_PIXEL | class | Landsat Collection-2 QA_PIXEL mask preset. |
MODISStateQA | class | MODIS state_1km (or state_500m) QA mask preset. |
MaskCirrus | class | Return True where a QA band marks cirrus pixels. |
MaskCloudShadow | class | Return True where a QA band marks cloud-shadow pixels. |
MaskClouds | class | Return True where a QA band marks cloud-contaminated pixels. |
MaskInvalid | class | Mark invalid (nodata) pixels: True = invalid, drop it. |
MaskNoData | class | Return True where pixels are no-data by QA value or carrier fill value. |
MaskSaturated | class | Return True where pixels are at or above a saturation value. |
MaskSnow | class | Return True where a QA band marks snow or ice pixels. |
MaskWater | class | Return True where a QA band marks water pixels. |
OmniCloudMask | class | Placeholder for the optional ML-based OmniCloudMask detector. |
S2Cloudless | class | Placeholder for the optional ML-based s2cloudless mask. |
S2QA60 | class | Sentinel-2 L1C QA60 cloud + cirrus mask preset. |
S2SCL | class | Sentinel-2 L2A SCL preset that masks the requested targets classes. |
SCL | class | Sentinel-2 L2A Scene Classification Layer class IDs. |
SCL_CLOUDS | constant | frozenset({<SCL.CLOUD_HIGH_PROBABILITY: 9>, <SCL.CLOUD_ME... |
SCL_CLOUDS_AND_INVALID | constant | frozenset({<SCL.CLOUD_HIGH_PROBABILITY: 9>, <SCL.CLOUD_ME... |
SCL_INVALID | constant | frozenset({<SCL.CLOUD_SHADOWS: 3>, <SCL.NO_DATA: 0>, <SCL... |
SCL_LAND | constant | frozenset({<SCL.NOT_VEGETATED: 5>, <SCL.VEGETATION: 4>}) |
SCL_WATER | constant | frozenset({<SCL.WATER: 6>}) |
SENSOR_QA_REGISTRY | constant | {'s2_qa60': {'cloud': {'bits': (10,)}, 'cirrus': {'bits':... |
flagged_band_count | function | Number of bands flagged in each pixel’s packed band mask. |
mask_from_band_count | function | Pixels with more flagged bands than their column’s baseline, dilated. |
mask_from_bit_field | function | Decode a contiguous multi-bit QA field by value membership. |
mask_from_qa_bits | function | Decode a Landsat-style bitmask QA band. |
mask_from_scl | function | Decode a Sentinel-2 SCL band by class membership. |
geoops.radiometry¶
| Name | Kind | What it does |
|---|---|---|
ApplySRF | class | Convolve hyperspectral bands to target Gaussian-SRF multispectral bands. |
BTFromRadiance | class | Convert thermal at-sensor radiance to brightness temperature (Kelvin). |
ComputeSZA | class | Compute the solar zenith angle (degrees) for a location and UTC datetime. |
DNToRadiance | class | Convert DN to at-sensor radiance. |
DNToReflectance | class | Convert DN to TOA / surface reflectance via a linear affine decode. |
DOS1 | class | Apply a Chavez (1988) Dark-Object Subtraction (DOS1) approximation. |
EarthSunDistanceCorrection | class | Compute the Earth–Sun distance d (in AU) for an acquisition date. |
Gamma | class | Power-law gamma correction. |
IntegratedIrradiance | class | Compute band-integrated TOA solar irradiance from an SRF table. |
MinMaxStretch | class | Linear contrast stretch into [0, 1]. |
PercentileClip | class | Per-band robust contrast stretch using percentile thresholds. |
RadianceToDN | class | Convert at-sensor radiance back to raw DN — inverse of DNToRadiance. |
RadianceToReflectance | class | Convert at-sensor radiance to TOA reflectance with solar geometry. |
ReflectanceToRadiance | class | Convert TOA reflectance back to at-sensor radiance — inverse of RadianceToReflectance. |
SimpleAtmosphericCorrection | class | Dispatch simple BOA approximations; currently supports method='dos1'. |
ToFloat32 | class | Cast the carrier’s values to float32. |
bt_from_radiance | function | Convert thermal radiance to brightness temperature. |
dn_to_radiance | function | Convert raw DN to at-sensor radiance via per-band gain/offset. |
dn_to_reflectance | function | Convert DN to TOA / surface reflectance via a linear affine decode. |
dos1 | function | Apply a simple DOS1 dark-object subtraction to reflectance. |
gamma_correct | function | Apply a gamma (power-law) correction. |
min_max_normalize | function | Linearly map [vmin, vmax] to [0, 1]. |
percentile_clip | function | Robust contrast stretch using percentile thresholds. |
radiance_to_dn | function | Convert at-sensor radiance back to DN via the affine inverse. |
geoops.restore¶
| Name | Kind | What it does |
|---|---|---|
BilateralDenoise | class | Edge-aware denoise using a range-weighted Gaussian. |
DenoisePCA | class | Reconstruct a multi-band raster from its top PCA components. |
DespeckleFrost | class | Frost (1982) adaptive exponential-kernel speckle filter. |
DespeckleLee | class | Lee (1980) local-statistics speckle filter. |
DespeckleRefinedLee | class | Refined-Lee speckle filter approximation. |
DestripeColumn | class | Subtract per-column (or per-row) offsets from striped imagery. |
GapFillIDW | class | Fill NaNs with inverse-distance weighted finite neighbours. |
GapFillInpaintBiharmonic | class | Smoothly inpaint NaN gaps with a biharmonic fill (Δ²u = 0). |
GapFillLaplacian | class | Fill NaNs by solving a discrete Laplace equation. |
GapFillNearest | class | Fill NaNs from the nearest finite neighbour. |
GaussianDenoise | class | Gaussian smoother over the trailing two spatial axes. |
MNF | class | Minimum Noise Fraction transform (Green et al. 1988), with its inverse. |
MedianDenoise | class | Median filter over the trailing two spatial axes. |
MomentMatching | class | Destripe by matching every column’s mean and std to a reference. |
NLMeans | class | Lightweight non-local-means-style denoiser. |
OutlierMask | class | Flag global outliers with a MAD or z-score threshold. |
ReplaceOutliers | class | Replace outliers with median, NaN, or nearest-neighbour interpolation. |
bilateral_denoise | function | Edge-aware denoise using a range-weighted Gaussian approximation. |
despeckle_frost | function | Apply the Frost (1982) adaptive exponential-kernel speckle filter. |
despeckle_lee | function | Apply the Lee (1980) local-statistics speckle filter. |
despeckle_refined_lee | function | Apply a Refined-Lee approximation. |
destripe_column | function | Remove row or column striping by matching per-line statistics. |
gap_fill_biharmonic | function | Fill NaNs by biharmonic inpainting. |
gap_fill_idw | function | Fill NaNs with inverse-distance weighted finite neighbours. |
gap_fill_laplacian | function | Fill NaNs by solving a discrete Laplace equation. |
gap_fill_nearest | function | Fill NaNs from the nearest finite neighbour. |
gaussian_denoise | function | Gaussian smooth over the trailing two (spatial) axes. |
median_denoise | function | Median smooth over the trailing two (spatial) axes. |
nl_means | function | Lightweight non-local-means-style denoiser. |
outlier_mask | function | Flag robust global outliers. |
pca_denoise | function | Reconstruct an array from its top PCA components along axis. |
replace_outliers | function | Replace detected outliers with a scalar or nearest-neighbour fill. |
geoops.segment¶
| Name | Kind | What it does |
|---|---|---|
ChanVese | class | Active-contour segmentation via :func:skimage.segmentation.chan_vese. |
ExpandLabels | class | Grow label regions by a fixed pixel distance without overlap. |
Felzenszwalb | class | Graph-based segmentation via :func:skimage.segmentation.felzenszwalb. |
MarkBoundaries | class | Overlay segmentation boundaries on an image for visual inspection. |
MaskNMS | class | Mask-IoU non-maximum suppression over a stack of instance masks. |
MergeNearbyInstances | class | Merge instance labels whose bboxes are close and partially overlap. |
Quickshift | class | Mode-seeking superpixels via :func:skimage.segmentation.quickshift. |
RandomWalker | class | Seeded segmentation via :func:skimage.segmentation.random_walker. |
SLIC | class | SLIC superpixels via :func:skimage.segmentation.slic. |
Threshold | class | Binary mask of the pixels strictly above a global threshold. |
ThresholdMode | constant | float | int | str |
Watershed | class | Watershed segmentation via :func:skimage.segmentation.watershed. |
fill_invalid | function | Float copy of image with every invalid pixel set to the valid median. |
mask_nms | function | Suppress overlapping mask predictions via mask-IoU and stitch |
merge_nearby_instances | function | Merge instance labels whose bboxes are close and partially overlap. |
otsu_threshold | function | Compute Otsu’s between-class-variance threshold, ignoring NaNs. |
resolve_threshold | function | Resolve an absolute, Otsu, or percentile threshold to a float. |
threshold_mask | function | Binary mask of the samples strictly above a resolved threshold. |
geoops.spectral¶
| Name | Kind | What it does |
|---|---|---|
BandMath | class | Evaluate a restricted arithmetic expression over named bands. |
BandRatio | class | Simple two-band ratio numerator / (denominator + eps). |
ContinuumRemoval | class | Hull-quotient continuum removal along the band axis. |
ReorderBands | class | Reorder bands by integer index or band name. |
SelectBands | class | Select bands by integer index or band name along the band axis. |
SpectralBinning | class | Aggregate source bands into wavelength-centered bins. |
SpectralSmoothing | class | Smooth spectra along the band axis. |
SplitBands | class | Split a multiband GeoArray into one single-band GeoArray per band. |
StackBands | class | Concatenate carriers along the band axis. |
band_ratio | function | Compute numerator / (denominator + eps) with the band axis collapsed. |
continuum_removal | function | Apply hull-quotient continuum removal along the band axis. |
evaluate_band_math | function | Evaluate a restricted arithmetic expression over named band arrays. |
reorder_bands | function | Reorder bands by integer index along the configured band axis. |
select_bands | function | Select bands by integer index along the configured band axis. |
spectral_binning | function | Aggregate source bands into wavelength-centered bins. |
spectral_smoothing | function | Smooth spectra along the band axis. |
geoops.testing¶
| Name | Kind | What it does |
|---|---|---|
Measured | class | What a perturbation probe saw. A lower bound on the true coupling. |
assert_coupling | function | Assert that op’s declared Coupling contains what was measured. |
check_operator | function | Assert that op keeps the pipekit Operator and GeoArray contracts. |
measure_coupling | function | Measure which dims build()'s output reads across, on sample. |
measure_frames | function | Measure an N-ary reducer: which input frames reach its output. |
geoops.viz¶
| Name | Kind | What it does |
|---|---|---|
AnnotatePoints | class | Draw circular point markers into a display GeoArray. |
AnnotatePolygons | class | Rasterize polygon outlines into a display GeoArray. |
ApplyColormap | class | Map a single-band raster to a four-band RGBA GeoArray. |
ApplyDiscreteColormap | class | Map integer categories to a four-band RGBA GeoArray. |
Composite | class | Build a multi-band composite by arbitrary band reference. |
FalseColor | class | Build a NIR-red-green false-colour composite. |
GammaCorrect | class | Apply display gamma correction. |
Hillshade | class | Compute a single-band uint8 hillshade from a DEM. |
Overlay | class | Blend background and foreground GeoArrays on the same grid. |
RGBRecipe | class | Build a display RGB from three band expressions with fixed stretches. |
SWIRComposite | class | Build a SWIR2-NIR-red composite. |
ShadedRelief | class | Apply an elevation colormap and modulate RGB with hillshade. |
StretchToUint8 | class | Percentile-stretch display data to uint8. |
TrueColor | class | Build an RGB composite from explicit red, green, and blue band refs. |
blend_rgba | function | Blend two display images and return uint8 RGBA. |
ensure_rgba | function | Return arr as a four-band uint8 RGBA image. |
gamma_correct_display | function | Apply power-law gamma correction to display-range arrays. |
hillshade | function | Compute GDAL-style hillshade as a single uint8 band. |
rgb_recipe | function | Stretch and gamma-correct three channels into a display RGB. |
rgba_from_categories | function | Map integer classes to a four-band uint8 RGBA image. |
rgba_from_scalar | function | Map a single-band array to a four-band uint8 RGBA image. |
stretch_to_uint8 | function | Percentile stretch an array into display-ready uint8 values. |
geopatcher (geotoolz-patcher)¶
geopatcher¶
| Name | Kind | What it does |
|---|---|---|
AsyncField | class | Async mirror of Field — concurrent select over remote tiles. |
AsyncSpatialPatcher | class | Async mirror of SpatialPatcher over an AsyncField. |
Domain | class | Metadata view of a field — bounds, CRS, no I/O. |
Field | class | A substrate the Patcher reads patches out of. |
Patch | class | A single patch produced by a SpatialPatcher. |
RasterField | class | A geoarray.RasterSource (a GeoArray, a lazy reader, …) as a Field. |
SpatialPatcher | class | The four-axis spatial Patcher. |
SpatioTemporalPatch | class | A patch carrying both a spatial and a temporal anchor. |
SpatioTemporalPatcher | class | Composition of a spatial and a temporal Patcher. |
TemporalPatch | class | A single patch produced by a TemporalPatcher. |
TemporalPatcher | class | Four-axis temporal Patcher. |
geopatcher.config¶
| Name | Kind | What it does |
|---|---|---|
axis_envelope | function | Wrap one component as {"class": <config_name>, "config": <get_config()>}. |
config_from_fields | function | Serialise a dataclass axis into its get_config dict. |
config_name | function | The name an envelope records for cls. |
from_config | function | Rebuild an axis, stencil or patcher from its axis_envelope. |
geopatcher.fields¶
| Name | Kind | What it does |
|---|---|---|
AsyncRasterField | class | Async mirror of RasterField over a geoarray.AsyncRasterSource. |
CogField | class | A tiled COG Field with batched range-fetch reads. |
DaskField | class | Wrap a dask-backed xarray.DataArray as a lazy grid Field. |
GeoPandasField | class | Wrap a geopandas.GeoDataFrame as a Field[VectorDomain]. |
GridDomain | class | A dense, labeled N-D grid — the xarray.DataArray shape. |
PointDomain | class | Scattered points — coordinates + a cKDTree for nearest-neighbor lookups. |
RasterDomain | class | A raster domain: a geoarray.Grid plus the full array shape. |
ReprojectingRasterField | class | Wrap a geoarray.RasterSource, presenting a reprojected destination grid. |
RioXarrayField | class | Wrap a rioxarray-flavoured xarray.DataArray as a raster Field. |
VectorDomain | class | Vector geometries — polygons / lines indexed by an STRtree. |
XarrayField | class | Wrap an xarray.DataArray as a Field[GridDomain]. |
XvecField | class | Wrap a vector data cube (xarray + xvec) as a Field[PointDomain]. |
geopatcher.integrations.pipekit¶
| Name | Kind | What it does |
|---|---|---|
ApplyToChips | class | Operator: list[Patch] → list[Patch] — map operator over each patch. |
GridSampler | class | Operator: Field → list[Patch] — yields the Patcher’s patches. |
MergePatches | class | Operator: list[Patch] → field — wraps a spatial.aggregation.Aggregation. |
PatchReachWarning | class | Patching changes the answer: the patches overlap by less than the |
geopatcher.integrations.train¶
| Name | Kind | What it does |
|---|---|---|
XarrayWindowDataset | class | Lazy, indexable (input, target) windows sampled from a Zarr store. |
geopatcher.matched¶
| Name | Kind | What it does |
|---|---|---|
MatchedField | class | N co-registered Fields presented as one Field. |
MatchedPatch | class | A co-located patch read from N sources at a single anchor. |
MatchedSpatialPatcher | class | Spatial patcher that yields MatchedPatches and merges per-source. |
MatchedSpatioTemporalPatch | class | A co-located spatio-temporal patch read from N sources. |
MatchedSpatioTemporalPatcher | class | Spatio-temporal matched patcher — yields MatchedSpatioTemporalPatches. |
MatchedTemporalPatch | class | A co-located temporal patch read from N sources at a single anchor. |
MatchedTemporalPatcher | class | Temporal patcher that yields MatchedTemporalPatches and merges per-source. |
geopatcher.observe¶
| Name | Kind | What it does |
|---|---|---|
OnErrorPolicy | function | Re-exported from typing. |
PatchErrorRecord | class | A failed patch read recorded by a patcher’s split. |
PatchJournal | class | Append-only local journal keyed by patch anchor. |
PatcherHook | class | Optional callbacks emitted by patcher split and merge operations. |
UNKNOWN_TOTAL | constant | -1 |
get_strict | function | Return the current value of the process-wide strict flag. |
normalize_anchor | function | Return anchor as plain JSON-compatible Python values. |
set_strict | function | Set the process-wide strict flag. |
geopatcher.run¶
| Name | Kind | What it does |
|---|---|---|
Backend | function | Re-exported from typing. |
ErrorPolicy | function | Re-exported from typing. |
IndexedPatchView | class | Integer-indexed view over a patcher’s anchors. |
PatchBatch | class | A batch of patches: one carrier and a mask of its real entries. |
PatchCache | class | A local, content-addressed directory cache of read patches. |
UnstableIdentityError | class | A field’s cache_id() cannot name what it reads stably. |
batch_split | function | Yield the patches of patcher.split(field) as fixed-size batches. |
parallel_map | function | Apply operator to each spatial patch with a reference executor. |
prefetch_iterable | function | Return iterable with up to prefetch items read ahead. |
stack_patches | function | Stack a Patch collection’s per-patch attr into a single ndarray. |
to_dask_bag | function | Return a Dask bag with one element (and one partition) per patch. |
to_delayed | function | Return one Dask delayed task per patch. |
unbatch | function | Turn a batch, or a model’s output for it, back into Patch objects. |
geopatcher.spatial.aggregation¶
| Name | Kind | What it does |
|---|---|---|
Aggregation | class | Base for local → global merging strategies. |
ApproxCardinality | class | Global approximate unique-value count via HyperLogLog. |
ApproxMode | class | Global approximate heavy hitters via Misra-Gries counters. |
ApproxQuantile | class | Global approximate quantile(s) from a uniform reservoir of k values. |
ByIndex | class | Don’t merge — return the [(anchor, data), …] pairs in patch order. |
HardVote | class | Per-cell majority vote — patches carry integer class predictions. |
InvVarWeightedMean | class | Bayesian inverse-variance weighting for overlapping local posteriors. |
Learned | class | Caller-supplied merge — model(patches, domain) -> field. |
Max | class | Per-cell maximum across patches (NaN / masked samples skipped). |
Mean | class | Per-cell mean — runs spatial.aggregation.Sum and a count accumulator in |
MeanStd | class | Global mean and sample standard deviation across patch data. |
Median | class | Per-cell median — exact, requires per-cell history. |
Min | class | Per-cell minimum across patches (NaN / masked samples skipped). |
MinMax | class | Global minimum and maximum across patch data. |
Mode | class | Per-cell exact mode — not streamable. Use spatial.aggregation.HardVote for |
OverlapAdd | class | spatial.window.Window-weighted overlap-add — the canonical chip-stitching |
Reservoir | class | Uniform global reservoir sample of k values (Vitter’s Algorithm R). |
SoftVote | class | Per-cell soft vote — patches carry per-class probabilities. |
StreamingHistogram | class | Global online histogram with at most bins centroids. |
Sum | class | Per-cell sum across patches (NaN / masked samples skipped). |
Variance | class | Per-cell sample variance via Welford’s online algorithm. |
WeightedSum | class | Per-cell weighted sum — each patch’s window weights multiply in. |
geopatcher.spatial.geometry¶
| Name | Kind | What it does |
|---|---|---|
Geometry | class | Base for spatial neighborhood definitions. |
KNNGraph | class | Fixed-k nearest-neighbor neighborhood. |
PolygonIntersection | class | Patch = pixels (or features) lying inside a given polygon. |
RadiusGraph | class | All neighbors within a fixed radius — variable patch size. |
Rectangular | class | Axis-aligned box — the bread-and-butter raster / grid geometry. |
SphericalCap | class | Geodesic cap of radius radius_km — for lat/lon fields near the poles. |
geopatcher.spatial.sampler¶
| Name | Kind | What it does |
|---|---|---|
AlongTrack | class | Anchors along an ordered track, optionally resampled to fixed spacing. |
Explicit | class | Caller-supplied anchors — the universal escape hatch. |
ExplicitCoords | class | Caller-supplied world coordinates, one centred chip per coordinate. |
IncompleteScanConfiguration | class | A sampler’s (size, step) does not exactly tile the domain. |
JitteredStride | class | spatial.sampler.RegularStride + per-anchor uniform jitter (training |
PoissonDisk | class | Well-spaced random anchors (raster + point). |
Random | class | N uniformly-random anchors over the domain’s placement space. |
RegularStride | class | Regular lattice — step along each axis. |
Sampler | class | Base for anchor-placement strategies. |
geopatcher.spatial.window¶
| Name | Kind | What it does |
|---|---|---|
Boxcar | class | Constant 1.0 — no edge taper. |
Custom | class | Caller-supplied weight function — the escape hatch. |
Gaussian | class | Separable Gaussian envelope centred on the patch. |
Hann | class | Hann (raised-cosine) window — the standard overlap-add taper. |
Tukey | class | Tukey (tapered-cosine) window. |
Window | class | Base for window functions. |
geom_shape | function | Shape of the weight array a spatial.window.Window returns for geometry. |
geopatcher.temporal.aggregation¶
| Name | Kind | What it does |
|---|---|---|
Aggregation | class | Base for time-axis merge strategies. |
Fold | class | Stateful left-fold across patches — the RNN / state-space shape. |
Forecast | class | Keep only the horizon portion - pairs with temporal.geometry.LookbackHorizon. |
HierarchicalCombine | class | Stitch multi-scale outputs — pairs with temporal.geometry.MultiScale geometry. |
Mean | class | Per-time-step mean of the overlapping patches — the spatial.aggregation.Mean of |
geopatcher.temporal.geometry¶
| Name | Kind | What it does |
|---|---|---|
FixedLookback | class | Causal lookback of fixed length time steps. |
Geometry | class | Base for time-window shapes. |
LookbackHorizon | class | Lookback + horizon — the canonical forecasting window shape. |
MultiScale | class | One lookback per scale — for combining hourly + daily + annual context. |
PhaseWindow | class | Periodic phase slots — every cycle’s steps near the anchor’s phase. |
StencilGeometry | class | Coordinate-aware geometry that resolves a Stencil against a coord. |
geopatcher.temporal.sampler¶
| Name | Kind | What it does |
|---|---|---|
Explicit | class | Caller-supplied anchor indices — the universal escape hatch. |
Random | class | n_samples uniform-random anchors along the time axis. |
RegularStride | class | Every step steps along the time axis, starting at start. |
Sampler | class | Base for temporal anchor placement. |
StencilSampler | class | Anchor sampler whose valid set is defined by a Stencil. |
geopatcher.temporal.stencils¶
| Name | Kind | What it does |
|---|---|---|
Closed | function | Re-exported from typing. |
Stencil | class | Sample points relative to an origin, in coordinate units. |
TimeStencil | class | Stencil specialised to np.timedelta64. |
build_sampling_slices | function | Resolve a stencil at each origin into slice objects. |
coord_step | function | Validate a 1-D, strictly increasing, evenly spaced coord; return its step. |
exact_quotient | function | Compute round(x / y) and verify the result is exact. |
stencil_offsets | function | (lo, hi, stride) index offsets of stencil on a source_step grid. |
valid_origin_points | function | Source points for which the full stencil fits in-record. |
geopatcher.temporal.window¶
| Name | Kind | What it does |
|---|---|---|
CausalBoxcar | class | Constant 1.0 — no recency weighting, hard past cutoff at the lookback. |
ExponentialDecay | class | Geometric recency weighting — w[k] = exp(-k / tau) for past-to-present. |
Periodic | class | temporal.window.CausalBoxcar weights tagged with a cycle length. |
TaperedTukey | class | One-sided (causal) Tukey taper — the oldest steps fade in. |
Window | class | Base for temporal window functions. |
geocatalog (geotoolz-catalog)¶
geocatalog¶
| Name | Kind | What it does |
|---|---|---|
GeoCatalog | class | A queryable spatiotemporal index over geospatial files. |
GeoSlice | class | A bounded request for data — produced by samplers, consumed by loaders. |
intersect | function | Cross-catalog AND — rows from left paired with overlapping rows in right. |
open_catalog | function | Open a GeoParquet artifact as a GeoCatalog. |
query | function | Filter catalog by space + time and return the matching rows. |
union | function | Cross-catalog OR — concatenate left and right into one catalog. |
geocatalog.backends¶
| Name | Kind | What it does |
|---|---|---|
CatalogClosedError | class | A catalog was used after its connection was closed. |
CatalogMetadataError | class | A catalog artifact’s metadata could not be read or is missing. |
CatalogRow | class | Backend-neutral view of a single catalog row. |
CatalogSchemaError | class | A GeoParquet artifact has a _schema_version the reader can’t load. |
DuckDBGeoCatalog | class | Lazy, SQL-backed catalog over a GeoParquet artifact. |
GeoCatalogError | class | Base class of the errors about a catalog’s state or its artifacts. |
InMemoryGeoCatalog | class | A geopandas.GeoDataFrame-backed catalog. |
geocatalog.build¶
| Name | Kind | What it does |
|---|---|---|
append_files | function | Append new files to a Hive-partitioned GeoParquet archive. |
build_raster_catalog | function | Build a raster catalog — in-memory (default) or streamed to GeoParquet. |
build_state_catalog | function | Index model-state files: one row per file, with the state columns filled. |
build_vector_catalog | function | Build a vector catalog — in-memory (default) or streamed to GeoParquet. |
build_xarray_catalog | function | Build an xarray-shaped catalog — in-memory (default) or streamed. |
geocatalog.grid¶
| Name | Kind | What it does |
|---|---|---|
Align | function | Re-exported from typing. |
GridAlignmentWarning | class | Emitted by GeoSlice for align="warn" and align="snap". |
PIXEL_PRECISION | constant | 3 |
count_steps | function | round(length/step), raising if not within tol of exact. |
is_grid_aligned | function | Are a and b on the same pixel lattice? |
slice_to_window | function | Convert a CRS-unit GeoSlice to a pixel-space Window. |
window_to_slice | function | Inverse of slice_to_window. Mostly useful in tests and debugging. |
geocatalog.load¶
| Name | Kind | What it does |
|---|---|---|
aload_raster | function | Async mirror of load_raster for event-loop consumers. |
load_raster | function | Read + mosaic the catalog rows matching slice_ into one GeoArray. |
load_raster_timeseries | function | Stack daily mosaics across the slice’s interval into (time, b, h, w). |
load_vector | function | Rasterise the catalog’s vector rows matching slice_ into a GeoArray. |
load_xarray | function | Load + concat the catalog rows matching slice_ into an xr.Dataset. |
geocatalog.matchup¶
| Name | Kind | What it does |
|---|---|---|
CentroidWithin | class | Secondary centroid falls within a buffered primary footprint. |
Contains | class | Secondary footprint is fully contained in the primary. |
Intersects | class | Non-zero geometric intersection (the cheapest predicate). |
IouAtLeast | class | Intersection-over-union ≥ threshold. |
MatchupRow | class | A single matched tuple, persisted to matchups.parquet. |
NearestInTime | class | Pick the secondary nearest in time within dt. |
SpatialStrategy | class | A predicate over two footprints. |
Synchronous | class | Candidates whose intervals overlap the primary’s, within tolerance. |
TemporalStrategy | class | Selector over candidate intervals. |
WithinWindow | class | Candidates whose midpoint falls in [primary.mid + start, primary.mid + end]. |
matchup | function | Find matching tuples of observations. |
geocatalog.patch¶
| Name | Kind | What it does |
|---|---|---|
CatalogDomain | class | A patcher Domain view of a GeoCatalog. |
field_for | function | Build a geopatcher RasterField over a staged catalog. |
geocatalog.sources¶
| Name | Kind | What it does |
|---|---|---|
AuthStatus | class | Reported by Source.auth_status so callers can fail fast. |
CMRSource | class | Direct CMR REST adapter. |
EarthAccessSource | class | NASA CMR / earthaccess data discovery. |
GEESource | class | Google Earth Engine asset discovery. |
STACSource | class | STAC API data discovery. |
Source | class | A remote catalog that can be queried by bounds + interval. |
SourceRow | class | Normalized output of every Source.query adapter. |
from_stac_items | function | Build a raster catalog from STAC items. |
from_stac_search | function | Run a STAC API search and build a raster catalog from its items. |
source_row_to_gdf_row | function | Map a SourceRow to a flat dict suitable for a GeoDataFrame row. |
geocatalog.staging¶
| Name | Kind | What it does |
|---|---|---|
stage | function | Resolve every URI in catalog into a local file. |
geocatalog.states¶
| Name | Kind | What it does |
|---|---|---|
CFGRIB_NAMES | constant | mappingproxy({'valid_time': 'valid_time', 'run_time': 'ti... |
CF_NAMES | constant | mappingproxy({'valid_time': 'time', 'run_time': 'forecast... |
STATE_COLUMNS | constant | ('kind', 'run_time', 'member', 'producer', 'parents') |
StateFields | class | The model-state fields of one catalog row (CatalogRow.state). |
at_time | function | States of every kind valid at time: rows whose interval contains it. |
ensemble_at | function | Every member of one forecast run. |
forecast_chain | function | One member of one forecast run: the files of a single trajectory. |
forecasts | function | The forecast rows of a state catalog (kind == "forecast"). |
latest_analysis | function | The analysis with the latest valid time at or before before. |
lead_window | function | Forecast rows whose leads overlap [start, end]. |
load_states | function | Load forecast states as an (init_time, member, lead_time, y, x) cube. |
geocatalog.storage¶
| Name | Kind | What it does |
|---|---|---|
CatalogBundle | class | Wraps an InMemoryGeoCatalog + queries + matchups + persistence. |
QueryRecord | class | One row of queries.parquet. |
SCHEMA_VERSION_CURRENT | constant | 1 |
StreamingParquetWriter | class | Append-only GeoParquet 1.1 writer over a row iterator. |
from_geoparquet | function | Load a GeoParquet file into an InMemoryGeoCatalog. |
migrate_geoparquet | function | Read source, migrate it to to_version, write back in-place. |
sort_geoparquet | function | Rewrite a streamed GeoParquet file in sort_by order via DuckDB. |
to_geoparquet | function | Persist catalog as a GeoParquet file on disk. |
to_stac_collection | function | Convert a catalog into a STAC collection. |
geocatalog.utils¶
| Name | Kind | What it does |
|---|---|---|
ParsedURI | class | A location split into the parts the catalog cares about. |
TIME_INVARIANT_END | constant | Timestamp('2100-01-01 00:00:00') |
TIME_INVARIANT_START | constant | Timestamp('1900-01-01 00:00:00') |
is_time_invariant | function | True for the sentinel interval of a time-invariant row. |
parse_uri | function | Split a path or URI into a ParsedURI (see the module rules). |
retry_transient_io | function | Call fn with retries for transient remote I/O exceptions. |
to_naive_utc | function | Coerce a datetime-like to the catalog’s stored form: naive, in UTC. |
to_rfc3339 | function | Serialize a datetime-like as RFC 3339 in UTC with a Z suffix. |
to_utc_ts | function | Coerce any datetime-like to a UTC-aware pd.Timestamp. |
geocloud (geotoolz-cloud)¶
geocloud.cache¶
| Name | Kind | What it does |
|---|---|---|
LocalCache | class | A directory of complete local copies of remote objects. |
cache_key | function | uri without the parameters of an expiring signature. |
localize | function | A local file holding uri: in place when local, else a cached copy. |
geocloud.cog¶
| Name | Kind | What it does |
|---|---|---|
AsyncCogReader | class | await-native COG reader over a CogSource. |
CogDomain | class | Raster-domain view over a remote COG IFD. |
CogSource | class | An opened, tiled COG with batched range-fetch reads. |
read_from_bounds | function | Async georeader.read.read_from_bounds: the pixels covering bounds. |
read_from_center_coords | function | Async georeader.read.read_from_center_coords: a shape chip at a point. |
read_from_polygon | function | Async georeader.read.read_from_polygon: the pixels covering polygon. |
read_from_tile | function | The XYZ (slippy-map) tile (x, y, z) in EPSG:3857, out_shape pixels. |
read_from_window | function | Read window of reader (see AsyncCogReader.read_from_window). |
read_reproject | function | Async georeader.read.read_reproject onto a destination grid. |
read_reproject_like | function | Async georeader.read.read_reproject_like: onto data_like’s grid. |
read_to_crs | function | Async georeader.read.read_to_crs: the whole view, reprojected. |
write_cog | function | Write data as a Cloud-Optimized GeoTIFF at dest. |
geocloud.credentials¶
| Name | Kind | What it does |
|---|---|---|
GdalAccess | class | How GDAL (rasterio, georeader) reads a URI with the registered credentials. |
credential_roots | function | The store roots that have credentials registered (never the secrets). |
credentials_path | function | The default credentials file, or None when turned off. |
gdal_access | function | GDAL path and config options to read uri with its registered credentials. |
load_credentials | function | Register every store root in a TOML credentials file. |
redact | function | text with URL signatures, tokens and bearer credentials masked. |
remove_credentials | function | Forget the credentials registered at the root uri (no-op if none). |
set_credentials | function | Use these credentials for every object under the store root uri. |
geocloud.files¶
| Name | Kind | What it does |
|---|---|---|
ObjectInfo | class | One object (or, from a non-recursive ls, one sub-directory). |
copy | function | Copy one object, between any two locations. |
download | function | Download the object at uri to the local file dest. |
exists | function | Whether an object exists at uri (a prefix alone does not count). |
info | function | Size, modification time and entity tag of one object. |
ls | function | List the objects under prefix, sorted by URI. |
open | function | A file-like handle on the object at uri. |
read_bytes | function | The whole object at uri, in memory. |
rm | function | Delete the object at uri, or every object under it. |
sign | function | A pre-signed HTTPS URL for uri, valid for expires. |
sync | function | Copy every object under src to the same relative path under dst. |
upload | function | Upload the local file path to uri (multipart when large). |
write_bytes | function | Write data as the object at uri, replacing any existing one. |
geocloud.fs¶
| Name | Kind | What it does |
|---|---|---|
GeoCloudFileSystem | class | fsspec over geocloud.store: any URI or local path, one engine. |
filesystem | function | An fsspec filesystem that reads and writes through the shared pool. |
geocloud.hdf¶
| Name | Kind | What it does |
|---|---|---|
HDF4_SIGNATURE | constant | b'\x0e\x03\x13\x01' |
HDF5_SIGNATURE | constant | b'\x89HDF\r\n\x1a\n' |
HdfSource | function | Re-exported from typing. |
PackedVariable | class | How to decode one CF-packed variable. |
affine_from_geotransform | function | Parse a GDAL GeoTransform attribute into an Affine. |
attr | function | An HDF5 attribute as a plain Python scalar / str (arrays kept). |
fill_value_from_attrs | function | The scalar fill value declared in attrs, or None when none is. |
grid_variables | function | Names of the file’s top-level variables of shape shape. |
open_hdf5 | function | An open h5py.File on source, read-only. |
read_hdf | function | Read one dataset of an HDF5 or HDF4 / HDF-EOS file as a geoarray.GeoArray. |
read_indexes | function | Read 1-based band indexes from a lazily sliced dataset. |
read_netcdf | function | Read one variable of a NetCDF-3 / NetCDF-4 file as a geoarray.GeoArray. |
scalar | function | A scalar variable as float; NaN when absent or filled. |
select_indexes | function | Select 1-based band indexes along the leading axis of values. |
time_attr | function | An ISO-8601 attribute (time_coverage_start, …) as a datetime. |
unpacked | function | A packed variable (typically a coordinate) decoded to float64. |
geocloud.store¶
| Name | Kind | What it does |
|---|---|---|
SUPPORTED_SCHEMES | constant | frozenset({'abfs', 'abfss', 'az', 'azure', 'gcs', 'gs', '... |
clear_obstore_pool | function | Drop every pooled client (stores put there by mount stay). |
get_obstore | function | Return the pooled ObjectStore for uri. |
get_range_bytes | function | Fetch length bytes starting at start from uri. |
local_path | function | The filesystem path location names; None for a remote URI. |
mount | function | Serve every URI under the root uri from store. |
object_key | function | Return the key to request from get_obstore(uri) for uri. |
set_obstore_pool_maxsize | function | Set the pool’s LRU cap (default 64), evicting the oldest entries. |
unmount | function | Remove the store mount put at uri’s root (no-op if none). |
geoproducts (geotoolz-products)¶
geoproducts¶
| Name | Kind | What it does |
|---|---|---|
ProductReader | class | ABC for product readers: each one a lazy geoarray.RasterSource. |
stack | function | Stack readers’ bands on the grid of readers[like]. |
geoproducts.carbonmapper¶
| Name | Kind | What it does |
|---|---|---|
ALL_PLUME_PRODUCTS | constant | (CMRasterProduct(key='plume.tif', family=<CMProductFamily... |
ALL_PRODUCTS | constant | (CMRasterProduct(key='plume.tif', family=<CMProductFamily... |
CARBONMAPPER_INSTRUMENTS | constant | {'emi': 'EMIT', 'tan': 'Tanager-1', 'ang': 'AVIRIS-NG', '... |
CARBONMAPPER_PLUME_PARAMS | constant | ['ch4_fluxrate', 'ch4_fluxrate_std', 'geometry', 'lon', '... |
CMAPIError | class | Base for everything raised by :mod:api_queries. |
CMCollectionSpec | class | The (gas, cmf_type, version) triple naming a processing run. |
CMImageRaster | class | L2B scene exposed as lazy geoarray.RasterSource rasters. |
CMPlumeImage | class | Per-plume L3A bundle — outline polygon + L2B tile bridge. |
CMPlumeNotFound | class | Raised by :func:get_plume when the plume is unknown to CM. |
CMProduct | class | One Carbon Mapper product: an asset key within a family. |
CMProductFamily | class | Which collection family a product’s assets live in. |
CMProductNotSelected | class | A product was requested from a bundle that didn’t select it. |
CMQuicklookProduct | class | A non-georeferenced PNG quicklook → raw bytes. |
CMRasterProduct | class | A georeferenced raster product (GeoTIFF) → a lazy geoarray.RasterSource. |
CMRawPlume | class | Unified Carbon Mapper plume model. |
CMSceneNotPublished | class | Raised when STAC has no L2B item for a given scene_id. |
CMSource | class | Typed view of a Carbon Mapper source (cluster of plumes). |
CMSourceNotFound | class | Raised by :func:get_source when the source name is unknown. |
CMSourceRaster | class | Lazy binary-mask raster of Carbon Mapper sources on a target grid. |
CMTextProduct | class | A plain-text sidecar (uas.txt) → str. |
CMTileItem | class | Lightweight Carbon Mapper L2B STAC item. |
CMVectorProduct | class | A GeoJSON vector product → shapely geometry (EPSG:4326). |
CM_INSTRUMENT_TO_SATELLITE | constant | {'tan': 'Tanager1', 'ang': 'AVIRISNG', 'av3': 'AVIRIS3', ... |
CM_L2B_BANDS | constant | ('cmf', 'cmf-unortho', 'uncertainty', 'uncertainty-unorth... |
CM_PLUME_IMAGE_ASSETS | constant | ('plume.tif', 'plume-concentrations.tif', 'plume-outline.... |
CarbonMapperConfig | class | Simple credentials and configuration container for the Carbon Mapper API. |
Collection | class | Active CH4 Carbon Mapper collection identifiers. |
DEFAULT_L2B_COLLECTION | constant | 'l2b-ch4-mfa-v3a' |
DEFAULT_L2B_RGB_COLLECTION | constant | 'l2b-rgb-v3a' |
DEFAULT_PLUME_PRODUCTS | constant | (CMRasterProduct(key='plume.tif', family=<CMProductFamily... |
DEFAULT_SCENE_PRODUCTS | constant | (CMRasterProduct(key='cmf.tif', family=<CMProductFamily.L... |
Gas | class | Gas species in the Carbon Mapper catalog. |
Instrument | class | Carbon Mapper instrument short codes. |
decompose_wind | function | Convert wind speed + meteorological direction to (u, v) components. |
download_asset | function | Download a raster asset (GeoTIFF or PNG) by its storage key. |
download_plume_assets | function | Download all available raster assets for a single plume. |
export_plumes_to_geojson | function | Convert a list of plume dicts into a GeoJSON FeatureCollection and |
get_plume | function | Fetch a single plume by its CM plume_id. |
get_plume_by_id | function | Get a single plume by its UUID or colloquial name. |
get_plume_context | function | Single-call fetch of a plume plus its parent tile and source. |
get_plumes_annotated | function | Fetch annotated plumes with emissions, wind, and image URLs. |
get_plumes_csv | function | Download plume data as CSV text. |
get_scenes | function | List observation scenes (satellite or aircraft flight strips). |
get_source | function | Fetch a single Carbon Mapper source by its canonical name. |
get_source_for_plume | function | Resolve a plume to its attributed Carbon Mapper source. |
get_sources | function | Fetch emission sources (clusters of plumes at a location). |
get_tile | function | Fetch a single L2B STAC item by scene_id. |
get_tile_for_plume | function | Resolve a plume to its parent L2B STAC item. |
list_plumes | function | Materialised list of plumes matching filters. |
list_plumes_for_source | function | All plumes attributed to a Carbon Mapper source. |
list_plumes_for_tile | function | All plumes attributed to a given L2B scene. |
list_sources | function | List Carbon Mapper sources matching filters. |
list_tiles | function | Materialised list of L2B STAC items matching filters. |
list_tiles_for_source | function | All distinct parent L2B tiles touched by a source’s plumes. |
obtain_token | function | Exchange credentials for a JWT access/refresh token pair. |
paginate_plumes | function | Auto-paginate through the annotated plumes endpoint. |
product_for_key | function | Look up a registry product by asset key (and family for the |
rasterize_sources | function | Rasterize source points onto a target grid as a binary mask. |
rasterize_sources_like | function | Rasterize sources onto the grid of an existing raster. |
refresh_token | function | Refresh an expired access token using a refresh token. |
stac_get_catalog | function | Get the STAC root catalog with links to all collections. |
stac_get_collection | function | Get metadata for a single collection. |
stac_get_items | function | Get items from a STAC collection (OGC API Features compliant). |
stac_list_collections | function | List all STAC collections with their metadata. |
stac_search | function | Cross-collection STAC item search. |
geoproducts.carbonmapper.api_queries¶
| Name | Kind | What it does |
|---|---|---|
BBox | function | Re-exported from builtins. |
geoproducts.carbonmapper.rasters¶
| Name | Kind | What it does |
|---|---|---|
BBox | function | Re-exported from builtins. |
DEFAULT_L2B_CH4_COLLECTION_CANDIDATES | constant | ('l2b-ch4-mfa-v3e', 'l2b-ch4-mfa-v3d', 'l2b-ch4-mfa-v3c',... |
DEFAULT_L2B_RGB_COLLECTION_CANDIDATES | constant | ('l2b-rgb-v3e', 'l2b-rgb-v3d', 'l2b-rgb-v3c', 'l2b-rgb-v3a') |
l2b_collection_candidates_for_spec | function | L2B collection ids to probe for a plume, in probe order. |
rgb_collection_candidates_for_spec | function | L2B RGB sibling collection ids to probe, in the same version order |
geoproducts.goes¶
| Name | Kind | What it does |
|---|---|---|
BANDS | constant | ({'name': 'C01', 'band': '1', 'wavelength_um': '0.47', 'r... |
Calibration | function | Re-exported from typing. |
DayCloudPhase | function | CIRA day cloud phase distinction (C13 BT, C02, C05). |
FireTemperature | function | CIRA fire temperature (C07 BT, C06, C05). |
L2Reader | class | GOES-R ABI L2 product reader: chosen variables as bands. |
MaskClouds | function | Cloud mask from the L2 clear sky mask (ACM), True = cloudy. |
NDVI | function | NDVI from ABI reflectance: red="C02", nir="C03". |
NaturalColor | function | CIRA day land cloud “natural colour” (C05, C03, C02). Reads C02/C03/C05. |
ParallaxCorrect | function | Geostationary parallax correction from a GOES-R viewpoint. |
QualityReader | class | The DQF data-quality flags of an ABI file, as unsigned integers. |
Reader | class | GOES-R ABI L1b radiance reader (one channel, one scan). |
SyntheticGreen | function | The CIMSS synthetic green band, 0.45 C02 + 0.10 C03 + 0.45 C01. |
TrueColor | function | True colour (C02, synthetic green, C01), gamma 2.2. Reads C01-C03. |
geoproducts.goes.aws¶
| Name | Kind | What it does |
|---|---|---|
ABIFile | class | One ABI object in a NOAA bucket, with its file-name fields parsed. |
bucket | function | The NOAA bucket of a GOES-R satellite ("G19" / 19 → noaa-goes19). |
download | function | Download one ABI object into the directory dest. |
list_files | function | List the ABI files whose scan starts in [start, end). |
parse_key | function | Parse an ABI object key (or bare file name). |
url | function | Public HTTPS URL of key in satellite’s bucket. |
geoproducts.goes.constants¶
| Name | Kind | What it does |
|---|---|---|
ACM_CLEAR | constant | 0 |
ACM_CLOUDY | constant | 3 |
ACM_PROBABLY_CLEAR | constant | 1 |
ACM_PROBABLY_CLOUDY | constant | 2 |
BCM_CLEAR | constant | 0 |
BCM_CLOUDY | constant | 1 |
CHANNELS | constant | ('C01', 'C02', 'C03', 'C04', 'C05', 'C06', 'C07', 'C08', ... |
DQF_CONDITIONALLY_USABLE | constant | 1 |
DQF_FILL | constant | 255 |
DQF_FLAGS | constant | {0: 'good', 1: 'conditionally_usable', 2: 'out_of_range',... |
DQF_FOCAL_PLANE_TEMPERATURE_EXCEEDED | constant | 4 |
DQF_GOOD | constant | 0 |
DQF_NO_VALUE | constant | 3 |
DQF_OUT_OF_RANGE | constant | 2 |
EMISSIVE_CHANNELS | constant | ('C07', 'C08', 'C09', 'C10', 'C11', 'C12', 'C13', 'C14', ... |
GOES_EAST_LON_DEG | constant | -75.2 |
GOES_WEST_LON_DEG | constant | -137.0 |
L2_DEFAULT_VARIABLES | constant | {'ACM': ('BCM', 'ACM'), 'FDC': ('Mask',), 'LST': ('LST',)... |
REFLECTIVE_CHANNELS | constant | ('C01', 'C02', 'C03', 'C04', 'C05', 'C06') |
SATELLITE_HEIGHT_M | constant | 35786023.0 |
SYNTHETIC_GREEN_WEIGHTS | constant | {'C02': 0.45, 'C03': 0.1, 'C01': 0.45} |
geoproducts.goes.l2¶
| Name | Kind | What it does |
|---|---|---|
product_code | function | The L2 product code of a file name: "ACM", "MCMIP", "ACHA2KM". |
geoproducts.goes.presets¶
| Name | Kind | What it does |
|---|---|---|
Recipe | function | A gz.viz.RGBRecipe for one of :data:goes.recipes.RECIPES. |
geoproducts.goes.recipes¶
| Name | Kind | What it does |
|---|---|---|
DAY_CLOUD_PHASE | constant | Recipe(name='day_cloud_phase', red='C13', green='C02', bl... |
FIRE_TEMPERATURE | constant | Recipe(name='fire_temperature', red='C07', green='C06', b... |
NATURAL_COLOR | constant | Recipe(name='natural_color', red='C05', green='C03', blue... |
RECIPES | constant | {'true_color': Recipe(name='true_color', red='C02', green... |
Recipe | class | One RGB recipe: per-channel expression, stretch and gamma. |
TRUE_COLOR | constant | Recipe(name='true_color', red='C02', green='0.45 * C02 + ... |
geoproducts.himawari¶
| Name | Kind | What it does |
|---|---|---|
BANDS | constant | ({'name': 'B01', 'band': '1', 'wavelength_um': '0.47', 'r... |
DayCloudPhase | function | Day cloud phase distinction (B13 BT, B03, B05). |
FireTemperature | function | Fire temperature (B07 BT, B06, B05). |
HSDHeader | class | The decoded header fields of one HSD segment. |
HybridGreen | function | The hybrid green band, (1 - f) · B02 + f · B04. |
L2Reader | class | NOAA AHI L2 full-disk cloud product reader: chosen variables as bands. |
MaskClouds | function | Cloud mask from the NOAA L2 cloud mask (CMSK), True = cloudy. |
NDVI | function | NDVI from AHI reflectance: red="B03", nir="B04". |
NaturalColor | function | Day land cloud “natural colour” (B05, B04, B03). |
ParallaxCorrect | function | Geostationary parallax correction from the Himawari viewpoint (140.7°E). |
Reader | class | Himawari-8 / -9 AHI L1b reader (one band, one scan, any segments). |
TrueColor | function | True colour (B03, hybrid green, B01), gamma 2.2. Reads B01-B04. |
read_header | function | Decode the header of an HSD segment (.DAT or .DAT.bz2). |
geoproducts.himawari.aws¶
| Name | Kind | What it does |
|---|---|---|
L2File | class | One NOAA AHI L2 object, with its file-name fields parsed. |
Sector | function | Re-exported from typing. |
Segment | class | One L1b HSD segment in a NOAA bucket, with its file-name fields parsed. |
bucket | function | The NOAA bucket of a Himawari satellite ("H09" / 9 → noaa-himawari9). |
download | function | Download one object into the directory dest. |
list_l2 | function | List NOAA AHI L2 full-disk files whose scan starts in [start, end). |
list_segments | function | List the L1b HSD segments of the 10-minute slots overlapping [start, end). |
parse_key | function | Parse an L1b segment or L2 object key (or bare file name). |
url | function | Public HTTPS URL of key in satellite’s bucket. |
geoproducts.himawari.constants¶
| Name | Kind | What it does |
|---|---|---|
CHANNELS | constant | ('B01', 'B02', 'B03', 'B04', 'B05', 'B06', 'B07', 'B08', ... |
CLOUD_MASK_BINARY_CLEAR | constant | 0 |
CLOUD_MASK_BINARY_CLOUDY | constant | 1 |
CLOUD_MASK_CLEAR | constant | 0 |
CLOUD_MASK_CLOUDY | constant | 3 |
CLOUD_MASK_PROBABLY_CLEAR | constant | 1 |
CLOUD_MASK_PROBABLY_CLOUDY | constant | 2 |
EARTH_SEMI_MAJOR_M | constant | 6378137.0 |
EARTH_SEMI_MINOR_M | constant | 6356752.3 |
EMISSIVE_CHANNELS | constant | ('B07', 'B08', 'B09', 'B10', 'B11', 'B12', 'B13', 'B14', ... |
FULL_DISK_GRIDS | constant | {0.5: (22000, 81865099, 11000.5), 1.0: (11000, 40932549, ... |
HIMAWARI_LON_DEG | constant | 140.7 |
HYBRID_GREEN_NIR_FRACTION | constant | 0.07 |
L2_DEFAULT_VARIABLES | constant | {'CMSK': ('CloudMaskBinary', 'CloudMask')} |
REFLECTIVE_CHANNELS | constant | ('B01', 'B02', 'B03', 'B04', 'B05', 'B06') |
SATELLITE_HEIGHT_M | constant | 35785863.0 |
geoproducts.himawari.l2¶
| Name | Kind | What it does |
|---|---|---|
full_disk_grid | function | The nominal AHI full-disk fixed grid at resolution_km. |
product_code | function | The product code of an AHI L2 file name: "CMSK", "CHGT", …. |
geoproducts.himawari.presets¶
| Name | Kind | What it does |
|---|---|---|
Recipe | function | A gz.viz.RGBRecipe for one of :data:himawari.recipes.RECIPES. |
geoproducts.himawari.recipes¶
| Name | Kind | What it does |
|---|---|---|
DAY_CLOUD_PHASE | constant | Recipe(name='day_cloud_phase', red='B13', green='B03', bl... |
FIRE_TEMPERATURE | constant | Recipe(name='fire_temperature', red='B07', green='B06', b... |
HYBRID_GREEN | constant | '0.93 * B02 + 0.07 * B04' |
NATURAL_COLOR | constant | Recipe(name='natural_color', red='B05', green='B04', blue... |
RECIPES | constant | {'true_color': Recipe(name='true_color', red='B03', green... |
TRUE_COLOR | constant | Recipe(name='true_color', red='B03', green='0.93 * B02 + ... |
geoproducts.toy_sensor¶
| Name | Kind | What it does |
|---|---|---|
BANDS | constant | ({'name': 'blue', 'index': '0', 'wavelength_nm': '469', '... |
CONSTANTS | constant | {'solar_irradiance': ({'band': 'blue', 'esun': '1997.0'},... |
NDVI | function | Return a toy-sensor NDVI operator configured with the reference band names. |
Reader | class | Toy reference reader implementing the sensor-reader contract. |
SwathReader | class | The toy sensor’s four bands in sensor geometry, read as a GeoSwath. |
geoproducts.toy_sensor.constants¶
| Name | Kind | What it does |
|---|---|---|
BAND_BLUE | constant | 'blue' |
BAND_GREEN | constant | 'green' |
BAND_NIR | constant | 'nir' |
BAND_RED | constant | 'red' |
geoarray (geotoolz-array)¶
geoarray¶
| Name | Kind | What it does |
|---|---|---|
AsyncRasterSource | class | RasterSource with coroutine reads, for sources behind a network. |
DIMS | constant | ('time', 'band', 'y', 'x') |
FrozenAttrs | class | An immutable, hashable mapping of string keys to frozen values. |
GeoArray | class | A georeferenced array whose data is a NumPy or a JAX array. |
GeoArrayAdapter | class | The pipekit_ops.NamedArrayAdapter for GeoArray. |
GeoArrayError | class | Base class of every error geoarray raises on its own account. |
GeoArrayTraceError | class | An operation needs concrete values but got JAX tracers. |
GeoPoints | class | Scattered samples on the obs dim: positions, optional z, time, valid. |
GeoPointsAdapter | class | The pipekit_ops.NamedArrayAdapter for GeoPoints: xy, z, time, valid match. |
GeoSwath | class | Data in sensor geometry: per-pixel lat/lon on the row col dims. |
GeoSwathAdapter | class | The pipekit_ops.NamedArrayAdapter for GeoSwath: lat/lon must match exactly. |
Grid | class | A pixel grid with no data: transform, CRS and spatial shape. |
GridMismatchError | class | Carriers that must share one pixel grid do not. |
LabelError | class | A selection by label that a carrier cannot do. |
PER_BAND_KEYS | constant | ('band_names', 'descriptions', 'bands', 'band_description... |
PixelWindow | class | A rectangle of pixels: col_off, row_off, width, height. |
RasterSource | class | A raster whose grid is known and whose pixels are read on demand. |
SPATIAL_DIMS | constant | ('y', 'x') |
X64Error | class | A JAX carrier needs jax_enable_x64: its transform is float64. |
as_crs | function | Coerce crs to a pyproj.CRS; None stays None. |
as_transform | function | Coerce a transform to a tuple of six Python floats (a, b, c, d, e, f). |
combine | function | Re-exported from pipekit_array. |
concat | function | Re-exported from pipekit_array. |
concatenate | function | Join carriers on one grid along an existing leading axis, by position. |
crop | function | The size pixels starting at offset, with the matching transform. |
footprint | function | The outline of the carrier’s grid as a shapely Polygon. |
isel | function | Re-exported from pipekit_array. |
map_over | function | Re-exported from pipekit_array. |
pad | function | Add fill pixels around the spatial axes; the transform moves with them. |
pad_points | function | points padded to n samples, with valid=False on the pad. |
pixel_coords | function | Map coordinates of every pixel, (2, H, W): x then y. |
read_window | function | The pixels of window, padding with fill where it leaves the array. |
sel | function | Re-exported from pipekit_array. |
stack | function | Stack carriers on one grid along a new dim. |
stack_items | function | Re-exported from pipekit_array. |
take_along | function | Re-exported from pipekit_array. |
to_dimarray | function | A carrier’s data, dims and labels as a pipekit_array.DimArray; no grid. |
to_geoswath | function | A cell-centred model field on a latitude-longitude grid as a GeoSwath. |
to_pixel | function | Re-exported from functax. |
transpose | function | Re-exported from pipekit_array. |
write_window | function | A copy of g with values written into window. |
geoarray.coords¶
| Name | Kind | What it does |
|---|---|---|
Coordinate | class | What a 1-D coordinate of a carrier dim provides. |
CurvilinearGrid | class | A model grid with fixed 2-D lat/lon (ORCA) on the row col dims. |
LabelAxis | class | Plain labels on a dim that has no coordinate type of its own. |
PixelGrid | class | An affine pixel grid on the y x dims: shape, CRS, pixel convention. |
PointAxis | class | Scattered samples on the obs dim: N and the CRS of their xy. |
SpectralAxis | class | Spectral channels on the band dim: names, wavelengths, FWHM. |
SwathGrid | class | A swath in sensor geometry on the row col dims: shape and CRS. |
TimeAxis | class | Shared acquisition times on the time dim. |
VariableAxis | class | Physical quantities on the variable dim: names and units. |
Vertical | class | What a vertical coordinate measures, in CF terms. |
VerticalAxis | class | Shared vertical levels on the level dim. |
coord_from_config | function | The coordinate a coord_to_config config describes. |
coord_to_config | function | A strict-JSON config of a carrier coordinate; coord_from_config inverts it. |
geoarray.interop.georeader¶
| Name | Kind | What it does |
|---|---|---|
from_georeader | function | A NumPy GeoArray from a georeader GeoTensor, sharing its memory. |
source_from_georeader | function | A georeader GeoData (or GeoTensor) as a RasterSource. |
source_to_georeader | function | A RasterSource as a georeader GeoData, for georeader’s functions. |
to_georeader | function | A georeader GeoTensor from a NumPy GeoArray, sharing its memory. |
geoarray.interop.xarray¶
| Name | Kind | What it does |
|---|---|---|
from_dataset | function | Each grid variable of a Dataset as a GeoArray, by name. |
from_datatree | function | Every node of a DataTree holding grids: node path → its carriers. |
from_xarray | function | A DataArray or a point Dataset as the matching geoarray carrier. |
to_dataset | function | Carriers on one grid as the variables of one Dataset (LL-F3). |
to_datatree | function | Several grids as one DataTree: one node per grid (LL-F3). |
to_xarray | function | A carrier as xarray: a DataArray (grid, swath) or a Dataset (points). |
geoarray.types¶
| Name | Kind | What it does |
|---|---|---|
DimsError | class | A carrier’s dims (or kind) do not fit the readable type a function declares. |
GeoImage | function | Re-exported from typing. |
GeoImageSeries | function | Re-exported from typing. |
GeoMap | function | Re-exported from typing. |
GeoMapSeries | function | Re-exported from typing. |
GeoPatches | function | Re-exported from typing. |
GeoProfiles | function | Re-exported from typing. |
GeoSwathImage | function | Re-exported from typing. |
GeoSwathProfile | function | Re-exported from typing. |
GeoTimeSeries | function | Re-exported from typing. |
GeoTracks | function | Re-exported from typing. |
GeoVolume | function | Re-exported from typing. |
Kind | class | What a kind reader says about a carrier. |
ReadableType | class | A name for a common carrier shape. |
check_dims | function | Check readable-type annotations at the call: arguments and the return. |
kind_of | function | The Kind of x, or None (a raw array, a DimArray). |
matches | function | Whether carrier x is a t: its kind, dims and required leaves. |
register_kind_reader | function | Register how carriers of carrier_type (and subclasses) read as a kind. |
Upstream: pipekit_ops¶
The composition framework every operator subclasses. Use these instead of writing your own control flow, caching, observation, QC, parallel map or serialisation; a carrier-agnostic need belongs upstream, not here.
| Name | Kind | What it does |
|---|---|---|
AssertCallable | class | Pass-through; raise QCError if predicate(x) is falsy. |
AssertDType | class | Pass-through; raise QCError if getattr(x, 'dtype') mismatches. |
AssertHasAttribute | class | Pass-through; raise QCError if attribute missing (or value mismatches). |
AssertShape | class | Pass-through; raise QCError if getattr(x, 'shape') mismatches. |
AssertSignature | class | Pass-through; raise QCError unless the carrier’s dims fit pattern. |
AssertThat | class | Pass-through; raise QCError if pred(x) is falsy. |
Assoc | class | Add a key whose value is computed from the whole dict (toolz assoc). |
AsyncMap | class | Apply op to each item of an iterable inside an async event loop. |
BackendError | class | Inputs on more than one backend, or a backend the code does not run on. |
BackendWarning | class | Data moved between NumPy and JAX inside guard("warn"). |
BatchedMap | class | Split an iterable into batches and call op on each batch as a list. |
Branch | class | Binary conditional: run if_true or if_false based on a predicate. |
Cache | class | Memoise an inner operator by hashing its input and the inner pipeline. |
Carrier | class | Re-exported from typing. |
CarryState | class | Base class for state threaded through a stateful pipeline. |
Coalesce | class | Try each source in order; return the first output that satisfies is_ok. |
Concat | class | Flatten exactly one level (toolz concat). |
ConfigMixin | class | Auto-derive get_config() from __init__ parameter names. |
Const | class | Return a fixed value, ignoring any input. |
ConvertingAdapter | class | An adapter that moves a whole carrier between NumPy and JAX (optional). |
Count | class | The number of items (toolz count). |
CountBy | class | Count items per key, in first-seen order (toolz countby). |
DirectoryStore | class | One file per key under root, written atomically. |
Dissoc | class | Drop some keys; missing keys are ignored (toolz dissoc). |
Failed | class | The slot of an item that failed under on_error="collect". |
Fanout | class | Apply each named operator to the same input; return a dict of outputs. |
Filter | class | Keep the items a predicate accepts (builtin filter). |
FittableTransformer | class | Anything with sklearn-style fit + transform methods. |
Fold | class | Associative fold over chunks, reduced in parallel through Map. |
Get | class | Index into a mapping or sequence (toolz get). |
GetIn | class | Walk a key path through nested containers (toolz get_in). |
Graph | class | A symbolic operator graph with multiple inputs and outputs. |
GroupBy | class | Group items by a key, in first-seen order (toolz groupby). |
Histogram | class | Controller that captures simple histograms by key. |
Identity | class | Explicit no-op. Returns its input unchanged. |
Input | class | A named entry point into a Graph. |
JitReport | class | The steps of a pipeline, in the order they run; printed one per line. |
JitStep | class | One step of a pipeline, and whether it runs under jax.jit. |
LabelledAdapter | class | An adapter that can set the labels of named dims (optional). |
Lambda | class | Wrap an arbitrary callable as an Operator. |
Log | class | Pass the carrier through and write one logging record per call. |
Map | class | Apply op to every item, on any executor, with a bounded window. |
MapError | class | Every failure of a Map(on_error="collect") run, with the partial results. |
Memoize | class | Memoise an inner operator by hashing its input and the inner pipeline. |
MemoryStore | class | A dict guarded by a lock: shared by the threads of one process. |
Merge | class | Union of several mappings; later inputs win (toolz merge). |
MissingAdapterError | class | A carrier from a known family arrived with no adapter registered. |
MissingValueAdapter | class | An adapter whose carriers mark missing elements in their data (optional). |
NamedArrayAdapter | class | What carrier-agnostic code needs from one carrier family. |
Node | class | A vertex in a Graph. |
Not | class | Negate a predicate; the operator form of complement. |
Operator | class | Base class for pipekit operators. |
PartitionAll | class | Split into tuples of n consecutive items (toolz partition_all). |
Pick | class | Keep only some keys, in the order given. |
Predictor | class | Anything with a sklearn-style predict method. |
Prefetch | class | Run op up to depth items ahead of the consumer, in input order. |
ProcessMap | class | Apply op to each item of an iterable using a process pool. |
Profile | class | Controller that records per-step wall-clock timings. |
QCError | class | Raised when a QC assertion fails. Subclass of AssertionError. |
Quarantine | class | Non-raising QC: on failure log and return sentinel; on success pass through. |
RateLimit | class | At most calls starts of op in any window of period seconds. |
Reduce | class | Left fold (functools.reduce), with the operator called on one pair. |
Remove | class | Drop the items a predicate accepts (toolz remove). |
Rename | class | Rename keys; unlisted keys pass through and the order is kept. |
Retry | class | Retry an operator on transient failures with exponential backoff. |
Sequential | class | Apply a list of operators in order, threading the output of each into the next. |
ShapeTrace | class | Log shape / dtype of each carrier passing through. |
Signature | class | Immutable shape + dtype record. |
Sink | class | Apply a side-effecting write and pass the input through unchanged. |
Snapshot | class | Controller that captures intermediate carriers by name. |
SortBy | class | A stable sort by key (builtin sorted). |
StatefulOperator | class | Marker base for operators whose _apply threads carry-state. |
Store | class | What Cache needs from a store: membership, load and save by key. |
Switch | class | Multi-way dispatch on key(carrier). |
Take | class | The first n items (toolz take), for dry runs. |
Tap | class | Fire a callback on the carrier; return the carrier unchanged. |
ThreadMap | class | Apply op to each item of an iterable using a thread pool. |
Timeout | class | Raise TimeoutError if op has not returned after seconds. |
Try | class | Run primary; on caught exceptions run fallback. |
Unique | class | The first occurrence of each item, or of each key (toolz unique). |
Until | class | Apply op until pred holds, at most max_iter times. |
UpdateIn | class | Replace the value at a key path by op(value) (toolz update_in). |
ValMap | class | Apply an operator to every value, keeping the keys (toolz valmap). |
Zip | class | Align several iterables into tuples (builtin zip), strict by default. |
allowed | function | Return the registered class names ("module.Class" keys). |
backend_name | function | "jax", "dask" or "numpy" for raw data (tracers count as JAX). |
backend_of | function | The backend of a carrier or a raw array; None for any other value. |
check_pickleable | function | Return the list of forbid_in_yaml-flagged operators inside op. |
complement | function | Return a predicate that negates predicate. |
compose | function | Right-to-left composition (mathematical order). |
compose_left | function | Left-to-right composition (pipeline order). |
compute_output_signature | function | Free-function dispatch to op.compute_output_signature. |
dumps | function | JSON-encode an operator’s state record. |
executor_scope | function | Bind the executor that Map(executor="scope") borrows inside the block. |
from_state_sandboxed | function | Build an operator tree from a state record, allowlisted classes only. |
get_adapter | function | The adapter for x’s type, or None for an unnamed value. |
guard | function | Report each move between NumPy and JAX inside the with block. |
guard_level | function | The level of the innermost guard; "off" outside any. |
import_optional | function | Import a module of an optional extra, or say what to install. |
is_concrete | function | Return whether no leaf of any value is traced, so that they can be compared. |
is_traced | function | Return whether x is, or is a pytree containing, a JAX tracer. |
jit_report | function | Try each step of op under a JAX trace, and say which ones work. |
juxt | function | Return a callable that applies each operator to its input and tuples the results. |
loads | function | Decode an operator from its JSON state record. |
loads_sandboxed | function | Like loads, but reject any class, at any depth, not in the allowlist. |
on_import | function | Call callback(module) once name is imported, without importing it. |
pipe | function | Apply operators left-to-right to value. |
pipeline_hash | function | Content hash of a pipeline’s whole configuration, and optional weights. |
register | function | Register cls as loadable via loads_sandboxed. |
register_adapter | function | Register adapter for carrier_type and its subclasses. |
register_lazy_adapter | function | Register loader for carrier types defined under module_prefix. |
report_move | function | Tell the guard that what moved data; called by the code that does. |
signature_of | function | x’s Signature if it is a registered carrier; x itself otherwise. |
store_scope | function | Bind store names to stores inside the block. |
to_backend | function | x with its NumPy and JAX arrays on one of the two backends. |
unregister | function | Remove cls from the sandboxed loader’s allowlist. |
unregister_adapter | function | Remove the adapter registered for exactly carrier_type, if any. |
upgrade_state | function | state with the module names of older releases renamed. |
Shared private toolkits¶
Not public API — the plumbing a package’s own families and readers share. Contributors use these instead of writing new helpers; a missing helper is added here, not inline in one caller.
geoops._src¶
| Module | Purpose | Helpers |
|---|---|---|
geoops._src.bands | Shared utilities for resolving band references against GeoArray metadata. | band_count, per_band_values, strip_band_attrs, take_band_coords, take_band_attrs, concat_band_attrs, band_names, resolve_band, resolve_bands, resolve_wavelengths |
geoops._src.blending | Shared overlap-add blending primitives. | triangular_weights, overlap_add, normalize_overlap_add |
geoops._src.config | Shared get_config() coercion helpers. | jsonable, as_tuple, mapping_to_pairs, mapping_from_pairs, reject_config_summary |
geoops._src.contract | The pipekit Operator and GeoArray carrier contracts, as assertions. | geoarrays, is_nested_operator, same, assert_keyword_only, assert_config_round_trips, assert_graph_mode, assert_same_carrier, assert_consistent_attrs, assert_fill_matches_dtype, assert_rejects_geotensor, assert_clear_rank_error, time_stack_of, time_series_of, frames, assert_time_stack, assert_backends |
geoops._src.coupling | Operator coupling: which dims an operator’s output reads across. | class_name, Coupling, reach_of, Measured, measure_coupling, measure_frames, assert_coupling |
geoops._src.dtype | Shared dtype primitives: float promotion and fills a dtype can hold. | as_float, holds_fill, fill_for |
geoops._src.engine | The georeader engine boundary: geotoolz carriers in, georeader out, and back. | to_engine, from_engine |
geoops._src.fitted | Shared plumbing for fitted operators (the fit / transform seam). | PicklableLock, fit_lock, fit_once, require_concrete |
geoops._src.geo | Shared georeferencing helpers. | is_georeader_object, reject_georeader, affine_of, as_pixel_window, require_geoarray, require_projected_crs, ground_pixel_size, grid_matches, require_grid_match, pixel_xy |
geoops._src.geotensor | Refusing a georeader GeoTensor, without importing georeader or geoarray. | is_geotensor, reject_geotensor |
geoops._src.kernels | Kernel operators: one element-wise L1 kernel, run on every carrier. | named, select_band, nodata_where, band_kernel, carrier_kernel, mask_kernel, pixel_kernel |
geoops._src.labels | Shared connected-component, hole, skeleton and region-property primitives. | connectivity_structure, label_components, remove_small_holes, skeleton_length, regionprops_frame |
geoops._src.optional | Lazy import of optional-extra dependencies with an actionable error. | optional_module, optional_root, optional_name |
geoops._src.samples | Shared pixel flattening: (c, h, w) cubes <-> (n, c) sample matrices. | SampleLayout, cube_to_samples, samples_to_cube, sample_layout |
geoops._src.scattered | functax for geoops: its import, float64 scope, IDW plan and compiled gap fill. | functax_module, x64, inverse_distance, fill_gaps_plane |
geoops._src.shape | Shared shape-normalisation primitives. | band_axis, band_dim, dim_axis, require_ndim, keep_band_axis, map_frames, over_frames, single_band, gather_inputs |
geoops._src.stretch | Shared percentile clip-and-stretch core. | check_percentiles, stretch_between, percentile_stretch |
geoops._src.valid | Shared notion of an invalid (nodata) pixel. | carrier_fill_value, is_fill, invalid_values, valid_pixels, mask_invalid_to_nan, restore_fill, carried_fill, wrap_filled, namespace_of, invalid_elements, fill_of, invalid_pixel_mask |
geoops._src.wrap | Carrier rewrap discipline shared by every operator family. | Inherit, rewrap_attrs, adopt_attrs, wrap_like, rewrap_dims |
geocatalog._src.utils¶
| Module | Purpose | Helpers |
|---|---|---|
geocatalog._src.utils.paths | Internal path resolution helpers for local paths and cloud URIs. | |
geocatalog._src.utils.retry | Retry helpers for transient remote I/O failures. | retry_transient_io |
geocatalog._src.utils.timeutil | Shared UTC / RFC 3339 time coercion helpers. | to_utc_ts, is_time_invariant, filename_interval, to_naive_utc, naive_utc_interval, naive_utc_datetimes, naive_utc_interval_index, to_rfc3339 |
geocatalog._src.utils.uri | One parser for paths and URIs. | ParsedURI, parse_uri, query_params, with_query |
geoproducts._src¶
| Module | Purpose | Helpers |
|---|---|---|
geoproducts._src.base | Shared reader primitives for sensor-specific modules. | ProductReader, resolve_fill_value |
geoproducts._src.carrier | Refuse georeader carriers at geoproducts’ public boundary. | reject_georeader, require_source |
geoproducts._src.constants | Shared lazy loaders for packaged sensor calibration data. | load_csv, load_json, band_values |
geoproducts._src.credentials | Credential storage shared by provider clients. | auth_path, read_json_config, jwt_expiry |
geoproducts._src.extras | Install hints for optional extras. | install_hint, missing_extra, require |
geoproducts._src.files | Atomic file writes shared by the product readers. | atomic_path, atomic_write_text, write_private_json |
geoproducts._src.geostationary | The geostationary fixed grid shared by geostationary imagers. | geos_crs, scan_angle_transform, FixedGrid |
geoproducts._src.hdf | CF-packed NetCDF-4 / HDF5 product readers, on geotoolz-cloud’s decoders. | PackedGridReader |
geoproducts._src.net | HTTP plumbing shared by every product reader. | backoff_seconds, retry_after_seconds, retrying, stream_to_file, bearer_headers_for |
geoproducts._src.presets | Shared building blocks of the per-product geotoolz presets. | Recipe, geotoolz_module, rgb_recipe, parallax_correct |
geoproducts._src.query | Query-parameter helpers shared by provider clients: bounding boxes and times. | validate_lonlat_bbox, as_utc, rfc3339_utc, time_interval |
geoproducts._src.s3 | Anonymous access to public S3 buckets, through geocloud.files. | object_url, list_objects, download_object |
geoproducts._src.stack | Put several readers on one grid. | stack |