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

Fixes for NCDatasets v0.13 #80

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Fixes for NCDatasets v0.13 #80

merged 1 commit into from
Feb 9, 2024

Conversation

sjdaines
Copy link
Member

@sjdaines sjdaines commented Feb 9, 2024

See https://github.com/Alexander-Barth/NCDatasets.jl/releases

In NCDatasets v0.13, ncvar[:] now flattens the data into a Vector, instead of returning a 2D or nD array (ie NCDatasets v0.13 now follows standard Julia conventions for array indexing).

Fix here is to use Array(ncvar), which converts to a Julia Vector or nD Array (this is also backwards compatible with earlier versions of NCDatasets)

See https://github.com/Alexander-Barth/NCDatasets.jl/releases

In NCDatasets v0.13, ncvar[:] now flattens the data into a Vector,
instead of returning a 2D or nD array (ie NCDatasets v0.13 now follows
standard Julia conventions for array indexing).

Fix here is to use Array(ncvar), which converts to a Julia Vector or nD Array
(this is also backwards compatible with earlier versions of NCDatasets)
@sjdaines sjdaines merged commit 6444267 into main Feb 9, 2024
3 checks passed
@sjdaines sjdaines deleted the netcdf_update_fixes branch February 9, 2024 17:18
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

Successfully merging this pull request may close these issues.

1 participant