Your Ocean Data Access in Python
Project description
[![Build Status](https://travis-ci.org/cormorack/yodapy.svg?branch=master)](https://travis-ci.org/cormorack/yodapy)
[![Build status](https://ci.appveyor.com/api/projects/status/29rvgs6u8t552ui2?svg=true)](https://ci.appveyor.com/project/lsetiawan/yodapy)
[![Coverage Status](https://coveralls.io/repos/github/cormorack/yodapy/badge.svg?branch=master)](https://coveralls.io/github/cormorack/yodapy?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# yodapy
Your Ocean Data Access in Python
## Installation
```bash
git clone https://github.com/cormorack/yodapy.git
cd yodapy
conda create -n yodapy -c conda-forge --yes python=3.6 --file requirements.txt --file requirements-dev.txt
source activate yodapy
pip install -e .
```
## Credentials
To request data, you will need to setup your credential.
```python
>>> from yodapy.utils import set_ooi_credentials_file
>>> set_ooi_credentials_file(username='MyName', token='My secret token')
```
## Example running the program
```python
>>> from yodapy.datasources import OOI
>>> begin_date = datetime.datetime(2018, 1, 1)
>>> end_date = datetime.datetime(2018, 2, 1)
>>> ooi = OOI.search(region=['cabled'], site=['axial base shallow profiler'], instrument=['CTD'], begin_date=begin_date, end_date=end_date)
>>> ooi
Data Source: OOI
Number of streams: 2
Streams range: 2014-10-02 to 2018-06-07
>>> dataset_list = ooi.request_data(begin_date, end_date).to_xarray()
```
[![Build status](https://ci.appveyor.com/api/projects/status/29rvgs6u8t552ui2?svg=true)](https://ci.appveyor.com/project/lsetiawan/yodapy)
[![Coverage Status](https://coveralls.io/repos/github/cormorack/yodapy/badge.svg?branch=master)](https://coveralls.io/github/cormorack/yodapy?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# yodapy
Your Ocean Data Access in Python
## Installation
```bash
git clone https://github.com/cormorack/yodapy.git
cd yodapy
conda create -n yodapy -c conda-forge --yes python=3.6 --file requirements.txt --file requirements-dev.txt
source activate yodapy
pip install -e .
```
## Credentials
To request data, you will need to setup your credential.
```python
>>> from yodapy.utils import set_ooi_credentials_file
>>> set_ooi_credentials_file(username='MyName', token='My secret token')
```
## Example running the program
```python
>>> from yodapy.datasources import OOI
>>> begin_date = datetime.datetime(2018, 1, 1)
>>> end_date = datetime.datetime(2018, 2, 1)
>>> ooi = OOI.search(region=['cabled'], site=['axial base shallow profiler'], instrument=['CTD'], begin_date=begin_date, end_date=end_date)
>>> ooi
Data Source: OOI
Number of streams: 2
Streams range: 2014-10-02 to 2018-06-07
>>> dataset_list = ooi.request_data(begin_date, end_date).to_xarray()
```
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
yodapy-0.2.1b0.tar.gz
(110.2 kB
view details)
Built Distribution
yodapy-0.2.1b0-py3-none-any.whl
(108.0 kB
view details)
File details
Details for the file yodapy-0.2.1b0.tar.gz
.
File metadata
- Download URL: yodapy-0.2.1b0.tar.gz
- Upload date:
- Size: 110.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c2923fda5d79ce890ad12a35479f8c720c3aa78a3ba3ad9746e1576c867f70 |
|
MD5 | c9584ea74a63583af649bd44d63f5f21 |
|
BLAKE2b-256 | 259713a108446d2af9f77eed77d2641522d87de57bb8e22c5eeb1714d6f3f274 |
File details
Details for the file yodapy-0.2.1b0-py3-none-any.whl
.
File metadata
- Download URL: yodapy-0.2.1b0-py3-none-any.whl
- Upload date:
- Size: 108.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f3d7f31d9e179bf3879d53fe5df86194944fee25e8e71f4d09187c59fce4b9 |
|
MD5 | 0fb50a39d6b8589f37467bb5d866cb21 |
|
BLAKE2b-256 | f8a30ace00e250e39afc50f1d4f0648495d2eed576b7683ad73dca5e48d3493b |