Skip to content

Commit 69f298c

Browse files
author
roberto_esaclear
committed
feat: add example usage for CopernicusDataSearcher with parameters for searching Sentinel data
1 parent 0a4abbe commit 69f298c

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

readme.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,34 @@ Effortlessly manage, search, and download Earth Observation data with **Φ-Down*
3131
- Download Sentinel products using the S3 protocol.
3232

3333

34+
Here's a quick example of how to use Φ-Down to search and download Sentinel data:
35+
36+
```python
37+
from phidown.search import CopernicusDataSearcher
38+
# You can modify these parameters as needed
39+
40+
searcher = CopernicusDataSearcher(
41+
collection_name='SENTINEL-1',
42+
product_type='SLC',
43+
orbit_direction=None,
44+
cloud_cover_threshold=None,
45+
aoi_wkt=None,
46+
start_date='2023-05-03T00:00:00.000Z',
47+
end_date='2024-05-03T04:00:00.000Z',
48+
top=1000,
49+
# attributes={'swathIdentifier': 'WV1,WV2'}, # Swath identifier
50+
attributes={'swathIdentifier': 'S1'}, # Swath identifier Stripmap: S1, ..., S6
51+
)
52+
53+
df = searcher.execute_query()
54+
print(f"Number of results: {len(df)}")
55+
# Display the first few rows of the DataFrame
56+
searcher.display_results(top_n=15)
57+
```
58+
59+
For more advanced use cases, including searching with geographical filters and batch downloading, see the [usage notebook](./how_to_start.ipynb).
60+
61+
3462
## Credentials
3563

3664
> Important:

0 commit comments

Comments
 (0)