mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-15 08:30:11 +08:00
076da97aa4
As discussed in a netcdf meeting, convert NCZarr V2 to store all netcdf-4 specific info as attributes. This improves interoperability with other Zarr implementations by no longer using non-standard keys. ## Other Changes * Remove support for older NCZarr formats. * Update anonymous dimension naming * Begin the process of fixing the -Wconversion and -Wsign-compare warnings in libnczarr, nczarr_test, and v3_nczarr_test. * Update docs/nczarr.md * Rebuild using the .y and .l files
20 lines
468 B
Plaintext
20 lines
468 B
Plaintext
netcdf tmp_jsonconvention {
|
|
dimensions:
|
|
d1 = 1 ;
|
|
variables:
|
|
int v(d1) ;
|
|
v:varjson1 = "{\"key1\": [1,2,3], \"key2\": {\"key3\": \"abc\"}}" ;
|
|
v:varjson2 = "[[1.0,0.0,0.0],[0.0,1.0,0.0],[0.0,0.0,1.0]]" ;
|
|
v:varjson3 = "[0.,0.,1.]" ;
|
|
v:varchar1 = "1.0, 0.0, 0.0" ;
|
|
|
|
// global attributes:
|
|
:globalfloat = 1. ;
|
|
:globalfloatvec = 1., 2. ;
|
|
:globalchar = "abc" ;
|
|
:globalillegal = "[ [ 1.0, 0.0, 0.0 ], [ 0.0, 1.0, 0.0 ], [ 0.0, 0.0, 1.0 " ;
|
|
data:
|
|
|
|
v = _ ;
|
|
}
|