hstsdf

 HSTSDF Flux Wave Error Header N1 N2 NSTART NX1 NX2 NRUN NPHOTON -- 
         Reads in HST FOS spectra from sdf files

 If you read HST FOS spectra off tape into sdf files you then need to read
 them into molly. This program is supposed to do this.

 Parameters:

            Flux   -- name of sdf file with fluxes.
            Wave   -- name of sdf file with wavelengths.
            Error  -- name of sdf file with uncertainties.
            Header -- name of header file listing object name, JD and dwell in columns format.
                      If this file can't be found, the routine will continue without setting headers. 
                      In order to read the object name even if it has blanks, the specific format of 
                      A32,1X,F17.9,1X,F12.5 is followed where A32 is the object name, F17.9 is the JD 
                      and F12.5 is the dwell in seconds. The lines are assumed to be in the same order
                      as the spectra stored in the flux, wave and error. Therefore if you want to start 
                      from the 10th spectrum, the first 9 will be skipped.

            N1     -- First slot to read data into.
            N2     -- Last slot to read data into.
            NSTART -- Start spectrum in sdf files.
            NX1    -- first X pixel to read.
            NX2    -- last X pixel to read.
            NRUN   -- First run number to set in spectra.
            PHOTON -- yes or no. yes to work out the ratio from
                      flux to photons to get a true count array.
                      This requires there to be enough spectra
                      to make it certain that at every pixel there
                      will be some spectra that only differ by 1 count.


This command belongs to the class: input


Tom Marsh, Warwick