Skip to main content

Python interface for ERDDAP

Project description

erddapy

erddapy: ERDDAP + Python.

conda-forge downloads Latest version Commits since last release # contributors zenodo zenodo pre-commit.ci status GHA-tests


Table of contents

Overview

Easier access to scientific data.

erddapy takes advantage of ERDDAP's RESTful web services and creates the ERDDAP URL for any request, like searching for datasets, acquiring metadata, downloading the data, etc.

What is ERDDAP? ERDDAP unifies the different types of data servers and offers a consistent way to get the data in multiple the formats. For more information on ERDDAP servers please see https://coastwatch.pfeg.noaa.gov/erddap/index.html.

Documentation and code

The documentation is hosted at https://ioos.github.io/erddapy.

The code is hosted at https://github.com/ioos/erddapy.

Installation

For conda users you can

conda install --channel conda-forge erddapy

or, if you are a pip users

python -m pip install erddapy

Note that, if you are installing the requirements-dev.txt, the iris package is named scitools-iris on PyPI so pip users must rename that before installing.

Example

from erddapy import ERDDAP

e = ERDDAP(
    server="https://gliders.ioos.us/erddap",
    protocol="tabledap",
)

e.response = "csv"
e.dataset_id = "whoi_406-20160902T1700"
e.constraints = {
    "time>=": "2016-07-10T00:00:00Z",
    "time<=": "2017-02-10T00:00:00Z",
    "latitude>=": 38.0,
    "latitude<=": 41.0,
    "longitude>=": -72.0,
    "longitude<=": -69.0,
}
e.variables = [
    "depth",
    "latitude",
    "longitude",
    "salinity",
    "temperature",
    "time",
]

df = e.to_pandas()

Get in touch

Report bugs, suggest features or view the source code on GitHub.

Projects using erddapy

Similar projects

  • rerddap implements a nice client for R that performs searches on a curated set of servers instead of a query per server like erddapy.

  • erddap-python 99% of the same functionality as erddapy but with a JavaScript-like API.

License and copyright

Erddapy is licensed under BSD 3-Clause "New" or "Revised" License (BSD-3-Clause).

Development occurs on GitHub at https://github.com/ioos/erddapy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

erddapy-3.3.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

erddapy-3.3.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file erddapy-3.3.0.tar.gz.

File metadata

  • Download URL: erddapy-3.3.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for erddapy-3.3.0.tar.gz
Algorithm Hash digest
SHA256 79bba5efe1e385ee0a790b9c66f6c688840439bd9330e6238dd486420b71d767
MD5 a0f347eb7b4b703399b4a4ac212412b7
BLAKE2b-256 74e9f6b99e82b1d79317a2b14793e2678dd6a7f6938fdf0c538ee95d1fc2e02a

See more details on using hashes here.

Provenance

The following attestation bundles were made for erddapy-3.3.0.tar.gz:

Publisher: pypi.yml on ioos/erddapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file erddapy-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: erddapy-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for erddapy-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 895ef07963cfe7db8d1c777f3e28767098059368bef1a2a1cd738533bea654ab
MD5 c235e4e70a07199cab1545dbf9cd3b51
BLAKE2b-256 5a6bd7731c7d460fcc6232cb90c079b02867190963d52b6cd327fcdbbf0a68b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for erddapy-3.3.0-py3-none-any.whl:

Publisher: pypi.yml on ioos/erddapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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