Skip to content

Commit

Permalink
revising land filling values near shoreline, issue NOAA-EMC#55
Browse files Browse the repository at this point in the history
  • Loading branch information
AliS-Noaa committed Jul 5, 2024
1 parent f5cb620 commit 395bf68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unst_msh_gen/ocn_ww3.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def write_gmsh_mesh(filename, node_data, tri):
point = jigsawpy.R3toS2(geom.radii, point) # to [lon,lat] in deg
point*= 180. / np.pi
depth = np.reshape(-1*mesh.value, (mesh.value.size, 1))
depth[depth <= -2] = 50
depth[depth <= 0] = 2
point = np.hstack((point, depth)) # append elev. as 3rd coord.
cells = [("triangle", mesh.tria3["index"])]
tri_data=cells[0][1]+1
Expand Down

0 comments on commit 395bf68

Please sign in to comment.