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
When opening a delft3d4 netcdf with dfmt.open_dataset_delft3d4(), the grid variable is not removed. When writing this uds to a netcdf file with uds.ugrid.to_netcdf() the resulting file cannot be opened by quickplot. When removing the variable, quickplot still warns about grid attrs being present in data variables. These should also be removed:
file_nc="trim-Model-k01-with topography-eco.nc"uds=dfmt.open_dataset_delft3d4(file_nc)
uds=uds.drop_vars(["MFTAVG","MORAVG","grid"])
#writeuds.ugrid.to_netcdf("test2.nc")
# results in QP conflicting file#workaround (do for all variables)ds=uds.ugrid.to_dataset()
delds["RSEDEQ"].attrs["grid"]
print(ds["RSEDEQ"])
ds.to_netcdf("netcdf/file/nc")
QP warnings:
---------
Cannot find mesh "grid"; ignoring mesh/location attributes on "RHO".
---------
Cannot find mesh "grid"; ignoring mesh/location attributes on "VICUV".
---------
Cannot find mesh "grid"; ignoring mesh/location attributes on "WS".
The text was updated successfully, but these errors were encountered:
When opening a delft3d4 netcdf with
dfmt.open_dataset_delft3d4()
, thegrid
variable is not removed. When writing this uds to a netcdf file withuds.ugrid.to_netcdf()
the resulting file cannot be opened by quickplot. When removing the variable, quickplot still warns aboutgrid
attrs being present in data variables. These should also be removed:QP warnings:
The text was updated successfully, but these errors were encountered: