Skip to main content

Satellite Products Metadata Parser

Project description

spmp LICENSE DOI

WIP Ruff

An easy to use Satellite Product Metadata Parser

Installation

spmp uses only built-in packages.

pip install spmp

Usage

The package can be used both as a module and a cli which invoke the same function.

module

>>> from spmp import parse
>>> product = parse('path/to/LC08_L1TP_187021_20140328_20170424_01_T1.tar.gz')
>>> product
{'program': 'L',
 'sensor': 'C',
 'mission': '08',
 'processing_level': 'L1TP',
 'tile': '187021',
 'sensing_date': '20140328',
 'processing_year': '20170424',
 'collection_number': '01',
 'collection_category': 'T1'
 }

command-line

$ python spmp -p path/to/LC08_L1TP_187021_20140328_20170424_01_T1.tar.gz
{'program': 'L',
 'sensor': 'C',
 'mission': '08',
 'processing_level': 'L1TP',
 'tile': '187021',
 'sensing_date': '20140328',
 'processing_year': '20170424',
 'collection_number': '01',
 'collection_category': 'T1'
 }

It is quite fast so don't worry about it impacting your performance:

 $ python -m timeit -s "from spmp import parse" "parse('path/to/LC08_L1TP_187021_20140328_20170424_01_T1.tar.gz')"
5000000 loops, best of 5: 67.8 nsec per loop

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

spmp-0.2.3.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

spmp-0.2.3-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file spmp-0.2.3.tar.gz.

File metadata

  • Download URL: spmp-0.2.3.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for spmp-0.2.3.tar.gz
Algorithm Hash digest
SHA256 051edecbf8d9888bd2104d6a89012390467cf7e1831038ed53f2643ae16c58e8
MD5 a70f64f4ed538ce5f574b3be2e7b61fb
BLAKE2b-256 18b7fc0be45f5e2b75a93acbc339f2c67cb1999b19c869c71f102e8d6f92deb5

See more details on using hashes here.

File details

Details for the file spmp-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: spmp-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for spmp-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90ae89e116c774b1832a723540e39e4eb450659a55334ef25df426fc60ed296f
MD5 bb78ac52eef029ab6c6018d644fd7a63
BLAKE2b-256 9d51d9addb7f07061d213f00ae289c3c3a03286dedd7b80f84f09bccbf21ef5c

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