Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
* a new regridding scheme, :class:`iris.analysis.UnstructuredNearest`,
performs nearest-neighbour regridding from unstructured onto "normal" grids.
Here, "unstructured" means that the data has X and Y coordinate values
defined at each horizontal location, instead of on independent X and Y
dimensions.
For example, data sampled on a trajectory or a tripolar ocean grid.

The essential purpose is the same as
:class:`iris.experimental.regrid.ProjectedUnstructuredNearest`.
This scheme, by comparison, is generally more accurate, but slower.
10 changes: 9 additions & 1 deletion lib/iris/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2016, Met Office
# (C) British Crown Copyright 2010 - 2017, Met Office
#
# This file is part of Iris.
#
Expand Down Expand Up @@ -2369,6 +2369,14 @@ class UnstructuredNearest(object):
.. Note::
Currently only supports regridding, not interpolation.

.. Note::
This scheme performs essentially the same job as
:class:`iris.experimental.regrid.ProjectedUnstructuredNearest`.
That scheme is faster, but only works well on data in a limited
region of the globe, covered by a specified projection.
This approach is more rigorously correct and can be applied to global
datasets.

"""
# Note: the argument requirements are simply those of the underlying
# regridder class,
Expand Down
6 changes: 6 additions & 0 deletions lib/iris/experimental/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,12 @@ class ProjectedUnstructuredNearest(object):
The source cube and the target cube will be projected into a common
projection for the scipy calculation to be performed.

.. Note::
The :class:`iris.analysis.UnstructuredNearest` scheme performs
essentially the same job. That calculation is more rigorously
correct and may be applied to larger data regions (including global).
This one however, where applicable, is substantially faster.

"""
def __init__(self, projection=None):
"""
Expand Down