View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

RVIDLINES problem

Frank Winkler wrote on Mar 11, 2009

I am trying to run RVIDLINES (RV package), and immediately get the dreaded message:
ERROR: invalid floating point operation

This happens with both 1-D and 2-D spectra, both transformed to a linear wavelength scale.

I get this message ONLY when trying this task on our Sun installation (Solaris 2.8; IRAF 2.12). RVIDLINES seems to work OK on my Mac (running IRAF 2.13 Beta)

There was a forum posting almost identical to this back in 2005, but there did not seem to be a answer.

Frank

Mike Fitzpatrick wrote on Mar 11, 2009

Hi Frank,

A quick stab in the dark:


NUMBER: 517
MODULE: rv.rvidlines
SYSTEM: V2.12-V2.12.1
DATE: Thu Feb 6 15:01:26 MST 2003
FROM: valdes

BUG: The task first parses the date keyword given in KEYWPARS which
sets the year, month, day, and optionally the UT. But then
it parses the UT keyword given in KEYWPARS in the same way
as for the date. If this keyword is not in YYYY-MM-DDTHH:MM:SS.S
format then the year, month, and day are clobbered the program
crashes. So in this version there is no substitue to using
this format for the date and setting the UT keyword to
be the same as the date keyword.

STATUS: Fixed in the next release.


This would explain a crash on v2.12 and not on v2.13, but it could also just be a platform difference. If this doesn't fix it, could you upload a problem image to ftp://iraf.noao.edu/pub and post the parameters you're using so we can try to reproduce it?

-Mike

Frank Winkler wrote on Mar 11, 2009

Hi Mike,
It took me awhile to get round to checking this, but your were right on. Setting UT=DATE-OBS in keywpars fixed the problem.

Thanks!
Frank

Last post on Mar 11, 2009