Menu |
ManuelSANDEn cours d'écriture This is a user guide for SAND-3. This manual describes the steps to follow in order to calibrate SAND portable spectrometer. A more complete manual can be found on SAND's page. It describes the installation and usage of many versions of SAND spectrometer. The current manual was made to make the use of OBSAND-3B portable spectrometer easier. SAND system installationSAND system installation is described on this page: http://cegepsherbrooke.qc.ca/~aubema/index.php/Prof/SandcontrolEn SVN updateThe programs provided with SAND system are evolving, as we are fixing bugs and improving them. The latest versions of the programs are available with SVN. To update them, move into the svn/trunk directory and type in the following command: svn update The directory now contains the latest version of all requiered programs. You then have to copy them, as root, in /usr/local/bin directory, using the following command: cp * /usr/local/bin Older versions will be overwritten. Here is a list of all programs that should be included in svn and copied in /usr/local/bin (there are more, but we don't use them with SAND 3, they were made to be used with another version of SAND. They can be found on google code. Most of these programs are used by other programs. Only a few are to be launched manually. SAND programs can be categorized in 3 different groups, according to their function: Data collection, data treatment and data analysis. Arranger les numéros Data collection:Data treatment:
Data analysis:Other:
CalibrationThe calibration part is useful for data treatment. It can be done before or after measurements are taken. We recommand you do it before. You should also verify once in a while if the calibration is still good, because it can change, after transportation for example. SAND calibration is divided in 2 parts: spectral calibration and photometric calibration. Spectral calibration is essential. Photometric calibration is non essential, therefore it will not be explained in this manual. Spectral calibration is useful to associate a pixel position with a wavelenght. This is an essential step in the installation of the system. Spectral calibration is described on SAND's page, on section on analysis software Using SANDThe following steps are to be done after the system is completely installed and updated. The spectrometer has to be placed aiming at zenith, as levelled as possible. Plug in the 3 cables of the box (USB, Ethernet, electrical power). You can verify if the connection is made by typing the webcam's IP adress in a web browser. To verify SAND's connection, you can type night_temperature get -t, which will give you the photometer's CCD temperature. If there is a reading, you know the connection is OK. SAND is controlled by the program called observe. This programs works with a file (home/sand/public_html/cgi-bin/observation_list) in which you have to write the folloing information: position, site name, pictures to take. This file must be based on this example (you have to change the text in bold): Longitude-W 71 53 45 The last lines of this file define the observation sequence. It should contain at least 1 sky image and at least 1 dark image. A sky image is a normal image taken by SAND, which will become data, after treatment. A dark image is an image taken with a closed shutter. Because light cannot arrive to CCD chip, the only signal received is the unwanted noise. This image will be substracted from each sky image. Once the file observation_list has been edited, observe is ready to be runned. observe has to be launched from public_html directory. observe has to be launched with different options, depending on the user's needs. Here is a list of the options:
The command might look like this: observe -a sun -l 3 -d 60 Before launching observe, make sure the CCD temperature is close to the ambient temperature, because it will start to cool down about 30°C lower than its current temperature. We do not want the cooling system to work too hard, but the cooler, the better, since it lessens the noise. To see how to stop CCD cooling, see the section on useful commands. How does observe workThe following paragraphs describe how observe works. After being launched, observe starts cooling down the spectrometer's CCD. It then reads longitude and latitude from the file named 'observation_list' and calculates the ephemerides of the day (evening and morning astronomical twilight, sunset, sunrise, etc.) which will be used to initiate the observing sequences. Creating the observing sequenceObserve then verifies the starting time for the sequence, using the ephemerides, the delay time (-d option) and the current time. If observe was started a few minutes or a few hours after the normal starting time, it will start immediately. It verifies if all the observations in observation_list fit within the duration of the night. It then creates a file named observation_sequence (in cgi-bin directory), with the official running sequence. You might want to verify this file once you launched observe, to make sure the observation sequence is alright. If the current time is earlier than the beginning time, observe will sleep until the time has arrived. The final step before beginning the sequence is creating the directory in which the images (.fits files) will be saved (a different one for each night). The default directory name is /home/sand/public_html/data/year/month/day/ Beginning of the observing sequenceThe loop is runned over each observation line in the file observation_sequence. After having erased the ghost image of the CCD chip, the acquisition of the image begins. Observe verifies the ambient luminosity by analysing the last webcam image taken (a webcam image is taken every 15 minutes by the program webcamimg) to make sure it is really dark outside. If the luminosity is too high, observe will sleep 60 seconds before looking at the last webcam image again, until it is dark enough. Once it is dark enough, the image is taken, with the specified (in observation_list file) integration time and image type (sky or dark). When all specified images are taken, the observing sequence ends and the CCD cooling is set to off. All the images are initially saved in cgi_bin directory, then moved to the right directory (/home/sand/public_html/data/year/month/day/ after the sequence. When the number of consecutive nights (-l option) is not 1 (whether it's 0 or more than 1), observe runs the program called nathalie (described in the section on data treatment. This program initiates the treatment of the data. This step is meant to save time, since data treatment takes some time to be completed. If the number of consecutive nights is set to 1, nathalie will have to be runned manually. Useful commandsIf you run observe with -l 0 option, or if something goes wrong, and you want to stop observe: killall observe In some cases, you might want to turn off the CCD cooling manually. Usually, you don't have to do this, but if you kill observe before it turned off the cooling, you could have to do it manually. The command to use is the following: night_temperature set -off Data treatmentData treatment uses programs to process the images taken by the spectrometer into usable numbers. The result is the relative spectral radiance of the sky. Most of the data treatment part is automatic. The main treatment program is inspectre.bash. It can be lauched manually or by using nathalie, a program that prepares the directory before launching inspectre.bash automatically. Starting data treatment......manuallyinspectre.bash uses two calibration files, that need to be placed in the proper directory (/home/sand/public_html/data/year/month/day/) prior to run. Calibration files can be found in svn/trunk/Calib_files/ directory (or where you placed them after calibration). They change from one spectrometer to another. One is the spectral calibration file and the other is the photometric calibration file. Even if you do not want to use photometric calibration, you have to create a file. There is a file called flat-response in the Calib_files directory. This file can be used as a false photometric calibration file, for any instrument. ...using nathalienathalie is a program that was made to launch inspectre.bash easily and automatically. Before using it, you have to change the four first values in the source code, by using vi, kwrite or any other text editor. You have to enter the name of the files, and their respective path. Make sure you copy the new version of nathalie in /usr/local/bin/, as root. You should never run a program as root, since the files it creates will be protected. After this, nathalie is ready to run. You can run nathalie with no option. It will launch inspectre.bash on the pictures taken the night immediately before. This was made so when you use observe with a -l option other than 1 night, nathalie will be launched during the day, treating the pictures taken the night immediately before. If you want to use inspectre.bash on a precise date, that is not yesterday, you can use -d option. Here is a list of options that can be used with nathalie:
To use nathalie on several days of a month, use jessica. This program is described in the following section. ...using jessicajessica was made to make the successive launch of inspectre easier. First, you have to select the days that will be treated by inspectre.bash. Then, you have to write them in a file named datesvalides_year_month.txt . You have to enter only the day, not the complete date. The days have to have 2 digits, and you have to write 1 day per line. The content of the file should look like this: 01 The main loop of jessica is really simple. It launches nathalie one day at the time, to make sure not to overload the computer. When you use jessica, make sure calibration files in nathalie are the right ones, and make sure to update the version of nathalie in /usr/local/bin/ , because this is the version jessica will use. How does inspectre.bash workAs previously said, inspectre.bash is a program that treats the pictures taken by the spectrometer. When it is launched in a directory, it uses several smaller programs to treat all .fits files, to generate a data on light pollution, at specific wavelenghts. The data generated is the relative sky radiance. The command to run inspectre.bash is the following: There is also a -f option that was made to be used with pictures from another instrument. You will not have to use it with SAND-3.
Data analysisNotes
|