SDSsetDimensions, SDSgetDimensions - Scientific data set functions for dealing with data set dimensions.
void SDSsetDimensions(char *header, int rank, int *dims)
int SDSgetDimensions(char *header, int *rank, int *dims, int len)
inserts into the character string the flag followed by the and all of the dimensions of the data set. It is the user's responsibility to ensure that the dimensions specified here match the actual dimensions of the data. examines the character string and returns the specified and dimensions of the data set. There is no guarantee that the dimensions read from the header will match the dimensionality of the data received since has no way of reviewing and interpreting the data. will save a maximum of dimensions, and it is the user's responsibility to ensure that the dims array can hold values. DTM, SDSclass, SDSgetRank

DIAGNOSTICS
returns a value of 0 upon successful parsing of the header. If the tag is not found within the header, the function returns the error and no values are assigned to the dimensions. has no way of determining if the header contains sufficient space to hold the tag the rank, and all of the dimensions specified. The results of attempting to store this information beyond the end of the allocated space are undefined. assumes that the rank follows the tag. If the rank is not present, the results are undefined, thus the importance of using when creating the header.