Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect collocation for decreasing latitude coordinate #26

Open
duncanwp opened this issue Jan 17, 2020 · 0 comments
Open

Incorrect collocation for decreasing latitude coordinate #26

duncanwp opened this issue Jan 17, 2020 · 0 comments

Comments

@duncanwp
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant