Skip to content

Commit

Permalink
fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Jul 5, 2024
2 parents d9ab4d5 + f184f02 commit d7e2353
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions hydrolib/core/dflowfm/net/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,25 +330,37 @@ def _set_1dmesh(self, ncfile: nc.Dataset, mesh1d: Mesh1d) -> None: # type: igno
mesh1d_node_offset.units = "m"
mesh1d_node_offset[:] = mesh1d.mesh1d_node_branch_offset

mesh_edge_x = ncfile.createVariable("mesh1d_edge_x", np.float64, "mesh1d_nEdges")
mesh_edge_x = ncfile.createVariable(
"mesh1d_edge_x", np.float64, "mesh1d_nEdges"
)
mesh_edge_x.standard_name = "projection_x_coordinate"
mesh_edge_x.long_name = "Characteristic x-coordinate of the mesh edge (e.g. midpoint)"
mesh_edge_x.long_name = (
"Characteristic x-coordinate of the mesh edge (e.g. midpoint)"
)
mesh_edge_x.units = "m"
mesh_edge_x[:] = mesh1d.mesh1d_edge_x

mesh_edge_y = ncfile.createVariable("mesh1d_edge_y", np.float64, "mesh1d_nEdges")
mesh_edge_y = ncfile.createVariable(
"mesh1d_edge_y", np.float64, "mesh1d_nEdges"
)
mesh_edge_y.standard_name = "projection_y_coordinate"
mesh_edge_y.long_name = "Characteristic y-coordinate of the mesh edge (e.g. midpoint)"
mesh_edge_y.long_name = (
"Characteristic y-coordinate of the mesh edge (e.g. midpoint)"
)
mesh_edge_y.units = "m"
mesh_edge_y[:] = mesh1d.mesh1d_edge_y

mesh_node_x = ncfile.createVariable("mesh1d_node_x", np.float64, "mesh1d_nNodes")
mesh_node_x = ncfile.createVariable(
"mesh1d_node_x", np.float64, "mesh1d_nNodes"
)
mesh_node_x.standard_name = "projection_x_coordinate"
mesh_node_x.long_name = "x coordinates of mesh nodes"
mesh_node_x.units = "m"
mesh_node_x[:] = mesh1d.mesh1d_node_x

mesh_node_y = ncfile.createVariable("mesh1d_node_y", np.float64, "mesh1d_nNodes")
mesh_node_y = ncfile.createVariable(
"mesh1d_node_y", np.float64, "mesh1d_nNodes"
)
mesh_node_y.standard_name = "projection_y_coordinate"
mesh_node_y.long_name = "y coordinates of mesh nodes"
mesh_node_y.units = "m"
Expand Down

0 comments on commit d7e2353

Please sign in to comment.