| Both sides previous revision Previous revision Next revision | Previous revision |
| en:praktikum:sternspektren_baches [2025/01/07 13:15] – [Identification of the orders] rhainich | en:praktikum:sternspektren_baches [2026/03/16 08:31] (current) – [Barycentric correction] rhainich |
|---|
| </code> | </code> |
| |
| In ''path_darks'', ''path_flat_darks'', ''path_flats'', ''path_wavelength_darks'', ''path_wavelength'', and ''path_spectra'' the corresponding subfolders are to be entered, which were created in section //Preparations//. ''out_path'' is the directory where the script places intermediate results. The reduced files (**master_dark.fit**, **master_flat.fit**, **master_wave.fit**, **master_spectrum.fit**) are stored in the local directory so that they are more easily available for the following analysis steps. | In ''path_darks'', ''path_flat_darks'', ''path_flats'', ''path_wavelength_darks'', ''path_wavelength'', and ''path_spectra'' the corresponding subfolders are to be entered, which were created in section //Preparations//. The variable ''path_wavelength_darks'' can be set to **'?'** if no darks were taken for the ThAr exposures. ''out_path'' is the directory where the script places intermediate results. The reduced files (**master_dark.fit**, **master_flat.fit**, **master_wave.fit**, **master_spectrum.fit**) are stored in the local directory so that they are more easily available for the following analysis steps. |
| |
| 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''. |
| 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 |
| |
| plot/axes xmin, xmax, ymin, ymax, x axis label, y axis label | plot/axes xmin,xmax, ymin,ymax, window_number x_axis_label y_axis_label |
| |
| 4000 - 8000 Angstrom is the usual wavelength range covered by the spectrograph. | 4000 - 8000 Angstrom is the usual wavelength range covered by the spectrograph. |
| 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's proper motion. The necessary correction can be calculated with the help of the script ''2_barycentric_velocity_correction.py''. The coordinates of the object, the observation time, the time zone, and the coordinates of the observatory must be specified: | 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's proper motion. The necessary correction can be calculated with the help of the script ''2_barycentric_velocity_correction.py''. The coordinates of the object, the observation time, the time zone, and the coordinates of the observatory must be specified: |
| |
| ################################################################################## | <code Python> |
| ############################ Script Parameters ################################### | ################################################################################## |
| ################################################################################## | ############################ Script Parameters ################################### |
| | ################################################################################## |
| | |
| | ################ REPLACE EVERY "?" WITH ITS RESPECTIVE VALUE ################ |
| | |
| ################ REPLACE EVERY "?" WITH ITS RESPECTIVE VALUE ################ | ##### Target coordinates ##### |
| | # enter the object's ICRS coordinates |
| | right_ascension = '?h ?m ?s' # as hour angle: hour | minute | second |
| | declination = '+?deg ?m ?s' # in deg | arcmin |arcsec |
| | |
| ##### Target coordinates ##### | ##### Observation time ##### |
| # enter the object's ICRS coordinates | observation_date = '????-??-?? ??:??:??' # enter the observation date formatted as 'YYYY-MM-DD HH:MM:SS'. |
| right_ascension = '?h ?m ?s' # as hour angle: hour | minute | second | Be careful, to enter the correct day if observations were made |
| declination = '+?deg ?m ?s' # in deg | arcmin |arcsec | past midnight! |
| | time_zone = '?' # type +1 for the central european time zone or +2 when time was |
| | switched to daylight saving |
| | |
| ##### Observation time ##### | ##### Observatory ##### |
| observation_date = '????-??-?? ??:??:??' # enter the observation date formatted as 'YYYY-MM-DD HH:MM:SS'. | observatory_latitude = '?' # values in degrees, north is positive |
| Be careful, to enter the correct day if observations were made | observatory_longitude = '?' # values in degrees, east is positive |
| past midnight! | observatory_height_above_MSL = '?' # enter in meter |
| time_zone = '?' # type +1 for the central european time zone or +2 when time was | </code> |
| switched to daylight saving | |
| | |
| ##### Observatory ##### | |
| observatory_latitude = '?' # values in degrees, north is positive | |
| observatory_longitude = '?' # values in degrees, east is positive | |
| observatory_height_above_MSL = '?' # enter in meter | |
| |
| Execute the script with: | Execute the script with: |