You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ~/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
The text was updated successfully, but these errors were encountered:
@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!
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
The text was updated successfully, but these errors were encountered: