wsol_find
Updated: Oct15,2020

Locate a (by default) local version of a wavelength solution file for an input device name. You can, as an option, specify a top-level search directory for finding the wavelength solution file.


% wsol_find  -h 

usage: wsol_find 056LU [-v] [-h] [-t ] 
arg1 = device designation (such as from pasinfo)  
Additional options: 
  -h = just show usage message  
  -v = run in verbose/debug mode 
  -t = top level search directory path 


This routine was developed for LRS2 images, but is very general. For device name 066RU, es2, and 056LL, the file names returned (if they exist) would be:

066RU.solution, es2.solution, and 056LL.solution 

If the file (located with the find utility) is not located, then the output value is "none". The answer is always written to standard out. Here are some examples:

% 
Examples:
% pwd
/home/sco/LRS2_wavesols/20200529-30
% ls
BaseDir  Date  fr/  Images.Summary  or/  rd/  README.20200529-30  S/  test/  uv/  wsol1/

% wsol_find 066RU
./fr/066RU_wsol/Plot_1/066RU.solution

% wsol_find boo 
none

Let's suppose we want to search for a default wavelength solution file in the critical files ($critfils) path. Here is an example:

% 
% wsol_find 066LL -t $critfils 
/home/sco/Installs/install_sco2019_20200305/codes/fortran/gfortran_compiler/lmgf/src/critical_files/LRS2/wavesols/wsol1/066LL.solution

Notice that I search for the more modern (post-Oct2020) name of the wavelength solution file.




Back to SCO CODES page