Your Ocean Data Access in Python
Project description
[](https://travis-ci.org/cormorack/yodapy)
[](https://ci.appveyor.com/project/lsetiawan/yodapy)
[](https://coveralls.io/github/cormorack/yodapy?branch=master)
[](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()
```
[](https://ci.appveyor.com/project/lsetiawan/yodapy)
[](https://coveralls.io/github/cormorack/yodapy?branch=master)
[](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.1b1.tar.gz
(110.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
yodapy-0.2.1b1-py3-none-any.whl
(108.1 kB
view details)
File details
Details for the file yodapy-0.2.1b1.tar.gz.
File metadata
- Download URL: yodapy-0.2.1b1.tar.gz
- Upload date:
- Size: 110.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0742d021e422ed60f2d6416cb185ccab7d738a979c76d85379e02e81c346a95
|
|
| MD5 |
ac8bba1161878153f929784fe24d895b
|
|
| BLAKE2b-256 |
813764d70dd37a3e2c15a8a2f7952869069f407ab74b11904336e3b81bb66e24
|
File details
Details for the file yodapy-0.2.1b1-py3-none-any.whl.
File metadata
- Download URL: yodapy-0.2.1b1-py3-none-any.whl
- Upload date:
- Size: 108.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c834693ab292ff9575ebc36b682a9381a71ad2660fb2faea565d99c9173703
|
|
| MD5 |
be9279c06ad4f932e8a3c11a76de81d3
|
|
| BLAKE2b-256 |
08575b45716609d2879c9848f421d55ba3b78d1bd4ce585fb218c28eda2a2adb
|