#-----------------------------------------------------------------------#
#    Observation count, spectrum, pointing and exposure datasets.       #
#-----------------------------------------------------------------------#
in-og-dol,s,h,"og_spi.fits[GROUPING]",,,"Enter name of observation input group DOL:"
pointing-dol,s,h,"",,,"Enter observation pointing directions DOL: "
gti-dol,s,h,"",,,"Enter observation good time intervals DOL: "
deadtime-dol,s,h,"",,,"Enter observation dead time intervals DOL: "
ebounds-dol,s,h,"",,,"Enter energy binning boundaries DOL: "
evts-det-spec-dol,s,h,"",,,"Enter detector event spectra DOL: "
out-og-dol,s,h,"",,,"Enter name of observation output group DOL: "

#-----------------------------------------------------------------------#
#    Instrument and background response functions and handling.         #
#-----------------------------------------------------------------------#
inst-resp-idx,s,h,"${ISDC_IC_TREE}/ic/spi/rsp/spi_irf_grp_0011.fits[1]",,,"Enter name of instrument response function: "
energy-response,s,h,"N",,,"Enter if an Energy Response Matrix is to be used [YES/NO]: "

back-model-idx,s,h,"",,,"Enter name of detector background model response spectra index DOL: "
background-method,i,h,3,,,"Enter handling method of background model response [0=ZERO,1=FIXED,2=FLOATING,3=FUNCTION]: "

#-----------------------------------------------------------------------#
#    SPIROS analysis mode and input source catalogue for all modes      #
#-----------------------------------------------------------------------#
mode,s,h,"SPECTRA",,,"Enter SPIROS analysis mode [IMAGING,SPECTRAL,TIMING]: "

#source-cat-dol,s,h,"",,,"Enter name of input catalogue of known sources: "
source-cat-dol,s,h,"${ISDC_ENV}/source_res_in.fits[1]",,,"Enter name of input catalogue of known sources: "
location-max-error,r,h,0.1,,,"Enter maximum admissible input error source location: "

#---------------------------------------------------------------------------------#
#    ML parameter, solution constraints and optimization control for all modes    #
#---------------------------------------------------------------------------------#
optistat,s,h,"CHI2",,,"Enter optimization statistic [CHI2,LIKEH]: "
solution-constr,s,h,"NONE",,,"Enter image solution constraints [NONE,POSITIVE]: "
maxlikprec,r,h,0.2,,,"Enter maximum likelihood parameter stopping precision: "
nagoptions,s,h," ",,,"Enter name of textfile with modifications to NAG optimization subroutine parameters: "
chilocstep,r,h,0.1,,,"Enter source location sampling step [degrees]: "
chiwidstep,r,h,0.5,,,"Enter source width sampling step [degrees]: "

#-----------------------------------------------------------------------#
#    Output images and source catalogue for IMAGING mode                #
#-----------------------------------------------------------------------#
image-idx,s,h,"spi/spiros_imaging.fits(SPI.-SKY.-IMA-IDX.tpl)",,,"Enter name of output sky image index: "
image-int,s,h,"YES",,,"Enter request for flux intensity image [YES,NO or image name]: "
image-err,s,h,"YES",,,"Enter request for flux error image [YES,NO or image name]: "
image-sig,s,h,"YES",,,"Enter request for flux significance image [YES,NO or image name]: "

source-res,s,h,"spi/source_res.fits(SPI.-SRCL-RES.tpl)",,,"Enter name of output source catalogue: "

maxlikfile,s,h,"spi/spiros_ML_residues.fits(SPI.-MAXL-RES.tpl)",,,"Enter maximum likelihood parameter residue output file: "

