UNPACK(VECTOR,MASK,FIELD)
This function unpacks a vector into an array under a mask. FIELD, must conform to MASK and and must be of same type and kind as VECTOR. The result is the same shape as MASK.
If
and
then
The highlighted elements originate from VECTOR and correspond to the .TRUE. values of MASK, the other values are from the corresponding elements of FIELD.
Also
again highlighted elements correspond to the .TRUE. values of NOTMASK, the other values are from the corresponding elements of FIELD.
Return to corresponding overview page