About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/_isnull.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 _isnull Context: slangrtl

Synopsis

Check array for NULL elements

Syntax

Char_Type[] = _isnull (a[])

Description

This function may be used to test for the presence of NULL elements of an array. Specifically, it returns a Char_Type array of with the same number of elements and dimensionality of the input array. If an element of the input array is NULL, then the corresponding element of the output array will be set to 1, otherwise it will be set to 0.

Example

Set all NULL elements of a string array A to the empty string "":

     A[where(_isnull(A))] = "";

It is important to understand the difference between A==NULL and _isnull(A). The latter tests all elements of A against NULL, whereas the former only tests A itself.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.