To convert the IMG files to FITS format, everything has been 
automated.  To add or remove items during the lien resolution process,
correct the files listed here to make the changes.


SCRIPT -- FOR CALIBRATED DATA

While in the CODE directory:


Run TFREFORM to generate the  FITS header files and the label files
for the FITS images.  

Run IDL routine SDU_FLIP, which uses READPDS to read in the images
(using the new detached headers), grabs the corresponding FITS header,
and writes them out to FITS files in the data directory.  (If window
positions need updated, the routine WINDOW_UPDATE in the WORK
directory compiles and formats the info into the window.txt lookup file)

Check to make sure that the number of FITS images matches the number of
original IMG images.  Check the file nowrite.lst to see if any files
were not written and why.

Use the file DISPLAY_CHECK (IDL script) to display all the files and
make sure there are none that have problems

Run REDIST to redistribute the files into subdirectories.



To create index files:

./pdsidx -n -r -d  ../data  -f keys.lst  -o  ../index/index.tab

format the indewx file using TFINDEX_FORMAT
Check the new file INDEX_NEW.TAB with respect to the label, then
rename it to INDEX.TAB

Verify the different labels etc. using VC_CHECK

check for backup files, from the main directory:
find . -name '*~' -print

To create the download directories and the checksums, use SUM_ZIP