A client library for Terrakio's WCS API service
Project description
Terrakio API Client
A Python client for Terrakio's Web Coverage Service (WCS) API. This package provides a user-friendly interface for accessing Terrakio's data services.
Features
- Authentication and user management
- WCS queries and data retrieval
- Efficient data handling with xarray and pandas
Installation
pip install terrakio-api
Usage Example
from terrakio_api import Client
from shapely.geometry import Point
# Initialize the client
client = Client(url="https://api.terrak.io", key="your-api-key")
# Create a geographic feature
point = Point(149.057, -35.1548)
geojson = {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [point.x, point.y]
},
"properties": {
"name": "Location in Canberra region",
"description": "Coordinates: 149.057, -35.1548"
}
}
# Make a WCS request
dataset = client.wcs(
expr="prec=MSWX.precipitation@(year=2024, month=1)\nprec",
feature=geojson,
output="netcdf"
)
For more documentation, see the main repository.
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
terrakio_api-0.2.1.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terrakio_api-0.2.1.tar.gz.
File metadata
- Download URL: terrakio_api-0.2.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7bcad2f9aa01920ade12ed7aea5964e624c6d01aaa3359720c9f4e3f524b30
|
|
| MD5 |
3fa3f6896665f6319550bb0bc7b794d3
|
|
| BLAKE2b-256 |
883a9c14f0f3baa74b59fa6071bf923c23e4b726a98ce17e24362ae222d7d958
|
File details
Details for the file terrakio_api-0.2.1-py3-none-any.whl.
File metadata
- Download URL: terrakio_api-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
544042da8152c10bca7055fe967777a16ea50003973885019e5fc7718af6b1b2
|
|
| MD5 |
0a41ea4fd76449efb7d6d22750b3286b
|
|
| BLAKE2b-256 |
94803526a628a0995cdf6e1bc2737e4273bbfa0c09c8507ccd60e00b8f98b78c
|