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

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)

Uploaded Source

Built Distribution

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

terrakio_api-0.2.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for terrakio_api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8e7bcad2f9aa01920ade12ed7aea5964e624c6d01aaa3359720c9f4e3f524b30
MD5 3fa3f6896665f6319550bb0bc7b794d3
BLAKE2b-256 883a9c14f0f3baa74b59fa6071bf923c23e4b726a98ce17e24362ae222d7d958

See more details on using hashes here.

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

Hashes for terrakio_api-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 544042da8152c10bca7055fe967777a16ea50003973885019e5fc7718af6b1b2
MD5 0a41ea4fd76449efb7d6d22750b3286b
BLAKE2b-256 94803526a628a0995cdf6e1bc2737e4273bbfa0c09c8507ccd60e00b8f98b78c

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