Archiving data
At the end of each night, the following tasks should be performed to archive the data:
Ensure that data taking and data reduction have completely finished.
Ensure that
hloggerhas been correctly shut down.Tidy up the contents of the relevant
/home/observer/reduce/yyyy_mm_dddirectory on the DRPC, deleting any superfluous files. All data reduction files of the formrun0***.ape,run0***.hcm,run0***.redandrun0***.login this directory will be archived.Open an xterm on the DRPC in an empty virtual desktop and run the script
end_of_night_tasks_hipercam. The script is self-explanatory - it only requires you to confirm the start date of the night. The script then:Checks how much data has been generated on that night, and the current capacities of the various archiving disks.
Checks that no existing directories with the same night start date already exist.
Creates an MD5SUM file of the raw data files to ensure data integrity.
Copies the MD5SUM file, the raw data files, the
hloggerfiles, and thereducefiles to three locations: the GTC diskrack:/gtcnfs, two portable USB disk drives connected to the DRPC in the control room, and a subdirectory of the/datadisk of the form/data/yyyy_mm_dd.Uses the MD5SUM files to verify that the data were copied without error to the USB drives.
Removes the raw data from the
/datadirectory on the rack PC in preparation for the next night of observation.
If the rack:/gtcnfs disk is not mounted on the rack PC, the
end_of_night_tasks_hipercam script will skip this step of the
archiving process.  If this happens, do not attempt to run the
end_of_night_tasks_hipercam again. Instead, do the following:
NFS mount the
/gtcnfsdisk on the rack PC. To do this, first typesuin an xterm on the rack PC. You will then need to enter the root password - if you don’t know the password, please contact one of the HiPERCAM team members. Then typemount /gtcnfs.In an xterm on the DRPC, run the
/home/observer/scripts/archive_to_gtc_diskscript to copy the data to the GTC disk.