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
{{ message }}
Repository navigation
Support Wave Watch III unstructured grid format #1084
The Wave Watch III (WW3) model generates outputs on unstructured grids. Has the UXARRAY community previously worked with WW3 model outputs? If so, could you provide examples of loading and plotting these datasets?
Thank you for reaching out! We haven't previously worked with any WW3 model output before, however the dataset that you provided has enough information to create a triangular grid using UXarray.
importuxarrayasuximportxarrayasxr# load an xarray dataset since xrds=xr.open_dataset(r"RSCD_WW3-RSCD-UG_202301.nc")
# face node connectivity (indices of the nodes that make up each face, zero-indexed)face_node_connectivity=xrds.tri.data-1node_lon=xrds.longitude.datanode_lat=xrds.latitude.data# create a minimal grid from corner nodes and face node connectivityuxgrid=ux.Grid.from_topology(face_node_connectivity=face_node_connectivity, node_lon=node_lon, node_lat=node_lat)
Here's a plot of a region of the grid (1.0 degree bounding circle centered around -5 longitude 50 latitude)
All the data variables appear to be mapped to the corners of the triangles. I'll open up a PR for supporting this grid format and also for creating a UxDataset from all the data variables.
Would you be able to provide any reference visualizations or workflows that I can take a look at? I'd love to put together an example for UXarray.
I'm not able to import uxarray in a fresh new micromamba env due to static TLS error. Do you have any clue ?
Thanks for your help
>>> import uxarray as ux
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/__init__.py", line 1, in <module>
from .core.api import open_grid, open_dataset, open_mfdataset
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/core/__init__.py", line 1, in <module>
from .api import open_grid, open_dataset, open_mfdataset
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/core/api.py", line 9, in <module>
from uxarray.grid import Grid
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/grid/__init__.py", line 1, in <module>
from .grid import Grid
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/grid/grid.py", line 68, in <module>
from uxarray.grid.neighbors import (
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/grid/neighbors.py", line 8, in <module>
from sklearn.neighbors import BallTree as SKBallTree
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/sklearn/__init__.py", line 85, in <module>
from .utils._show_versions import show_versions
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/sklearn/utils/_show_versions.py", line 15, in <module>
from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: dlopen: cannot load any more object with static TLS
I'm not able to import uxarray in a fresh new micromamba env due to static TLS error. Do you have any clue ?
Thanks for your help
>>> import uxarray as ux
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/__init__.py", line 1, in <module>
from .core.api import open_grid, open_dataset, open_mfdataset
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/core/__init__.py", line 1, in <module>
from .api import open_grid, open_dataset, open_mfdataset
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/core/api.py", line 9, in <module>
from uxarray.grid import Grid
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/grid/__init__.py", line 1, in <module>
from .grid import Grid
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/grid/grid.py", line 68, in <module>
from uxarray.grid.neighbors import (
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/uxarray/grid/neighbors.py", line 8, in <module>
from sklearn.neighbors import BallTree as SKBallTree
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/sklearn/__init__.py", line 85, in <module>
from .utils._show_versions import show_versions
File "/home1/datawork/maccensi/micromamba/envs/env_xarray/lib/python3.12/site-packages/sklearn/utils/_show_versions.py", line 15, in <module>
from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: dlopen: cannot load any more object with static TLS
Can you show me the versions of all of your packages? conda list or mamba list should work.
Hi @tinaok@mickaelaccensi , it's been a while since we last worked on this, and while unfortunately we couldn't make any progress on it in the meantime, we'd like to revisit and do it now. I just wanted to check in with you both first though: Would it still be useful if we created this support in uxarray?
Activity
philipc2 commentedon Nov 22, 2024
Hi @tinaok
Thank you for reaching out! We haven't previously worked with any WW3 model output before, however the dataset that you provided has enough information to create a triangular grid using UXarray.
Here's a plot of a region of the grid (1.0 degree bounding circle centered around -5 longitude 50 latitude)
All the data variables appear to be mapped to the corners of the triangles. I'll open up a PR for supporting this grid format and also for creating a
UxDatasetfrom all the data variables.Would you be able to provide any reference visualizations or workflows that I can take a look at? I'd love to put together an example for UXarray.
mickaelaccensi commentedon Nov 25, 2024
Hi @philipc2 ,
Thanks for this great example ! I'll try to play with it asap.
If you want to look how we do visualization, please look at :
https://nbviewer.org/urls/gitlab.ifremer.fr/resourcecode/tools/exploratory-data-analysis/-/raw/branch/default/index.ipynb
Let me know if you need more information.
mickaelaccensi commentedon Nov 26, 2024
I'm not able to import uxarray in a fresh new micromamba env due to static TLS error. Do you have any clue ?
Thanks for your help
philipc2 commentedon Nov 26, 2024
Can you show me the versions of all of your packages?
conda listormamba listshould work.tinaok commentedon Nov 26, 2024
Hi @mickaelaccensi , I tried on pangeo-eosc cloud, https://pangeo-data.github.io/pangeo-eosc/
just with pip install uxarray on pangeo enviroment it works.
( If we can expose your file in virtual zarr, it should go faster. )
If you are using datarmor, I think RIC put pangeo enviroment, so if it up to date, you just need to do pip install xarray.
[-]Wave Watch III unstructured grid[/-][+]Support Wave Watch III unstructured grid format [/+]erogluorhan commentedon Oct 27, 2026
Hi @tinaok @mickaelaccensi , it's been a while since we last worked on this, and while unfortunately we couldn't make any progress on it in the meantime, we'd like to revisit and do it now. I just wanted to check in with you both first though: Would it still be useful if we created this support in uxarray?
mickaelaccensi commentedon Nov 2, 2026
Hi @erogluorhan, for sure it would be very great to have to WW3 unstructured mesh output directly supported with uxarray ! Thanks a lot for your help
erogluorhan commentedon Nov 2, 2026
Thanks for confirming, @mickaelaccensi ! Perfect, we'll start working on it this iteration