find_object

Use a variety of schemes to find the name of the object used for a FITS image. The object name is written to standard out. In the example below, I use a gethead run to show how the name can be "cleaned" of extraneous information (i.e. the filter name).


% find_object.sh N4618.fits 
NGC4618_R

% gethead N4618.fits OBJECT
NGC4618

Parts of this are klugy, but fairly obvious. If a new (non-standard) object naming scheme is encountered, this code should be easy to change to handle the new case.




Back to SCO CODES page