Closed kgoebber closed 3 years ago
@kgoebber I guess this is what I get for poor testing in #1490...somehow the grid arg decorator got missed on the new advection
. Also, this uncovered a separate bug in the grid arg decorator when there is a vertical scalar non-dim coord, so that was a good catch too. Does this fix work for you https://github.com/jthielen/MetPy/commit/fe46d137f56aeb493b8fbf54156f115b69e7e255?
That does the trick! Working as intended now. Thanks!
Try to include:
Output:
Problem description When testing MetPy calculation functions from MetPy 1.0rc2, the advection calculation does not appear to properly use the DataArray coordinate information to fill in dx, dy values. According to the documentation, if you feed a scalar in as a DataArray, it should be able to fill in the dx, dy, dz values as needed.
Expected output Should be able to feed in a DataArray for scalar (such as the smooth_tmpc in the example above) and not have to manually fill in the dx, dy, or dz values for computing advection.