home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 278122300

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
278122300 MDU6SXNzdWUyNzgxMjIzMDA= 1749 _FillValue and missing_value not allowed for the same variable 10668114 closed 0     4 2017-11-30T13:37:19Z 2018-03-31T01:16:00Z 2018-03-31T01:16:00Z NONE      

Problem description

Currently opening the file which has a variable with both _FillValue and missing_value defined, results in a ValueError "'Discovered conflicting _FillValue and missing_value...", which can be overridden by setting decode_cf=False

Code in xarray/conventions.py have comments that missing_value is deprecated, however this seems not to be true anymore, see ticket #67 in http://cfconventions.org/cf-conventions/cf-conventions.html

Also, see description of meanings of _FillValue and missing_value here: https://github.com/Unidata/netcdf4-python/issues/94 "Note that missing_value and _FillValue are very different. _FillValue is used by the C library to fill in values in variables that have not yet been written to. missing_value is meant to represent values set by the user to represent data points that do not exist."

Expected Output

Accept both _FillValue and missing_value and if both present, mask output only for _FillValue

Output of xr.show_versions()

0.9.6

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1749/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

  • 4 rows from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.716ms · About: xarray-datasette