TEMP2GAIN (Sep94) TEMP2GAIN (Sep94) NAME temp2gain -- Make a GIS gain history file in FITS format from FRF file. VERSION 3.6 USAGE temp2gain frffile calfile outfile tblfile method steptime DESCRIPTION This task reads a FRF file and makes a GIS gain history file in FITS format which is used for ASCALIN. The GIS gain is calculated with a function of ASCATIME and TEMPERATURE. The parameters of the function are written in the calibration file supported by the GIS team. Don't forget to check the gain history file by fplot(X axis:CAL_START, Y axis:TEMP_S2 FE55_PEAK_S2 TEMP_S3 FE55_PEAK_S3) PARAMETERS frffile [file name] The FRFfile name. calfile [file name] The name of the calibration file including time history of calibration parameters.This file is updated every month or so by the GIS team. outfile [file name] The name of the output gain history file in FITS format which is used for ASCALIN. tblfile [file name] The table file name in ascii format. The contents are the same as outfile. method [integer] Method of calculating the GIS gain. "Auto" selects "Linear Interpolation" or "Analytic function" automatically. you are recommended to select "Auto". steptime [double precision](sec) Time interval while the temperature is averaged. If one set this parameter "0", the temperature is not averaged. (hidden parameters) (version = 3) [integer] The version number for file format of output FITS file. (nor_fac2 = 1) [double precision] Normalization Factor for GIS2 (nor_fac3 = 1) [double precision] Normalization Factor for GIS3 (mergesec = 2) [double precision] Merge Seconds EXAMPLES %setenv LEAPTABLE /xray/h1/adprocess/home/lib/leapsec.dat %temp2gain FRF file name (/mugen/data2/frf/frf9309/ft930915_0039.1450): Input long term gain parameter file (/caldb/data/asca/gis/bcf/gis_temp2gain.fits): Output FITS file name (ft930915_0039.1450_v3.ghf): Output text file name (ft930915_0039.1450.tbl): Method(0:Auto, 1:Linear Interpolation, 2:Analytic function) (0): Time interval(sec) (1800): BUGS If you find any bug, please mail to, hkubo@miranda.phys.s.u-tokyo.ac.jp