mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +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.
54 lines
920 B
Plaintext
54 lines
920 B
Plaintext
netcdf bears {
|
|
dimensions:
|
|
i = 2 ;
|
|
j = 3 ;
|
|
l = 3 ;
|
|
maxStrlen64 = 64 ;
|
|
variables:
|
|
short l(l) ;
|
|
char bears(i, j, maxStrlen64) ;
|
|
bears:act = "text string\\012\\011123" ;
|
|
bears:acs = -40s ;
|
|
bears:acl = 17000 ;
|
|
bears:acf = -2.f, 1.f, 0.f ;
|
|
bears:acd = -1., 0.75 ;
|
|
bears:string_length = 3 ;
|
|
short order(i, j) ;
|
|
int shot(i, j) ;
|
|
float aloan(i, j) ;
|
|
double cross(i, j) ;
|
|
|
|
// global attributes:
|
|
:history = "This is an example of a multi-line global\\012attribute. It could be used for representing the\\012processing history of the data, for example." ;
|
|
:DODS_EXTRA.Unlimited_Dimension = "k" ;
|
|
:i.i_1.attr3_1 = "17" ;
|
|
:i.i_1.attr3_2 = 19., 23., 27. ;
|
|
data:
|
|
|
|
l = 10, 9, 8 ;
|
|
|
|
bears =
|
|
"ind",
|
|
"ist",
|
|
"ing",
|
|
"uis",
|
|
"hab",
|
|
"le" ;
|
|
|
|
order =
|
|
1, 2, 3,
|
|
4, 5, 6 ;
|
|
|
|
shot =
|
|
2, 3, 4,
|
|
5, 6, 7 ;
|
|
|
|
aloan =
|
|
3, 4, 5,
|
|
6, 7, 1e+12 ;
|
|
|
|
cross =
|
|
4, 5, 0.000244140625,
|
|
7, 8, 10000000000 ;
|
|
}
|