en:praktikum:sternspektren_baches

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:praktikum:sternspektren_baches [2023/11/24 14:44] mitzerotten:praktikum:sternspektren_baches [2024/03/20 09:29] (current) – [Plotting the spectrum] rhainich
Line 42: Line 42:
       Flatdarks/       Flatdarks/
       ...       ...
 +
 +<color #ed1c24>**Note:**</color> **This folder structure is essential for some data reduction steps. It is therefore essential that the files are sorted accordingly!**
  
 There are different tools to view the FITS files (two dimensional CCD images or data tables). //ds9// is easy to handle and can be started from the terminal via: There are different tools to view the FITS files (two dimensional CCD images or data tables). //ds9// is easy to handle and can be started from the terminal via:
Line 134: Line 136:
 If you want to mirror the recordings you have to set ''flip_images'' to ''True''. If the images should also be binned, set ''bin_images'' to ''True''. The binning factor can be determined via the variable ''binning_value''. If you want to mirror the recordings you have to set ''flip_images'' to ''True''. If the images should also be binned, set ''bin_images'' to ''True''. The binning factor can be determined via the variable ''binning_value''.
  
 +**Important:** When the data reduction is finished, disable the virtual environment with
 +
 +   deactivate
  
 ===== Data analysis ===== ===== Data analysis =====
Line 226: Line 231:
 In this case, the script should be stopped by entering a ''2''. Afterwards the script can be restarted with a reduced number of orders, e.g.: In this case, the script should be stopped by entering a ''2''. Afterwards the script can be restarted with a reduced number of orders, e.g.:
  
-   calibrate/baches flat.fit thar.fit 23 20 20+   calibrate/baches master_flat.fit master_thar.fit 23 20 20
  
 A solid method is to gradually reduce the number of orders until the script executed successfully. Afterwards, the flatfield with the identified orders will be displayed in an external window (see below). It should be checked whether the marks of the orders are horizontal and whether they coincide with the actual orders that are visible on the flatfield. The left figure shows a successful test run, whereas the middle figure depicts a failure. The right figure shows a flatfield image taken with the QHY268M, where it can happen that //MIDAS// does not finish drawing all identified orders. From the order numbers, however, it can be assessed if all orders were successfully identified or not. The numbers also depend on whether the images are binned. As we usually use 2x2 binning, the above values should suffice. In case we have used 1x1 binning for the spectra however, you might have to double the second and third value. A solid method is to gradually reduce the number of orders until the script executed successfully. Afterwards, the flatfield with the identified orders will be displayed in an external window (see below). It should be checked whether the marks of the orders are horizontal and whether they coincide with the actual orders that are visible on the flatfield. The left figure shows a successful test run, whereas the middle figure depicts a failure. The right figure shows a flatfield image taken with the QHY268M, where it can happen that //MIDAS// does not finish drawing all identified orders. From the order numbers, however, it can be assessed if all orders were successfully identified or not. The numbers also depend on whether the images are binned. As we usually use 2x2 binning, the above values should suffice. In case we have used 1x1 binning for the spectra however, you might have to double the second and third value.
Line 481: Line 486:
  
 {{section>deng:praktikum:a12:python#English&noheader}} {{section>deng:praktikum:a12:python#English&noheader}}
 +
 +**Important:** Make sure that the virtual environment we used for data reduction is disabled before proceeding:
 +
 +   deactivate
  
 The spectrum should be plotted by means of the python script ''3_printmasterplot.py'', which can be found in the following directory ''~/scripts/n1_baches/''. This script can extract both the total spectrum created by //MIDAS// and the individual spectra of the various orders from the FITS files and then display them.  The spectrum should be plotted by means of the python script ''3_printmasterplot.py'', which can be found in the following directory ''~/scripts/n1_baches/''. This script can extract both the total spectrum created by //MIDAS// and the individual spectra of the various orders from the FITS files and then display them. 
  • en/praktikum/sternspektren_baches.1700837092.txt.gz
  • Last modified: 2023/11/24 14:44
  • by mitzerott