astWriteFitsastWriteFits - Write out all cards in a FitsChan to the sink function

Description:
This function writes out all cards currently in the FitsChanFitsChan. If the SinkFileSinkFile attribute is set, they will be written out to the specified sink file. Otherwise, they will be written out using the sink function specified when the FitsChan was created. All cards are then deleted from the FitsChan.
Synopsis:
void astWriteFits( AstFitsChan $*$this )
Parameters:
this
Pointer to the FitsChan.
Notes:
  • If the SinkFile is unset, and no sink function is available, this method simply empties the FitsChan, and is then equivalent to astEmptyFitsastEmptyFits.

  • This method attempt to execute even if an error has occurred previously.