Skip to content

Create generic regridder from user provided weights. #5162

Open
@stephenworsley

Description

@stephenworsley

✨ Feature Request

Following on from ideas in #4754, design a regridder/scheme which allows arbitrary regridding with user supplied weights. The idea being that a user can calculate weights for unusual types of regridding, put them in a standard form and have Iris handle the rest of the regridding process. This object would be initialised with a source cube, target cube and regridding weights provided in some form (probably as a sparse matrix).

Potential examples of use:

regridder = CustomRegridder(source, target, weights_matrix)
result = regridder(source)

or else:

result = source.regrid(target, CustomScheme(weights_matrix))

There is some potential for also specifying the masked data handling behaviour with something like mdtol in AreaWeighted. There is also some potential for flexibility with the types of coordinates this works over.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions