# blc_sa parameter file for BLC accelerator data obs_group,s,h,"og_spi.fits[GROUPING]",,,"Observation Group to work with" startLevel,s,h,"COR",,,"Analysis level at which the analysis should begin" endLevel,s,ql,"IMA",,,"Analysis level at which the analysis should end" only_clean,b,h,no,,,"Only cleaning the Group without stepping forward (yes/no) ?" run_spiskymax,b,h,no,,,"Apply image reconstruction with spiskymax (yes/no) ?" run_spiros,b,h,yes,,,"Apply image/source reconstruction with spiros (yes/no) ?" clobber,b,h,"yes",,,"clobber flag" spi_gain_corr_prpOG,s,h,"og_spi.fits[GROUPING]",,,"Prepared Observation Group" spi_gain_corr_inSWG,s,h,,,,"Raw SWG (optional)" spi_gain_corr_outfile,s,h,,,,"Output file (optional)" spi_gain_corr_coeffDOL,s,h,"/isdc/integration/spi_int/sw_rep/analysis-sw/spi/spi_gain_corr/spi_gain_coeff.fits[SPI.-COEF-CAL]",,,"Calibration file" spi_gain_corr_clobber, b,h,yes,,,"Clobber flag" blc_spipoint_rwgroup,s,h,"og_spi.fits[GROUPING]",,,"Group" blc_spipoint_swgroup,s,h,"swg_spi.fits",,,"Science Window Group name of prepared data below the directory" blc_spipoint_pointing-file,s,h,"spi/pointings.fits",,,"output pointing file (without template or DOL)" blc_spipoint_time-correlation-dol,s,h,"../../aux/adp/0001.001/time_correlation.fits",,,"Input time correlation" spigti_rogroup,s,h,"",,,"input OG to work with" spigti_rwgroup,s,h,"og_spi.fits[GROUPING]",,,"output OG to work with" spigti_ropointing,s,h,"",,,"input pointing data structure" spigti_rwgti,s,h,"spi/gti.fits(SPI.-OBS.-GTI.tpl)",,,"output gti data structure" spigti_numdet,i,h,"85",,,"Number of detectors" spigti_det_id,s,ql,"0-84",,,"Detectors used for analysis (-1 = all)" spigti_clobber,b,h,yes,,,"Clobber Flag" spidead_in-og-dol,s,h,"",,,"Input Observation Group DOL:" spidead_dead-time-dol,s,h,"spi/dead_time.fits(SPI.-OBS.-DTI.tpl)",,,"Output DS DOL: " spidead_out-og-dol,s,h,"og_spi.fits[GROUPING]",,,"Ouput Observation Group DOL:" spidead_swg-index-dol,s,h,"",,,"corrected swg index DOL: " spidead_gti-dol,s,h,"",,,"Good Time Interval DOL: " spidead_clobber,b,h,yes,,,"Do you want to overwrite existing output files?:" spidead_chatter,i,h,20,1,100,"Chatter Level: " spidead_deadtimecorrection,r,h,0.98,,,"Dead time correction (fraction of live time) for pseudo detectors: " spibounds_outfile,s,h,"",,,"Name of output file:" spibounds_in-og-dol,s,h,"",,,"Observation Input Group DOL:" spibounds_energy-boundaries-dol,s,h,"spi/energy_boundaries.fits(SPI.-EBDS-SET.tpl)",,,"Output DS DOL:" spibounds_out-og-dol,s,h,"og_spi.fits[GROUPING]",,,"Observation Output Group DOL:" spibounds_swg-index-dol,s,h,"",,,"Corrected swg index DOL:" spibounds_gti-dol,s,h,"",,,"Good Time Interval DOL:" spibounds_deadtime-dol,s,h,"",,,"Dead Time DOL:" spibounds_ebounds-dol,s,h,"",,,"Energy Bin Boundaries DOL:" spibounds_clobber,b,h,yes,,,"Do you want to overwrite existing output files?:" spibounds_binfile,s,h,"none",,,"" spibounds_nregions,i,ql,1,,,"Number of regions:" spibounds_regions,s,ql,"0,9000",,,"Region bounds:" spibounds_nbins,s,ql,"9000",,,"Number of bins in regions:" spibounds_telescope,s,h,"INTEGRAL",,,"Telescope name:" spibounds_instrume,s,h,"SPI",,,"Instrument name:" spibounds_filter,s,h,"",,,"Filter:" spibounds_bintype,s,h,"PI",,,"Energy Units (PI/PHA):" spibounds_chatter,i,h,20,,,"Chatter flag:" spibounds_clobber,b,h,yes,,,"Do you want to delete any existing output files?:" spibounds_mode,s,h,"h",,,"" spihist_outfile,s,h,"hist",,,"Name of output file:" spihist_in-og-dol,s,h,"",,,"Observation Input Group DOL:" spihist_det-spec-dol,s,h,"spi/evts_det_spec.fits(SPI.-OBS.-DSP.tpl)",,,"Output DS DOL:" spihist_out-og-dol,s,h,"og_spi.fits[GROUPING]",,,"Observation Output Group DOL:" spihist_swg-index-dol,s,h,"",,,"Corrected swg index DOL:" spihist_gti-dol,s,h,"",,,"Good Time Interval DOL:" spihist_deadtime-dol,s,h,"",,,"Dead Time DOL:" spihist_ebounds-dol,s,h,"",,,"Energy Bin Boundaries DOL:" spihist_clobber,b,h,yes,,,"Do you want to overwrite existing output files?:" spihist_dtype,i,h,1,1,3,"Output data units: (1) counts/bin, (2) counts/s/bin, or (3) cts/s/kev:" spihist_psdtype,s,h,"raw",,,"Use on-board (raw) or Ground (prp) derived PSD localized flag" spihist_detnums,s,h,"0-84",,,"Detectors to be processed:" spihist_multipointing,s,h,"d",,,"Summed or distinct pointings:" spihist_tstart,s,h,"indef",,,"Start time for accumulations:" spihist_tstop,s,h,"indef",,,"Stop time for accumulations:" spihist_instrume,s,h,"SPI",,,"Instrument name:" spihist_chatter,i,h,20,,,"Chatter flag:" spihist_outputformat,s,h,"ISDC",,,"Output file format (PHA/ISDC):" spiback_in-og-dol,s,h,"",,,"Enter name of Observation Group Dataset for input " spiback_pointing-dol,s,h,"",,,"Enter observation pointing directions DOL: " spiback_ebounds-dol,s,h,"",,,"Enter energy binning boundaries DOL: " spiback_evts-det-spec-dol,s,h,"",,,"Enter detector event spectra DOL: " spiback_gti-dol,s,h,"",,,"Enter observation good time intervals DOL: " spiback_deadtime-dol,s,h,"",,,"Enter observation dead time intervals DOL: " spiback_back-mod-idx,s,h,"spi/back_model_index.fits(SPI.-BMOD-DSP-IDX.tpl)",,,"Name of output background model data file: " spiback_back-mod-dol,s,h,"back_model.fits(SPI.-BMOD-DSP.tpl)",,,"Name of output background model index file: " spiback_out-og-dol,s,h,"og_spi.fits[GROUPING]",,,"Enter name of Observation Group Dataset for output " spiback_back-const,s,h,"YES",,,"Do you want a constant background component? (yes/no): " spiback_back-const-value,r,h,2.0e-5,,,"Constant background level in each detector (cnts/det/sec/kev): " spiback_back-linear,s,h,"NO",,,"Do you want a linear background component? (yes/no): " spiback_back-linear-mjd0,r,h,0.0,,,"Start time of the linear background component as Modified Julian Date: " spiback_back-linear-slope,r,h,0.1,,,"Slope of the linear background component (cnts/sec/det/kev/day): " spiback_back-sincos,s,h,"NO",,,"Do you want a sinusoidal background component (yes/no):" spiback_back-sincos-mjd0,r,h,0.0,,,"Phase of the SIN-COS background component as Modified Julian Date: " spiback_back-sincos-period,r,h,0.15,,,"Period of the SIN-COS component (days): " spiback_back-sin-amp,r,h,1.0,,,"Amplitude of the SIN background component (cnts/det/sec/kev): " spiback_back-cos-amp,r,h,0.0,,,"Amplitude of the COS background component (cnts/det/sec/kev): " spiback_back-model-gen,s,h,"NO",,,"Do you want a general background model? (yes/no): " spiback_back-model-comp-1,s,h," ",,,"Name or identifier of general background model: " spiros_mode,s,h,"SPECTRA",,,"Mode for the spectral extraction" spiros_in-og-dol,s,h,"og_spi.fits[GROUPING]",,,"Enter name of observation input group DOL: " spiros_pointing-dol,s,h,"",,,"Enter observation pointing directions DOL: " spiros_gti-dol,s,h,"",,,"Enter observation good time intervals DOL: " spiros_deadtime-dol,s,h,"",,,"Enter observation dead time intervals DOL: " spiros_ebounds-dol,s,h,"",,,"Enter energy binning boundaries DOL: " spiros_evts-det-spec-dol,s,h,"",,,"Enter detector event spectra DOL: " spiros_back-model-idx,s,h,"",,,"Enter name of detector background model detector spectra index DOL: " spiros_source-cat-dol,s,h,"source_res_in.fits[1]",,,"Enter name of catalogue of known sources for SPIROS: " spiros_source-res,s,h,"source_res.fits(SPI.-SRCL-RES.tpl)",,,"Enter name of SPIROS output source catalogue: " #spiros_inst-resp-idx,s,h,"/isdc/integration/ic/spi/rsp/spi_irf_grp_0005.fits[GROUPING]",,,"input IRF file" #spiros_inst-resp-idx,s,h,"/isdc/integration/ic/spi/rsp/spi_irf_grp_0008.fits[GROUPING]",,,"input IRF file" spiros_inst-resp-idx,s,h,"/isdc/integration/ic/spi/rsp/spi_irf_grp_0007.fits[GROUPING]",,,"input IRF file" spiros_out-og-dol,s,h,"og_spiros.fits(GNRL-OBSG-GRP.tpl)",,,"Enter name of imaging output group DOL: " spiros_image-idx,s,h,"spi/spiros_image_index.fits(SPI.-SKY.-IMA-IDX.tpl)",,,"Enter name of output sky image index: " spiros_image-int,s,h,"spi/spiros_image_int",,,"Enter name of intensity image [NO=none]: " spiros_image-err,s,h,"spi/spiros_image_err",,,"Enter name of error image [NO=none]: " spiros_image-res,s,h,"spi/spiros_image_res",,,"Enter name of residual image [NO=none]: " spiros_image-sig,s,h,"spi/spiros_image_sig",,,"Enter name of significance image [NO=none]: " spiros_source-det-spec-idx,s,h,"src_det_spec_index.fits(SPI.-SDET-SPE-IDX.tpl)",,,"Enter name(template) of output source detector spectra index: " spiros_source-det-spec,s,h,"NO",,,"Enter name of output source detector spectra dataset: " spiros_back-det-spec-idx,s,h,"spi/back_det_spec_index.fits(SPI.-BACK-DSP-IDX.tpl)",,,"Enter name(template) of output detector background spectra index: " spiros_back-det-spec,s,h,"NO",,,"Enter name of output detector background spectra dataset (or NO): " spiros_reference-coord,s,h,"RADEC",,,"Enter output image reference coordinate system [RADEC,GALACTIC]: " spiros_image-proj,s,h,"CAR",,,"Enter output image projection type [CAR,TAN,AIT]: " spiros_image-fov,s,h,"USER",,,"Enter extent and location of output image: " spiros_center-long,r,h,0.0,,,"Enter longitude of output image centerpoint (degrees): " spiros_center-lat,r,h,0.0,,,"Enter latitude of output image centerpoint (degreels s): " spiros_image-dim-long,i,h,51,,,"Enter output image dimension in longitude: " spiros_image-dim-lat,i,h,51,,,"Enter output image dimension in latitude: " spiros_image-pixel-long,r,h,0.1,,,"Enter output image pixel size in longitude [degrees]: " spiros_image-pixel-lat,r,h,0.1,,,"Enter output image pixel size in latitude [degrees]: " spiros_image-orient,s,h,"STANDARD",,,"Enter output image orientation [USER,STANDARD]: " spiros_pole-long,r,h,0.0,,,"Enter longitude of output image pole [degrees]: " spiros_pole-lat,r,h,90.0,,,"Enter latitude of output image pole [degrees]: " spiros_optistat,s,h,"CHI2",,,"Enter optimization statistic [CHI2,LIKEH]: " spiros_solution-constr,s,h,"NONE",,,"Enter image solution constraints [NONE,POSITIVE]: " spiros_location-max-error,r,h,0.1,,,"Enter maximum admissible input error source location: " spiros_iteration-output,s,h,"YES",,,"Enter whether output should be produced at each iteration [YES/NO]: " spiros_pixel-func,s,h," ",,,"Enter shape of image pixel or spline function: [POINT,HAT,BSPLINE,LINEAR,FOURIER]: " spiros_pixel-size,r,h,0.0,,,"Enter FWHM size of image array pixel/spline function: " spiros_constrtype,s,h," ",,,"Enter image constraint matrix type: [WIENER,CUBIC-SMOOTH,LINEAR-SMOOTH]: " spiros_constrmult,r,h,0.0,,,"Enter image constraint matrix multiplier: " spiros_constrincr,r,h,0.0,,,"Enter image constraint matrix multiplier increment: " spiros_constriter,i,h,0,,,"Enter image constraint iterations: " spiros_nagoptions,s,h," ",,,"Enter NAG options file for minimization subroutines: " spiros_nofsources,i,h,1,,,"Enter maximum number of sources to be searched for [0,1,2...]: " spiros_kofsources,s,h,"POINT",,,"Enter shape of sources to be searched for [POINT,BSPLINE,CUBIC,HAT]: " spiros_sigmathres,r,h,3.0,,,"Enter lower sigma threshold to stop source search: " spiros_srclocprec,r,h,0.05,,,"Enter source location stopping precision [degrees]: " spiros_srcwidprec,r,h,0.2,,,"Enter source width stopping precision [degrees]: " spiros_chilocstep,r,h,0.05,,,"Enter source location sampling step [degrees]: " spiros_chiwidstep,r,h,0.2,,,"Enter source width sampling step [degrees]: " spiros_energy-response,s,h,"N",,,"Enter if an Energy Response Matrix is to be used [YES/NO]: " spiros_source-relocation,s,h,"NO",,,"Enter whether sources should be located using all spectrum bins [YES/NO]: " spiros_background_method,i,h,3,,,"Enter handling method of background model response values [0=NONE,1=FIXED,2=FLOATING,3=FUNCTION]: " spiros_spectrum-binning,s,h,"SINGLE",,,"Enter rebinning energy boundaries for source location [Blank,SINGLE,FIRST]: " spiros_source-spec-idx,s,h,"spi/source_spectra_index.fits(SPI.-SRC.-SPE-IDX.tpl)",,,"Enter name of output source spectra index file: " spiros_source-spec,s,h,"source_spectra.fits",,,"Enter name of output source spectra dataset: " spiros_blur-size,r,h,1.0,,,"Enter FWHM blurring factor for output point sources: " spiros_srclocbins,s,h,"COUNT",,,"Enter count spectrum bins used for source location [FIRST,SUM,COUNT]: " spiros_source-spec-qdp,s,h,"YES",,,"Enter name of output source spectra QDP file: " spiros_ebinfunc,s,h,"XSPEC",,,"Enter source spectrum continuum binning or spline function: [XSPEC,COUNT,POINT,HAT,LINEAR,BSPLINE]: " spiros_nofebins,i,h,0,,,"Enter no of energy bins to cover source spectrum continuum: " spiros_ebinscal,s,h," ",,,"Enter source spectrum binning/spline scaling: [L => LOG10 otherwise linear]: " spiros_ebinsamp,r,h,5.0,,,"Enter source source spectrum response sampling step [keV]: " spiros_response-file,s,h,"N",,,"Enter if the response matrix is to be stored on disk [YES/NO]: " spiskymax_debug,i,h,0,0,2,"0=silent,1,2 gives more verbose output" spiskymax_display,i,h,0,0,2,"1,2 displays skymap using root" spiskymax_title,s,h,"spiskymax v19 background processing",,,"title to write as comment to FITS header" spiskymax_rogroup,s,h,"og_spi.fits[GROUPING]",,,"R/O Group" spiskymax_rwgroup,s,h,"",,,"R/W Group" spiskymax_counts_input_file,s,h,"",,," input count file" spiskymax_pointing_input_file,s,h,"",,," input pointing file" spiskymax_ebounds_input_file, s,h,"",,," input energy bounds file" spiskymax_deadtime-dol,s,h,"",,,"DTI deadtime/livetime input file" spiskymax_background_input_file,s,h,"" ,,,"input background file" spiskymax_irf_input_file,s,h,"/isdc/integration/ic/spi/rsp/spi_irf_grp_0007.fits[GROUPING]",,,"input IRF file" #spiskymax_irf_input_file,s,ql,"/isdc/integration/ic/spi/rsp/spi_irf_grp_0005.fits[GROUPING]",,,"input IRF file" #spiskymax_irf_input_file,s,ql,"/isdc/integration/ic/spi/rsp/spi_irf_grp_0008.fits[GROUPING]",,,"input IRF file" spiskymax_source-cat-dol,s,h,"source_res_in.fits[1]",,,"input catalogue of sources for SPISKYMAX" spiskymax_image-idx,s,h,"spi/skymax_index.fits(SPI.-SKY.-IMA-IDX.tpl)",,,"output skymap image index file " spiskymax_image-int,s,h,"skymax_image.fits",,,"output skymap images file" spiskymax_source-res-dol,s,h,"spi/spiskymax_sources.fits(SPI.-SRCL-RES.tpl)",,,"output catalogue of sources " spiskymax_skymap_system,s,h,C,,,"input skymap coordinate system C=celestial, G=Galactic" spiskymax_image-fov,s,h,"SURVEY",,,"Image field of view: SURVEY USER POINTING POINTING+FCFOV POINTING+ZCFOV POINTING-CENTER" spiskymax_center-long,r,h,1.0,,,"Longitude of centre pixel (degrees) [image-fov= USER]" spiskymax_center-lat,r,h,2.0,,,"Latitude of centre pixel (degrees) [image-fov= USER]" spiskymax_image-pixel-long,r,h,0.5,,,"Longitude pixel size (degrees) [image-fov= USER,POINTING*]" spiskymax_image-pixel-lat,r,h,0.5,,,"Latitude pixel size (degrees) [image-fov= USER,POINTING*]" spiskymax_image-dim-long,i,h,40,,,"Longitude dimension (pixels) [image-fov= USER,POINTING-CENTER]" spiskymax_image-dim-lat,i,h,41,,,"Latitude dimension (pixels) [image-fov= USER,POINTING-CENTER]" spiskymax_chi_0,r,h,-10.,,,"Longitude of first pixel (degrees)[image-fov= SURVEY]" spiskymax_chi_1,r,h,+10.,,,"Longitude of last pixel (degrees)[image-fov= SURVEY]" spiskymax_d_chi,r,h,0.50,,,"Longitude binsize (degrees)[image-fov= SURVEY]" spiskymax_psi_0,r,h,-10.0,,,"Latitude of first pixel (degrees)[image-fov= SURVEY]" spiskymax_psi_1,r,h,+10.0,,,"Latitude of last pixel (degrees)[image-fov= SURVEY]" spiskymax_d_psi,r,h,0.50,,,"Latitude binsize (degrees)[image-fov= SURVEY]" spiskymax_energy_range_min,i,h,1,,,"minimum energy range sequence number as in ebounds file: 1,2,3..." spiskymax_energy_range_max,i,h,30,,,"maximum energy range sequence number as in ebounds file: 1,2,3..." spiskymax_max_iter,i,h,100,0,1000,"maximum number of memsys5 iterations" spiskymax_image_default,r,h,1.0e-3,,,"image default intensity, cm-2 sr-1 s-1" spiskymax_background_scaling_default,r,h,1.0e-0,,,"background scaling default" spiskymax_background_entropy_factor,r,h,1.0e-0,,, "background factor to reduce contribution to entropy" spiskymax_background_method,i,h,2,1,2,"background method:1=free 2=fixed" spiskymax_memsys_iBayes,i,h,1,1,3,"memsys Bayesian method code: 1= classic, 3=ad hoc specified by fAim " spiskymax_memsys_iEntropy,i,h,1,1,5,"memsys entropy type: 1= standard, 5=fixed total=sum over defaults " spiskymax_memsys_fAim,r,h,1.0,1e-10,1e10,"memsys stopping criterion: classic: 1/Omega =1.0, ad hoc: alpha " spiskymax_n_source_fluxes,i,h,1,0,100,"number of source fluxes with errors" spiskymax_source_chi_1,r,h,0.0,,,"longitude (degrees) of source 1" spiskymax_source_psi_1,r,h,0.0,,,"latitude (degrees) of source 1" spiskymax_source_ON_radius_1,r,h,2.00,,,"ON radius (degrees) for source 1 and catalogue analysis" spiskymax_source_OFF_radius_1,r,h,4.00,,,"OFF radius (degrees) for source 1 and catalogue analysis" spiskymax_n_profiles,i,h,0,0,100,"number of intensity profiles with errors" spiskymax_profile_chi_0,s,h,"180.0 180.0",,,"Longitude of first pixel of profiles (degrees)" spiskymax_profile_chi_1,s,h,"200.0 200.0",,,"Longitude of last pixel of profiles (degrees)" spiskymax_profile_d_chi,s,h," 1.0 2.0 ",,,"Longitude binsize of profiles (degrees)" spiskymax_profile_psi_0,s,h," +2.0 +2.0 ",,," Latitude of first pixel of profiles (degrees)" spiskymax_profile_psi_1,s,h," +2.0 +2.0 ",,," Latitude of last pixel of profiles (degrees)" spiskymax_profile_d_psi,s,h," 2.0 2.0 ",,," Latitude binsize of profiles (degrees)" spiskymax_xn_profiles,i,h,6 ,0,100,"number of intensity profiles with errors" spiskymax_xprofile_chi_0,s,h,"-20.0 -20.0 -20.0 +1.0 +1.0 0.0",,,"Longitude of first pixel of profiles (degrees)" spiskymax_xprofile_chi_1,s,h,"+20.0 +20.0 +20.0 +1.0 +1.0 6.0",,,"Longitude of last pixel of profiles (degrees)" spiskymax_xprofile_d_chi,s,h," 1.0 2.0 5.0 4.0 2.0 2.0",,,"Longitude binsize of profiles (degrees)" spiskymax_xprofile_psi_0,s,h," -0.0 0.0 -0.0 -20.0 -20.0 -20.0",,," Latitude of first pixel of profiles (degrees)" spiskymax_xprofile_psi_1,s,h," +0.0 +0.0 +0.0 +20.0 +20.0 +20.0",,," Latitude of last pixel of profiles (degrees)" spiskymax_xprofile_d_psi,s,h," 2.0 2.0 3.0 1.0 2.0 1.0",,," Latitude binsize of profiles (degrees)"