A package to fetch sentinel 2 Satellite data from Google.
Project description
Sentinel 2 Data Fetcher
Installation
-
Create a Virtual Environment and activate it.
python3 -m venv venv . venv/bin/activate
-
Install the Package via pip.
pip install sat-mapping-cyborg-ai
Usage
-
Import the Library
from sat_mapping import FolderData, folders_time_frame, Paths, download
-
Set the Path to where you want to store the Satellite Data.
paths = Paths("<ANY/VALID/PATH>")
-
Start the Download. (Note: One year needs around 110 GB Disk Space.)
download(paths, years=[2019], tiles=["32TMT"], months=[7])
-
Load a folder.
folder_name = paths.folders[0] upper_left = (100000.0, 0.0) # Postion on tile in [m] lower_right = (109800.0, 10000.0) # Postion on tile in [m] data = FolderData(join(paths.data_path, folder_name), upper_left, lower_right)
-
Display the image. (if matplotlib is not installed use
pip install matplotlib
)import matplotlib.pyplot as plt picture = data.data[:, :, [3, 1, 2]] # NIR, GREEN, BLUE fig: plt.Figure = plt.figure() plt.imshow(picture) plt.show()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sat-mapping-cyborg-ai-0.0.35.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 590f4638b71d2542be759311b6c1eee5ed144033d3e80855b04a9e1806b514b3 |
|
MD5 | ea8e8d800b81d64ef14f76e54ee714c9 |
|
BLAKE2b-256 | d62b6d3a56944ac5494a1ba390c0e7259943a078f2a2bbd0c637bdd7da225586 |
Close
Hashes for sat_mapping_cyborg_ai-0.0.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7825eabb45b1d6eeb4ce6eb95e0991a1dca66003fe892bd573f244830265810 |
|
MD5 | 02d6d98d29224f81b735ddcb36826b8b |
|
BLAKE2b-256 | 1b161cb8feacb4b37fc9fc2fa20a36b760e89231c628be8f6f1b311d587f1d64 |