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.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89fda5c6b32aa9f73cd76116845f0373e3f57b2369bf36579058742e41f20ed8 |
|
MD5 | 8219654d6eed115b9a1ae3194eb458ea |
|
BLAKE2b-256 | 851c81c23b97a934196f231c96e957d42c771c0a76032f41e8552f0f1f5182c1 |
Close
Hashes for sat_mapping_cyborg_ai-0.0.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19b667ce672e3740febdc77c81f057bd2f2fa806a86b6e18c2948337b125201d |
|
MD5 | 154b2be8ab658c58a61acb1c973a7945 |
|
BLAKE2b-256 | 6ac63c3e38fd3840ecdea0f93e7ba628e42f1ec66a6e2fc6eb9cd48c5a3463b1 |