Metadata-Version: 2.4
Name: sen2p
Version: 0.0.1
Summary: Download Sentinel-2 data from Microsoft Planetary Computer
Home-page: https://github.com/tnmthai/sen2p
Author: Thai Tran
Author-email: ThaiTran@outlook.co.nz
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: planetary-computer
Requires-Dist: pystac-client
Requires-Dist: rioxarray
Requires-Dist: xarray
Requires-Dist: tqdm
Requires-Dist: geopandas
Requires-Dist: shapely
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Sentinel Downloader

This Python library allows you to download Sentinel-2 data from Microsoft Planetary Computer.

## Installation

```bash
pip install -e .
```

## Usage

```python
from sen2p import download

location = [172.1, -43.5]

results = download(
    start_date="2023-06-01",
    end_date="2023-06-10",
    location=location,
    bands=["B02", "B03", "B04"],
    output_dir="test_outputs",
    merge_bands=True,
    max_items=3  # download up to 3 images
)

for r in results:
    print("Downloaded:", r)
```
```python
from sen2p import download

# Path to your shapefile
shapefile_path = "Site.shp"  # Update with your actual shapefile path

# Call the function
results = download(
    start_date="2023-06-01",
    end_date="2023-06-30",
    location=shapefile_path,
    bands=["B02", "B03", "B04"],
    output_dir="test_output",
    merge_bands=True,
    max_items=5  # Download up to 5 matching images
)
```
