xarray-contrib / xwrf

A lightweight interface for working with the Weather Research and Forecasting (WRF) model output in Xarray.
https://xwrf.readthedocs.io/
Apache License 2.0
56 stars 16 forks source link

[Bug]: When using `xwrf.destagger` on Datasets and DataArrays, variable attributes get removed #96

Closed lpilz closed 1 year ago

lpilz commented 1 year ago

What happened?

cf. title

Minimal Complete Verifiable Example

No response

Relevant log output

No response

Environment

System Information
------------------
xWRF commit : fda79991f4e6e702d5d57853b24163175fc5ec76
python      : 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 07:04:59) [GCC 10.3.0]
python-bits : 64
OS          : Linux
OS-release  : 4.18.0-305.25.1.el8_4.x86_64
machine     : x86_64
processor   : x86_64
byteorder   : little
LC_ALL      : en_US.UTF-8
LANG        : en_US.UTF-8
LOCALE      : ('en_US', 'UTF-8')

Installed Python Packages
-------------------------
cf_xarray   : 0.7.2
dask        : 2022.7.0
donfig      : 0.7.0
matplotlib  : 3.5.2
metpy       : 1.3.0
netCDF4     : 1.5.8
numpy       : 1.21.6
pandas      : 1.4.3
pint        : 0.19.2
pooch       : v1.6.0
pyproj      : 3.3.1
xarray      : 2022.3.0
xgcm        : 0.8.0
xwrf        : 0.0.1.post1

Anything else we need to know?

No response

jthielen commented 1 year ago

Closed by https://github.com/xarray-contrib/xwrf/pull/97