craybinrecread

This function allows direct access to COS blocked unformatted sequential access Fortran binary files.


Synopsis

	function craybinrecread(
		path [1] : string,
		rec_num [1] : integer,
		dims [*] : integer,
		type [1] : string
	)

Arguments

path
pathname to binary file
rec_num
record number to read from the file beginning at 0
dims
a singly dimensioned array of integer values that describe how to shape the data, or -1 if the size of the record is unknown.
type
string name of the data type of the record.

Description

craybinrecread reads the rec_num record of the file path and shapes it according to the dimension sizes in parameter. The data type of the record is specified by the parameter type. If the size and dimensionality of the record are unknown the value -1 can be used for parameter dims. In this case craybinrecread will read in the entire record as a singly dimensioned array. The file must be COS blocked.

Example

Example pending

Reference Manual Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?


$Revision: 1.6 $ $Date: 1998/11/11 23:32:15 $