mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Fixed nccopy bug when using --disable-netcdf-4. Removed premature nccopy chunking code.
This commit is contained in:
parent
b37a176fa0
commit
39b6c1eb5c
@ -1068,7 +1068,6 @@ usage(void)
|
||||
1 classic, 2 64-bit offset, 3 netCDF-4, 4 netCDF-4 classic model\n\
|
||||
[-d n] deflation compression level, default same as input (0=none 9=max)\n\
|
||||
[-s] adds shuffle option to deflation compression\n\
|
||||
[-c chunkspec] specifies chunking for dimensions like \"dim1/N1,dim2/N2,...\"\n\
|
||||
[-u] converts unlimited dimensions to fixed-size dimensions in output copy\n\
|
||||
[-m n] size in bytes of copy buffer, default is 5000000 bytes\n\
|
||||
infile name of netCDF input file\n\
|
||||
@ -1171,11 +1170,6 @@ main(int argc, char**argv)
|
||||
case 's': /* shuffling, may improve compression */
|
||||
option_shuffle_vars = NC_SHUFFLE;
|
||||
break;
|
||||
case 'c': /* optional chunking spec for each dimension in list */
|
||||
{
|
||||
/* parse chunkspec string into (dimid, chunklen) structure */
|
||||
}
|
||||
break;
|
||||
case 'u': /* convert unlimited dimensions to fixed size */
|
||||
option_fix_unlimdims = 1;
|
||||
break;
|
||||
|
@ -1503,6 +1503,7 @@ do_ncdump_rec(int ncid, const char *path, fspec_t* specp)
|
||||
/* This dim may be in a parent group, so let's look up the
|
||||
* name. */
|
||||
NC_CHECK( nc_inq_dimname(ncid, var.dims[id], dim_name) );
|
||||
#ifdef USE_NETCDF4
|
||||
/* Subtlety: The following code block is needed because
|
||||
* nc_inq_dimname() currently returns only a simple dimension
|
||||
* name, without a prefix identifying the group it came from.
|
||||
@ -1538,6 +1539,7 @@ do_ncdump_rec(int ncid, const char *path, fspec_t* specp)
|
||||
free(locname);
|
||||
}
|
||||
}
|
||||
#endif /* USE_NETCDF4 */
|
||||
print_name (dim_name);
|
||||
printf ("%s", id < var.ndims-1 ? ", " : ")");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user