
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
oceansdb
Advanced tools
.. image:: https://zenodo.org/badge/52222122.svg :target: https://zenodo.org/badge/latestdoi/52222122
.. image:: https://readthedocs.org/projects/oceansdb/badge/?version=latest :target: http://oceansdb.readthedocs.org/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://img.shields.io/travis/castelao/oceansdb.svg :target: https://travis-ci.org/castelao/oceansdb
.. image:: https://img.shields.io/pypi/v/oceansdb.svg :target: https://pypi.python.org/pypi/oceansdb
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 <http://cotede.castelao.net>_ into this standalone package to allow more people to use it for other purposes.
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)
Inside python:
.. code-block:: python
>>> import oceansdb
>>> with oceansdb.WOA() as db:
Find out what is available:
.. code-block:: python
>>> db.keys()
Average temperature at one point:
.. code-block:: python
>>> t = db['sea_water_temperature'].extract(var='mean', doy=136.875, depth=0, lat=17.5, lon=-37.5)
A profile of salinity:
.. code-block:: python
>>> 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:
.. code-block:: python
>>> 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:
.. code-block:: python
>>> 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:
.. code-block:: python
>>> with oceansdb.ETOPO(resolution='1min') as db:
>>> h = db['topography'].extract(lat=17.5, lon=0)
FAQs
Subsample ocean climatologies and reference data
We found that oceansdb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.