View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

imexpr

douglas brenner wrote on Feb 03, 2009

I recently upgrade to MACOS 10.5.6.
imexpr has always given me problems but now I just can't get it to work.

This is one of many failed attempts.

imexpr expr = "((a > 9.4) ? ) 1:0)", output = Badpixels.fits, a = Hotpixels.fits

What's wrong?

Thanks

Mike Fitzpatrick wrote on Feb 03, 2009

imexpr expr = "((a > 9.4) ? ) 1:0)", output = Badpixels.fits, a = Hotpixels.fits


1) The expression has an extra right paren, should be "((a > 9.4) ? 1 : 0)"
2) No commas between the arguments unless you are in 'compute mode' (i.e. "imexpr(expr='a', a=foo, b=bar, ....)")

-Mike

douglas brenner wrote on Feb 03, 2009

thanks
time to retire.

Last post on Feb 03, 2009