starutil.glevel = starutil.NONE starutil.ilevel = starutil.CRITICAL # Declare the script parameters. Their positions in this list define # their expected position on the script command line. They can also be # specified by keyword on the command line. No validation of default # values or values supplied on the command line is performed until the # parameter value is first accessed within the script, at which time the # user is prompted for a value if necessary. The parameters "MSG_FILTER", # "ILEVEL", "GLEVEL" and "LOGFILE" are added automatically by the ParSys # constructor. params = [] params.append(starutil.Par0S("CONFIG1", "The first config" )) params.append(starutil.Par0S("CONFIG2", "The second config" )) params.append(starutil.ParChoice("WAVEBAND", ("450","850"), "The waveband to display - 450 or 850", "850" )) params.append(starutil.Par0L("DEFAULTS", "Include defaults for missing " "values?", True, True )) params.append(starutil.Par0S("TOOL", "The file comparison tool to use", None, True )) params.append(starutil.Par0S("PARAM", "A single config parameter to display", None, True )) # Initialise the parameters to hold any values supplied on the command # line. parsys = ParSys( params ) # Are we displaying a single parameter? param = parsys["PARAM"].value
# parameter value is first accessed within the script, at which time the # user is prompted for a value if necessary. The parameters "MSG_FILTER", # "ILEVEL", "GLEVEL" and "LOGFILE" are added automatically by the ParSys # constructor. params = [] params.append( starutil.ParNDG( "IN", "The input NDFs", starutil.get_task_par("DATA_ARRAY", "GLOBAL", default=Parameter.UNSET))) params.append( starutil.ParChoice("INSTRUMENT", ["SCUBA-2(450)", "SCUBA-2(850)", "ACSIS", "DAS"], "The JCMT instrument", "SCUBA-2(850)")) params.append( starutil.Par0L("JSA", "Are the input NDFs on the JSA " "all-sky pixel grid?", True, noprompt=True)) params.append( starutil.Par0L("RETAIN", "Retain temporary files?", False, noprompt=True)) # Initialise the parameters to hold any values supplied on the command
# "ILEVEL", "GLEVEL" and "LOGFILE" are added automatically by the ParSys # constructor. params = [] params.append( starutil.ParNDG( "IN", "Template POL2 time series NDFs", starutil.get_task_par("DATA_ARRAY", "GLOBAL", default=Parameter.UNSET))) params.append(starutil.Par0S("OUT", "Output simulated POL2 data")) params.append( starutil.Par0L("NEWART", "Create new artificial I, Q and U maps?")) params.append( starutil.ParChoice("ARTFORM", ("0", "1"), "Form of artificial I, Q and U to create", "0", noprompt=True)) params.append(starutil.ParNDG("ARTI", "Artificial I map", maxsize=1)) params.append(starutil.ParNDG("ARTQ", "Artificial Q map", maxsize=1)) params.append(starutil.ParNDG("ARTU", "Artificial U map", maxsize=1)) params.append( starutil.ParNDG("INCOM", "Non-POL2 data files to define COM", None, noprompt=True)) params.append( starutil.Par0F("COMVAL1", "Constant sky emission (pW)", 0.0, noprompt=True)) params.append(
"circular sky region", None, noprompt=True)) params.append( starutil.Par0S("CENTRE2", "Latitude at centre of required " "circular sky region")) params.append( starutil.Par0F( "RADIUS", "Radius of the required " "circular region on the sky (arc-mins)")) params.append( starutil.ParChoice("SYSTEM", ["ICRS", "GALACTIC"], "System in which centre is defined", "ICRS", noprompt=True)) params.append( starutil.Par0S("REGION", "An NDF or AST Region defining " "the require region of the sky", None, noprompt=True)) params.append( starutil.Par0F("PIXSIZE", "Output pixel size (arcsec)", None, maxval=1000, minval=0.01, noprompt=True))