-
Notifications
You must be signed in to change notification settings - Fork 15
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 Plotting STOFS-3D-Atlantic Data #88
Comments
Hello Atieh I am afraid we haven't really looked into 3D output. Judging from the screenshots, my guess is that there is some issue with the element connectivity.
outputs
Do notice that the node connectivity only starts from 3 and only reaches up to 2653944 instead of 2654153. So, it seems that these files don't contain the full mesh for whatever reason. related: #61 |
You can try to copy the mesh connectivity from the |
@pmav99 Thank you so much for the great suggestion. I tried to use the format and names inside the shout_adcirc file and rename and replace values and dimensions in field2d.nc files. Then I renamed and replaced the dimensions and variables in field2d.nc files.
I normalized and cropped the data using Thalassa. When I plot the data the depth values look OK, but for the rest of variables, there are a lot of missing data. The same happens when I copy each variable to shout_adcirc file. |
Hmm... The missing values seem to be on triangles that are over land. So it could be that some kind of mask is applied on the dataset. Have you checked if there are values there? I suspect that there are Check the original netcdf files. Not the normalized datasets. E.g. with ds_orig = xr.open_dataset(...)
ds_orig.isel(nSCHISM_hgrid_node=0).elev.values If this is the case, this should also explain why these files contain a subset of the connectivity. The mask must have been applied there, too. |
@pmav99, you're correct. I looked into the nodes in the original dataset near the areas that show as |
OK. I guess I will just close the issue. |
Hi, I am trying to use the Thalassa package to read and plot STOFS-3D-Atlantic outputs. While thalassa.open_dataset and thalassa.plot work fine with *schout_adcirc outputs, it does not plot other outputs required to visualize current output, such as stofs_3d_atl.t12z.f001_024.field2d.nc. Please see the plot below for an example. Any suggestions on how I can use thalassa.open_dataset and thalassa.plot to plot the data correctly? Thanks for your help and time.
The text was updated successfully, but these errors were encountered: