Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Build Status Build status Coverage Status CodeFactor License: MIT

yodapy

Your Ocean Data Access in Python (YODAPY)

Installation

pip install yodapy

Install directly from github

For developers and testers:

pip install git+https://github.com/cormorack/yodapy.git

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 obtain credentials you are obliged to register at the OOI data portal. Select the Log In dropdown and click Register. Fill out and submit the form and you will automatically be logged in. Click on your email ID (upper right) to visit/edit your profile. This profile now includes your credentials. You should click on the button Refresh API Token to get a stable token; and then make a note of both your username (format OOIAPI-XXXXXXXXXXXXXX) and your token (format XXXXXXXXXXX). They are used in what follows.

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()

Metadata

Release files for yodapy 0.3.0b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yodapy 0.3.0b0
File Size Uploaded
yodapy-0.3.0b0.tar.gz 135.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yodapy 0.3.0b0
File Interpreter ABI Platform
yodapy-0.3.0b0-py3-none-any.whl Python 3 none any Details

Total release size: 269.9 kB

Release files / yodapy-0.3.0b0.tar.gz

Download URL yodapy-0.3.0b0.tar.gz
Size 135.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bc5ceca3cc00c38bbb9ec195b486a00aaa7e057f9d1addade327e011dfd6f3b9
BLAKE2b-256 checksum
How to use checksums
23b15762accc78d67b685405fe712fdcccfd6ffaad3c89b303e1dff3998e9d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.7

Release files / yodapy-0.3.0b0-py3-none-any.whl

Download URL yodapy-0.3.0b0-py3-none-any.whl
Size 134.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba8e51174a9395446c10199bfd003e1e7a563b94639a64d5cbbcda97728b3b2f
BLAKE2b-256 checksum
How to use checksums
69ba52d0baf00825bdd3a37acb586099638ffa5581f01de18078bf194589bbfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page