Skip to content

Unneeded warning from xarray dimension handling #2370

@dopplershift

Description

@dopplershift

The following code:

mpcalc.advection(isen_press, u=isen_u, v=isen_v)

produces a warning:

/Users/rmay/repos/metpy/src/metpy/xarray.py:1473: UserWarning: Vertical dimension number not found. Defaulting to (..., Z, Y, X) order.

when isen_press, isen_u, and isen_v are all 2D and matching shape. That seems unneeded for this case and probably a bit confusing to users. Not sure how much of a pain it would be to fix that though...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CalcPertains to calculationsArea: XarrayPertains to xarray integrationType: BugSomething is not working like it should

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions