File: fillvalue-type.patch

package info (click to toggle)
octave-ncarray 1.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: makefile: 144
file content (20 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (2)
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')