Subsample ocean climatologies and reference data
Project description
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.
Free software: 3-clause BSD style license - see LICENSE.rst
Documentation: https://oceansdb.readthedocs.io.
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)
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
Built Distribution
File details
Details for the file oceansdb-0.8.15.tar.gz
.
File metadata
- Download URL: oceansdb-0.8.15.tar.gz
- Upload date:
- Size: 40.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17dc46045e2fe86c8967f8dd583bb161638e70b29850d67cceec3b09e14c937e |
|
MD5 | 912851bb80f4f5c0836e13c6a864ca68 |
|
BLAKE2b-256 | 03a68c6f8c8795dfee2a19ff812c66b01bd83eea788db2a51187bfc1b0d7a263 |
File details
Details for the file oceansdb-0.8.15-py2.py3-none-any.whl
.
File metadata
- Download URL: oceansdb-0.8.15-py2.py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7c65f3b1c0aa9dd672f9c9da868b49c196ce7d6cff86a8cfa91fc16958a1cf |
|
MD5 | 0383d641abc9673e0f4dc632a9b68578 |
|
BLAKE2b-256 | 24f7fd20d1a52ce473f6a2a146416a7c9fec2bcf49d649c7345c1b5c802a13cb |