View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

illegal switch error

douglas brenner wrote on Dec 15, 2009

Even after going back to the original code the error persists.
ERROR: boolop: illegal switch
"imexpr ( expr= formula, output = annulus//"[0,overwrite]", dims = d ..."

formula = " (( sqrt ((I-125)*(I-125) + (J-125)*(J-125) ) > "//str(rwidth)//" *("//str(ring)//"+ 1)) && ( sqrt ((I-125)*(I-125) + (J-125)*(J-125) <= "//str(rwidth)//"*("//str(ring)//"+ 2) ) && ( I > 125) && (J > 125) ) ? 1: 0"

imexpr ( expr= formula, output = annulus//"[0,overwrite]", dims = dim, verbose = no)

Mike Fitzpatrick wrote on Dec 15, 2009

Your expression is missing a closing paren.

douglas brenner wrote on Dec 15, 2009

thanks

Last post on Dec 15, 2009