Skip to content

Commit b8fd86d

Browse files
authored
Add '_FillValue' to set of valid_encodings for netCDF4 backend
1 parent 015daca commit b8fd86d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/backends/netCDF4_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _extract_nc4_variable_encoding(variable, raise_on_invalid=False,
160160

161161
safe_to_drop = set(['source', 'original_shape'])
162162
valid_encodings = set(['zlib', 'complevel', 'fletcher32', 'contiguous',
163-
'chunksizes', 'shuffle'])
163+
'chunksizes', 'shuffle', '_FillValue'])
164164
if lsd_okay:
165165
valid_encodings.add('least_significant_digit')
166166

0 commit comments

Comments
 (0)