lrs2info
Updated: Oct15,2020

Interpret the name of a PAS device. Return information about LRS2 used by a variety of routines. This is oftern used in conjunction with pasinfo.

 
% lrs2info -h 

usage: lrs2info 056LU [-v] [-h] 
arg1 = device designation (such as from pasinfo)  
arg2 = property to be retieved (can be "all")  
Additional options: 
  -h = just show usage message  
  -v = run in verbose/debug mode 

EXAMPLES

% lrs2info 066RU all 
topbot     bot
chano      R
channel    fr
rotate     0
wavedel    /home/sco/Installs/install_sco2019_20200305/codes/fortran/gfortran_compiler/lmgf/src/critical_files/LRS2/wavesols/RU_lrs2r.solution
waveloc    ./RU_lrs2r.solution

% lrs2info 066LU topbot 
topbot    top

% lrs2info 066LL chano 
chano    R
 

One of the thinsg that is really useful about lrs2info is that we can use it to locate local versions of wavelength solution files. I show an example below where there are no local fiels, and then when there are. I have modified the codes like lmap_waver so that they can use these local wabelength calibrations, wheich are presumably superior to to the very old default versions available in the $critfils location. Here is an example:

 
% ls 
20200529T231708.8_066RU_cmp.fits  S/

% pasinfo 20200529T231708.8_066RU_cmp.fits device 
device    066RU

% lrs2info 056LU all 
topbot     top
chano      B
channel    uv
rotate     180
wavedef    /home/sco/Installs/install_sco2019_20200305/codes/fortran/gfortran_compiler/lmgf/src/critical_files/LRS2/wavesols/LU_lrs2b.solution
waveloc    none


# I did not find a local solutions file. Now I move a directory of 
# wavelength soltions files into my local working locations. 


% cp -r /home/sco/LRS2_wavesols/20200529-30/wsol1/ . 

% ls 
20200529T231708.8_066RU_cmp.fits  info.wsol  S/  wsol1/
% ls wsol1/ 
056LL.solution	056RL.solution	066LL.solution	066RL.solution	README
056LU.solution	056RU.solution	066LU.solution	066RU.solution

% lrs2info 056LU all 
topbot     top
chano      B
channel    uv
rotate     180
wavedef    /home/sco/Installs/install_sco2019_20200305/codes/fortran/gfortran_compiler/lmgf/src/critical_files/LRS2/wavesols/LU_lrs2b.solution
waveloc    ./wsol1/056LU.solution

Now I can use "./wsol1/056LU.solution" as an input to a routine like pix2angs.




Back to SCO CODES page