Skip to main content

Package to subsample ocean climatologies and reference data.

Project description

https://zenodo.org/badge/4645/castelao/oceansdb.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()

To get temperature at one point:

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

To get one profile of salinity:

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

To get a full depth section of temperature:

>>> t = db['TEMP'].extract(var='mn', doy=136.875, lat=17.5, lon=[-39, -37.5, -35])

Or to get topography for one point:

>>> db = oceansdb.ETOPO()
>>> h = db.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oceansdb-0.7.2.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

oceansdb-0.7.2-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file oceansdb-0.7.2.tar.gz.

File metadata

  • Download URL: oceansdb-0.7.2.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for oceansdb-0.7.2.tar.gz
Algorithm Hash digest
SHA256 c811f2eda1b048cf09965de20f18481d13ec1afe543ce62c15172058937f165b
MD5 972f3102388886ca8a946900342f77e2
BLAKE2b-256 899887b4ea2d4d8f5d35b0c78c37230707cc30105263beb80063dfd0780c0a5f

See more details on using hashes here.

File details

Details for the file oceansdb-0.7.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for oceansdb-0.7.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f4ca8ae351f8a6743e2265eed60eeab1741eea813838b58f863527cb34253b08
MD5 0afd7c7382171d6d97e377ab6ff40bd5
BLAKE2b-256 ba6fbe344befd70475456aec31629b14b1c8e891f3bb811570a8f39d689778fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page