Maps image values to rows in a table
dmimgpick infile imgfile outfile method [clobber] [verbose]
'dmimgpick' will map values from an image to rows in a table. Typical kinds of uses include getting background values for source postions, exposure values for sources, etc.
The input image must have axis names that map to columns in the input table. An error will be generated if the tool cannot find the axes names. For each row in the table, the columns that correspond to the image axes are mapped into the image coordinates. The values closest to the location are extracted and then interpolated based on the user selected criteria. The name of the input image block is used as the column name in the output file.
If the table columns are arrays then the output column will also be an array.
dmimgpick mysrc.fits expmap.fits srcexp.fits method=minimum
For each source in the source list, find the value of the exposure map and get the minimum value (useful for edge detections). The values are stored in a column named EXPMAP (the default exposure map image block name) in srcexp.fits.
dmimgpick contour.fits temperature_map.fits out.fits meth=closest
Supposing that 'contour.fits' is for example the output of dmcontour, the (X,Y) columns will be an arrarys. In this case, the output file will have an array column for the temperature map in the output, that is the same length as the X and Y.
Detailed Parameter Descriptions
Parameter=infile (file required filetype=input)
The input table name
The input table. There must be columns with the same name as the axes in the 'imgfile' parameter.
Parameter=imgfile (file required filetype=input)
The input image file
The input image file. The axes names need to match the columns in the 'infile' parameter. The output column in the 'outfile' will be the name of the input image block and will have the same units as the image.
Parameter=outfile (file required filetype=output)
The output file name
A copy of the input file with a new column (double data type) containing the interpolated image values.
Parameter=method (string required default=weight)
The column values in the table are mapped to the image and the 4 closest pixel values (and their locations) are returned. The user can select from the following interpolation methods:
- weight - a weighted average. The weight is the distance from the image pixels to the location mapped onto the image.
- average - a simple average of the 4 pixel values.
- mininum - the minimum of the 4 pixel values
- maximum - the maximum of the 4 pixel values
- closest - the value of the pixel closest to the mapped location
- furthest - the value of the pixel furthest from the mapped location
Parameter=clobber (boolean default=no)
Remove output if it exists?
Used to specify whether or not to clobber existing file that has the same name as the specified output file (only DM dataset will be clobbered).
Parameter=verbose (integer default=0 min=0 max=5)
The tool chatter level
Verbose can be from 0 to 5, generating different amounts of debugging output.
Changes in CIAO 4.15
Updated the tool to recognize real-valued NULLs and to recognize valid data ranges.
- dmappend, dmcontour, dmellipse, dmfilth, dmimg2jpg, dmimgadapt, dmimgblob, dmimgcalc, dmimgdist, dmimgfilt, dmimghist, dmimghull, dmimglasso, dmimgpick, dmimgpm, dmimgproject, dmimgreproject, dmimgthresh, dmmaskbin, dmmaskfill, dmnautilus, dmregrid, dmregrid2, dmstat, evalpos, imgmoment, mean_energy_map, pileup_map