Skip to contents

Drops every other asset from each item – fewer assets to carry through the pipeline, and fewer to sign. Apply it BEFORE stac_sign_mpc() so only the assets you keep get a token (MPC returns every band plus thumbnails and rendered previews). Items left with none of the requested assets are dropped. Polymorphic: a STAC doc_items or a stac_sources() table.

Usage

stac_filter_assets(sources, assets)

Arguments

sources

A STAC doc_items or a stac_sources() data frame.

assets

Asset names to keep.

Value

The filtered doc_items / data frame.