netcdf-c/libdap2
Dennis Heimbigner 724128ad3b Add hack to deal with DAP2 signed byte hack.
re: issue https://github.com/Unidata/netcdf-c/issues/1316

The DAP2 data model does not have a signed byte type,
but netcdf-3 does have (only) a signed byte type.
So, when converting a netcdf-3 signed byte typed variable to
a DAP2 unsigned byte, the following actions are taken by thredds:
1. The variable type is marked as DAP2 (unsigned) byte.
2. A special attribute, "_Unsigned=false" is set for the variable
3. The corresponding "_FillValue" attribute, if any, is up-converted
   to the DAP2 Int16 type in order to hold, with sign, any signed byte
   fill value.

On the netcdf-c side, this looks like a fillvalue type mismatch and causes
an error. Instead, the netcdf-c dap2 conversion code needs to recognize
this hack and undo it locally.

So this change looks for the above case, and if found, then it properly
converts the _FillValue type to netcdf-3 signed byte.

Since DAP2 supports both signed and unsigned integers of sizes 16 and 32 bits,
this should be the only hack needed (famous last words).

It may later be desirable for the thredds DAP2 converter to modify its
behavior as well.
2019-02-13 14:36:14 -07:00
..
obsolete Follow-up trivial typos 2018-04-26 23:04:01 -04:00
cache.c When doing prefetch in DAP2, ignore invisible variables. 2019-01-29 13:43:02 -07:00
cdf.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
CMakeLists.txt Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
common.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
constraints.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
constraints.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
cvt
dapattr.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapcvt.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapdebug.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapdebug.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapdump.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapdump.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapincludes.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapnc.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapodom.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dapodom.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
daputil.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
daputil.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dce.y Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dceconstraints.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dceconstraints.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dcelex.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dceparse.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dceparselex.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
dcetab.c A netcdfgroup email 2016-06-24 15:28:50 -06:00
dcetab.h A netcdfgroup email 2016-06-24 15:28:50 -06:00
env ckp 2017-03-11 15:20:20 -07:00
getvara.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
getvara.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
main.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
Makefile.am Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
nccommon.h Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
ncd2dispatch.c Add hack to deal with DAP2 signed byte hack. 2019-02-13 14:36:14 -07:00
ncd2dispatch.h Separate out the --ansi comment fixes. 2018-12-12 13:23:09 -07:00
ncdap.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
ncdapa.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
ncdaperr.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
test1.sh
test_vara.c Updated COPYRIGHT stanza in libdap2 2018-12-06 14:21:03 -07:00
todo
translation.html