eodal.metadata.sentinel1.database.querying module¶
Functions to query Sentinel-1 specific metadata from the metadata DB.
Query criteria include
the acquisition period (between a start and an end date)
the geographic extent (bounding box)
the instrument mode (e.g., IW -> Interferometric Wide Swath)
the product type (e.g., GRD -> Ground Range Detected)
Copyright (C) 2022 Lukas Valentin Graf
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
- eodal.metadata.sentinel1.database.querying.find_raw_data_by_bbox(date_start: date, date_end: date, bounding_box: Polygon | str, product_type: str | None = 'GRD', sensor_mode: str | None = 'IW') DataFrame[source]¶
Queries the metadata DB by Sentinel-1 bounding box, time period, product type, and sensor mode. The returned data is ordered by sensing time in ascending order.
Note
For the spatial query
ST_Intersectsis called.- Parameters:
date_start – start date of the time period
date_end – end date of the time period
bounding_box – bounding box either as extended well-known text in geographic coordinates or as shapely
Polygonin geographic coordinates (WGS84)product_type – Sentinel-1 product type. ‘GRD’ (Ground Range Detected) by default.
sensor_mode – Sentinel-1 sensor mode. ‘IW’ (Interferometric Wide Swath) by default.
- Returns:
DataFrame with references to found Sentinel-2 mapper
- eodal.metadata.sentinel1.database.querying.get_scene_metadata(product_uri: str) DataFrame[source]¶
Returns the complete metadata record of a Sentinel-1 scene
- Parameters:
product_uri – unique product identifier. This corresponds to the .SAFE name of a Sentinel-1 dataset
- Returns:
DataFramewith complete scene metadata