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

cm1 datasets not getting fields correctly #4512

Closed
matthewturk opened this issue Jun 16, 2023 · 0 comments · Fixed by #4513
Closed

cm1 datasets not getting fields correctly #4512

matthewturk opened this issue Jun 16, 2023 · 0 comments · Fixed by #4513
Labels
bug code frontends Things related to specific frontends
Milestone

Comments

@matthewturk
Copy link
Member

Something is up with how cm1 datasets are working. I'm using an example dataset from @leighorf, but the behavior I'm seeing is that when I define a derived field:

def vort_mag(field, data):
    return (data["cm1", "xvort"]**2 + data["cm1", "yvort"]**2)**0.5

The second field, yvort, is all zeros. This is not the case elsewhere, if I read yvort directly from disk. More detail:

https://gist.github.com/matthewturk/127c1ec0d7b9e09f7a228a96cf9f98d4

I think this is specific to the cm1 reader, but I am going to check.

@chrishavlin chrishavlin linked a pull request Jun 16, 2023 that will close this issue
@neutrinoceros neutrinoceros added bug code frontends Things related to specific frontends labels Jun 17, 2023
@neutrinoceros neutrinoceros added this to the 4.2.1 milestone Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug code frontends Things related to specific frontends
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants