Folders and files - downloading from Tenagra FTP.

From BYU Astro Docs

Jump to: navigation, search

Overview of downloading procedures.

  • First someone logs into the Tenagra FTP site (72.165.141.161) with the appropriate user name and password (using gFTP or a command line ftp tool).
  • The root directory of the FTP will have data sorted by nights. For example:
060917_32in
060920_32in
...
Notifications
Receipts
  • The first thing to download is any new notification or receipt into the appropriately named subfolders of the Tenagra accoount
  • Next within the "raw" subfolder of the Tenagra account a folder for the night's data is created like "t060917" - the "t" at the beginning facilitates file/directory name recognition by Linux (e.g. it makes it so you can CD into it without quotes).
  • Next the user downloads the nights data into the newly created folder. For example the folders from Tenagra:
061119_32in
 Bias
 Dark
 EveningFlat
 images
 MorningFlat

would go into the local directory:

raw
 t061119
  Bias
  Dark
  EveningFlat
  images
  MorningFlat
  • Once all of the data is downloaded it is ready to be sorted
  • Within the nights folder create a "calibration" folder:
raw
 t061119
  calibration
  • Move the contents of the Bias and Dark folders directly into this folder (do not create Bias and Dark folders in the "calibration" folder
  • Rename "EveningFlat" to "eveflat" and "MorningFlat" to "mornflat" and make these subdirectories of "calibration"
  • Finally pull any files out of the "images" folder named B00000###.fit, D00000###.fit and calibrate.zip and put them directly into the "calibration" folder. These are extra Bias and Dark frames as well as some processed calibration frames in a .zip file.
  • When you are done the local directory structure should look like this:
raw
 t061119
  calibration
   eveflat
   mornflat
  images
  • It is important that the directory structure on Tenagra is set up this way, because the scripts below are written to work on this directory structure


Automated download scripting

An automated download script is located in the tenagra user in /bin/getdata

Normally, the script is used inside of a cron job for the tenagra user. The script will run every day at 11:00 am and download the previous night's data.

The script can also be used in a manual mode by changing to the bin directory and typing:

./getdata -v

Just follow the instructions.

Personal tools