Skip to content

FieldSet.from_netcdf when the NetCDF files have depth dimension #1959

Answered by VeckoTheGecko
albertotb asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, yes this is a bug. For some reason having the depth dimension there is causing an issue.

I (maybe incorrectly) assume that both things should be equivalent, right?

Yes, these both should be equivalent.

Internally in v3 of Parcels we don't use mf_dataset to open the NetCDF files. In v4 we will be working very closely with xarray for fieldset loading. Going to make an issue so that we can track this. I think it would be good if you go ahead with using from_xarray_dataset for the timebeing.

Thanks for the report and minimal examples!

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@VeckoTheGecko
Comment options

Answer selected by albertotb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1958 on April 04, 2025 16:52.