Access Tilebox datasets from Python
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tilebox_datasets-0.29.0.tar.gz
.
File metadata
- Download URL: tilebox_datasets-0.29.0.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fde495e84a873dfc3e843015792c8aab6b5e1b6ba92ada2d60f0a58c7ca6b903 |
|
MD5 | 40e6f9e51687f4b003b32075cec2411f |
|
BLAKE2b-256 | 52b41aaeac348758ef4d4ce80f83de3296d50b4a4770e5962c8e220d6e79be2c |
Provenance
The following attestation bundles were made for tilebox_datasets-0.29.0.tar.gz
:
Publisher:
publish_tilebox_datasets.yml
on tilebox/tilebox-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tilebox_datasets-0.29.0.tar.gz
- Subject digest:
fde495e84a873dfc3e843015792c8aab6b5e1b6ba92ada2d60f0a58c7ca6b903
- Sigstore transparency entry: 149058664
- Sigstore integration time:
- Predicate type:
File details
Details for the file tilebox_datasets-0.29.0-py3-none-any.whl
.
File metadata
- Download URL: tilebox_datasets-0.29.0-py3-none-any.whl
- Upload date:
- Size: 54.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dae9078eb2bdb5294ebde5813058529db8a2511c7d9762a027314bf88460209 |
|
MD5 | 94e530cec43e1852fccd9365b46921e8 |
|
BLAKE2b-256 | a164d140efc0801fd9ae4a654b3b9df1ad4d3bd8649984d0298093502bfe8a1c |
Provenance
The following attestation bundles were made for tilebox_datasets-0.29.0-py3-none-any.whl
:
Publisher:
publish_tilebox_datasets.yml
on tilebox/tilebox-python
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tilebox_datasets-0.29.0-py3-none-any.whl
- Subject digest:
2dae9078eb2bdb5294ebde5813058529db8a2511c7d9762a027314bf88460209
- Sigstore transparency entry: 149058666
- Sigstore integration time:
- Predicate type: