Skip to main content

Python interface for ERDDAP

Project description


Redistribution and use in source and binary forms,
with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description: <h1 align="center" style="margin:1em;">
<a href="https://pyoceans.github.io/erddapy/">erddapy</a>
</h1>

<h4 align="center">
erddapy: ERDDAP + Python.
</h4>

<p align="center">
<!-- https://shields.io/ is a good source of these -->
<a href="https://anaconda.org/conda-forge/erddapy">
<img src="https://img.shields.io/conda/dn/conda-forge/erddapy.svg"
alt="conda-forge downloads" /></a>
<a href="https://github.com/pyoceans/erddapy/releases">
<img src="https://img.shields.io/github/tag/pyoceans/erddapy.svg"
alt="Latest version" /></a>
<a href="https://github.com/pyoceans/erddapy/commits/master">
<img src="https://img.shields.io/github/commits-since/pyoceans/erddapy/latest.svg"
alt="Commits since last release" /></a>
<a href="https://github.com/pyoceans/erddapy/graphs/contributors">
<img src="https://img.shields.io/github/contributors/pyoceans/erddapy.svg"
alt="# contributors" /></a>
<a href="https://travis-ci.org/pyoceans/erddapy/branches">
<img src="https://api.travis-ci.org/repositories/pyoceans/erddapy.svg?branch=master"
alt="Travis-CI" /></a>
<a href="https://zenodo.org/badge/latestdoi/104919828">
<img src="https://zenodo.org/badge/104919828.svg"
alt="zenodo" /></a>
</p>
<br>



# Table of contents

<!-- toc -->

- [Overview](#overview)
- [Example](#example)
- [Get in touch](#get-in-touch)
- [License and copyright](#license-and-copyright)

<!-- tocstop -->


## 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.

### Example

```python
from erddapy import ERDDAP


e = ERDDAP(
server='https://data.ioos.us/gliders/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](https://github.com/pyoceans/erddapy/issues).


## 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/pyoceans/erddapy>.
Keywords: ERDDAP,Scientific Python,Remote data access
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 4 - Beta
Description-Content-Type: text/markdown
Provides-Extra: testing

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-0.3.0.tar.gz (27.9 kB view hashes)

Uploaded Source

Built Distribution

erddapy-0.3.0-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page