sentinel_3
Sentinel3Search #
Sentinel3Search(
collection: PlanetaryComputerS3Collection | str = OLCI_WFR,
date_range: DateLike = None,
bbox: BBoxLike | None = None,
intersects: IntersectsLike | None = None,
logger: Logger = LOGGER,
)
Bases: AbstractStacWrapper
Executable wrapper for Sentinel-3 OLCI data on Planetary Computer.
Implements a fluent builder pattern to construct STAC queries.
Execution and result storage are delegated to an underlying StacSearch client
via proxy properties.
Initialize Sentinel3Search.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collection
|
PlanetaryComputerS3Collection | str
|
The Sentinel-3 STAC collection (default: sentinel-3-olci-wfr-l2-netcdf). |
OLCI_WFR
|
date_range
|
DateLike
|
Temporal filter, native pystac DateLike. |
None
|
bbox
|
BBoxLike | None
|
Spatial bounding box filter. |
None
|
intersects
|
IntersectsLike | None
|
Spatial GeoJSON geometry filter. |
None
|
logger
|
Logger
|
Custom logger instance. |
LOGGER
|
Source code in src/geospatial_tools/stac/planetary_computer/sentinel_3.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
search_results
property
#
search_results: list[Item] | None
Proxy property for STAC search results from the underlying client.
downloaded_assets
property
#
downloaded_assets: list[Asset] | None
Proxy property for downloaded assets from the underlying client.
filter_by_orbit_state #
filter_by_orbit_state(
states: list[PlanetaryComputerS3OrbitState] | PlanetaryComputerS3OrbitState,
) -> Self
Filter products by orbit state (ascending or descending).
Invalidates current search results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
states
|
list[PlanetaryComputerS3OrbitState] | PlanetaryComputerS3OrbitState
|
Single state or list of |
required |
Returns:
| Type | Description |
|---|---|
Self
|
The instance itself (Self) for fluent chaining. |
Source code in src/geospatial_tools/stac/planetary_computer/sentinel_3.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
download #
download(
bands: list[PlanetaryComputerS3Band | str], base_directory: str | Path
) -> list[Asset] | None
Download Sentinel-3 assets with lowercase band key normalization.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bands
|
list[PlanetaryComputerS3Band | str]
|
List of bands to download. |
required |
base_directory
|
str | Path
|
Local directory where assets will be saved. |
required |
Returns:
| Type | Description |
|---|---|
list[Asset] | None
|
List of downloaded Asset objects. |
Source code in src/geospatial_tools/stac/planetary_computer/sentinel_3.py
90 91 92 93 94 95 96 97 98 99 100 101 102 | |
with_custom_query #
with_custom_query(query_params: dict[str, Any]) -> Self
Merge custom STAC query parameters and invalidate current state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query_params
|
dict[str, Any]
|
Dictionary of custom STAC query parameters. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
The instance itself (Self) for fluent chaining. |
Source code in src/geospatial_tools/stac/core.py
939 940 941 942 943 944 945 946 947 948 949 950 951 | |
search #
search() -> list[Item] | None
Execute the STAC search using the built query and parameters.
Returns:
| Type | Description |
|---|---|
list[Item] | None
|
List of matched pystac Items, or None if no results. |
Source code in src/geospatial_tools/stac/core.py
953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 | |