stac_download_rgb
Download a true-color RGB composite from a STAC scene for visual satellite imagery. Automatically selects red, green, blue bands, with options for cropping, cloud masking, and output format.
Instructions
Download a true-color RGB composite from a scene.
Convenience wrapper around stac_download_bands that automatically selects red, green, blue bands. This is the simplest way to get a visual satellite image.
Args: scene_id: Scene identifier from a previous stac_search call bbox: Optional crop bbox in EPSG:4326 [west, south, east, north]. Strongly recommended to avoid downloading full tiles output_format: "geotiff" (default, lossless) or "png" (8-bit lossy, suitable for inline display by LLMs) cloud_mask: Apply SCL-based cloud masking (Sentinel-2 only) output_mode: Response format - "json" (default) or "text"
Returns: JSON with artifact_ref for the RGB composite
Tips for LLMs: - Use output_format="png" when the user wants to see the image — PNG can be rendered inline - GeoTIFF preserves full 16-bit precision but cannot be displayed inline - For false-color composites (e.g., NIR/Red/Green), use stac_download_composite instead - Only works for optical collections (Sentinel-2, Landsat) that have red, green, blue bands
Example: rgb = await stac_download_rgb(scene_id="S2B_...", output_format="png")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| scene_id | Yes | ||
| cloud_mask | No | ||
| output_mode | No | json | |
| output_format | No | geotiff |