cis icon indicating copy to clipboard operation
cis copied to clipboard

Incorrect collocation for decreasing latitude coordinate

Open duncanwp opened this issue 6 years ago • 0 comments

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.

duncanwp avatar Jan 17 '20 15:01 duncanwp