Skip to main content

OceansDB

https://zenodo.org/badge/52222122.svg https://readthedocs.org/projects/oceansdb/badge/?version=latest https://img.shields.io/travis/castelao/oceansdb.svg https://img.shields.io/pypi/v/oceansdb.svg

Package to subsample, or interpolate, climatologies like WOA to any coordinates.

This package started with functions to obtain climatological values to compare with measured data, allowing a quality control check by comparison. It hence needed to work for any coordinates requested. I split these functionalities from CoTeDe into this standalone package to allow more people to use it for other purposes.

Features

  • If the database files are not localy available, automatically download it.

  • Extract, or interpolate if necessary, climatologic data on requested coordinates;

    • Can request a single point, a profile or a section;

    • Ready to handle -180 to 180 or 0 to 360 coordinate system;

  • Ready to use with:

    • World Ocean Atlas (WOA)

    • CSIRO Atlas Regional Seas (CARS)

    • ETOPO (topography)

Quick howto use

Inside python:

>>> import oceansdb
>>> db = oceansdb.WOA()

Temperature at one point:

>>> t = db['sea_water_temperature'].extract(var='mean', doy=136.875, depth=0, lat=17.5, lon=-37.5)

A profile of salinity:

>>> t = db['sea_water_salinity'].extract(var='mean', doy=136.875, depth=[0, 10, 15, 18], lat=17.5, lon=-37.5)

A full depth section of temperature:

>>> t = db['sea_water_temperature'].extract(var='mean', doy=136.875, lat=17.48, lon=[-39, -37.5, -35.2])

Using CARS instead of WOA:

>>> db = oceansdb.CARS()
>>> t = db['sea_water_temperature'].extract(var='mean', doy=136.875, lat=17.48, lon=[-39, -37.5, -35.2], depth=[0,10,120,280])

Or to get topography for one point:

>>> db = oceansdb.ETOPO()
>>> h = db['topography'].extract(lat=17.5, lon=0)

History

0.7.0 (2017-05-11)

  • New generic crop functionality.

  • Interpolate in steps, in order: time, lat x lon, and finally z. Gives better results for profiles.

0.6.0 (2016-04-14)

  • Adding CSIRO Atlas of Regional Seas (CARS), another climatology for temperature and salinity.

0.4.0 (2016-03-29)

  • Added etopo5, a world wide bathymetry. Some of this code has its origins on pyAVISO and CoTeDe.

0.2.0 (2016-03)

  • Renamed package to OceansDB, planning to include other climatologies and references.

0.1.0 (2016-02-09)

  • Generalized interpolator. Extract climatology for point, profile or section.

0.0.1 (2015-12-13)

  • First release on PyPI. Extracted from CoTeDe to be a standalone package.

pre-released (~2006)

  • The first version was developed in support to quality control thermosalinographs at NOAA. It was later injected inside CoTeDe.

Metadata

Release files for oceansdb 0.8.1

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

Source distribution (sdist)

Source distribution for oceansdb 0.8.1
File Size Uploaded Provenance Actions
oceansdb-0.8.1.tar.gz 25.3 kB Without provenance Details for oceansdb-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oceansdb 0.8.1
File Interpreter ABI Platform Actions
oceansdb-0.8.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for oceansdb-0.8.1-py2.py3-none-any.whl

Total release size: 46.8 kB

Release files / oceansdb-0.8.1.tar.gz

Download URL oceansdb-0.8.1.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
61d24963d5b43af3bb9751609dd4acf26acfb6020431bbd5d2274f2a7379c3e0
BLAKE2b-256 checksum
How to use checksums
aa9ccbe46652962099315d21f8eda3919de94be7865c2d917e62d850e6432639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / oceansdb-0.8.1-py2.py3-none-any.whl

Download URL oceansdb-0.8.1-py2.py3-none-any.whl
Size 21.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
544dc4916e5d7dc83483bc7163227e54e3dff1898d80828cc5c7bad58667080b
BLAKE2b-256 checksum
How to use checksums
6027244add51479b4a303734059c8392ed6cf80b439dc7388805dddfaeb5797e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for oceansdb 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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