astWrite

Write an Object to a Channel

Description:

This function writes an Object to a Channel, appending it to any previous Objects written to that Channel.

Synopsis

int astWrite( AstChannel this, AstObject object )

Parameters:

this
Pointer to the Channel.
object
Pointer to the Object which is to be written.

Applicability

FitsChan
If the FitsChan uses a foreign encoding (e.g. FITS-WCS) rather than the native AST encoding, then storing values in the FitsChan for keywords NAXIS1, NAXIS2, etc., before invoking astWrite can help to produce a successful write.

Returned Value

astWrite()
The number of Objects written to the Channel by this invocation of astWrite (normally, this will be one).

Notes: