next up previous contents index
Next: ANALYSE Language Internal Help Up: LAS Language Internal Help Previous: UPDATE   Contents   Index


WRITE

        LAS\WRITE [Observation]

    Writes  the  observation in the R buffer onto the output file. If a ver-
    sion of this observation is already in the file, a new  version  of  the
    observation is created. A new observation number can be specified as ar-
    gument. The information written depends on the operations  done  on  the
    observation.  Existing fit results are written. The calibration informa-
    tion is written only if the calibration is checked (see SET  CALIBRATION
    command).

    In the case of (old) on-the-fly data, WRITE automatically splits the da-
    ta into records with entry numbers starting at 1 unless the  observation
    number of the first record is given explicitly.

    The  behaviour depends on the "File Type" (see FILE command).  For files
    of type MULTIPLE, a new version of the spectrum is written if the Obser-
    vationNumber already exists in the file.

    For  files of type SINGLE, the ObservationNumber is automatically set to
    the next one available in the file. If an ObservationNumber is specified
    in  the command, WRITE checks if it already exists. If so, it returns an
    error; if not, it attributes  the  specified  ObservationNumber  to  the
    written spectrum.



Gildas manager 2011-04-01