mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Fix bug in run_newformat.sh
Problem was basically that the test file ref_oldformat.zip was incorrect. Additionally, logic in zsync.c was incorrect. ### Misc. other fixes 1. Turn off accidental debug output
This commit is contained in:
parent
cbbb30ccd9
commit
9abe3cb961
@ -7,7 +7,7 @@ This file contains a high-level description of this package's evolution. Release
|
||||
|
||||
## 4.9.3 - TBD
|
||||
|
||||
* Provide better documentation for the .rc file mechanism and API. See [Github #????](https://github.com/Unidata/netcdf-c/pull/????) for more information.
|
||||
* Provide better documentation for the .rc file mechanism and API. See [Github #2956](https://github.com/Unidata/netcdf-c/pull/2956) for more information.
|
||||
* 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. The price to be paid is that lazy attribute reading cannot be supported. See [Github #2836](https://github.com/Unidata/netcdf-c/pull/2936) for more information.
|
||||
* Cleanup the option code for NETCDF_ENABLE_SET_LOG_LEVEL\[_FUNC\] See [Github #2931](https://github.com/Unidata/netcdf-c/pull/2931) for more information.
|
||||
*
|
||||
|
@ -1513,7 +1513,7 @@ define_var1(NC_FILE_INFO_T* file, NC_GRP_INFO_T* grp, const char* varname)
|
||||
if(jvalue != NULL)
|
||||
var->storage = NC_CHUNKED;
|
||||
/* Extract dimrefs list */
|
||||
if((stat = dictgetalt(jncvar,"dimension_references","dimensions",&jdimrefs))) goto done;
|
||||
if((stat = dictgetalt(jncvar,"dimension_references","dimrefs",&jdimrefs))) goto done;
|
||||
if(jdimrefs != NULL) { /* Extract the dimref names */
|
||||
assert((NCJsort(jdimrefs) == NCJ_ARRAY));
|
||||
if(zvar->scalar) {
|
||||
@ -1851,7 +1851,7 @@ ncz_read_superblock(NC_FILE_INFO_T* file, char** nczarrvp, char** zarrfp)
|
||||
|
||||
if(jsuper != NULL) {
|
||||
if(jsuper->sort != NCJ_DICT) {stat = NC_ENCZARR; goto done;}
|
||||
if((stat = NCJdictget(jsuper,"version",&jtmp))<0) {stat = NC_EINVAL; goto done;}
|
||||
if((stat = dictgetalt(jsuper,"nczarr_version","version",&jtmp))<0) {stat = NC_EINVAL; goto done;}
|
||||
nczarr_version = nulldup(NCJstring(jtmp));
|
||||
}
|
||||
|
||||
@ -2572,14 +2572,13 @@ getnczarrkey(NC_OBJ* container, const char* name, const NCjson** jncxxxp)
|
||||
jxxx = NULL;
|
||||
if((stat = NCJdictget(zobj->atts,name,&jxxx))<0) {stat = NC_EINVAL; goto done;}
|
||||
}
|
||||
if(name == NULL) {
|
||||
jxxx = NULL;
|
||||
if(jxxx == NULL) {
|
||||
/* Try .zxxx second */
|
||||
if(zobj->obj != NULL) {
|
||||
if((stat = NCJdictget(zobj->obj,name,&jxxx))<0) {stat = NC_EINVAL; goto done;}
|
||||
}
|
||||
/* Mark as old style with _nczarr_xxx in obj not attributes */
|
||||
zobj->nczv1 = 1;
|
||||
if(jxxx != NULL)
|
||||
zobj->nczv1 = 1; /* Mark as old style with _nczarr_xxx in obj not attributes */
|
||||
}
|
||||
if(jncxxxp) *jncxxxp = jxxx;
|
||||
done:
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user