Skip to content

Incorrect collocation for decreasing latitude coordinate #26

Description

@duncanwp

Given a cube with a decreasing latitude (Dim) coordinate Gridded to Ungridded collocation gives incorrect values. The following can reproduce this:

clwc=cis.read_data('test.nc', 'clwc')
points = hyperpoint.HyperPointList([hyperpoint.HyperPoint(lat=-25.8,
                                        lon=-19,val=0)])
res_cis = clwc.collocated_onto(ungridded_data.UngriddedData.from_points_array(points), missing_data_for_missing_sample=False)
assert res_cis[0].data[0] == 0.16651

Using the attached test file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions