Your Ocean Data Access in Python
Project description
yodapy
Your Ocean Data Access in Python (YODAPY)
Installation
pip install yodapy
Development
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 start using yodapy for the ooi datasource, you will need to setup your credential file. This will only need be set one time.
>>> from yodapy.utils.creds import set_credentials_file
>>> set_credentials_file(data_source='ooi', username='MyName', token='My secret token')
Example running the program
>>> from yodapy.datasources import OOI
>>> ooi = OOI()
>>> ooi.search(region='cabled', site='axial base shallow profiler', node='shallow profiler', instrument='CTD')
>>> ooi.view_instruments()
>>> ooi.data_availability()
>>> begin_date = '2018-01-01'
>>> end_date = '2018-01-02'
>>> ooi.request_data(begin_date=begin_date, end_date=end_date)
>>> ooi.check_status()
Request Completed
>>> ds_list = ooi.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.4b0.tar.gz
(129.0 kB
view details)
Built Distribution
yodapy-0.2.4b0-py3-none-any.whl
(130.0 kB
view details)
File details
Details for the file yodapy-0.2.4b0.tar.gz
.
File metadata
- Download URL: yodapy-0.2.4b0.tar.gz
- Upload date:
- Size: 129.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb5219cfe289efcc98e969ec848e2d5a1ac98ef9e590f9984f2ac2cd6e5e049 |
|
MD5 | 6272de27b091cd10f52ab68f786e92c6 |
|
BLAKE2b-256 | f5d714b08f2081ea2c9744fbb35fb25e7fa223962a26b1c42f10a6329e980171 |
File details
Details for the file yodapy-0.2.4b0-py3-none-any.whl
.
File metadata
- Download URL: yodapy-0.2.4b0-py3-none-any.whl
- Upload date:
- Size: 130.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9cebdfbe17ecd4e5835a489da814d4b460695cef54c808da89df1022a2fe0b |
|
MD5 | 840b65d3d495e4467835e2f55547e329 |
|
BLAKE2b-256 | 61e7adf980793fd5d2afe3874e742dd9313986652a9e8f7885cab549488db889 |