Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/developmentseed/sentinel-s3
Python libraries for extracting Sentinel-2's metadata from Amazon S3
https://github.com/developmentseed/sentinel-s3
Last synced: 3 months ago
JSON representation
Python libraries for extracting Sentinel-2's metadata from Amazon S3
- Host: GitHub
- URL: https://github.com/developmentseed/sentinel-s3
- Owner: developmentseed
- License: cc0-1.0
- Created: 2016-03-17T18:44:17.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2019-10-22T23:56:06.000Z (about 5 years ago)
- Last Synced: 2024-07-15T22:06:22.894Z (4 months ago)
- Language: Python
- Size: 1.08 MB
- Stars: 12
- Watchers: 46
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-earthobservation-code - Sentinel-s3 - `Python` libraries for extracting Sentinel-2's metadata from Amazon S3 (`Python` processing of optical imagery (non deep learning) / Cloud Native Geospatial)
README
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
.. code:: python
import logging
from datetime import date
from sentinel_s3 import range_metadatadef 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
.. code:: python
import logging
from datetime import date
from sentinel_s3 import single_metadatadef 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)
.. |Build Status| image:: https://travis-ci.org/developmentseed/sentinel-s3.svg?branch=master
:target: https://travis-ci.org/developmentseed/sentinel-s3