Skip to main content

fetch.fetch_planet

fetch.fetch_planet(
    mission,
    bands,
    time_range,
    roi,
    resolution=3,
    save_folder='data',
    max_cloud_coverage=0.1,
    poll_seconds=15,
    max_wait_seconds=3600,
    grid=None,
)

PlanetScope via the Planet Data + Orders APIs (requires PL_API_KEY).

Submits a server-side clip-to-AOI order for the single lowest-cloud-cover scene matching the requested AOI / time / instrument, polls until success, downloads the analytic-SR COG + UDM2 raster, and writes a multi-band _full_size.tiff on a common UTM grid – with the same band-description convention and userdata.json sidecar the rest of the pipeline expects.

resolution defaults to 3 m (PlanetScope’s native ground sampling).