https://github.com/cosima/ocean-regrid

Regrid global ocean data in 3d.

https://github.com/cosima/ocean-regrid

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary

Keywords from Contributors

climate-model climate fms gfdl
Last synced: 10 months ago · JSON representation

Repository

Regrid global ocean data in 3d.

Basic Info
  • Host: GitHub
  • Owner: COSIMA
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 292 KB
Statistics
  • Stars: 11
  • Watchers: 5
  • Forks: 8
  • Open Issues: 2
  • Releases: 0
Created almost 10 years ago · Last pushed 11 months ago
Metadata Files
Readme

README.md

ocean-regrid

Regrid global ocean data in 3d. Suppurts GODAS, ORAS4 reanalysis grids and MOM, NEMO model grids. Handles missing data and grids with mismatched domains.

Build status

Build Status

Install

Python dependencies

  1. Download and install Anaconda for your platform.
  2. Install the git revision control system if you don't already have it.
  3. Download ocean-regrid: {bash} $ git clone --recursive https://github.com/COSIMA/ocean-regrid.git $ cd ocean-regrid
  4. Setup the Anaconda environment. This will download all the necessary Python packages. {bash} $ conda env create -f regrid.yml $ source activate regrid

ESMF dependencies

Install ESMF_RegridWeightGen. ESMF releases can be found here.

There is a bash script contrib/build_esmf.sh which the testing system uses to build ESMF. This may be useful in addition to the ESMF installation docs.

Example Use

Regrid ORAS4 reanalysis to MOM 0.25 degree tripolar grid: $ cd test $ wget http://s3-ap-southeast-2.amazonaws.com/dp-drop/ocean-regrid/test/test_data.tar.gz $ tar zxvf test_data.tar.gz $ cd test_data/input $ ../../../regrid.py ORAS4 coords_T.nc coords_T.nc thetao_oras4_1m_2014_grid_T.nc thetao \ MOM ocean_hgrid.nc ocean_vgrid.nc mom_oras4_temp.nc temp --dest_mask ocean_mask.nc $ ncview mom_oras4_temp.nc

OR:

$ python -m pytest $ ncview test/test_data/output/mom_oras4_temp.nc

How it works

  1. The source dataset is regridded in the vertical to have the same depth and levels as the destination grid. Linear interpolation is used for this. If the destination is deeper than the source then the deepest value is extended.

  2. If the source dataset is limited latitudinally it is extended to cover the whole globe. This is done based on nearest neighbours.

  3. The source dataset is then regridded using weights calculated with ESMF_RegridWeightGen. Various regridding schemes are supported includeing distance weighted nearest neighbour, bilinear and conservative.

  4. The destination land sea mask is applied.

Owner

  • Name: COSIMA
  • Login: COSIMA
  • Kind: organization
  • Location: Australia

Consortium for Ocean-Sea Ice Modelling in Australia

GitHub Events

Total
  • Issues event: 4
  • Delete event: 5
  • Issue comment event: 7
  • Push event: 10
  • Pull request review comment event: 9
  • Pull request event: 10
  • Pull request review event: 13
  • Create event: 5
Last Year
  • Issues event: 4
  • Delete event: 5
  • Issue comment event: 7
  • Push event: 10
  • Pull request review comment event: 9
  • Pull request event: 10
  • Pull request review event: 13
  • Create event: 5

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 114
  • Total Committers: 6
  • Avg Commits per committer: 19.0
  • Development Distribution Score (DDS): 0.289
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Nicholas Hannah n****h@g****m 81
Nic Hannah n****h@g****m 19
Aidan Heerdegen a****n@a****u 5
Andrew Kiss 3****s 3
Nicholas Hannah n****c@d****u 3
Nic Hannah n****n 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 2 years ago

All Time
  • Total issues: 1
  • Total pull requests: 3
  • Average time to close issues: 16 days
  • Average time to close pull requests: about 2 months
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.33
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • anton-seaice (1)
  • minghangli-uni (1)
  • aekiss (1)
Pull Request Authors
  • aidanheerdegen (2)
  • anton-seaice (2)
  • ezhilsabareesh8 (2)
  • aekiss (2)
  • minghangli-uni (1)
Top Labels
Issue Labels
Pull Request Labels