netcdf-c/nczarr_test/ref_jsonconvention.cdl
Dennis Heimbigner 076da97aa4 Convert NCzarr meta-data to use only Zarr attributes
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
2024-06-19 18:09:29 -06:00

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 = _ ;
}