No project description provided
Project description
xpublish-edr
Xpublish routers for the OGC EDR API.
Documentation and code
URLs for the docs and code.
Installation
For conda
users you can
conda install --channel conda-forge xpublish_edr
or, if you are a pip
users
pip install xpublish_edr
Example
import xarray as xr
import xpublish
from xpublish.routers import base_router, zarr_router
from xpublish_edr.cf_edr_router import cf_edr_router
ds = xr.open_dataset("dataset.nc")
rest = xpublish.Rest(
datasets,
routers=[
(base_router, {"tags": ["info"]}),
(cf_edr_router, {"tags": ["edr"], "prefix": "/edr"}),
(zarr_router, {"tags": ["zarr"], "prefix": "/zarr"}),
],
)
OGC EDR Spec Compliance
This package attempts to follow the spec where reasonable, adding functionality where the value is demonstrable.
collections and Resource Paths Support
xpublish-edr
does not currently support the /collections/{collectionId}/query
path template described in the spec. Instead the path resource appears as /{dataset_id}/query
. This is because of the path structure of xpublish.
In the future, when xpublish
supports DataTree
it will provide a path to supporting the spec compliant collections
resource path.
Supported Queries
Query | Compliant | Comments |
---|---|---|
coords |
✅ | |
z |
✅ | |
datetime |
✅ | |
parameter-name |
✅ | |
crs |
✅ | Requires a CF compliant grid mapping on the target dataset. Default is EPSG:4326 |
parameter-name |
✅ | |
f |
✅ | |
method |
➕ | Optional: controls data selection. Use "nearest" for nearest neighbor selection, or "linear" for interpolated selection. Uses nearest if not specified |
Any additional query parameters are assumed to be additional selections to make on the dimensions/coordinates. These queries will use the specified selections
method
.
Query | Compliant | Comments |
---|---|---|
coords |
✅ | Only POLYGON supported currently |
z |
✅ | |
datetime |
✅ | |
parameter-name |
✅ | |
crs |
✅ | Requires a CF compliant grid mapping on the target dataset. Default is EPSG:4326 |
parameter-name |
✅ | |
f |
✅ | |
method |
➕ | Optional: controls data selection. Use "nearest" for nearest neighbor selection, or "linear" for interpolated selection. Uses nearest if not specified |
method
is not applicable for the coordinates of area queries, only for selecting datetime, z, or additional dimensions.
For POLYGON
coordinates, points that are located within OR on the polygons boundary are included in the response.
Get in touch
Report bugs, suggest features or view the source code on GitHub.
License and copyright
xpublish-edr is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).
Development occurs on GitHub at https://github.com/gulfofmaine/xpublish-edr/issues.
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 xpublish_edr-0.3.1.tar.gz
.
File metadata
- Download URL: xpublish_edr-0.3.1.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c52f178cb46a726bbb0927103e8f5c80dc012eca99d97da8c2f1bf197f967d0 |
|
MD5 | 4c3142f73c469cfe5d79204a1d9c113a |
|
BLAKE2b-256 | c2b38a538c4a3cc0a4521fa0e5ff0489b8052aa52312e4e1b1bf8c8668c39943 |
Provenance
The following attestation bundles were made for xpublish_edr-0.3.1.tar.gz
:
Publisher:
publish-to-pypi.yml
on xpublish-community/xpublish-edr
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
xpublish_edr-0.3.1.tar.gz
- Subject digest:
1c52f178cb46a726bbb0927103e8f5c80dc012eca99d97da8c2f1bf197f967d0
- Sigstore transparency entry: 149567200
- Sigstore integration time:
- Predicate type:
File details
Details for the file xpublish_edr-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: xpublish_edr-0.3.1-py3-none-any.whl
- Upload date:
- Size: 16.0 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 | f5eba06f0f60096d5a1d3f5f044508624fa5f28a866a7783c7a64528db097dcf |
|
MD5 | c8fc8217d967de9b6c1ee62b0271f6b3 |
|
BLAKE2b-256 | c475da2029b5a41b2d72441cabf76ff5379cf80f890841052705d15581a0ef36 |
Provenance
The following attestation bundles were made for xpublish_edr-0.3.1-py3-none-any.whl
:
Publisher:
publish-to-pypi.yml
on xpublish-community/xpublish-edr
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
xpublish_edr-0.3.1-py3-none-any.whl
- Subject digest:
f5eba06f0f60096d5a1d3f5f044508624fa5f28a866a7783c7a64528db097dcf
- Sigstore transparency entry: 149567201
- Sigstore integration time:
- Predicate type: