next up previous 399
Next: NDF2DST - Converts an NDF to a Figaro (Version 2) DST file
Up: Specifications of CONVERT Applications
Previous: NDF2ASCII - Converts an NDF to a text file


NDF2DA - Converts an NDF to a direct-access unformatted file

Description:
This application converts an NDF to a direct-access unformatted file, which is equivalent to fixed-length records, or a data stream suitable for reading by C routines. Only one of the array components may be copied to the output file.

Usage:
ndf2da in out [comp] [noperec]

Parameters:

COMP = LITERAL (Read)
The NDF component to be copied. It may be "Data", "Quality" or "Variance". ["Data"]
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 direct-access unformatted file.

Examples:

ndf2da cluster cluster.dat
This copies the data array of the NDF called cluster to a direct-access unformatted file called cluster.dat. The number of data values per record is equal to the size of the first dimension of the NDF.

ndf2da cluster cluster.dat v
This copies the variance of the NDF called cluster to a direct-access unformatted file called cluster.dat. The number of variance values per record is equal to the size of the first dimension of the NDF.

ndf2da cluster cluster.dat noperec=12
This copies the data array of the NDF called cluster to a direct-access unformatted file called cluster.dat. There are twelve data values per record in cluster.dat.

Notes:
The details of the conversion are as follows:
  • the NDF array as selected by COMP is written to the unformatted file in records.

  • all other NDF components are lost.

Related Applications :
CONVERT: DA2NDF.



next up previous 399
Next: NDF2DST - Converts an NDF to a Figaro (Version 2) DST file
Up: Specifications of CONVERT Applications
Previous: NDF2ASCII - Converts an NDF to a text file

CONVERT A Format-conversion Package
Starlink User Note 55
Malcolm J. Currie
G.J.Privett
A.J.Chipperfield
D.S.Berry
A.C.Davenhall
2012 May 1
E-mail:starlink@jiscmail.ac.uk

Copyright © 2005 Council for the Central Laboratory of the Research Councils