The role of unix_server

This is a refinement of runonobs that was developed for transferring TAURUS data files from the VAX to the unix machines. The CCD
data system writes figaro sdf/ndf format files to the /vaxinst disk mounted on the VAX. A window pops up on aatssf which looks like:
 


 

The left window informs you when your file has been transferred. The top right "Conversions" box offers you iraf or fits files. When you click on one or more of these, unix_server creates a subdirectory on /data/ssf/1/obsred and starts to transfer each and every file for the requested formats. You can see precisely where these files are sent to by clicking on just one of the formats in the bottom right hand "Name to clipboard" box. Watch out: sometimes the file has transferred (listen for the beep) and the only way of knowing from the left
hand display is that the scroll bar has moved a little. Keep clicking on the scroll bar to be sure a filename is not hiding below the cross bar.

Now click on a file name in the left hand window, and you will discover that your mouse buttons are assigned the full path name to the requested file (in the example above, /data/ssf/1/obsred/fits/ccd_2/991014/14oct0014.fits), with the extension given by the requested format in the bottom right hand box. This is very useful for the following reason.

Iraf now works directly on fits files which means you only need to transfer and convert to fits format. Don't bother with clunky iraf
conversions ever again. So what of figaro? This has one advantage in that unix_server writes the fits files as reals, whereas
figaro sdf/ndf files retain the original 2-byte format. Furthermore, reals compress badly, as compared with 2-byte integers which
compress very well. However, most software environments today work directly from fits so it makes sense that you stick with this unless
you plan on transferring huge amounts of data over the link.

In addition to unix_server, there is another command, unix_force.  This command is designed to allow you to explicitly send or resend particular files to the UNIX filename SERVER.  This would allow you to recover from errors or recover from not having enabled the system.  The command has four modes:

        UNIX_FORCE  n                   Forces the file name of the given run to be sent to the unix
                                                      filename server:  n is an integer from 1 to the last run number.

        UNIX_FORCE  n1  n2          Forces all the specified to be sent to the unix filename server.
                                                     A file is sent every three seconds until all have been sent.  If
                                                    n2 exceeds the last run number, it is set to the last run number.

        UNIX_FORCE  c                  Where c represents a dummy run, i.e., a-z; the given run is sent.

        UNIX_FORCE  ALL              Forces all the previously created runs in the current session to
                                                     be send to the unix filename server.