mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +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.
50 lines
931 B
Plaintext
50 lines
931 B
Plaintext
netcdf synth6 {
|
|
dimensions:
|
|
Q1 = 2 ;
|
|
Q1.v2_1 = 4 ;
|
|
Q1.v4_1 = 2 ;
|
|
S1.v1_0 = 2 ;
|
|
S1.v1_1 = 4 ;
|
|
S1.v3_0 = 2 ;
|
|
S1.v3_1 = 2 ;
|
|
S1.v5_0 = 2 ;
|
|
S1.v5_1 = 2 ;
|
|
variables:
|
|
byte S1.v1(S1.v1_0, S1.v1_1) ;
|
|
int S1.v3(S1.v3_0, S1.v3_1) ;
|
|
S1.v3:a1 = 32 ;
|
|
double S1.v5(S1.v5_0, S1.v5_1) ;
|
|
short Q1.v2(Q1, Q1.v2_1) ;
|
|
float Q1.v4(Q1, Q1.v4_1) ;
|
|
|
|
// global attributes:
|
|
:globalattr = 177 ;
|
|
:CoreMetadata.OrbitNumber.Value = 375 ;
|
|
:CoreMetadata.OrbitNumber.Data_Location = "PGE" ;
|
|
:CoreMetadata.OrbitNumber.Mandatory = "FALSE" ;
|
|
:CoreMetadata.RangeBeginningDate.Value = "1997/12/21" ;
|
|
:CoreMetadata.RangeBeginningDate.Data_Location = "PGE" ;
|
|
:CoreMetadata.RangeBeginningDate.Mandatory = "FALSE" ;
|
|
data:
|
|
|
|
S1.v1 =
|
|
97, 98, 99, 100,
|
|
101, 102, 103, 104 ;
|
|
|
|
S1.v3 =
|
|
132, 232,
|
|
332, 432 ;
|
|
|
|
S1.v5 =
|
|
1640, 2640,
|
|
3640, 4640 ;
|
|
|
|
Q1.v2 =
|
|
116, 216, 316, 416,
|
|
516, 616, 716, 816 ;
|
|
|
|
Q1.v4 =
|
|
1320, 2320,
|
|
3320, 4320 ;
|
|
}
|