mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
8541a32175
Some servers do not properly implement the current DAP2 spec. It turns out that this server is one of those: http://nomads.ncep.noaa.gov:9090/ When a reference such as this is made: http://nomads.ncep.noaa.gov:9090/dods/gens/gens20140123/gep_all_12z?prmslmsl[0][0][0][0:359] tt is returning this: Dataset { float prmslmsl[ens=1][time=1][lat=1][lon=360]; } gens%2fgens20140123%2fgep_all_12z; when it should be returning this: Dataset { Structure { float prmslmsl[ens=1][time=1][lat=1][lon=360]; } prmslmsl; } gens%2fgens20140123%2fgep_all_12z; The reason is that when picking fields out of a grid, one must maintain the fully qualified name, so the grid is converted to an enclosing structure. It turns out that the problem was that when I create the new structure node, I was improperly linking it into the existing graph. This caused a null pointer failure. Fix is to make sure the relevant field (node->root) is set. |
||
---|---|---|
.. | ||
obsolete | ||
cache.c | ||
cdf3.c | ||
CMakeLists.txt | ||
common34.c | ||
constraints3.c | ||
constraints3.h | ||
cvt | ||
dapalign.c | ||
dapalign.h | ||
dapattr3.c | ||
dapcvt.c | ||
dapdebug.c | ||
dapdebug.h | ||
dapdump.c | ||
dapdump.h | ||
dapnc.h | ||
dapodom.c | ||
dapodom.h | ||
daputil.c | ||
daputil.h | ||
dce.y | ||
dceconstraints.c | ||
dceconstraints.h | ||
dcelex.c | ||
dceparse.c | ||
dceparselex.h | ||
dcetab.c | ||
dcetab.h | ||
env | ||
getvara3.c | ||
getvara.h | ||
main.c | ||
Make0 | ||
Makefile.am | ||
nccommon.h | ||
ncd3dispatch.c | ||
ncd3dispatch.h | ||
ncd4dispatch.c | ||
ncd4dispatch.h | ||
ncdap3.c | ||
ncdap3.h | ||
ncdap3a.c | ||
ncdaperr.c | ||
stubdap3.c | ||
test1.sh | ||
test_vara.c | ||
todo | ||
translation.html |