ING logoARCHIVE: save an observation to disc

This page is part of the ING document INS-DAS-24: client-server interface for control of cameras
 



Purpose: save one run to disc, in a FITS file.

Actors: udas_run or udas_keep client; udas_camera server.

Outline: the client invokes the ARCHIVE action on the server. The server saves the run, with associated telemetry, in a FITS file and may also make that file visible to the archiving software.

Normal course of events:

  1. Client invokes the ARCHIVE action on the server with these arguments:
  2. Server locates and reads in packet files of FITS-header cards previously filed by tasks of the observing system. The set of packets to read is determined by the given name of the instrument.
  3. Server creates a FITS file in the current directory for observation files, giving it a working file-name that is neither the name of any observation scratch-file nor the name of any archivable observation-file.
  4. Server writes into the file the images currently contained in the run, the FITS header-cards reads from the packets, and any relevant telemetry that the camera server holds internally.
  5. Server closes the file and renames it into the standard sequence for archivable observations.
  6. Server returns good status for the action to the client.
  7. Server does not use the renamed FITS-file again.
Variations: