If you've ever wondered if those trig identities from school are really useful in "real life", here's a just-merged PR that fixes up some NaN issues in our frontogenesis calculation by using one of those identities to eliminate arcsin() (and associated numerical problems): github.com/Unidata/MetP...

Prevent frontogenesis from returning nans by sgdecker · Pull Request #3696 · Unidata/MetPyDescription Of Changes Previously, frontogenesis could return nans when there was a constant theta field (division by zero would occur) or if round-off error resulted in the argument to arcsin bein...github.com