Skip to main content

Access Tilebox datasets from Python

Project description

Tilebox Logo

Documentation | Console | Discord

Tilebox Datasets

Access satellite data using the Tilebox datasets python client powered by gRPC and Protobuf.

Quickstart

Install using pip:

pip install tilebox-datasets

Instantiate a client:

from tilebox.datasets import Client

# create your API key at
# https://console.tilebox.com
client = Client(token="YOUR_TILEBOX_API_KEY")

Explore datasets:

datasets = client.datasets()
print(datasets)

sentinel1_sar = datasets.open_data.copernicus.sentinel1_sar
collections = sentinel1_sar.collections()
print(collections)

Load data:

s1a_raw = collections["S1A_IW_RAW__0S"]
interval = ("2017-01-01", "2023-01-01")
raw_data = s1a_raw.load(interval, show_progress=True)
print(raw_data)
<xarray.Dataset> Size: 725MB
Dimensions:                (time: 1109597, latlon: 2)
Coordinates:
    ingestion_time         (time) datetime64[ns] 9MB 2024-06-21T11:03:33.8524...
    id                     (time) <U36 160MB '01595763-bae7-a646-99a5-d7f40d7...
  * time                   (time) datetime64[ns] 9MB 2017-01-01T00:17:50.8230...
  * latlon                 (latlon) <U9 72B 'latitude' 'longitude'
Data variables: (12/30)
    granule_name           (time) object 9MB 'S1A_IW_RAW__0SSV_20170101T00175...
    processing_level       (time) <U2 9MB 'L0' 'L0' 'L0' 'L0' ... 'L0' 'L0' 'L0'
    satellite              (time) object 9MB 'SENTINEL-1' ... 'SENTINEL-1'
    flight_direction       (time) <U10 44MB 'ASCENDING' ... 'ASCENDING'
    product_type           (time) object 9MB 'IW_RAW__0S' ... 'IW_RAW__0S'
    copernicus_id          (time) <U36 160MB 'f3f6ec28-0f72-5d28-9e14-93f96b3...
    ...                     ...
    acquisition_mode       (time) <U2 9MB 'IW' 'IW' 'IW' 'IW' ... 'IW' 'IW' 'IW'

Documentation

Check out the Tilebox Datasets documentation for more information.

License

Distributed under the MIT License (The MIT License).

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

tilebox_datasets-0.33.0.tar.gz (50.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tilebox_datasets-0.33.0-py3-none-any.whl (77.1 kB view details)

Uploaded Python 3

File details

Details for the file tilebox_datasets-0.33.0.tar.gz.

File metadata

  • Download URL: tilebox_datasets-0.33.0.tar.gz
  • Upload date:
  • Size: 50.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tilebox_datasets-0.33.0.tar.gz
Algorithm Hash digest
SHA256 c128793b291d837247270f4045668fe2ebe57e5136c4b5e5b85f4f8c73b24c56
MD5 135bfd6b2d15cd5342ca3581e895da6a
BLAKE2b-256 f5c97823c8ad209272b627811391f0ef34713ee970499175a862236ce7003527

See more details on using hashes here.

Provenance

The following attestation bundles were made for tilebox_datasets-0.33.0.tar.gz:

Publisher: publish_tilebox_datasets.yml on tilebox/tilebox-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tilebox_datasets-0.33.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tilebox_datasets-0.33.0-py3-none-any.whl
Algorithm Hash digest
SHA256 856d9f7b65d02eb8bdfe4c094801628b0f60a29bdff64211e4a8c56e26b46799
MD5 61180b5a0cebb6c6dd41c6ccdc5788a7
BLAKE2b-256 a9c0fbcbb1a954bb1176c67db47c30078f9940bd54efe8db17dc7c3e7a0af096

See more details on using hashes here.

Provenance

The following attestation bundles were made for tilebox_datasets-0.33.0-py3-none-any.whl:

Publisher: publish_tilebox_datasets.yml on tilebox/tilebox-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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