Skip to content

Sorting an array of a vertical temperature profile to determine location/magnitude of temperature inversions on a sounding. #2435

Discussion options

You must be logged in to vote

Hi thanks for posting! This was an interesting little problem, and I came up with one solution that appears to work but I only tested it on a single profile, so you may consider this as a "starting point" that may need some modifications for edge cases. It could also probably be improved/streamlined in several areas, but I didn't focus too much on elegance but rather functionality.

Maybe I'll try and work on contributing this, since I think this would be a handy capability. Maybe @dopplershift has some guidance, but I can get a issue/PR opened at the least. Needs a lot more testing though for sure.

Here's the code:

#/usr/bin/env python

# Sounding example:
# https://unidata.github.io/siph…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@kylejgillett
Comment options

@DanielAdriaansen
Comment options

@DanielAdriaansen
Comment options

@kylejgillett
Comment options

@kylejgillett
Comment options

Answer selected by dopplershift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants