Image conversion variable functions

miicv_create : Create an image conversion variable and set the defaults -- an icv identifier is returned for later use (or MI_ERROR if an error occurs). The old limit of MI_MAX_NUM_ICV icv's that can exist at one time has been removed, although the definition remains.

public int miicv_create();

miicv_free : Free an image conversion variable.

public int miicv_free(int icvid);

miicv_setdbl : Set a numeric icv property to a double value.

public int miicv_setdbl(int icvid, int icv_property, double value);

miicv_setint : Set a numeric icv property to an integer value.

public int miicv_setint(int icvid, int icv_property, int value);

miicv_setlong : Set a numeric icv property to a long integer value.

public int miicv_setlong(int icvid, int icv_property, long value);

miicv_setstr : Set a string icv property.

public int miicv_set(int icvid, int icv_property, char *value);

miicv_inqdbl : Inquire about a numeric icv property. value points to the double precision variable in which the value should be returned.

public int miicv_inqdbl(int icvid, int icv_property, double *value);

miicv_inqint : Inquire about a numeric icv property. value points to the integer variable in which the value should be returned.

public int miicv_inqint(int icvid, int icv_property, int *value);

miicv_inqlong : Inquire about a numeric icv property. value points to the long integer variable in which the value should be returned.

public int miicv_inqlong(int icvid, int icv_property, long *value);

miicv_inqstr : Inquire about a string icv property. value points to the character array in which the value should be returned. The calling routine must allocate enough space for the return string.

public int miicv_inqstr(int icvid, int icv_property, char *value);

miicv_attach : Attach a MINC file and image variable to an icv. Note that icv properties cannot be modified while a variable is attached to the icv. If a variable is already attached to the icv, then it is automatically detached. The file icvid must be in data mode.

public int miicv_attach(int icvid, int cdfid, int varid);

miicv_ndattach : Like miicv_attach but no dimension conversion facilities are available (much like setting MI_ICV_DO_DIM_CONV to FALSE). This avoids linking in all of the dimension conversion routines when they are not needed (for machines where memory may be a concern).

public int miicv_ndattach(int icvid, int cdfid, int varid);

miicv_detach : Detach a variable from an icv.

public int miicv_detach(int icvid);

miicv_get : Get a hyperslab of values from a variable through an icv.

public int miicv_get(int icvid, long start[], long count[], void *values);

miicv_put : Put a hyperslab of values to a variable through an icv.

public int miicv_put(int icvid, long start[], long count[], void *values);