Package to 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
>>> db = oceansdb.WOA()
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:
>>> 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 from the 1 min arc resolution:
>>> db = oceansdb.ETOPO(resolution='1min')
>>> h = db['topography'].extract(lat=17.5, lon=0)
History
0.8.0
Allowing to choose resolution and temporal scale.
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
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.7.tar.gz
.
File metadata
- Download URL: oceansdb-0.8.7.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b976e7e0ce730dc29d0a5e756b5fd6f401820c1b21565b6e2a8bb534276a6ce |
|
MD5 | 8ae56d5873435c7589a1ebaef3911720 |
|
BLAKE2b-256 | efc1b4b23ee1839cd959ea42bc7d0be24a7eaf6bfb9689a387b77ecbe43e28c4 |
File details
Details for the file oceansdb-0.8.7-py2.py3-none-any.whl
.
File metadata
- Download URL: oceansdb-0.8.7-py2.py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7f0a81f10445167e405ac7ab99355f7c8c163d7870b07ec7fa7a306f8b19110 |
|
MD5 | afd5b7dd3d31b837df174bf46579a69d |
|
BLAKE2b-256 | a97ca18772678b084420d7dae7741a9faefad25599fe1827a63788cf9f50eb80 |