#-----------------------------------------------------------------------#
#    Output image field of view parameters for IMAGING mode             #
#-----------------------------------------------------------------------#
reference-coord,s,h,"RADEC",,,"Enter source location and imaging coordinate system [RADEC,GALACTIC]: "
image-fov,s,h,"POINTING",,,"Enter extent and location of output image: "
center-long,r,h,0.0,,,"Enter longitude of output image centerpoint (degrees): "
center-lat,r,h,0.0,,,"Enter latitude of output image centerpoint (degrees): "
image-dim-long,i,h,201,,,"Enter output image dimension in longitude: "
image-dim-lat,i,h,201,,,"Enter output image dimension in latitude: "
image-pixel-long,r,h,0.1,,,"Enter output image pixel size in longitude [degrees]: "
image-pixel-lat,r,h,0.1,,,"Enter output image pixel size in latitude [degrees]: "
image-orient,s,h,"STANDARD",,,"Enter output image orientation [USER,STANDARD]: "
image-pole-long,r,h,0.0,,,"Enter longitude of output image pole [degrees]: "
image-pole-lat,r,h,90.0,,,"Enter latitude of output image pole [degrees]: "
image-proj,s,h,"AIT",,,"Enter output image projection type [CAR,TAN,AIT]: "
blur-size,r,h,1.0,,,"Enter FWHM blurring factor to highlight point sources in output images: "

#-----------------------------------------------------------------------#
#    Source search location control parameters for IMAGING mode         #
#-----------------------------------------------------------------------#
kofsources,s,h,"POINT",,,"Enter shape of sources to be searched for [POINT,POINTLIKE,DIFFUSE]: "
nofsources,i,h,3,,,"Enter maximum number of sources to be searched for [0,1,2...]: "
srclocbins,s,h,"SUM",,,"Enter source location energy bins [ALL,SUM,FIRST,A-B,A-BkeV]: "
searchstep,r,h,0.5,,,"Enter source search grid step [degrees,0=>PSF-FWHM/6]: "
sigmathres,r,h,2.0,,,"Enter lower sigma threshold to stop source search: "
srclocprec,r,h,0.01,,,"Enter source location stopping precision [degrees]: "
srcwidprec,r,h,0.1,,,"Enter source width stopping precision [degrees]: "
iteration-output,s,h,"YES",,,"Enter whether output should be produced at each iteration [YES/NO]: " 
source-relocation,s,h,"NO",,,"Enter if final source locations are to be found using entire count spectrum: "

#---------------------------------------------------------------------------------#
#    Diffuse image array and surface constraint parameters for IMAGING mode       #
#---------------------------------------------------------------------------------#
pixel-func,s,h," ",,,"Enter shape of image pixel or spline function: [POINT,HAT,BSPLINE,LINEAR]: "
pixel-size,r,h,0.0,,,"Enter size of image array pixel or FWHM of BSPLINE function: "
constrtype,s,h," ",,,"Enter image constraint matrix type: [DIAGONAL, WIENER-SMOOTHING]: "
constrmult,r,h,0.0,,,"Enter image constraint matrix multiplier [1.0 = Optimal value]: "
constrincr,r,h,0.0,,,"Enter image constraint matrix multiplier increment: "
constriter,i,h,0,,,"Enter number of image constraint iterations: "

#---------------------------------------------------------------------------------#
#    Names of output spectra datasets and index files for SPECTRAL mode.          #
#---------------------------------------------------------------------------------#
source-spec-idx,s,h,"spi/spectra_index.fits(SPI.-PHA1-SPE-IDX.tpl)",,,"Enter name of output source spectra index:"
source-spec,s,h,"spi/spectra.fits",,,"Enter name of output source spectra dataset: "

back-det-spec-idx,s,h,"NO",,,"Enter name of output detector background spectra index: "
back-det-spec,s,h," ",,,"Enter name of output detector background spectra dataset: "

source-det-spec-idx,s,h,"NO",,,"Enter name of output source detector spectra index: "
source-det-spec,s,h," ",,,"Enter name of output source detector spectra dataset: "

#---------------------------------------------------------------------------------#
#    TIMING mode analysis parameters plus output dataset and index file names     #
#---------------------------------------------------------------------------------#
source-timing-mode,s,h,"QUICKLOOK",,,"Enter timing analysis mode [QUICKLOOK, TRANSIENT]: "
source-timing-scale,r,h,0.0,,,"Enter timing observation integration time [seconds]: "
source-timing-idx,s,h,"spi/spiros_timing_index.fits(SPI.-SRC.-LCR-IDX.tpl)",,,"Enter name of output source timing index: "
source-timing,s,h,"spiros_timing_data.fits",,,"Enter name of output source timing dataset: "