spec_lines_refit

All user to edit a set of overplotted spectral features in a given ds8 frame. After the user saves the features al local line list file is used to compile pixel positions and wavelengths. This revised set of fitting data is used to rederive the wavelength solutions.

% 
% spec_lines_refit 

Usage: spec_lines_refit 1 LL_lrs2b.solution cyan Local.Lines_0
arg1 - ds9 frame number to work with
arg2 - wavelength solution file
arg3 - color of text to retrieve (cyan) 
arg4 - name of spectral lines file 


I am presently (Mar2016) working on a wrapper for this, but a simple early example is:
% 
#!/bin/bash
\rm -f Local.Lines
ds9_open 1200 800
ds9_frame_view ./20160311T012519.2_056LL_sci.fits 1
spec_lines_show 1 20160311T012519.2_056LL_sci.fits LL_lrs2b.solution 16 cyan
#
printf "Name of text color for feature to keep (cyan): "
read color
# 
spec_lines_refit 1 LL_lrs2b.solution $color Local.Lines




Back to SCO CODES page