Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:praktikum:sternspektren_baches [2024/09/27 10:47] – [Barycentric correction] rhainich | en:praktikum:sternspektren_baches [2026/03/16 08:31] (current) – [Barycentric correction] rhainich | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| | | ||
| - | | + | |
| - | | + | |
| - | | + | |
| + | flats/ | ||
| ThAr/ | ThAr/ | ||
| Star_1/ | Star_1/ | ||
| | | ||
| - | | + | |
| - | | + | |
| ... | ... | ||
| Line 74: | Line 75: | ||
| | | ||
| - | This is also necessary if you reconnect to a12, e.g. after a break, and want to continue the data analysis. | + | This is also necessary if you reconnect to columba, e.g. after a break, and want to continue the data analysis. |
| The OST photometry pipeline can then be installed in the terminal using //pip// as follows | The OST photometry pipeline can then be installed in the terminal using //pip// as follows | ||
| Line 87: | Line 88: | ||
| The scripts for the data reduction can be found on the [[en: | The scripts for the data reduction can be found on the [[en: | ||
| - | ############################################################################ | + | |
| - | | + | <code Python> |
| - | | + | ############################################################################ |
| + | #### | ||
| + | ############################################################################ | ||
| - | ### | + | ### |
| - | | + | # Path to the directories with the images |
| - | | + | # |
| - | | + | # |
| - | | + | path_darks: str = '?' |
| - | # Flat darks: | + | # Flat darks: |
| - | | + | path_flat_darks: str = '?' |
| - | # | + | # |
| - | | + | path_flats: str = '?' |
| + | |||
| + | # Darks for wavelength calibration exposures: | ||
| + | path_wavelength_darks: | ||
| + | |||
| + | # | ||
| + | path_wavelength: | ||
| + | |||
| + | # | ||
| + | path_spectra: | ||
| - | # Thorium Argon exposures: | + | # Output directory for the reduced flats. The master files will be saved in |
| - | path_thorium_argon | + | # |
| + | out_path: str = 'output' | ||
| - | # Spectra: | + | ### |
| - | path_spectra | + | # Flip images? Possibilities: True and False |
| + | # | ||
| + | flip_images: | ||
| - | # Output directory for the reduced flats. The master files will be saved in | + | ### |
| - | | + | # Bin the images? Possibilities: |
| - | out_path | + | # |
| + | bin_images: bool = False | ||
| - | ### | + | # Binning factor |
| - | # Flip images? Possibilities: True and False | + | binning_value: bool = 2 |
| - | # | + | |
| - | | + | |
| - | ### | + | ### |
| - | # Bin the images? Possibilities: | + | # Trim images to remove non essential parts and thus simplify MIDAS handling |
| - | # | + | # |
| - | | + | # |
| - | + | trim_image: bool = True | |
| - | # | + | </ |
| - | | + | |
| - | + | ||
| - | ### | + | |
| - | # Trim images to remove non essential parts and thus simplify MIDAS handling | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | In '' | + | In '' |
| If you want to mirror the recordings you have to set '' | If you want to mirror the recordings you have to set '' | ||
| Line 186: | Line 193: | ||
| The identification of the individual orders, the identification of the emission lines in the ThAr spectrum, and the correlation between the pixel and the wavelength scale is performed by the //MIDAS// script '' | The identification of the individual orders, the identification of the emission lines in the ThAr spectrum, and the correlation between the pixel and the wavelength scale is performed by the //MIDAS// script '' | ||
| - | | + | |
| The five parameters have the following meaning: | The five parameters have the following meaning: | ||
| Line 201: | Line 208: | ||
| | | ||
| Flat field = master_flat.fit | Flat field = master_flat.fit | ||
| - | | + | |
| | | ||
| Num. of orders | Num. of orders | ||
| Line 235: | Line 242: | ||
| In this case, the script should be stopped by entering a '' | In this case, the script should be stopped by entering a '' | ||
| - | | + | |
| 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 408: | Line 415: | ||
| Depending on the number of identified orders, the plot range (second row) needs to be adjusted. You also can use this option to zoom in the spectrum. The parameters are | Depending on the number of identified orders, the plot range (second row) needs to be adjusted. You also can use this option to zoom in the spectrum. The parameters are | ||
| - | | + | |
| 4000 - 8000 Angstrom is the usual wavelength range covered by the spectrograph. | 4000 - 8000 Angstrom is the usual wavelength range covered by the spectrograph. | ||
| Line 461: | Line 468: | ||
| The radial velocity is usually given with respect to the barycenter, the center of mass of the solar system, to correct out the effect of the Earth' | The radial velocity is usually given with respect to the barycenter, the center of mass of the solar system, to correct out the effect of the Earth' | ||
| - | ################################################################################## | + | <code Python> |
| - | | + | ################################################################################## |
| - | | + | ############################ |
| + | ################################################################## | ||
| + | |||
| + | ################ | ||
| - | ############ | + | ##### Target coordinates |
| + | # enter the object' | ||
| + | right_ascension | ||
| + | declination | ||
| - | ##### Target coordinates | + | ##### Observation time ##### |
| - | # enter the object' | + | observation_date |
| - | | + | Be careful, to enter the correct day if observations were made |
| - | declination | + | past midnight! |
| + | time_zone | ||
| + | switched to daylight saving | ||
| - | ##### Observation time ##### | + | ##### Observatory ##### |
| - | | + | observatory_latitude |
| - | Be careful, to enter the correct day if observations were made | + | observatory_longitude |
| - | past midnight! | + | observatory_height_above_MSL |
| - | | + | </ |
| - | | + | |
| - | + | ||
| - | ##### Observatory ##### | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| Execute the script with: | Execute the script with: | ||
| Line 513: | Line 522: | ||
| | '' | | '' | ||
| - | + | <code Python> | |
| - | | + | ############################################################################ |
| - | | + | #### Configuration: |
| - | | + | ############################################################################ |
| - | # Name of file with individual orders | + | # Name of file with individual orders |
| - | | + | file_with_orders = " |
| - | # Name of file with merged spectrum | + | # Name of file with merged spectrum |
| - | | + | file_with_merged_spectrum = " |
| - | # Name of the object | + | # Name of the object |
| - | | + | object_name = "?" |
| | | ||
| - | ### | + | ### |
| - | | + | # |
| - | | + | # The specification of the radial velocity is necessary for the |
| - | | + | # line identification to work correctly (see below). |
| - | | + | radial_velocity = 0. |
| - | ### | + | ### |
| - | | + | # Line identifications |
| - | | + | # |
| - | | + | # Ions for which line markers are to be drawn. |
| - | | + | # |
| - | | + | ions = [] |
| - | # Add lines that are not in the default database | + | # Add lines that are not in the default database |
| - | | + | # |
| - | | + | # |
| - | | + | manual_lines = {" |
| - | # | + | # |
| - | | + | percentage_line_flux_must_be_below_continuum = 3. |
| + | </ | ||
| Execute the script with: | Execute the script with: | ||
| Line 569: | Line 579: | ||
| [1] [[https:// | [1] [[https:// | ||
| ===== Report ===== | ===== Report ===== | ||
| + | A standard report must be written. General information on the structure and content of practical reports can be found [[https:// | ||
| - | A usual report is to be handed in. See a general | + | The overview |
| - | For this experiment, the theoretical overview | + | The methods section describes the observing procedure and the subsequent data reduction. This includes a general description of the steps carried out, any deviations from the standard procedure and a list of all parameters set. Any graphics produced |
| - | In the methods section describe the observations | + | The reduced spectra are presented |
| - | The results part presents and describes the spectra of the stars (a few selected significant orders of each star are sufficient to be shown here, the rest goes into the appendix). It also includes the measurement | + | The analysis |
| - | + | ||
| - | The analysis of the spectra contains the estimation of the spectral type for your target stars based on the characteristics that you have described | + | |
| Finally, discuss your findings. Bring your results into a larger context and make a literature comparison when possible. This also includes that you identify potential problems with the data, the data reduction, or the analysis and possible solutions for them. Are there inconsistencies? | Finally, discuss your findings. Bring your results into a larger context and make a literature comparison when possible. This also includes that you identify potential problems with the data, the data reduction, or the analysis and possible solutions for them. Are there inconsistencies? | ||
| - | /* | + | // |
| - | // | + | |
| - | */ | + | |
| - | + | ||
| - | //**Note:** The plots of the individual orders are in large files which generally do not fit into an email appendix. You may upload | + | |
| - | + | ||
| - | /* | + | |
| - | [1] [[https:// | + | |
| - | */ | + | |
| - | + | ||
| - | /* **OLD BELOW** | + | |
| - | + | ||
| - | It needs to describe the theoretical basics (spectral types & formation of stellar spectra & Radial velocity), identify distinctive spectral lines for each spectral type, and (shortly) describe and discuss the typical characteristics (i.e. the specific lines per spectral type) of each spectral type. Estimate the spectral type of the stars. Discuss your results and compare them to the known features for a certain spectral type from the literature. Address shortcomings in your results and discuss possible causes. **Please include all plots from the data reduction, | + | |
| - | + | ||
| - | After identifying the spectral type, the radial velocity of the star towards us should be measured (including an error calculation) and discussed. Please, discuss also the different components of the radial velocity we measure and the expected accuracy in the radial velocity. **In the appendix of your report** you should include a table with the rest wavelength, the measured wavelength, the wavelength shift and the resulting radial velocity of at least five absorption lines as well as an averaged radial velocity together with an error. | + | |
| - | **Remark:** This [[http:// | ||
| [[en: | [[en: | ||