Bugs: dmimgcalc
Table of Contents
Bugs
Boolean operators - such as < and > - are not working on arrays (e.g. images).
Error status is not set when lookupTab is missing (19 Aug 2011)
The tool segmentation faults if the input file is a table
(28 Feb 2012)
Bugs
Boolean operators - such as < and > - are not working on arrays (e.g. images).
Note that threshold conditions may be more easily applied by using dmimgthresh instead of this tool.
dmimgcalc corrupts the file history (07 Mar 2008)
dmimgcalc corrupts the history records in the file header, duplicating previous history entries.
Status is not set on error. (07 Mar 2008)
There are several instances where the dmimgcalc exit status is set to 0, even when the command was not successful.
Error status is not set when lookupTab is missing (19 Aug 2011)
unix% dmimgcalc thresh.img bin4.0.expmap out.img look=mylookup.lis op=div ERROR Could not open the lookup table : mylookup.lis
The exit status is not set to an error code:
unix% echo $status 0
The tool segmentation faults if the input file is a table
(28 Feb 2012)
unix% dmimgcalc infile=img.a,img.b infile2= \
outfile=sub.fits op='imgout=img1-img2'
warning: ASPTYPE has different value...Merged...
BTIMDRFT not present in all input files...FAIL...
BTIMNULL not present in all input files...FAIL...
BTIMRATE not present in all input files...FAIL...
warning: DATAMODE has different value...Merged...
warning: DS_IDENT has different value...Merged...
omit - FOC_LEN values different more than 1.000000
warning: OBJECT has different value...Merged...
warning: OBSERVER has different value...Merged...
omit - ROLL_NOM values different more than 1.000000
warning: SEQ_NUM has different value...Merged...
warning: TITLE has different value...Merged...
# 49970: Received error signal SIGSEGV-segmentation violation.
# 49970: An invalid memory reference was made.
# 49970: segmentation fault: dmimgcalc (1) is: exit_upon_error->NULL
unix% dmlist img.a blocks
--------------------------------------------------------------------------------
Dataset: img.a
--------------------------------------------------------------------------------
Block Name Type Dimensions
--------------------------------------------------------------------------------
Block 1: PRIMARY Null
Block 2: EVENTS Table 15 cols x 634221 rows
Block 3: GTI7 Table 2 cols x 1 rows

![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)