-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
90 lines (63 loc) · 4.77 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
from setuptools import setup, find_packages
DESCRIPTION='Download spatio-temporally aligned satellite imagery with inter-band data augmentation based on hash encryption ',
LONG_DESCRIPTION = """
# *Satellite-extractor*: Access Satellite Imagery with Geographical and Temporal Control
*Satellite Extractor provides users with the capability to retrieve satellite imagery for specific geographical coordinates and predefined timestamps. While it offers a powerful tool for accessing remote sensing data, it's important to note that the quality of the images may not always be perfect due to potential cloud interference, which users may need to filter or process as necessary.*.
**Sentinelhub grant**: Sponsoring request ID 1c081a: Towards a Smart Eco-epidemiological Model of Dengue in Colombia using Satellite in Collaboration with [MIT Critical Data Colombia](https://github.com/MITCriticalData-Colombia).
*Project supported by ESA Network of Resources Initiative*
- Find the full open-opensource datasets in HuggingFace: [Link](https://huggingface.co/MITCriticalData)
- Find a short overview of this project [here]([Satellite extractor](https://eo4society.esa.int/wp-content/uploads/2023/06/towards-a-smart-eco-epidemiological-model-of-dengue-in-colombia-using-satellite.pdf))
<p align="left">
<a href="https://www.python.org/">
<img src="https://img.shields.io/badge/Python-3.8-ff69b4.svg" /></a>
<a href= "https://pytorch.org/">
<img src="https://img.shields.io/badge/PyTorch-1.8-2BAF2B.svg" /></a>
<a href= "https://github.com/sebasmos/vector-borne-satellite-predictor/blob/main/LICENCE">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" /></a>
</p>
<hr/>
**About this project**: In this work, we introduce a data collection and processing framework to extract Sentinel-2 satellite 1 based on modified Copernicus Sentinel data. Satellite images of the ten cities are extracted from sentinel 2 through the SentinelHub API using a scalable dockerized framework that orchestrates Google Earth Engine (GEE) to generate regions of interest (ROI), which are afterwards used to download images. The framework also proposes a recursive noise artifact removal algorithm that reduces camera capturing noise generated by Sentinel 2-L1C orbit transit per week.
## Installation
```
pip install satellite-extractor==0.7
```
Find in Pypi: https://pypi.org/project/satellite-extractor/
## Credentials
1. **Credentials for GCP**: Please follow the instructions as explained [here](https://developers.google.com/earth-engine/guides/service_account#use-a-service-account-with-a-private-key) and add update your credentials as follows.
1. Inside of `src/satellite-extractor-dockerized/config.py`, update `service_account` with your new service account.
1. Store the GCP json key inside of `src/satellite-extractor-dockerized/data_config`
1. **Credentials for SentinelHub**: The best of this project is that you can download data for free using the Free Tier from SentinelHub. Follow the instructions to create your username and password [here](https://docs.sentinel-hub.com/api/latest/api/overview/authentication/). Please remember it is a free trial, access is limited!
## Docker pipeline
If you want to download data using docker, please update the [config file](https://github.com/sebasmos/satellite.extractor/blob/main/src/satellite-extractor-dockerized/config.py) as desired and follow the next commands.
```
docker build -f Dockerfile -t docker .
```
Run with syncronized volume:
```
docker run -v /home/sebasmos/Desktop/satellite.extractor/src/satellite-extractor-dockerized:/Dengue -ti docker /bin/bash
```
Finally, run `python satellite.extractor.py` to download the satellites as customized.
## Use cases:
1. [Read GCP bucket to Google Colab](https://github.com/sebasmos/satellite.extractor/blob/main/notebooks/Reading_GCP_from_Colab.ipynb)
1. [Download satellite data for 5 cities](https://github.com/sebasmos/satellite.extractor/blob/main/notebooks/downloader_sentinel_5_cities.ipynb)
1. [Download satellite data for 1024 cities](https://github.com/sebasmos/satellite.extractor/blob/main/notebooks/downloader_sentinel_all_cities.ipynb)
## Contributions
Feel free to contact me if want to collaborate on this project.
"""
setup(name='satellite_extractor',
version='0.7',
description=DESCRIPTION,
author = "Sebastian Cajas",
license='MIT',
email = "[email protected]",
zip_safe=False,
long_description=LONG_DESCRIPTION,
packages=find_packages(),
long_description_content_type='text/markdown', # or 'text/markdown'
classifiers= [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
'License :: OSI Approved :: MIT License',
"Programming Language :: Python :: 3",
]
)