Skip to content

Conversation

@dopplershift
Copy link
Member

Description Of Changes

This adds vertical_dim option to k_index, lifted_index, total_totals_index, vertical_totals, cross_totals, and sweat_index. These already supported operations on grids just fine, but they lacked the ability to control which axis was supposed to be operated upon as the vertical axis. This also adds automated xarray-based handling for this.

Without this change it would assume the first dimension was always vertical.

Checklist

  • Tests added
  • Fully documented

@dopplershift dopplershift added Type: Enhancement Enhancement to existing functionality Area: Calc Pertains to calculations labels Oct 18, 2022
@dopplershift dopplershift added this to the September 2022 milestone Oct 18, 2022
@dopplershift dopplershift requested a review from a team as a code owner October 18, 2022 02:09
@dopplershift dopplershift requested review from dcamron and removed request for a team October 18, 2022 02:09
Copy link
Member

@dcamron dcamron left a comment

Choose a reason for hiding this comment

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

Content looks good, just a quick style consideration!

These already supported operations on grids just fine, but they lacked
the ability to control which axis was supposed to be operated upon as
the vertical axis. This also adds automated xarray-based handling for
this.
@dcamron dcamron enabled auto-merge October 18, 2022 20:42
@dcamron dcamron merged commit 947e6d9 into Unidata:main Oct 18, 2022
@dopplershift dopplershift deleted the indices-vertical-dim branch October 18, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Calc Pertains to calculations Type: Enhancement Enhancement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants