|
From: Jennifer A. <jm...@co...> - 2008-02-06 21:06:00
|
On Feb 2, 2008, at 3:21 PM, Arlindo da Silva wrote:
> b) When using "set gxout fvwrite" to write binary files the missing
> value is not being written correctly, in either little-endian or
> big-endian mode. Is this a bug or a feature (I haven't verified
> whether v1.9 does the same)?
I found a bug in the HDF pathway in gasdf.c :
Near the end of the gadsdf() subroutine, the varids in the gavar
structure for each variable are reset to -999 so that the undef
values and scale factor/add offset values will be retrieved in the I/
O layer. I did it for ncvids, but not sdvids. Add the 2nd line below
and see if that isn't a workable short term fix.
newpvar->ncvid = -999; /* reset the varid so undefs will be
read in gaio.c */
newpvar->sdvid = -999; /* reset the varid so undefs will be
read in gaio.c */
There have been other patches to gasdf.c in the past week, as well as
other unrelated bug fixes, so that one change may not fix everything
for you. I will be putting out 2.0.a1 pretty soon.
Jennifer
|