View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

ambiguous parameter in imexpr

douglas brenner wrote on Sep 24, 2009

imexpr ( expr= " ( ((sqrt ((I-125)*(I-125) + (J-125)*(J-125) ) > 10 *(a+ 1)) && ((sqrt ((I-125)*(I-125) + (J-125)*(J-125)) )) =< 10 *(a + 2) ) ? 1: 0", output = annulus//"[0,overwrite]", a = "/data/masks/ringvalue.fits", dims = dim, verbose = no)

ambiguous parameter a in searchpath
How do I solve this error? Can a be replaced by a variable?

thanks

douglas brenner wrote on Sep 24, 2009

use a string variable to hold the expression.

Mike Fitzpatrick wrote on Sep 24, 2009

Thanks for posting the tip. See also http://iraf.net/phpBB2/viewtopic.php?t=83224&highlight=ambiguous+imexpr for a previous reply to the same problem.

-Mike

Last post on Sep 24, 2009