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

Error in loading Grid Builder nc grid #160

Open
DiegoBindoni opened this issue Oct 2, 2024 · 1 comment
Open

Error in loading Grid Builder nc grid #160

DiegoBindoni opened this issue Oct 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DiegoBindoni
Copy link

Good afternoon,
i'm trying to load a grid crated with Grid Builder (with this tool i can have a more accurate masking of the coastline), but when i import it with Grid.from_file i obtain this error

File ~/prova.py:4
the_same_grid = Grid.from_file(filepath)

File ~/anaconda3/envs/limenet_env/lib/python3.12/site-packages/roms_tools/setup/grid.py:617 in from_file
grid._coarsen()

File ~/anaconda3/envs/limenet_env/lib/python3.12/site-packages/roms_tools/setup/grid.py:249 in _coarsen
] = f"{self.ds[fine_var].attrs['long_name']} on coarsened grid"

KeyError: 'long_name'

Could you please help me solve this issue? Let me know other informations i could provide. Thanks in advance

@NoraLoose
Copy link
Collaborator

@DiegoBindoni thanks for raising this issue. ROMS-Tools is still in an early development and testing phase, and we haven't added support for reading grid files that were created with Grid Builder.

Can you point me to the Grid Builder tool? Then I will put this on the To Do list. Thanks!

@NoraLoose NoraLoose added the enhancement New feature or request label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants