Ryan May
Ryan May
So for reference, this is the same as skimage's [`peak_local_max`](https://scikit-image.org/docs/stable/api/skimage.feature.html#skimage.feature.peak_local_max). Looks like in 0.18 they addressed the "return multiple close points" problem by picking one arbitrarily. I'm peaking at [this...
@ThomasMGeo The problem with `find_peaks` is that it only works with 1D input. I have an implementation of the persistent homology approach that I just need to finish with: 1....
Punting from this (now December) release because there are some API decisions I don't want to rush on plotting and I'm still struggling with auto-thresholding of the persistent homology approach....
It would be good to have something to do this--of course it would be better if we didn't have to care and things just worked with scalars transparently, but alas....
Certainly the `heat_index` one does. The `apparent_temperature` one apparently is a bug in Pint where: ```python hasattr(5 * units.m, '__len__') ``` returns `True`. 😒 It looks like doing `is_not_scalar =...
@akrherz Is this with pint 0.23?
I'd be interested in adding examples somewhere, either here or on the forthcoming MetPy cookbook on [Project Pythia](http://projectpythia.org), that demonstrates how to wire up our SkewT class as an interactive...
> I would look into [plotly](https://plotly.com/python/) if you want to roll your own. Though I have no idea what support they have for a skew-ed transform.
The magic of Python and file-like objects can make this a little cleaner: ```python from io import StringIO from matplotlib.colors import ListedColormap from metpy.plots.ctables import convert_gempak_table, read_colortable with open("ir_upc2.tbl","r") as...
Why would opening/closing the file within `convert_gempak_table` be better? It's almost always better to let the user handle this kind of thing. In fact, that function might actually be better...