Interactively query the mido data in the *.info file of a FITS image.
% midoq.sh --help midoq.sh An OTW tool for querying the *.info file associated with a FITS image. Such file sets are commonly gathered with a code like "ds9_imstats". This is just for interactive use, but the code can serve as a simple template for how to build more complicated OTW codes for processing these mido (Measure IDentified Object) records. The basic routines fpr handling these records are in SCOLIB.infosubs (the otw gfortran library maintained by SCO). Notice that this is eally just an easy way to remind the user (SCO) of the contents of a mido record. The keyword (kword) can be used inside an OTW code to retieve a specfici value (value) using calls like: call get_valu('Xaper ',kword,xval,xaper) call get_valu('Yaper ',kword,xval,yaper) call get_valu('Nap ',kword,xval,xnap) Notice also that I also return the full text string contents of the value fortion of the FITS header card. If the "value" portion is not treated with full precision in "get_valu", the coder can always kluge soemthing to properly interpret b20(icard). EXAMPLES: % ls 20180206T022042.6_acm_sci_proc.fits 20180206T022042.6_acm_sci_proc.info 20180206T022042.6_acm_sci_proc.reg s/ S/ % midoq.sh 20180206T022042.6_acm_sci_proc.fits 10 N # MIDO record for origninal record number = 10 Number of cards in the record = 31 Contents of the record card kword value comment b20 1 APTYPE -999.0000 / Type of aperture used box 2 OBJID 10.0000 / Running integer object ID number 10 3 COLOR -999.0000 / Color of ds9 marker used for aperture green 4 TSTRING -999.0000 / Text string value (if marker was TEXT) Empty_text_string 5 xin1 358.5300 / xin(1) of five the ds9 marker parameters 358.5300 6 xin2 418.3900 / xin(2) of five the ds9 marker parameters 418.3900 7 xin3 339.8510 / xin(3) of five the ds9 marker parameters 339.8510 8 xin4 413.6780 / xin(4) of five the ds9 marker parameters 413.6780 9 xin5 0.0000 / xin(5) of five the ds9 marker parameters 0.0000 10 Xaper 389.8884 / X center of aperture in pixel units 389.8884 11 Yaper 378.5261 / Y center of aperture in pixel units 378.5261 12 Nap 4440.0000 / Number of pixels in aperture 4440.0 13 AVap 40.0640 / Average pixel value in aperture 40.06396484 14 SIGap 22.2902 / Standard deviation of pix values in apertur 22.29023361 15 MERR 0.3345 / Mean error of the mean (AVap) 0.33452082 16 MIN -41.5000 / Minimum pixel value in aperture -41.50000000 17 MAX 118.5000 / Maximum pixel value in aperture 118.50000000 18 Tap 177884.0000 / Total summed pixel flux in aperture 0.17788400000000E+06 19 Nann 5652.0000 / Number of pixels in annulus 5652.0 20 AVann 41.3303 / Average pixel value in annulus 41.33032608 21 SIGann 22.3179 / Standard deviation of pix values in annulus 22.31793022 22 MERRann 0.2969 / Mean error of the mean (AVann) 0.29686078 23 Tann 233599.0000 / Total summed pixel flux in annulus 0.23359900000000E+06 24 SNann 1.8519 / S/N per pixel in annulus 1.85188890 25 Tfcorr -5622.6406 / Total background-corrected flux in aperture -.56226406250000E+04 26 MagZP30 -99.0000 / BKG-corrected aperture magnitude (ZP=30) -99.0000 27 Fpeak 118.5000 / Peak pixel value in aperture (no bkg-subt) 118.5000 28 Xpeak 413.0000 / X position of peak pixel in aperture 413.0000 29 Ypeak 407.0000 / Y position of peak pixel in aperture 407.0000 30 Xcent 389.6849 / X centroid in aperture 389.6849 31 Ycent 376.6381 / Y centroid in aperture 376.6381 % midoq.sh 20180206T022042.6_acm_sci_proc.fits 300 N *** Could not find this record number.