-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"regrid" drops dataset attributes #116
Comments
Using something like |
It looks like what we need is e.g. Line 381 in 0683271
|
@dgergel I think that's for the old Edit: My rough fix for getting attrs merged from out_ds.attrs |= ds.attrs
for k, v in ds.variables.items():
if k in out_ds:
out_ds[k].attrs |= v.attrs |
@brews I took a look at the source code for the pangeo-supported fork of xesmf and it still has that |
@dgergel Huh! You're right! I'll see if that arg does the trick. Thanks. |
@brews we fixed this, correct? So we can go ahead and close? |
@dgergel good question. It's a bit of a stale issue but I say we should keep this open. Right now we have a hackish workaround. It works but I'd like to try the solution you recommend before we close this. |
Got it - let's keep it open for now then. |
Anytime we call
dodola.core.xesmf_regrid
, the output data is missing attributes from the input data. It would be great if we could keep — or merge — attrs from input data.The text was updated successfully, but these errors were encountered: