View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Creating a comment for a wrong input entry for a parameter

smp wrote on Sep 29, 2009

Hi,

I want to know how to display a comment like

Either YES or NO options are available for this parameter.

whenever I type any string other than "yes" / " no" as input to a hidden parameter in my own task ( a procedure script).

e.g. This is a segment of parameter list of my task:

object_filen = "@HD80606b_B_list" Give name of file containing science images
 bias_filenam = "@bias_list"    Give name of the file containing bias images
 flat_filenam = "@flat_b_list"  Give name of file containing flat images
    (BiasMthd = "none")         Type of Bias subtraction (os|osb|bias|none)
      (FltFld = "abc")           Need flat fielding?(yes|no)



Suppose I type "abc" (as shown) instead of "yes" or "no" in the FltFld parameter, then I want the message, quoted above, to be displayed.

Please tell how to do this?

Regards
smp

Last post on Sep 29, 2009