Skip to main content

sentile

Sentinel tile utilities

The sentile module provides convenient Sentinel tile utility functions.

Usage

Tile name parsing

>>> from sentile.s2 import Tile
>>> tile = Tile("S2A_MSIL2A_20200730T102031_N0214_R065_T33UVU_20200730T110107.SAFE")
>>> tile.name
'T33UVU'
>>> tile.orbit
'R065'

Scene classification mask enum

>>> from sentile.s2 import SCL
>>> SCL.THIN_CIRRUS
10

Path lookup based on band name

>>> from sentile.s2 import Tile, Band10, Band60
>>> tile = Tile("S2A_MSIL2A_20200730T102031_N0214_R065_T33UVU_20200730T110107.SAFE")
>>> tile.get_band(Band10.B04)
PosixPath('S2A_MSIL2A_20200730T102031_N0214_R065_T33UVU_20200730T110107.SAFE/GRANULE/L2A_T33UVU_A026660_20200730T102528/IMG_DATA/R10m/T33UVU_20200730T102031_B04_10m.jp2')
>>> tile.get_band(Band60.SCL)
PosixPath('S2A_MSIL2A_20200730T102031_N0214_R065_T33UVU_20200730T110107.SAFE/GRANULE/L2A_T33UVU_A026660_20200730T102528/IMG_DATA/R60m/T33UVU_20200730T102031_SCL_60m.jp2')

sentile CLI

Sentile's command line interface, named "sentile", has commands for extracting a Sentinel tile's properties.

$ sentile --help

Development

For development

make

make run
$ sentile --help

$ exit
make down

Inside the self-contained reproducible container

flake8 sentile
mypy sentile
pytest

See Also

Inspired by the mercantile module for Web Mercator tiles ❤️

License

Copyright © 2020 robofarm

Distributed under the MIT License (MIT).

Release files for sentile 1.2.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 sentile 1.2.0
File Size Uploaded
sentile-1.2.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentile 1.2.0
File Interpreter ABI Platform
sentile-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / sentile-1.2.0.tar.gz

Download URL sentile-1.2.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
300d49135f4929096c0fcfe954765adabc9d6f8fb9460c13451d6c35ae242754
BLAKE2b-256 checksum
How to use checksums
aee8c50b114d0d27cb7f2aef59561eb7d346c1683fff0042756281d4b43f36cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.5 Linux/5.8.0-55-generic

Release files / sentile-1.2.0-py3-none-any.whl

Download URL sentile-1.2.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a165318415ff0e8f838cf52e5f4efb2295d15746fa71c8d5690674f83f3a21c0
BLAKE2b-256 checksum
How to use checksums
fef928c22c995ffd57a07d1e2e9ff278ea00edc480b2f46127e82e0ae2cb2d9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.5 Linux/5.8.0-55-generic

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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