Returned by `M2MSession$dataset()`. Holds a dataset's metadata and is the starting point for a scene search. Not created directly.
Methods
M2MDataset$new()
Wrap dataset metadata. Use `M2MSession$dataset()` instead.
Usage
M2MDataset$new(session, info)M2MDataset$filters()
Metadata filter fields available for this dataset. Each row's `id` is the `filterId` used when building a metadata filter to pass to `$search(metadata = )`.
M2MDataset$search()
Search this dataset for scenes. All filters are optional; with none supplied every scene in the dataset matches.
Usage
M2MDataset$search(
spatial = NULL,
temporal = NULL,
cloud = NULL,
metadata = NULL,
max_results = NULL
)Arguments
spatialA spatial filter, see [filter_spatial()].
temporalA temporal filter, see [filter_temporal()].
cloudA cloud cover filter, see [filter_cloud()].
metadataA metadata filter built from `$filters()` field ids.
max_resultsMaximum number of scenes to return. If `NULL` (the default) all matching scenes are retrieved by paging through results.
M2MDataset$related_scenes()
Find the scenes related to a given scene, via the `scene-search-secondary` endpoint.
Only datasets that define a secondary relationship support this; others raise an `m2m_error` with code `DATASET_ERROR`. The related scenes belong to a different dataset, so the returned search is bound to that dataset rather than this one - meaning `$products()` on the result acts on the correct dataset.