CDF
User's Guide
Version 2.6, October 1, 1998
National Space Science Data Center
Copyright c
1990 | 1998 NASA/GSFC/NSSDC
National Space Science Data Center
NASA/Goddard Space Flight Center
Greenbelt, Maryland 20771 (U.S.A.)
DECnet | NSSDCA::CDFSUPPORT
Internet | cdfsupport@nssdca.gsfc.nasa.gov
Permission is granted to make and distribute verbatim copies of this document provided this copyright and
permission notice are preserved on all copies.
Contents
Preface
xv
1 Primer
1
1.1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1.2 Why Use CDF? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1.3 Conceptual Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
1.4 Features of the CDF Library
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
1.4.1 File Format Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
1.4.2 Data Encoding Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
1.4.3 Compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
1.4.4 Sparseness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
1.4.5 Variable Data Access Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
1.5 Organizing Your Data in a CDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
1.5.1 Variables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
1.6 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
1.7 CDF Toolkit
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
1.8 Library Interface Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
1.8.1 Standard Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .