Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

geotoolz-products

Every Earth-observation product, read as a geoarray.GeoArray. One reader per mission or provider, each a lazy geoarray.RasterSource; what comes out is what every geotoolz operator and geopatcher field takes — imported as geoproducts.

Where it comes from

Every mission ships its own format, band names and calibration tables. Provider APIs add their own authentication and catalogue quirks. When that churn leaks into analysis code, each notebook carries its own copy of the decoder, and a format change breaks all of them.

geoproducts keeps the churn in one place: one namespace per product, each with a reader that hides its format. Every reader is a ProductReader — a geoarray.RasterSource with a lazy windowed read, named bands and calibrated values, whose reads return a GeoArray. The package never depends on the operator library: readers release on their own schedule, and their output drops straight into the operators and the patcher. georeader is only the engine inside (map-coordinate windows, reprojection); no GeoTensor crosses the public API.

geoproducts: one namespace per product (Reader, bucket or API helpers, BANDS, recipes, presets), built on a shared toolkit and the ProductReader contract, produces GeoArrays for geoops operators and geopatcher fields

Install

pip install geotoolz-products                    # readers (geoarray; georeader as the engine)
pip install 'geotoolz-products[goes]'            # GOES-R ABI reader + goes.aws
pip install 'geotoolz-products[himawari]'        # Himawari L2 products + himawari.aws
pip install 'geotoolz-products[carbonmapper]'    # Carbon Mapper plume catalogue + STAC
pip install 'geotoolz-products[operators]'       # sensor presets (geotoolz operators)
ExtraPulls inNeeded for
(base)geotoolz-array, georeader, numpy, rasterioProductReader, stack, toy_sensor, himawari.Reader (HSD), the recipes tables
[goes]geotoolz-cloud with h5pygoes.Reader, goes.L2Reader (local or s3://, ranged reads) and the goes.aws bucket helpers
[himawari]geotoolz-cloud with h5pyhimawari.L2Reader and the himawari.aws bucket helpers
[carbonmapper]requests, pydantic, shapely, geopandas, pandasgeoproducts.carbonmapper
[operators]geotoolzevery sensor’s presets (RGB recipes, NDVI, cloud masks, parallax)

Quickstart

toy_sensor is the in-memory reference reader. It exercises the whole ProductReader contract and runs offline.

import numpy as np
from geoarray import GeoArray, PixelWindow

from geoproducts import ProductReader, toy_sensor

data: np.ndarray = np.random.default_rng(0).random((4, 256, 256), dtype=np.float32)  # (4, 256, 256) float32
reader: ProductReader = toy_sensor.Reader("scene", data=data)    # lazy · EPSG:4326

window = PixelWindow(col_off=0, row_off=0, width=64, height=64)
chip: GeoArray = reader.read_window(window)                      # (4, 64, 64) float32
names: tuple[str, ...] = chip.attrs["band_names"]                # ('blue', 'green', 'red', 'nir')
scene: GeoArray = reader.load()                                  # (4, 256, 256) float32

Because chip names its bands, geotoolz operators resolve them by name: gz.NDVI(nir="nir", red="red")(chip) gives (64, 64) float32. Because reader is a geoarray.RasterSource, geopatcher tiles it window by window without loading the scene.

Sensors

SensorProductsExtraData source
GOES-R ABI (GOES-16 … 19)L1b radiances, every L2 product, RGB recipes[goes]NOAA noaa-goes16 … noaa-goes19 (public S3)
Himawari AHI (Himawari-8 / 9)L1b HSD segments, NOAA L2 cloud products, RGB recipesnone (HSD) · [himawari] (L2, buckets)NOAA noaa-himawari8 / noaa-himawari9 (public S3)
Carbon Mapperplume and source catalogue, L3A plume and L2B scene rasters[carbonmapper]Carbon Mapper REST + STAC API (account)
toy_sensorin-memory reference readernone—

What’s inside

NamespaceUse it to…Guide
geoproducts.ProductReaderbuild a reader: a geoarray.RasterSourceConcepts
geoproducts.stackput several readers’ bands on one gridConcepts
geoproducts.goesread GOES-R ABI L1b and L2, find files on NOAA’s bucketsGOES-R ABI
geoproducts.himawariread Himawari AHI HSD segments and L2 cloud productsHimawari AHI
geoproducts.carbonmapperquery Carbon Mapper plumes and sources, read their rastersCarbon Mapper
geoproducts.toy_sensorsee the contract in the smallest readerAdd a product reader

Next steps