NDF2UNF

Converts an NDF to a sequential unformatted file

Description:

This application converts an NDF to a sequential unformatted Fortran file. Only one of the array components may be copied to the output file. Preceding the data there is an optional header consisting of either the FITS extension with the values of certain keywords replaced by information derived from the NDF, or a minimal FITS header also derived from the NDF.

Usage:

ndf2unf in out [comp] [noperec]

Parameters:

COMP = LITERAL (Read)
The NDF component to be copied. It may be "Data", "Quality" or "Variance". ["Data"]
FITS = _LOGICAL (Read)
If TRUE, any FITS extension is written to start of the output file, unless there is no extension whereupon a minimal FITS header is written to the unformatted file. [FALSE]
IN = NDF (Read)
Input NDF data structure. The suggested default is the current NDF if one exists, otherwise it is the current value.
NOPEREC = _INTEGER (Read)
The number of data values per record of the output file. It must be positive. The suggested default is the current value. [The first dimension of the NDF]
OUT = FILENAME (Write)
Name of the output sequential unformatted file. The file will but always fixed-length records when there is no header.

Examples:

ndf2unf cluster cluster.dat
This copies the data array of the NDF called cluster to an unformatted file called cluster.dat. The number of data values per record is equal to the size of the first dimension of the NDF.
ndf2unf cluster cluster.dat v
This copies the variance of the NDF called cluster to an unformatted file called cluster.dat. The number of variance values per record is equal to the size of the first dimension of the NDF.
ndf2unf cluster cluster.dat noperec=12
This copies the data array of the NDF called cluster to an unformatted file called cluster.dat. There are twelve data values per record in cluster.dat.
ndf2unf out=ndf234.dat fits in=@234
This copies the data array of the NDF called 234 to an unformatted file called ndf234.dat. The number of data values per record is equal to the size of the first dimension of the NDF. If there is a FITS extension, it is copied to ndf234.dat with substitution of certain keywords, otherwise a minimal FITS header is produced.

Notes:

The details of the conversion are as follows:

Related Applications

CONVERT: UNF2NDF.

Implementation Status: