Skip to main content

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

This version

0.1.9

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

Uploaded Source

Built Distribution

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

terrakio_api-0.1.9-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file terrakio_api-0.1.9.tar.gz.

File metadata

  • Download URL: terrakio_api-0.1.9.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for terrakio_api-0.1.9.tar.gz
Algorithm Hash digest
SHA256 731b4ee5a8a4ddd4f8babd00247841e9f17c8abb30a35a7ad8c6e97d5594b727
MD5 aae8de3e7da0835368e2fb31b63ba81f
BLAKE2b-256 1c48b67d0328905e49376784f5b2b8cbd10c475f1475f8509986e804a4bccd86

See more details on using hashes here.

File details

Details for the file terrakio_api-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: terrakio_api-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for terrakio_api-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 31a10d5008efc7a0dadbe5d3eee12a3f44c94f9aa5320bc705ecaf51315d6711
MD5 95182cd3414d2d2329d9d52159737c5e
BLAKE2b-256 74b6db2a952a5459e2c24600be55eaf660092132f654c20ee5e32d48d4527c83

See more details on using hashes here.

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