Changes

Jump to: navigation, search

SHOC

1,101 bytes added, 19:05, 25 March 2015
/* Data Transfer */
====Data Transfer====
Transfer of data is done from the command line. Open a shell on your local PC (Putty if you're using Windows or a bash/tcsh/sh if on Mac or Linux) to the instrument you're using (shoc74in.suth.saao.ac.za or shoc40in.suth.saao.ac.za).
There are two ways to transfer data: (1) directly to your computer or (2) onto the SAAO server. <code>The data are automatically copied to the server every morning.* (1) To transfer data directly your computer, use the command line.** Open a shell on your local PC (Putty if you're using Windows or a bash/tcsh/sh if on Mac or Linux)** Copy the data using the following command, depending on the telescope: scp ccd74shoc74in@astro.suth.saao.ac.za:/data/telescopedata/74in/SHA<instrument>/2015<YYYY>/0325<MMDD>/*.fits ~/MySAAODataSomewhereLocalFilePath scp shoc40in@astro.suth.saao.ac.za:/data/40in/<instrument>/code<YYYY>/<MMDD>/*.fits /LocalFilePath ---- where <instrument> is SHA, SHD, or SHH and "/LocalFilePath" is the location on your local machine ---- the password is that for the shoc74in or shoc40in accounts
* (2) To move data to the SAN on the Sutherland plateau (from which you can access it by connecting to the SAAO server), there is a data copy script on the SHOC computer. ** From a command line, connect to the instrument computer. <code>As appropriate for your telescope, use either of the following commands: ssh shoc74in@shoc74in.suth.saao.ac.za</code> # example here using the user shoc74in on the instrument ssh shoc40in@shoc74in.suth.saao.ac.za To move data to ---- When prompted for the SAN on the Sutherland plateaupassword, run use the password for the 74in or 40in user.**Run the shocdatacopy.sh script. Options can be: shocdatacopy.sh -d yesterday # to transfer yesterday's data shocdatacopy.sh -d YYYYMMDD # to transfer data from some specified date  ---- Without parameters, it will try to transfer today's data. 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 ** To take collect your data with youfrom the SAN, you'll have to secure copy it from the instrument or from '''astro.suth.saao.ac.za'''. The usernames for this are '''ccd40''' and '''ccd74''' depending on your telescope. Ask for the password. Data are in the path:
/data/telescopedata/<TELESCOPE>/<INSTR>/<YYYY>/<MMDD>
<code> scp ccd74@astro.suth.saao.ac.za:/data/telescopedata/74in/SHA<instrument>/2015<YYYY>/0325<MMDD>/*.fits ~/MySAAODataSomewhereLocalFilePath scp ccd40@ astro.suth.saao.ac.za:/data/telescopedata/40in/<instrument>/code<YYYY>/<MMDD>/*.fits /LocalFilePath ---- where <instrument> is SHA, SHD, or SHH; YYYY is the year; MMDD is the month and day; and "/LocalFilePath" is the location on your local machine
* Useful: The **On the SHOC computers, the 'tree' command will assist you in trying to look at what folders and files are 'there'under that directory. cd ** For information on the script, a logfile is produced that will be in /datavar/74inlog/SHA/2015/<TELESCOPE>DataCopyLog<MMDD>-<NUM> where tree 0325<TELESCOPE> is 40in or 74in <MMDD> MonthDay <NUM> the Nth time this script has been run
=== In-depth Information ===
214
edits