Skip to main content

sentinel-s3

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

Generating metadata for a date range

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)

Generating metadata for a single product

import logging
from datetime import date
from sentinel_s3 import single_metadata


def main():

    product = 'S2A_OPER_PRD_MSIL1C_PDMC_20160311T194734_R031_V20160311T011614_20160311T011614'
    return single_metadata(product, '.')


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)

Metadata

Release files for sentinel-s3 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentinel-s3 0.8.0
File Size Uploaded Provenance Actions
sentinel-s3-0.8.0.tar.gz 7.6 kB Without provenance Details for sentinel-s3-0.8.0.tar.gz

Release files / sentinel-s3-0.8.0.tar.gz

Download URL sentinel-s3-0.8.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
72fe07dd8c06d5413cf25527b5be4a09bac197216057444d95b344d159485e34
BLAKE2b-256 checksum
How to use checksums
76ba51d6a8cb468b914526345eb244212c6078163f6e05f0785cc16e6f77c4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sentinel-s3 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page