Skip to main content
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
>>> with oceansdb.WOA() as db:

Find out what is available:

>>>     db.keys()

Average 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:

>>> with oceansdb.CARS() as db:
>>>     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 from the 1 min arc resolution:

>>> with oceansdb.ETOPO(resolution='1min') as db:
>>>     h = db['topography'].extract(lat=17.5, lon=0)

Metadata

Release files for oceansdb 0.8.15

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.15
File Size Uploaded
oceansdb-0.8.15.tar.gz 40.6 kB Details

Built distribution (wheel)

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

Total release size: 67.9 kB

Release files / oceansdb-0.8.15.tar.gz

Download URL oceansdb-0.8.15.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
17dc46045e2fe86c8967f8dd583bb161638e70b29850d67cceec3b09e14c937e
BLAKE2b-256 checksum
How to use checksums
03a68c6f8c8795dfee2a19ff812c66b01bd83eea788db2a51187bfc1b0d7a263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

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

Download URL oceansdb-0.8.15-py2.py3-none-any.whl
Size 27.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1a7c65f3b1c0aa9dd672f9c9da868b49c196ce7d6cff86a8cfa91fc16958a1cf
BLAKE2b-256 checksum
How to use checksums
24f7fd20d1a52ce473f6a2a146416a7c9fec2bcf49d649c7345c1b5c802a13cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.8.15 This release

2 release files

0.8.14

2 release files

0.8.12

2 release files

0.8.11

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.1

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

1 release file

0.5.0

1 release file

0.4.0

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