Changes

Jump to: navigation, search

SHOC

301 bytes added, 14:46, 4 April 2015
/* Recuing Data */
** For information on the script, a logfile is produced that will be in /var/log/<TELESCOPE>DataCopyLog<MMDD>-<NUM> where <TELESCOPE> is 40in or 74in <MMDD> MonthDay <NUM> the Nth time this script has been run
==== Recuing Rescuing Data====
Under normal operation, the system automatically updates the FITS cube header with supplementary information (filter, external trigger parameters, telescope pointing information etc.) and the moves the cube to the permanent (for the night) storage area. From time to time, it may be neccessary to do this manually, using the rescue_data .py tool. In particular, if the system has frozen at the end of an acquisition, but before fixing the header and moving the datra data file, it will be neccessary to perform this procedure.
* Open a terminal. Find your data in the spool directory. It's stored in a directory named /data/spool/<CCYYMMDD><index>.<HHMMSS> (where index is the index, CCYYMMDD is the date and HHMMSS is the time the acquisition started). For example, /data/spool/201503250002.141026/ . Go to this directory:
ssh shoc74in@shoc74in.suth.saao.ac.za
---- or
ssh shoc40in@shoc74in.suth.saao.ac.za
---- When prompted for the password, use the password for the 74in or 40in user.ssh shoc74in@shoc74in.suth.saao.ac.za
cd /data/spool
ls -l
* Change to this directory.
* Run the rescue utility: type
sudo rescue_data_2rescue_data.py
and then answer the questions as prompted. You'll be prompted for a password, use the password for the user you logged in as.
* The telescope is the name of the telescope being used; either 40in or 74in.
* The instrument will be one of shocnawe (SHA) or shocndisbelief (SHD). These are used to create the directory and filename in the /data directory. The directory will be of the form /data/<telescope>/<instrument>/<YYYY>/<MMDD>, and the file of the form <instrument>_<YYYYMMDD>.<index>.fits. From this, the instrument name can be determined. At the moment, SHA is the SHOC instrument mounted on the 74inch.
* You will be prompted for an index to use. NB: '''make sure there is no existing file with the same index that will be overwritten ''' The script will scan the target directory and list the existing files. Choose and index which isn't used(one option is to use an index like 3a , if index 3 exists). In other words, if files such as SHA_20150403.0004.fits and SHA_20150403.0005.fits, choosing either index 4 or 5 will result in that file being overwritten. If you choose as index 4a or 5a, the files will not be overwritten.
=== In-depth Information ===
187
edits