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.0b0.tar.gz
(113.6 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.0b0-py3-none-any.whl
(106.8 kB
view details)
File details
Details for the file yodapy-0.2.0b0.tar.gz.
File metadata
- Download URL: yodapy-0.2.0b0.tar.gz
- Upload date:
- Size: 113.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29df4101b032fa5a4817dc67acf7ecaf670342cc990f05976d5a0c7c523bc226
|
|
| MD5 |
ae74cb178942b09f46e5473fcd48fbff
|
|
| BLAKE2b-256 |
b7e5ba4fe4d8c207bfb9007b99a2abb119d762923b96160fac6145ff12d3f139
|
File details
Details for the file yodapy-0.2.0b0-py3-none-any.whl.
File metadata
- Download URL: yodapy-0.2.0b0-py3-none-any.whl
- Upload date:
- Size: 106.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be73cdb8eb7736b8e48ec1fb3de7e7c5d59515d96209c34971c36aad290bf0f
|
|
| MD5 |
ab34b22d47b167c4dfb2897697a1eda6
|
|
| BLAKE2b-256 |
32ef67fe16e86f309fd4790c1909737aa1f578f12f07b4e5f46ccdfbd9237c3b
|