Commit b7d291d2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added function cdf_def_var_chunking().

parent 6bfa6f6c
...@@ -771,6 +771,15 @@ void cdf_inq_attid(int ncid, int varid, const char *name, int *attnump) ...@@ -771,6 +771,15 @@ void cdf_inq_attid(int ncid, int varid, const char *name, int *attnump)
if ( status != NC_NOERR ) Error("%s", nc_strerror(status)); if ( status != NC_NOERR ) Error("%s", nc_strerror(status));
} }
#if defined (HAVE_NETCDF4)
void cdf_def_var_chunking(int ncid, int varid, int storage, const size_t *chunksizesp)
{
int status = nc_def_var_chunking(ncid, varid, storage, chunksizesp);
if ( status != NC_NOERR ) Error("%s", nc_strerror(status));
}
#endif
#endif #endif
/* /*
* Local Variables: * Local Variables:
......
...@@ -85,6 +85,8 @@ void cdf_inq_attlen (int ncid, int varid, const char *name, size_t *lenp); ...@@ -85,6 +85,8 @@ void cdf_inq_attlen (int ncid, int varid, const char *name, size_t *lenp);
void cdf_inq_attname(int ncid, int varid, int attnum, char *name); void cdf_inq_attname(int ncid, int varid, int attnum, char *name);
void cdf_inq_attid (int ncid, int varid, const char *name, int *attnump); void cdf_inq_attid (int ncid, int varid, const char *name, int *attnump);
void cdf_def_var_chunking(int ncid, int varid, int storage, const size_t *chunksizesp);
typedef int (*cdi_nc__create_funcp)(const char *path, int cmode, typedef int (*cdi_nc__create_funcp)(const char *path, int cmode,
size_t initialsz, size_t *chunksizehintp, size_t initialsz, size_t *chunksizehintp,
int *ncidp); int *ncidp);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment