A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

OceansDB

A database of marine reference data like climatologies and bathymetry.
https://github.com/castelao/oceansdb

Category: Hydrosphere
Sub Category: Ocean and Hydrology Data Access

Last synced: about 23 hours ago
JSON representation

Repository metadata

A database of marine reference data like climatologies and bathymetry

README.rst

          ========
OceansDB
========

.. 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 `_ 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:

.. 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)

        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 332
Total Committers: 5
Avg Commits per committer: 66.4
Development Distribution Score (DDS): 0.187

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Gui g****e@c****t 270
Guilherme Castelao c****o@h****u 53
Guilherme Castelao c****o@g****l 7
ZeDias j****n@g****m 1
Chris Slater 6****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: about 23 hours ago

Total issues: 16
Total pull requests: 9
Average time to close issues: about 1 month
Average time to close pull requests: about 16 hours
Total issue authors: 11
Total pull request authors: 3
Average comments per issue: 0.75
Average comments per pull request: 0.67
Merged pull request: 8
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/castelao/oceansdb

Top Issue Authors

  • castelao (5)
  • jdassink (2)
  • biavillasboas (1)
  • BillMills (1)
  • sgartzman (1)
  • ba05 (1)
  • maryjacketti (1)
  • madHatter106 (1)
  • petejan (1)
  • jichaojoyce (1)
  • uliw (1)

Top Pull Request Authors

  • castelao (7)
  • jdiasn (1)
  • electricsam (1)

Top Issue Labels

  • bug (2)
  • enhancement (1)

Top Pull Request Labels


Package metadata

pypi.org: oceansdb

Subsample ocean climatologies and reference data

  • Homepage:
  • Documentation: https://oceansdb.readthedocs.io/
  • Licenses: BSD License
  • Latest release: 0.8.15 (published about 2 years ago)
  • Last Synced: 2025-04-25T12:01:01.985Z (2 days ago)
  • Versions: 24
  • Dependent Packages: 1
  • Dependent Repositories: 6
  • Downloads: 852 Last month
  • Docker Downloads: 0
  • Rankings:
    • Docker downloads count: 4.198%
    • Dependent packages count: 4.71%
    • Dependent repos count: 6.04%
    • Average: 7.106%
    • Downloads: 13.475%
  • Maintainers (1)
conda-forge.org: oceansdb

  • Homepage: https://github.com/castelao/oceansdb
  • Licenses: BSD-3-Clause
  • Latest release: 0.8.14 (published almost 4 years ago)
  • Last Synced: 2025-04-01T02:11:33.776Z (26 days ago)
  • Versions: 4
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 28.82%
    • Dependent repos count: 34.025%
    • Average: 37.288%
    • Forks count: 39.002%
    • Stargazers count: 47.307%

Dependencies

.github/workflows/ci.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/publish-to-pypi.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish release/v1 composite
docs/environment.yml pypi
pyproject.toml pypi
  • netCDF4 >=1.2.4
  • numpy >=1.14
  • scipy >=1.1
  • supportdata >=0.1.3
setup.py pypi

Score: 11.768729798523987