Skip to content

Intergration with xr is confusing #6

Description

@mannreis

I expected the following to work without warnings:

import xarray as xr
xr.open_dataset('example.nc', engine='prism', decode_cf=False)

However I get this:

/lib/python3.14/site-packages/xarray/conventions.py:205: SerializationWarning: variable 'temperature' has multiple fill values {np.float64(-8888.0), np.float32(-9999.0)} defined, decoding all values to NaN.
  var = coder.decode(var, name=name)

If I use any of these alternatives, it works:

xr.open_dataset('example.nc', engine='netcdf4', decode_cf=False)
xr.open_dataset('example.nc', engine='prism', backend_kwargs={'decode_cf':False})

I find it confusing but I get that prism is a bit recursive, since it calls xr with other engines...


Here is the script to generate the problematic file:
example.py

Activity

  1. tropicrainforest commented on Jul 28, 2026

    @tropicrainforest
    Contributor

    this has been fixed here #8
    so we can close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions