mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
dc9e31df68
The problem was that for opendap, it is possible to use keywords as identifiers when there is no ambiguity. However, the DAP2 parser lost the case of the identifier used the lower case version. Fix is to use the actual text of the symbol when it is used as an identifier. Also added a test case for this (kwcase.*). Additionally cleaned up some misc. dap2 testing problems. 1. ncdap_test/tst_ncdap3.sh was using an empty test set. restored the testing of datasets. 2. as a consequence of #1, some tests needed to be updated with minor tweeks. 3. fix dapmerge to handle multiple DODS_EXTRAS attributes. 4. modify buildattribute to suppress nul characters and terminate the name at the first nul. 5. clean up various test scripts to remove residual, unused references to obsolete netcdf-4 translation. 6. export e.g. NCDUMP from test_common.in so that non-top-level shell scripts can access it.
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
netcdf b31 {
|
|
dimensions:
|
|
b31 = 5 ;
|
|
maxStrlen64 = 64 ;
|
|
variables:
|
|
int b32 ;
|
|
b32:billy = "Bob is my real name" ;
|
|
b32:Robert = "Really wants to be called Billy" ;
|
|
double b31.id(b31) ;
|
|
char b31.class(b31, maxStrlen64) ;
|
|
b31.class:long_name = "class is dismissed" ;
|
|
char b31.text(b31, maxStrlen64) ;
|
|
b31.text:long_name = "textually yours" ;
|
|
|
|
// global attributes:
|
|
:b31.foo.long_name = "It is beyond all recognition" ;
|
|
:b31.foo.short_name = "foobar" ;
|
|
data:
|
|
|
|
b32 = 1 ;
|
|
|
|
b31.id = 1000, 999.950000416665, 999.800006666578, 999.550033748988,
|
|
999.200106660978 ;
|
|
|
|
b31.class =
|
|
"This is a data test string (pass 0).",
|
|
"This is a data test string (pass 2).",
|
|
"This is a data test string (pass 4).",
|
|
"This is a data test string (pass 6).",
|
|
"This is a data test string (pass 8)." ;
|
|
|
|
b31.text =
|
|
"This is a data test string (pass 1).",
|
|
"This is a data test string (pass 3).",
|
|
"This is a data test string (pass 5).",
|
|
"This is a data test string (pass 7).",
|
|
"This is a data test string (pass 9)." ;
|
|
}
|