home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1486990254

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1486990254 I_kwDOAMm_X85Yoauu 7372 getting confused by xarray not reporting the netCDF ```_FillValue``` attribute in jupyter notebooks: add ```_FillValue``` to the "report"? 8382834 closed 0     3 2022-12-09T15:56:36Z 2023-03-13T19:56:39Z 2023-03-13T19:56:39Z CONTRIBUTOR      

What is your issue?

I love to use xarray to look at / explore / work with netCDF files in notebooks. There is one point that has confused me quite a bit though: the fact that the "report" provided by xarray does not seem to include the _FillValue attribute. For me it is a quite important attribute to know of (I have seen some issues in some files due to poorly chosen _FillValue for example). It looks like xarray is handling _FillValue just fine, but I wonder if being just a bit more explicit rather than implicit, ie showing _FillValue in the report, could be useful? At least this would lift some confusions I have myself regularly ^^ :) .

To illustrate what I say, a screenshot (this is on VSC, a notebook is available at https://github.com/jerabaul29/illustrations/blob/main/inconsistencies/xarray/xarray_fillvalue/xr_fillvalue_issue_base.ipynb , though at the moment the "xarray report" part does not seem to be fully rendered by the github online view: what I mean by "the report" is the html interactive output after the 6 at the bottom):

the "normal" attribute is shown (some_attribute) but the _FilledValue attribute is not shown. I thought / was worried it was dropped when re-dumping to netCDF, though the following of the notebook shows that xarray handles it just fine and re-dumps it when writing again a new netCDF file; still, I often get confused because of this attribute not being reported.

Would it be possible to make the _FillValue attribute visible in the html report to avoid people like me getting confused? :)

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7372/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.523ms · About: xarray-datasette