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

Support item assignment for Grid #1140

Open
philipc2 opened this issue Jan 28, 2025 · 0 comments
Open

Support item assignment for Grid #1140

philipc2 opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@philipc2
Copy link
Member

Pointed out by @brianpm

I'm having some trouble because that grid file is in radians, so the uxds.uxgrid Spherical Coordinates are in radians. I tried to convert them in place, uxds.uxgrid['node_lon'] = np.rad2deg(uxds.uxgrid['node_lon']), but that doesn't seem allowed (TypeError: 'Grid' object does not support item assignment).

uxds.uxgrid['var'] = ... should operate the same as uxds.uxgrid.var = ...

@github-project-automation github-project-automation bot moved this to 📚 Backlog in UXarray Development Jan 28, 2025
@philipc2 philipc2 self-assigned this Jan 28, 2025
@philipc2 philipc2 moved this from 📚 Backlog to 📝 To-Do in UXarray Development Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📝 To-Do
Development

No branches or pull requests

1 participant