1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Use correct type for attribute _FillValue
Using single() for setting the attribute _FillValue seemed to work
with NetCDF 4.9.2, but ceased to work with version 4.9.3 (released in
February 2025). Using double() fixes the problem.
Author: Rafael Laboissière <rafael@debian.org>
Bug-Debian: https://bugs.debian.org/1098585
Forwarded: https://savannah.gnu.org/bugs/?66890
Last-Update: 2025-03-11
--- octave-ncarray-1.0.6.orig/inst/ncarray_example_file.m
+++ octave-ncarray-1.0.6/inst/ncarray_example_file.m
@@ -37,7 +37,7 @@ function ncarray_example_file(filename,d
nccreate(filename,'SST','Datatype',dtype,'Dimensions',...
{'x',sz(1), 'y',sz(2), 'time',1});
ncwriteatt(filename,'SST','missing_value',single(9999))
- ncwriteatt(filename,'SST','_FillValue',single(9999))
+ ncwriteatt(filename,'SST','_FillValue',double(9999))
ncwriteatt(filename,'SST','units','degC')
ncwriteatt(filename,'SST','long_name','Sea Surface Temperature')
ncwriteatt(filename,'SST','coordinates','lat lon')
|