stac_estimate_size
Check estimated download size for scene bands before large downloads. Reads COG headers to determine dimensions and estimated file size without reading pixel data.
Instructions
Estimate download size for bands from a scene (no pixel data read).
Reads only COG headers to determine dimensions, dtype, and estimated file size. Use this before large downloads to understand how much data will be transferred.
Args: scene_id: Scene identifier from a previous search bands: Band names to estimate (e.g., ["red", "green", "blue", "nir"]) bbox: Optional crop bbox in EPSG:4326 [west, south, east, north] output_mode: Response format - "json" (default) or "text"
Returns: JSON with per-band size details and total estimate
Tips for LLMs: - Call this BEFORE large downloads to check feasibility - If estimated_mb > 500, suggest a smaller bbox or fewer bands - No pixel data is read — only COG headers, so this is very fast - Use the per-band breakdown to see which bands are largest (e.g., 10m bands are ~4x larger than 20m bands) - Useful for planning stac_mosaic or stac_temporal_composite where multiple scenes multiply the total data volume
Example: estimate = await stac_estimate_size( scene_id="S2B_...", bands=["red", "nir"], bbox=[0.85, 51.85, 0.95, 51.92] )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| bands | Yes | ||
| scene_id | Yes | ||
| output_mode | No | json |