Skip to main content

Python libraries for extracting Sentinel-2's metadata from Amazon S3

Project description

Build Status

This packages includes a few functions that facilitates extraction of Sentinel-2’s metadata from Amazon S3.

Installation

$ pip install sentinel-s3

or

$ python setup.py install

Tests

$ python setup.py test

Example

import logging
from datetime import date
from sentinel_s3 import range_metadata


def main():

    start_date = date(2016, 2, 1)
    end_date = date(2016, 3, 22)

    return range_metadata(start_date, end_date, '.', 20)


if __name__ == '__main__':
    logger = logging.getLogger('sentinel.meta.s3')
    logger.setLevel(logging.DEBUG)

    ch = logging.StreamHandler()
    ch.setLevel(logging.INFO)
    formatter = logging.Formatter('%(message)s')
    ch.setFormatter(formatter)
    logger.addHandler(ch)

    result = main()

    print(result)

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

sentinel-s3-0.4.0.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file sentinel-s3-0.4.0.tar.gz.

File metadata

  • Download URL: sentinel-s3-0.4.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sentinel-s3-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d8c7dc2cea150bd0a39726082f818cd6b62b2a6fde71312b052082a1f5abd075
MD5 8a931a02d82b07c9b54584f4ea486254
BLAKE2b-256 695ab8cd42e610b307af32ec02f99e1088376d7b6be2fb46e1910e1f4f49b121

See more details on using hashes here.

Supported by

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