NuSDaS Interface Reference Manual

NUSDAS_MAKE_MASK

creates data-presence bitmap from data array.

SYNOPSIS

/* C */
    int
nusdas_make_mask(udata, utype, usize, bitmap, bitmapsize)

! Fortran
SUBROUTINE NUSDAS_MAKE_MASK(udata, utype, usize, bitmap, bitmapsize, iostat)
symbolFortranC
udata(may be various type)void *
utype(should be constant/macro in header)
usizeINTEGERN_SI4 *
bitmapCHARACTER, DIMENSION(*), INTENT(OUT)char *
bitmapsizeINTEGERN_SI4 *
iostatINTEGER, INTENT(OUT)(not used)

ARGUMENTS

udata

user data array from which the bitmap is created. Array elements where data is missing should be set to the missing value for the User Data Array Type. For example, elements equivalent to N_MV_R4 are regarded as missing if udata is REAL/float array.

utype

see table of User Data Array Type.

usize

number of array elements allocated user data.

bitmap

character array to which the bitmap will be stored.

bitmapsize

size of bitmap in bytes.

iostat

same meaning as return value in C interface.

RETURN VALUE

0Succeeded.
-1Error: bitmap size too little