Put()

Outputs Open GENIE data to a known file type.

PUT gv=Any [label=String] [comment=String] [file=String] Appends the specified variable to the end of the data file.
[/NEW]   Create a new data file or overwrite existing file.
[/G3]   Write in Open GENIE intermediate format (default).
[/HDF]   Write in HDF format.

example:

	# Copy a whole multidimensional spectrum from a raw
	# file into a single item in an intermediate file
	>> Set/file/Input "hrp00273.raw"
	>> Set/file/Output "example.in3"
	>> put get(1:20) label="bigspec" comment="demo"

Put

The Put() command provides a mechanism for saving Open GENIE variables of arbitrary complexity in an intermediate binary file. Items are written sequentially and appended to any already existing file - if the file does not exist or needs re-creating it can be created or overwritten by specifying the "/New" qualifier.

Variables being put into a file may optionally be tagged with a label string. This makes direct access using the Get() command easier as the label can be used by Get() instead of the block number. Comments may also be added to annotate individual data items in the file to enable identification later with the List() command.

Parameters:

/New

Used to force file creation when no file exists or when it is necessary to overwrite and existing file rather than appending a data item to it (the default).

/G3

Specifies that data will be written in Open GENIE intermediate file format.

/HDF

Identical behaviour, but specifies that data will be written in HDF format rather than in Open GENIE intermediate file format.

Gv (Any)

The Open GENIE variable to be written to the data file. Any genie variable of any complexity can be written directly into an intermediate file and retrieved with the Get() command.