Skip to content

Conversation

@xylar
Copy link
Collaborator

@xylar xylar commented Apr 19, 2020

This should make sure the mask includes the various boundaries.

This should make sure the mask includes the various boundaries
@xylar
Copy link
Collaborator Author

xylar commented Apr 19, 2020

@mark-petersen, I noticed that the signed distance function had the wrong function for the row containing the North Pole for any shape that extends that far north. This seems to be because the rasterize function is sensitive to round-off errors (or something along those lines). The easiest solution I could find was to expand the mask used to determine the sign by dlat so we can be sure it cover everything we want. This might mean the signed distance isn't that accurate right around zero, so I want you to let me know if you see any side effects of this. I've been using this in #518 and haven't seen any bad results so far.

Copy link
Contributor

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Approved based on @xylar's testing.

@mark-petersen mark-petersen merged commit 6928778 into MPAS-Dev:ocean/develop Apr 20, 2020
@xylar xylar deleted the ocean/buffer_signed_distance_mask branch April 21, 2020 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants