-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add augment_from_xarray for EOProduct #113
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
base: develop
Are you sure you want to change the base?
Conversation
7d40d45 to
556fc1a
Compare
556fc1a to
9ec4e69
Compare
cb42244 to
2732f2d
Compare
e30a35c to
3d582f3
Compare
e3d9642 to
fa09195
Compare
fa09195 to
aab2a24
Compare
bbea061 to
1a474f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add tests. Total coverage went from 86.54% to 66.51%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move new "sub-methods" to another file like utils/metadata.py
9e1ef7c to
f790f7b
Compare
5c8cd2f to
662498a
Compare
| "description": var.attrs.get("long_name", ""), | ||
| "nodata": var.attrs.get("nodata", -9999), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use default values. If value is not found, do not add description / nodata
| "description": var.attrs.get("long_name", ""), | ||
| "nodata": var.attrs.get("nodata", -9999), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for nodata, please also check _FillValue and missing_value in data_array.encoding
Fixes #112
Add augment_from_xarray function to EOProduct.
It takes values from to_xarray and add cube:dimensions and cube:variables to product properties