hsi_rqe - apply hsi relative quantum efficiency factor
hsi_rqe D19980821
hsi_rqe uses an IRAF-compatible parameter interface. A template parameter file is in /proj/axaf/simul/lib/uparm/hsi_rqe.par.
The input bpipe ray stream to process. If it is the string
stdin, it reads from the UNIX standard input stream.
the destination for the output rays. if it is the string stdout, it writes to the UNIX standard output stream. It writes bpipe formatted rays.
The name of the log file to be used.
The /rdb table containing the relative quantum efficiency. The rays must be monochromatic with energy consistent with that of the rqe table.
Angle of the pore axis from the vertical (in degrees).
Angle (in degrees) of the pore axis from the from the +X axis (saotrace coordinates); the +Y axis is at +90 degrees.
A list of debug flags. The presently supported flags are:
If the angle falls outside the range covered by the rqe table, log the information to the log file. If the ray packet includes a ray id, the ray id is printed; otherwise, the packet number is printed.
Boolean. Print a help message and exit.
Boolean. Print the version number and exit.
hsi_rqe reads BPipe format rays and applies a relative quantum efficiency (RQE) appropriate to the HSI at a given energy. The rays are assumed to be monochromatic at the appropriate energy. The RQE data are read in from an /rdb; the currently available tables are in /proj/axaf/simul/databases/detectors/hsi_rqe.
If the angle the ray makes with the pore axis falls outside the range covered by the tables, the ray is not passed on; the number of such rays is accumulated and reported in the log file. A debug option, log_bad_angles allows some information about these rays to be logged.
Terry Gaetz ( tgaetz@cfa.harvard.edu )