Skip to main content

A package to fetch sentinel 2 Satellite data from Google.

Project description

Sentinel 2 Data Fetcher

pypi

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.)

    The download uses gsutil so if there is no gsutil configuration (.boto) in your home directory, gsutil config will be called to generate one. Gsutil config asks the user for a token and a project id.

    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

sat-mapping-cyborg-ai-0.0.37.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl (5.3 MB view details)

Uploaded Python 3

File details

Details for the file sat-mapping-cyborg-ai-0.0.37.tar.gz.

File metadata

  • Download URL: sat-mapping-cyborg-ai-0.0.37.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for sat-mapping-cyborg-ai-0.0.37.tar.gz
Algorithm Hash digest
SHA256 aeb12310ca8201ff40c2e77f4c716400b6c9fe32797fd5e45064bfa5345f5d39
MD5 e5cfc3d7b6c5f6c06b4a2f012a3e94b4
BLAKE2b-256 55a7cecdbb021837b6c688deb0d6d5b6cb87f1724c16f520654b611a62ddb6dc

See more details on using hashes here.

File details

Details for the file sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl.

File metadata

  • Download URL: sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 1481b63d8fb43b707c67e172db50babb6809046d31eb1b012fd15931061f14a2
MD5 031b533a7d5b8c1f2868f30bea9d05da
BLAKE2b-256 dc16b4b63dfbfb08c6b64254b8bb6318ec349fb499a107fa6ec31e8124e0276d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page