Skip to content

Commit 525ab4c

Browse files
authored
Merge pull request #1697 from NOAA-GSD/ejh_not_on
add test for nc_inq_var_chunking on classic files
2 parents a8732ca + 4cdb659 commit 525ab4c

File tree

3 files changed

+285
-347
lines changed

3 files changed

+285
-347
lines changed

include/nc4dispatch.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ extern "C" {
110110
int *shufflep, int *deflatep, int *deflate_levelp,
111111
int *fletcher32p, int *contiguousp, size_t *chunksizesp,
112112
int *no_fill, void *fill_valuep, int *endiannessp,
113-
unsigned int* idp, size_t* nparamsp, unsigned int* params
114-
);
113+
unsigned int* idp, size_t* nparamsp, unsigned int* params);
115114

116115
EXTERNL int
117116
NC4_inq_varid(int ncid, const char *name, int *varidp);

libdispatch/dvarinq.c

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -735,76 +735,4 @@ nc_inq_var_szip(int ncid, int varid, int *options_maskp, int *pixels_per_blockp)
735735
return stat;
736736
}
737737

738-
/*!
739-
Learn all about a variable.
740-
741-
@param[in] ncid ncid for file.
742-
@param[in] varid varid for variable in question.
743-
@param[out] name Pointer to memory to contain the name of the
744-
variable.
745-
@param[out] xtypep Pointer to memory to contain the type of the
746-
variable.
747-
@param[out] ndimsp Pointer to memory to store the number of associated
748-
dimensions for the variable.
749-
@param[out] dimidsp Pointer to memory to store the dimids associated
750-
with the variable.
751-
@param[out] nattsp Pointer to memory to store the number of attributes
752-
associated with the variable.
753-
@param[out] shufflep Pointer to memory to store shuffle information
754-
associated with the variable.
755-
@param[out] deflatep Pointer to memory to store compression type
756-
associated with the variable.
757-
@param[out] deflate_levelp Pointer to memory to store compression
758-
level associated with the variable.
759-
@param[out] fletcher32p Pointer to memory to store compression
760-
information associated with the variable.
761-
@param[out] contiguousp Pointer to memory to store contiguous-data
762-
information associated with the variable.
763-
@param[out] chunksizesp Pointer to memory to store chunksize
764-
information associated with the variable.
765-
@param[out] no_fill Pointer to memory to store whether or not there is
766-
a fill value associated with the variable.
767-
@param[out] fill_valuep Pointer to memory to store the fill value (if
768-
one exists) for the variable.
769-
@param[out] endiannessp Pointer to memory to store endianness
770-
value. One of ::NC_ENDIAN_BIG ::NC_ENDIAN_LITTLE ::NC_ENDIAN_NATIVE
771-
@param[out] idp Pointer to memory to store filter id.
772-
@param[out] nparamsp Pointer to memory to store filter parameter count.
773-
@param[out] params Pointer to vector of unsigned integers into which
774-
to store filter parameters.
775-
\note Expose access to nc_inq_var_all().
776-
777-
\returns ::NC_NOERR No error.
778-
\returns ::NC_EBADID Bad ncid.
779-
\returns ::NC_ENOTVAR Bad varid.
780-
\returns ::NC_ENOMEM Out of memory.
781-
\returns ::NC_EINVAL Invalid input.
782-
\author Ed Hartnett, Dennis Heimbigner
783-
\internal
784-
\ingroup variables
785-
*/
786-
#if 0
787-
int
788-
NC_inq_var_all(int ncid, int varid, char *name, nc_type *xtypep,
789-
int *ndimsp, int *dimidsp, int *nattsp,
790-
int *shufflep, int *deflatep, int *deflate_levelp,
791-
int *fletcher32p, int *contiguousp, size_t *chunksizesp,
792-
int *no_fill, void *fill_valuep, int *endiannessp,
793-
unsigned int* unused1, size_t* unused2, unsigned int* unused3
794-
)
795-
{
796-
NC* ncp;
797-
int stat = NC_check_id(ncid,&ncp);
798-
if(stat != NC_NOERR) return stat;
799-
return ncp->dispatch->inq_var_all(
800-
ncid, varid, name, xtypep,
801-
ndimsp, dimidsp, nattsp,
802-
shufflep, deflatep, deflate_levelp, fletcher32p,
803-
contiguousp, chunksizesp,
804-
no_fill, fill_valuep,
805-
endiannessp,
806-
NULL, NULL, NULL);
807-
}
808-
#endif
809-
810738
/*! \} */ /* End of named group ...*/

0 commit comments

Comments
 (0)