Documentation Index
Fetch the complete documentation index at: https://mintlify.com/terrafloww/rasteret/llms.txt
Use this file to discover all available pages before exploring further.
Method Signature
This integration requires
torchgeo and its dependencies.Parameters
Band codes to load (e.g.
["B04", "B03", "B02"]).Spatial extent of each chip in pixels.
If
True, return chips as sample["image"]. If False, return chips as sample["mask"] (single-band data will have its channel dimension squeezed to match TorchGeo RasterDataset behavior).If
True, Rasteret will resample bands to the dataset grid when requested bands have different resolutions. This is opt-in because it may change pixel values and can be slow.Filter to the given split(s) before creating the dataset (e.g.
"train", ["train", "val"]).Column holding split labels.
Column name to include as
sample["label"].Spatial extent for the dataset. Accepts
(minx, miny, maxx, maxy) bbox tuples, Arrow arrays (e.g. from GeoParquet), Shapely objects, raw WKB bytes, or GeoJSON dicts.EPSG code for the
geometries parameter.TorchGeo-compatible transforms applied to each sample.
Maximum concurrent HTTP requests.
Cloud configuration for URL rewriting.
Pluggable I/O backend (e.g.
ObstoreBackend). See create_backend().When
True, stack all timesteps as [T, C, H, W].Reproject all records to this EPSG code at read time.
Returns
A standard TorchGeo
GeoDataset. Pixel data is in the native COG dtype (e.g. uint16 for Sentinel-2).Examples
Basic Training Dataset
With Data Augmentation
Semantic Segmentation
With Label Field
Time Series Mode
Multi-Resolution Bands
Sample Structure
Each sample is a dictionary with:label_field is specified:
Notes
- Data is in native COG dtype (typically
uint16for Sentinel-2) - Compatible with all TorchGeo samplers and datasets
- Use
is_image=Falsefor mask/label datasets to match TorchGeo conventions - Set
allow_resample=Truewhen working with multi-resolution sensors - Supports train/val/test splits via the
splitparameter