CDF Version 2.7, UNIX/POSIX Systems Common Data Format (CDF) is a conceptual data abstraction for storing multi-dimensional data sets. The basic component of CDF is a software programming interface that is a device independent view of the CDF data model. The application developer is insulated from the actual physical file format for reasons of conceptual simplicity, device independence, and future expandability. Version 2 of CDF has been rewritten to be portable across a wide variety of platforms. CDF files created on any given platform can be transported to any other platform on to which CDF is ported and used with any CDF tools or layered applications. A more detailed introduction to CDF can be found in the CDF User's Guide. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! You must have a C compiler in order to build the CDF distribution. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! The CDF library and toolkit programs are written in C. A C compiler is necessary to build the CDF distribution. The CDF distribution also contains several Fortran source files which support the Fortran interface. If a Fortran compiler is not available, the distribution can be built without Fortran support. The CDF distribution package now contains CDF Java APIs as well as Java version of the CDF tools except for CDFEdit (e.g. SkeletonTable, SkeletonCDF, etc.). The Java APIs, built on top of the CDF library written in C, allow users to develop platform-independent CDF applications, and by default, they are not installed as part of standard installation. The APIs can be installed by following the installation instructions described in the README.install file located under the cdf27-dist/cdfjava directory. Documentation for CDF consists of the CDF User's Guide, the CDF C Reference Manual, and the CDF Fortran Reference Manual. The `Release.notes' file explains how to get/print the documents. Requests for assistance or documentation should be sent to: DECnet -- NSSDCA::CDFSUPPORT (15578::CDFSUPPORT) Internet -- cdfsupport@nssdca.gsfc.nasa.gov (128.183.241.14) If you get the distribution, please send CDFSUPPORT a message so we can put you on our mailing list. That way you will be notified of new releases. UNIX/POSIX Installation Instructions ------------------------------------ CDF V2.7 is distributed for UNIX and POSIX systems as a `tar' file compressed using the `compress' utility, compressed using Gnu `gzip', and uncompressed. The term POSIX is used when referring to a VAX or DEC Alpha running the POSIX shell. To uncompress `cdf27-dist-all.tar.Z' or `cdf27-dist-cdf.tar.Z', use the `uncompress' command as follows... uncompress cdf27-dist-all.tar.Z or uncompress cdf27-dist-cdf.tar.Z To uncompress `cdf27-dist-all.tar.gz' or `cdf27-dist-cdf.tar.gz', use the `gzip' command as follows... gzip -d cdf27-dist-all.tar.gz or gzip -d cdf27-dist-cdf.tar.gz In either case the resulting file will be named `cdf27-dist-all.tar' or `cdf27-dist-cdf.tar'. Then use the `tar' command to extract the CDF source files. `tar' will create a directory named `cdf27-dist' containing several subdirectories. The source files for the distribution will be placed into these directories. The syntax for the `tar' command is different on some flavors of UNIX. For most UNIX systems (and the POSIX shell) use... tar -xvf cdf27-dist-all.tar For the IBM-RS6000/AIX use... tar -x -v -f cdf27-dist-all.tar CDF V2.7 has a makefile setup to automatically build the CDF library and tools. The following steps should be taken to build and install CDF V2.7. 1. Set your current directory (cd) to the top level CDF directory (the directory named `cdf27-dist' created by `tar'). 2. If desired, modify the include file named `config.h' in the `src/include' directory to the desired default parameters for your distribution. These default parameters affect a number of actions taken by the CDF library and toolkit programs in various situations (the comments in `config.h' describe these default parameters). 3. Compile/link the distribution. First enter... make all.help to determine the required/optional `make' variables to be used. Then enter... make `make variables...' all Some informational/warning messages from the compilers may be displayed. These can be ignored and should have no effect on the operation of the CDF library or toolkit programs. For example, to build the distribution on a SunOS system using the System V C compiler enter... make OS=sunos ENV=sysV all The `OS' and `ENV' variables are described in the `make all.help' part of this step. 4. Test that the distribution was built correctly by entering... make test The name of each test executed will be displayed. No other messages will be displayed unless an error occurs. Entering... make test.help will display additional information about the testing of the CDF distribution. 5. Install the definitions files, libraries, include files, toolkit programs, and help files. First enter... make install.help to determine the required/optional `make' variables to be used. Then enter... make `make variables...' install The appropriate files will be copied to the `include', `lib', `bin', and `lib/cdf/help' directories (from the `src/...' directories). For example, to install the distribution in `/usr/local/cdf25' enter... make INSTALLDIR=/usr/local/cdf25 install The `INSTALLDIR' variable is described in the `make install.help' part of this step. 6. Delete the library(s), object files, and executables in the `src/...' directories by entering... make clean This will free approximately 9.0 megabytes of disk space. You may also delete the entire `src/...' directory tree if you have no need for the source code. This will free approximately 4.0 megabytes of additional disk space. 7. A set of script files named `definitions.' should now exist in the `bin' directory (from the `install' step above). `' specifies the type of shell (command interpreter) for which the script file was written: `C' (C-shell style), `K' (Korn shell style), or `B' (Bourne shell style). They are script files that a user would execute to set up the environment variables and aliases (where supported) necessary to use CDF. You should edit these script files for where you installed the CDF distribution. A user would then execute the appropriate script file to define aliases for the toolkit programs and environment variables for the locations of the include files, CDF library, etc. For the Korn, BASH, and POSIX shells, the following command would be used... . /bin/definitions.K For the Bourne shell, the following command would be used... . /bin/definitions.B For the C and `tcsh' shells, the following command would be used... source /bin/definitions.C In each case is the full directory path leading to the `bin' directory (from the `install' step above). Note that `/bin' could also be added to a user's path (which would also make the toolkit programs available via the user's path). Because aliases are not available when using the Bourne shell, the toolkit programs must be invoked by specifying the actual name of the executable file. The script file `definitions.B' describes how to do this. 8. If you have Fortran applications which include `CDF.INC' instead of `cdf.inc', you may want to add a soft logical link in the `include' directory which will point `CDF.INC' to `cdf.inc'. To do so set your current directory to the `include' directory and use the command `ln -s cdf.inc CDF.INC'. (Note that this logical link existed automatically in previous CDF distributions after the `make install' step was performed.)