Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to transect extraction and plotting #534

Merged
merged 2 commits into from
Oct 28, 2023

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented Oct 28, 2023

This merge fixes several issues with transects:

  • Sometimes, when a segment of a transect ends exactly at an intersection with a cell edge, there are redundant intersection points in the list. This merge removes those redundant points.
  • This merge also fixes some index arrays that were previously type float but should be int.
  • Finally, this merge fixes masking of the SSH to ignore cells where maxLevelCell==0

Sometimes, when a segment of a transect ends exactly at an
intersection with a cell edge, there are redundant intersection
points in the list.  This merge removes those redundant points.

This merge also fixes some index arrays that were previously type
float but should be int.
This merge fixes masking of the SSH to ignore cells where
maxLevelCell=0
@xylar
Copy link
Collaborator Author

xylar commented Oct 28, 2023

Testing

I used this branch along with https://github.com/xylar/polaris/tree/add-isomip-plus-init to produce the following transect plots. Without these fixes, the plot could not be produced. Without the SSH fix, transects include a jump to SSH = 0 in the region of grounded ice.

temperatureSection
temperatureSection

@xylar xylar merged commit 436d930 into MPAS-Dev:master Oct 28, 2023
7 checks passed
@xylar xylar deleted the fix-planar-transect branch October 28, 2023 12:43
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.

1 participant