[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #EPC-295929]: Problems updating Metpy from 1.3 to latest version 1.3.1



Greetings!

As part of the continuous integration process for our development, all of 
MetPy's examples are run every time we merge in new code--so we work really 
hard to make sure we don't break examples. To confirm, though, I was able to 
run the cross_section.py example just fine here on Python 3.9, both on my Mac 
and on an Ubuntu VM.

The error you're seeing is 

free(): invalid size
Aborted (core dumped)

That means it's crashing while doing some memory management at the C level, 
which indicates the problem is somewhere beyond MetPy. My early guesses are 
that the problem is somewhere with one of Cartopy, Matplotlib, or netCDF. How 
did you install those libraries?


Can you post the output of `conda list`?

Cheers,

Ryan

> I have been rather busy with your other software packages = Mcidas - V
> and IDV 6 these can produce the particular Charts i have been after
> being the Vorticity charts at 500mb and 700mb for this extent
> North: -5.0
> West: -255.0
> East: -110.0
> South: -55.0
> 
> So as i can produce the charts i needed with this excellent programming
> suite, the usage of metpy has become secondary to my requirements.
> To recap with metpy there has been problems with the Anaconda Package
> Manager in Linux Mint 20 as in taking ages to load in the resolve
> package message @ terminal loading from the Conda Channel for metpy.
> 
> Also when i run the Metpy code for Metpy 1.3 examples from the updated
> version of Metpy 1.3.1 then various errors are given at the terminal.
> With version 1.3 of metpy did not receive these and the program scripts
> ran to completion and produced the needed charts.
> Bear in mind i am still relatively new to the metpy way of doing things.
> 
> Here is the error thrown from the cross_section.py script for metpy
> 1.3.1 previously with metpy 1.3 this script would produce the chart.
> I verified that the chart image was produced and certainly was with
> metpy 1.3 before the update?.
> 
> (base)
> ghettoupgrade@ghettoupgrade-B450-AORUS-ELITE:/mnt/63661dbd-b20a-41ce-b734-8f61ea51da94/Metpy
> files/unidatatutorials/metpy 1.3 examples$ python cross_section.py
> <xarray.Dataset>
> Dimensions:              (isobaric: 29, y: 118, x: 292)
> Coordinates:
> time                 datetime64[ns] 1987-04-04T18:00:00
> * isobaric             (isobaric) float64 1e+03 975.0 950.0 ... 125.0
> 100.0
> * y                    (y) float64 -3.087e+06 -3.054e+06 ... 7.114e+05
> * x                    (x) float64 -3.977e+06 -3.945e+06 ... 5.47e+06
> metpy_crs            object Projection: lambert_conformal_conic
> Data variables:
> Temperature          (isobaric, y, x) float32 ...
> Lambert_Conformal    |S1 ...
> lat                  (y, x) float64 ...
> lon                  (y, x) float64 ...
> u_wind               (isobaric, y, x) float32 ...
> v_wind               (isobaric, y, x) float32 ...
> Geopotential_height  (isobaric, y, x) float32 ...
> Specific_humidity    (isobaric, y, x) float32 ...
> Attributes: (12/14)
> Conventions:              CF-1.0
> Originating_center:       US National Weather Service - NCEP(WMC)
> (7)
> Originating_subcenter:    The North American Regional Reanalysis
> (NARR) P...
> Generating_Model:         North American Regional Reanalysis (NARR)
> Product_Type:             Forecast/Uninitialized Analysis/Image
> Product
> title:                    US National Weather Service - NCEP(WMC)
> North A...
> ...                       ...
> history:                  Direct read of GRIB-1 into NetCDF-Java 4
> API
> CF:feature_type:          GRID
> file_format:              GRIB-1
> location:
> /nomads3_data/raid2/noaaport/merged/narr/198704...
> _CoordinateModelRunDate:  1987-04-04T18:00:00Z
> History:                  Translated to CF-1.0 Conventions by
> Netcdf-Java...
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> <xarray.Dataset>
> Dimensions:              (isobaric: 29, index: 100)
> Coordinates:
> time                 datetime64[ns] 1987-04-04T18:00:00
> * isobaric             (isobaric) float64 1e+03 975.0 950.0 ... 125.0
> 100.0
> metpy_crs            object Projection: lambert_conformal_conic
> x                    (index) float64 1.818e+05 2.18e+05 ...
> 3.712e+06
> y                    (index) float64 -1.454e+06 -1.447e+06 ...
> -5.573e+05
> * index                (index) int64 0 1 2 3 4 5 6 7 ... 93 94 95 96
> 97 98 99
> lat                  (index) float64 37.0 37.05 37.11 ... 35.66
> 35.58 35.5
> lon                  (index) float64 -105.0 -104.6 -104.2 ... -65.39
> -65.0
> Data variables:
> Temperature          (isobaric, index) float64 287.7 286.9 ... 211.4
> 211.4
> Lambert_Conformal    |S1 ...
> u_wind               (isobaric, index) float64 -2.729 0.4776 ...
> 24.6 23.68
> v_wind               (isobaric, index) float64 8.473 5.723 ...
> -1.082
> Geopotential_height  (isobaric, index) float64 118.6 127.4 ...
> 1.636e+04
> Specific_humidity    (isobaric, index) float64 0.006367 ...
> 4.223e-06
> Attributes: (12/14)
> Conventions:              CF-1.0
> Originating_center:       US National Weather Service - NCEP(WMC)
> (7)
> Originating_subcenter:    The North American Regional Reanalysis
> (NARR) P...
> Generating_Model:         North American Regional Reanalysis (NARR)
> Product_Type:             Forecast/Uninitialized Analysis/Image
> Product
> title:                    US National Weather Service - NCEP(WMC)
> North A...
> ...                       ...
> history:                  Direct read of GRIB-1 into NetCDF-Java 4
> API
> CF:feature_type:          GRID
> file_format:              GRIB-1
> location:
> /nomads3_data/raid2/noaaport/merged/narr/198704...
> _CoordinateModelRunDate:  1987-04-04T18:00:00Z
> History:                  Translated to CF-1.0 Conventions by
> Netcdf-Java...
> <xarray.Dataset>
> Dimensions:                (isobaric: 29, index: 100)
> Coordinates:
> time                   datetime64[ns] 1987-04-04T18:00:00
> * isobaric               (isobaric) float64 1e+03 975.0 950.0 ...
> 125.0 100.0
> metpy_crs              object Projection: lambert_conformal_conic
> x                      (index) float64 1.818e+05 2.18e+05 ...
> 3.712e+06
> y                      (index) float64 -1.454e+06 -1.447e+06 ...
> -5.573e+05
> * index                  (index) int64 0 1 2 3 4 5 6 ... 93 94 95 96
> 97 98 99
> lat                    (index) float64 37.0 37.05 37.11 ... 35.66
> 35.58 35.5
> lon                    (index) float64 -105.0 -104.6 -104.2 ...
> -65.39 -65.0
> Data variables:
> Temperature            (isobaric, index) float64 287.7 286.9 ...
> 211.4 211.4
> Lambert_Conformal      |S1 ...
> u_wind                 (isobaric, index) float64 <Quantity([[
> -5.30445235...
> v_wind                 (isobaric, index) float64
> <Quantity([[16.47047637 ...
> Geopotential_height    (isobaric, index) float64 118.6 127.4 ...
> 1.636e+04
> Specific_humidity      (isobaric, index) float64 0.006367 ...
> 4.223e-06
> Potential_temperature  (isobaric, index) float64
> <Quantity([[287.71705253...
> Relative_humidity      (isobaric, index) float64
> <Quantity([[0.61138304 0...
> t_wind                 (isobaric, index) float64
> <Quantity([[-2.02660106 ...
> n_wind                 (isobaric, index) float64 <Quantity([[
> 17.18448995...
> Attributes: (12/14)
> Conventions:              CF-1.0
> Originating_center:       US National Weather Service - NCEP(WMC)
> (7)
> Originating_subcenter:    The North American Regional Reanalysis
> (NARR) P...
> Generating_Model:         North American Regional Reanalysis (NARR)
> Product_Type:             Forecast/Uninitialized Analysis/Image
> Product
> title:                    US National Weather Service - NCEP(WMC)
> North A...
> ...                       ...
> history:                  Direct read of GRIB-1 into NetCDF-Java 4
> API
> CF:feature_type:          GRID
> file_format:              GRIB-1
> location:
> /nomads3_data/raid2/noaaport/merged/narr/198704...
> _CoordinateModelRunDate:  1987-04-04T18:00:00Z
> History:                  Translated to CF-1.0 Conventions by
> Netcdf-Java...
> /mnt/63661dbd-b20a-41ce-b734-8f61ea51da94/Metpy
> files/unidatatutorials/metpy 1.3 examples/cross_section.py:99:
> UserWarning: FixedFormatter should only be used together with
> FixedLocator
> ax.set_yticklabels(np.arange(1000, 50, -100))
> free(): invalid size
> (core dumped)
> (base)
> ghettoupgrade@ghettoupgrade-B450-AORUS-ELITE:/mnt/63661dbd-b20a-41ce-b734-8f61ea51da94/Metpy
> files/unidatatutorials/metpy 1.3 examples$ python cross_section.py
> <xarray.Dataset>
> Dimensions:              (isobaric: 29, y: 118, x: 292)
> Coordinates:
> time                 datetime64[ns] 1987-04-04T18:00:00
> * isobaric             (isobaric) float64 1e+03 975.0 950.0 ... 125.0
> 100.0
> * y                    (y) float64 -3.087e+06 -3.054e+06 ... 7.114e+05
> * x                    (x) float64 -3.977e+06 -3.945e+06 ... 5.47e+06
> metpy_crs            object Projection: lambert_conformal_conic
> Data variables:
> Temperature          (isobaric, y, x) float32 ...
> Lambert_Conformal    |S1 ...
> lat                  (y, x) float64 ...
> lon                  (y, x) float64 ...
> u_wind               (isobaric, y, x) float32 ...
> v_wind               (isobaric, y, x) float32 ...
> Geopotential_height  (isobaric, y, x) float32 ...
> Specific_humidity    (isobaric, y, x) float32 ...
> Attributes: (12/14)
> Conventions:              CF-1.0
> Originating_center:       US National Weather Service - NCEP(WMC)
> (7)
> Originating_subcenter:    The North American Regional Reanalysis
> (NARR) P...
> Generating_Model:         North American Regional Reanalysis (NARR)
> Product_Type:             Forecast/Uninitialized Analysis/Image
> Product
> title:                    US National Weather Service - NCEP(WMC)
> North A...
> ...                       ...
> history:                  Direct read of GRIB-1 into NetCDF-Java 4
> API
> CF:feature_type:          GRID
> file_format:              GRIB-1
> location:
> /nomads3_data/raid2/noaaport/merged/narr/198704...
> _CoordinateModelRunDate:  1987-04-04T18:00:00Z
> History:                  Translated to CF-1.0 Conventions by
> Netcdf-Java...
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:562:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imin = index.get_loc(minval, method="nearest")
> /home/ghettoupgrade/anaconda3/lib/python3.9/site-packages/xarray/core/missing.py:563:
> FutureWarning: Passing method to Float64Index.get_loc is deprecated and
> will raise in a future version. Use index.get_indexer([item],
> method=...) instead.
> imax = index.get_loc(maxval, method="nearest")
> <xarray.Dataset>
> Dimensions:              (isobaric: 29, index: 100)
> Coordinates:
> time                 datetime64[ns] 1987-04-04T18:00:00
> * isobaric             (isobaric) float64 1e+03 975.0 950.0 ... 125.0
> 100.0
> metpy_crs            object Projection: lambert_conformal_conic
> x                    (index) float64 1.818e+05 2.18e+05 ...
> 3.712e+06
> y                    (index) float64 -1.454e+06 -1.447e+06 ...
> -5.573e+05
> * index                (index) int64 0 1 2 3 4 5 6 7 ... 93 94 95 96
> 97 98 99
> lat                  (index) float64 37.0 37.05 37.11 ... 35.66
> 35.58 35.5
> lon                  (index) float64 -105.0 -104.6 -104.2 ... -65.39
> -65.0
> Data variables:
> Temperature          (isobaric, index) float64 287.7 286.9 ... 211.4
> 211.4
> Lambert_Conformal    |S1 ...
> u_wind               (isobaric, index) float64 -2.729 0.4776 ...
> 24.6 23.68
> v_wind               (isobaric, index) float64 8.473 5.723 ...
> -1.082
> Geopotential_height  (isobaric, index) float64 118.6 127.4 ...
> 1.636e+04
> Specific_humidity    (isobaric, index) float64 0.006367 ...
> 4.223e-06
> Attributes: (12/14)
> Conventions:              CF-1.0
> Originating_center:       US National Weather Service - NCEP(WMC)
> (7)
> Originating_subcenter:    The North American Regional Reanalysis
> (NARR) P...
> Generating_Model:         North American Regional Reanalysis (NARR)
> Product_Type:             Forecast/Uninitialized Analysis/Image
> Product
> title:                    US National Weather Service - NCEP(WMC)
> North A...
> ...                       ...
> history:                  Direct read of GRIB-1 into NetCDF-Java 4
> API
> CF:feature_type:          GRID
> file_format:              GRIB-1
> location:
> /nomads3_data/raid2/noaaport/merged/narr/198704...
> _CoordinateModelRunDate:  1987-04-04T18:00:00Z
> History:                  Translated to CF-1.0 Conventions by
> Netcdf-Java...
> <xarray.Dataset>
> Dimensions:                (isobaric: 29, index: 100)
> Coordinates:
> time                   datetime64[ns] 1987-04-04T18:00:00
> * isobaric               (isobaric) float64 1e+03 975.0 950.0 ...
> 125.0 100.0
> metpy_crs              object Projection: lambert_conformal_conic
> x                      (index) float64 1.818e+05 2.18e+05 ...
> 3.712e+06
> y                      (index) float64 -1.454e+06 -1.447e+06 ...
> -5.573e+05
> * index                  (index) int64 0 1 2 3 4 5 6 ... 93 94 95 96
> 97 98 99
> lat                    (index) float64 37.0 37.05 37.11 ... 35.66
> 35.58 35.5
> lon                    (index) float64 -105.0 -104.6 -104.2 ...
> -65.39 -65.0
> Data variables:
> Temperature            (isobaric, index) float64 287.7 286.9 ...
> 211.4 211.4
> Lambert_Conformal      |S1 ...
> u_wind                 (isobaric, index) float64 <Quantity([[
> -5.30445235...
> v_wind                 (isobaric, index) float64
> <Quantity([[16.47047637 ...
> Geopotential_height    (isobaric, index) float64 118.6 127.4 ...
> 1.636e+04
> Specific_humidity      (isobaric, index) float64 0.006367 ...
> 4.223e-06
> Potential_temperature  (isobaric, index) float64
> <Quantity([[287.71705253...
> Relative_humidity      (isobaric, index) float64
> <Quantity([[0.61138304 0...
> t_wind                 (isobaric, index) float64
> <Quantity([[-2.02660106 ...
> n_wind                 (isobaric, index) float64 <Quantity([[
> 17.18448995...
> Attributes: (12/14)
> Conventions:              CF-1.0
> Originating_center:       US National Weather Service - NCEP(WMC)
> (7)
> Originating_subcenter:    The North American Regional Reanalysis
> (NARR) P...
> Generating_Model:         North American Regional Reanalysis (NARR)
> Product_Type:             Forecast/Uninitialized Analysis/Image
> Product
> title:                    US National Weather Service - NCEP(WMC)
> North A...
> ...                       ...
> history:                  Direct read of GRIB-1 into NetCDF-Java 4
> API
> CF:feature_type:          GRID
> file_format:              GRIB-1
> location:
> /nomads3_data/raid2/noaaport/merged/narr/198704...
> _CoordinateModelRunDate:  1987-04-04T18:00:00Z
> History:                  Translated to CF-1.0 Conventions by
> Netcdf-Java...
> /mnt/63661dbd-b20a-41ce-b734-8f61ea51da94/Metpy
> files/unidatatutorials/metpy 1.3 examples/cross_section.py:99:
> UserWarning: FixedFormatter should only be used together with
> FixedLocator
> ax.set_yticklabels(np.arange(1000, 50, -100))
> free(): invalid size
> Aborted (core dumped)
> I may be no expert but it seems that the new update does not play well
> with the 1.3 code scripts you guys have provided for the examples.
> 
> Thanks Guys Gary.
> 
> 


Ticket Details
===================
Ticket ID: EPC-295929
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.