Commit 66a6356a authored by BERGER's avatar BERGER
Browse files

Application scale factor uniquement quand nécessaire et test sur jeu de données EK80 Thalassa

parent 334ccd2d
This diff is collapsed.
......@@ -166,7 +166,7 @@ class NcReader:
shape = vlen_variable.shape
dimensions = vlen_variable.dimensions
reduced_shape, reduced_dimensions = self._squeeze_shape(shape, dimensions)
vlen_variable.set_auto_mask(False)
vlen_variable.set_auto_maskandscale(False)
# with netcdf < 1.5.4 we need to take into account for scale factor and add offset by ourself
scale_factor = None
add_offset = None
......@@ -184,7 +184,7 @@ class NcReader:
# data are like a vector shape
values = vlen_variable[:]
values = np.squeeze(values)
values = self._apply_scale_offset(scale_factor, add_offset, missing_value)
# values = self._apply_scale_offset(scale_factor, add_offset, missing_value)
return values[:]
if len(reduced_shape) > 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment