Skip to main content

A client-only fork of pydap using the DAP protocol to access scientific data on the internet.

Project description

Tests Test Coverage Latest release BSD-3 clause license dapclient downloads PyPI - Python Version

dapclient - Quick Guide

dapclient is a client-only fork of the venerable pydap. It implements the Opendap/DODS protocol. You can use dapclient to access scientific data on the internet without having to download it; instead, you work with special array and iterable objects that download data on-the-fly as necessary, saving bandwidth and time.

Why fork pydap?

  • Simplify the codebase by remove the server side code

  • Update the code to use modern python 3.8+

  • Up-to-date pypi and conda packages

This version has no additional features, and it only has a few tests. My immediate goal is to have pip and conda packages to support my tsgettoolbox package. I will add tests and features as time (and pull requests!) allow.

Quickstart

You can install the latest version using [pip](http://pypi.python.org/pypi/pip) or conda.

$ pip install dapclient

Also maintained on the conda-forge channel [conda channel](https://anaconda.org/conda-forge/dapclient):

$ conda install -c conda-forge dapclient

This will install dapclient together with all the required dependencies. You can now open any remotely served dataset, and dapclient will download the accessed data on-the-fly as needed:

>>> from dapclient.client import open_url
>>> dataset = open_url('http://test.opendap.org/dap/data/nc/coads_climatology.nc')
>>> var = dataset['SST']
>>> var.shape
(12, 90, 180)
>>> var.dtype
dtype('>f4')
>>> data = var[0,10:14,10:14]  # this will download data from the server
>>> data
<GridType with array 'SST' and maps 'TIME', 'COADSY', 'COADSX'>
>>> print(data.data)
[array([[[ -1.26285708e+00,  -9.99999979e+33,  -9.99999979e+33, -9.99999979e+33],
        [ -7.69166648e-01,  -7.79999971e-01,  -6.75454497e-01, -5.95714271e-01],
        [  1.28333330e-01,  -5.00000156e-02,  -6.36363626e-02, -1.41666666e-01],
        [  6.38000011e-01,   8.95384610e-01,   7.21666634e-01, 8.10000002e-01]]], dtype=float32),
           array([ 366.]),
           array([-69., -67., -65., -63.]),
           array([ 41.,  43.,  45.,  47.])]

For more information, please check the documentation on [using dapclient as a client](https://timcera.bitbucket.io/dapclient/client.html).

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

dapclient-1.0.6.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

dapclient-1.0.6-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

Details for the file dapclient-1.0.6.tar.gz.

File metadata

  • Download URL: dapclient-1.0.6.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dapclient-1.0.6.tar.gz
Algorithm Hash digest
SHA256 f38b133561009aaf9a0af5414753a2619f504fac26f3669e10a2f8db4739d70c
MD5 e30f7d19f2eaf9cdb1443720ab1d4cd0
BLAKE2b-256 d7515145fbeff0b87d1b75c5f6d1f5a450e6ab714dcd307861fca45672805447

See more details on using hashes here.

Provenance

The following attestation bundles were made for dapclient-1.0.6.tar.gz:

Publisher: pypi-package.yml on timcera/dapclient

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

File details

Details for the file dapclient-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: dapclient-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 53.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dapclient-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 07b46251ab942225b56db084e6a3fb26919895c542e348b89b3922468a3a0368
MD5 6eba8f94a5dc6b054395da74e6cbb9b3
BLAKE2b-256 4368db320dca455fb6894c782e7dc914965030e1b65bfbf48baa744cbf045b93

See more details on using hashes here.

Provenance

The following attestation bundles were made for dapclient-1.0.6-py3-none-any.whl:

Publisher: pypi-package.yml on timcera/dapclient

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