...is done via three Perl scripts.
Actually, choose two. A working directory where all of the compressed files from Chile will land, and a final directory where all of the surfaced files (loaded into the database) will go. The working directory should be a subdirectory of one of the /home/astro*/deepsearch directories. It's probably best to have a new working directory each night. The final directory is one of /home/astro*/deepsearch. The working directory needs to have something like .8gig free. The final directory needs to have something like <=2gig free.
For example, for mar31, I would suggest the following directories:
You can find them, for now, in /home/astro20/deepsearch/ctio98mar27. Copy the following files to your working directory:
You will probably need to edit all four of these scripts to tell them where the working directory is. hotrcp.perl additionally needs to know the "Compression Machine" in chile and the directory where to find the compressed files. The folks at the telescope can give you this information.
This is what they do:
Each script reads the log file written by the previous script to find out what is avilable for it to process. It writes out its own log file to keep track of what it has already done. All of these log files are relative to the working directory -- which must be your current directory when you run each script!
Not all the scripts have the same format, but typically they list the image filename (obj*.imh or similar), the priority (a non-negative integer), and the title (which is the title put in at the telescope with the amplifier nubmer and filter number appended to it).
This file is sometimes empty if hotncftp is in the process of getting a new one.
Errors won't happen.
I also happen to have this very nice bridge available. Governor Wilson says they're going to build a new one, and I can sell you this old one -- still in servicable shape! -- at an excellent price.
To first order, if the script fails, you can just start it again. They tend not to write log files until they have succesfully completed an operation, so if something didn't succesfully compelte, it will just start over. One exception is btcsurfload.perl; if the decompression failed, it will rename the .H compressed image file so that it doesn't keep trying the same file over and over and over again. You have to rename it back to just its obj*.fits.H name if you want btcsurfload.perl to try again. In practice, I've not seen the decompression fail. (And I might be able to get you an additional discount on that bridge.)