read_detector_pars

stsynphot.stio.read_detector_pars(filename)[source]

Read detector parameters from ASCII file.

Table must contain 4 columns without header. Comment lines are allowed and will be ignored. Columns are automatically named:

  1. OBSMODE - Observation mode.

  2. SCALE - Pixel scale in arcseconds.

  3. NX - X dimension in pixels.

  4. NY - Y dimension in pixels.

Example:

# DETECTORS.DAT -- Comments.
# More comments.
acs,hrc     0.027   1024  1024
acs,sbc     0.032   1024  1024
stis,g140l  0.0244  1024  1024
stis,g140m  0.0290  1024  1024
Parameters:
filenamestr

Detector parameters filename. Must be ASCII format.

Returns:
dataTable

Data table.