View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

imextension problem (ERROR: integer divide by zero)

Albert Domingo wrote on Aug 25, 2008

Dear colleagues,

I have found this strange behaviour in imextensions task:

ecl> imextensions Sects_led_cor.fits output="file" index="0-" extname="" extver="1" lindex+ lname+ lver+
ERROR: integer divide by zero

The problem seems to be related with the extver parameter. If we execute the task with a null list in the extver parameter, then it works:

ecl> imextensions Sects_led_cor.fits output="file" index="0-" extname="" extver="" lindex+ lname+ lver+
Sects_led_cor.fits[0]
Sects_led_cor.fits[1][OMC._LEDF_CCR,1]
Sects_led_cor.fits[2][OMC._LEDF_CCR,2]

I am running IRAF V2.14 under Fedora Core6. But I have found the same behaviour under Fedora Core8 and Mac OS.

Any workaround on this problem will be welcome.

Regards,
Albert.

Mike Fitzpatrick wrote on Aug 25, 2008

The first thing to do is to 'unlearn' the task so that only the parameters you specify on the cmdline are in play. If that still fails, please post a url to the image or upload it to ftp://iraf.noao.edu/pub so I can reproduce the problem using the parameters in your original message. As is, we don't have enough info to say what might be going wrong and there aren't any known open issues with the task.

Cheers,
-Mike

Albert Domingo wrote on Aug 25, 2008

I already "unlearn" the task parameters and I created also a clean set up by executing mkiraf in a new home directory. So apparently this was not the problem.

The following are the url of two files giving the problem:

ftp://ftp.laeff.inta.es/pub/users/albert/Sects_led_cor.fits
ftp://ftp.laeff.inta.es/pub/users/albert/omc_flat_cal.fits

The first one was created by a previous version of IRAF and the second by using the DAL libraries of INTEGRAL SW.

The commands giving the error are:

ecl> imextensions Sects_led_cor.fits output="file" index="0-" extname="" extver="1" lindex+ lname+ lver+
ERROR: integer divide by zero

ecl> imextensions omc_flat_cal.fits output="file" index="0-" extname="" extver="1" lindex+ lname+ lver+
ERROR: integer divide by zero

Cheers,
Albert.

Francisco Valdes wrote on Aug 25, 2008

Hello Albert,

The problem you report is a bug. The bug log is included below. As noted, there is no workaround short of changing the code. It will be fixed in the next release which, fortunately, is not too far away. We appreciate hearing about this and your help in reproducing it.

Yours,
Frank Valdes


NUMBER: 565
MODULE: imextensions
SYSTEM: V2.13-V2.14
DATE: Mon Aug 25 16:24:33 MST 2008
FROM: valdes

BUG: Specifying an extension version or range of versions results in an
integer divide by zero. This is a bug for which there is no
around.

STATUS: Fixed for the next release.

Last post on Aug 25, 2008