Read MIDO (from mido.sh or mido2.sh) paramaters from a *.info file associated with a *.fits file and create simple ASCII data files.
% midodata.sh n3379.fitsThe result of running midodata.sh is a set of simple ASCII files that can be used in downstream scripts. As of Oct2014, we produce the following:
midodata.1 midodata.1_explain midodata.2 midodata.2_explain midodata.2_varnames midodata.XY midodata.XY_explain % cat midodata.1 1 circle green {250} 2 circle green {0} 3 ellipse red {1} 4 box cyan {0} % cat midodata.1_explain # Contents of: midodata.1 Col01 = original marker number (integer i10) Col02 = marker type (1x,a10) Col03 = marker color (1x,a10) Col04 = associated text string (1x,a30) % cat midodata.2 973.19 1057.63 14.440 2275.921 654.359 1033.0 1 945.33 986.56 -99.000 239.709 247.273 3297.0 1 785.95 1089.42 -99.000 220.801 224.813 3619.0 3 1195.48 1126.08 20.586 218.645 216.403 2600.0 2 % cat midodata.2_explain # Contents of: midodata.2 Col01 = X center, pixels (intensity weighted centroid) Col02 = Y center, pixels (intensity weighted centroid) Col03 = magnitude (assuming zp=30) Col04 = Average value per pixel in aperture Col05 = Average value per pixel in annulus Col06 = number of pixels in aperture Col07 = marker code (1=circle,2=box,3=ellipse) % cat midodata.2_varnames Xcent Ycent MagZP30 Av_AP Av_ANN NpixAP mcodeThe numbered files give the data, the _explain file gives brief explanations of each data column in a file, and the *_varnames file gives a variable name for each column in the data file. I show above some typical examples. The midodata.1 files give marker type and color information and will probably not change dramatically. The content and format of the other files will certainly change with time. The point is that I can use these data files in other scripts to quickly build, for example, the *.cdfp files that can be used for quick data analysis and catalog matching.
One thing to note is that I preserve the Text associated with any region marker (used to compute the image paramters) as the fourth column entry in midodata.1, and if no text was recorded, the a value dof "{0}" is always given. I did this so that the midodata.1 file can be used more easily as input to a bash script. Whether a text identification was given or not, each line in the file will have 4 entries.