Skip to main content

Access Tilebox datasets from Python

Project description

Tilebox Logo

Documentation | Console

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.28.0.tar.gz (40.5 kB view details)

Uploaded Source

Built Distribution

tilebox_datasets-0.28.0-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tilebox_datasets-0.28.0.tar.gz
  • Upload date:
  • Size: 40.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for tilebox_datasets-0.28.0.tar.gz
Algorithm Hash digest
SHA256 4b9133be6c732f142a1bbefdc3a336c0338d5a793d6a52d3dac3c1917c0aaa21
MD5 640fc88995548acc43da6dff37725a90
BLAKE2b-256 e21b72d82a3457d87df74599e81de2fb2617a4b0b2deb56a53e275005b975e0d

See more details on using hashes here.

Provenance

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

Publisher: publish_tilebox_datasets.yml on tilebox/tilebox-python

Attestations:

File details

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

File metadata

File hashes

Hashes for tilebox_datasets-0.28.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e560505e2978f86afccda61b15e9e533bad7fa3cbc3fe1a966c8f214cfec7edf
MD5 cfdd90552c47301fc487f554de079489
BLAKE2b-256 5566924eece3a4bd9274c506e7cda312335e775da796de58d41296a32042215e

See more details on using hashes here.

Provenance

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

Publisher: publish_tilebox_datasets.yml on tilebox/tilebox-python

Attestations:

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