Skip to content

[feature] Add depth_interp method #21

Description

@oj-tooth

Add a new depth interpolation method to NEMODataArray and NEMODataTree to linearly interpolate along 1- and 3-dimensional depth coordinates.

To be compatible with both depth{t/u/v/f/w}(k) and depth{t/u/v/f/w}(k, j, i)

  • Add functions to compute interpolation weights and apply interpolation along the depth coordinate.
  • Add new depth_interp method to NEMODataTree class.
  • Add new depth_interp method to NEMODataArray class.

Relevant Modules:

  • nemo_cookbook/nemodatatree.py
  • nemo_cookbook/nemodataarray
  • tests/test_nemodatatree_core.py
  • tests/test_nemodataarray_core.py
  • tests/test_interpolate.py

Metadata

Metadata

Assignees

Labels

class: NEMODataArrayIssues involving NEMODataArray behaviour or functionality.class: NEMODataTreeIssues involving NEMODataTree behaviour or functionality.featureAddition of new feature to NEMO Cookbook.testsAdditions or improvements to NEMO Cookbook unit & integration tests.

Fields

No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions