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
Plot contour for crosssect/mapslice raises "IndexError: index 1 is out of bounds for axis 1 with size 1" because edge_face_connectivity has shape (24336, 1)
This probably happens since we generate Ugrid2d based on crs_tstart and crs_tstop, with many overlapping values between crs_start[1:] and crs_stop[:-1]. The resulting node_x values are therefore not unique. However, the z on these x-unique points can be non-unique so we need this for flat water surfaces until xarray supports plotting bounds.
Plot contour for crosssect/mapslice raises
"IndexError: index 1 is out of bounds for axis 1 with size 1"
becauseedge_face_connectivity
has shape(24336, 1)
MWE:
This probably happens since we generate Ugrid2d based on crs_tstart and crs_tstop, with many overlapping values between
crs_start[1:]
andcrs_stop[:-1]
. The resulting node_x values are therefore not unique. However, the z on these x-unique points can be non-unique so we need this for flat water surfaces until xarray supports plotting bounds.Wait on new xugrid cross section method/dataset from Deltares/xugrid#59
The text was updated successfully, but these errors were encountered: