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
Very maybe uds.ugrid.sel(x/y) could help out here (Deltares/xugrid#26). Or for instance implement uds.ugrid.isel(faces=idx_faces), where also edges/nodes are subsetted (Deltares/xugrid#32) >> fixed
If it would be possible subset an entire dataset (dims: faces, edges, nodes) based on faceidx, it would also be easier to remove ghostcells as in dfmt.open_partitioned_dataset() (#207)
polyline_mapslice() now uses xu.ugrid2d.intersect_edges and sorts them. Put sorting in intersect_edges or numba.celltree (Move snap_to_edges to numba_celltree xugrid#65 is probably related) >> this seems to be solved, but check more thoroughly
calcdist_fromlatlon is derived from hardcoded varnames wgs84 or projected_coordinate_system, maybe Parse CRS if present xugrid#42 (but would still require conversion to cartesian/spherical). At least find coordvar based on attribute if possible.
veenstrajelmer
changed the title
Improve map-polygon-slice dataset structure and cleanliness
Improve map-polyline-slice dataset structure and cleanliness
Mar 14, 2023
Very maybe uds.ugrid.sel(x/y) could help out here (Deltares/xugrid#26). Or for instance implement uds.ugrid.isel(faces=idx_faces), where also edges/nodes are subsetted (Deltares/xugrid#32) >> fixed
If it would be possible subset an entire dataset (dims: faces, edges, nodes) based on faceidx, it would also be easier to remove ghostcells as in dfmt.open_partitioned_dataset() (#207)
xu.grid.intersect_edges
: convert map cross section (polygon slice) to xugrid alternative #252polyline_mapslice
andpolygon_intersect
) #277intersect_edges_withsorting()
#275polyline_mapslice()
now usesxu.ugrid2d.intersect_edges
and sorts them. Put sorting inintersect_edges
ornumba.celltree
(Move snap_to_edges to numba_celltree xugrid#65 is probably related) >> this seems to be solved, but check more thoroughlydfmt.polyline_mapslice
withuds.intersect_line
#682calcdist_fromlatlon
is derived from hardcoded varnameswgs84
orprojected_coordinate_system
, maybe Parse CRS if present xugrid#42 (but would still require conversion to cartesian/spherical). At least find coordvar based on attribute if possible.The text was updated successfully, but these errors were encountered: