find_parlab
Updated: Apr22,2020

Gieb an input parameter name (such as that in a table.params file) search a file parlabs file to extract the parameter label for that quantiy. This routine is used in make_parlabs to build a parlabs file for a corresponding params file. If the quantity is not present in the input parlabs file or is the parlabs file is not present, then then the name of the input parameter is listed twice on output (i.e. the label text string is the same value as the name of the parameter). Note that this is a very minimilast routine in that it has no "--help" or debug option.

 
% head -5 ALL
Ra_hrs       Right Ascension (float, hours) 
Dec_deg      Declination (float, degrees)  
Xpix         X in pixel units 
Ypix         Y in pixel units 
Xcen          X centroid (pixles) 

% find_parlab Xpix ALL     
Xpix     X in pixel units 


* What if the parameter is not listed? 
% find_parlab boo ALL
 boo   boo 

* What if the parlab file does not exist? 
% find_parlab Xpix nofile                       
 Xpix   Xpix 

Usage: find_parlab Xcen ALL   
arg1 - parameter name to find label for   
arg2 - name of parameter label file   


This routine, especially in concert with make_parlabs can be used to perform a lot of other jobs. For example, we could extract parameter values for a configuration file.




Back to calling page