Spitzer Documentation & Tools
IRS Instrument Handbook

5.7.1             PROFILE

The PROFILE (“Spatial Profile”) module computes the median spatial flux profile across all user-selected orders in the same slit. The inputs to the module are bcd.fits and the input calibration file wavsamp.tbl, which specifies the location of the selected spectral orders.

The selection of spectral orders to use in measuring the spatial profile depends upon the information in the BCD FITS header keyword FOVID, which defines a field-of-view. In SH and LH, all orders (11-20) are used by default. In SL and LL, the default order depends upon the commanded field of view (e.g. an observation in LL2 will default to orders 2 and 3). Alternately, the orders to be used by PROFILE may be chosen by means of the parameter ord: the orders are specified as comma-separated integers, without intervening spaces; for SL and LL, the orders are 1, 2, or 3; for SH and LH, the orders are 11 through 20.

This module computes a wavelength-collapsed median spatial profile of all orders in the dispersed IRS image. It takes the median of all orders at a given spatial position and produces a table of the flux distribution and the corresponding standard deviation for each of a number N_cut positions across the orders, where N_cut is a parameter (see below). The module uses the wavsamp.tbl file to specify the location of the orders.

The input wavsamp.tbl file specifies the location of the spectral orders on the array in x-y coordinates. It consists of "pseudo-rectangles" which describe the fractional pixels that comprise each wavelength in the spectrum (see Figure 5.11). These pseudo-rectangles are specified by their four vertices. Each line of the wavsamp.tbl file consists of an order number, coordinates of the center of the pseudo-rectangle (x center, y center), wavelength, tilt angle, and four vertices (x0, y0, x1, y1, x2, y2, x3, y3). Table 5.1 shows an example of wavsamp.tbl.

The PROFILE module divides each pseudo-rectangle in each order into N_cut parts and integrates (sums) the signal within each part. The parameter N_cut has default values of 1,000 for SL and LL, and 200 for SH and LH. It is not recommended to adjust N_cut from these defaults. The integral (sum) of the nth part (n running from 1 to N_cut) is divided by its area to yield a flux. Then the median of the fluxes of all corresponding nth parts in all pseudo-rectangles (all wavelengths) is calculated, to yield the median flux at that particular nth spatial position. The module uses a running window of 7 parts along the pseudo-rectangles, centered on the nth part, to compute the median at the nth position. The standard deviations are calculated from the fluxes at each part.

NOTE: The profile is calculated as a function of left-to-right percentage along the spatial direction of the slit.

The output of PROFILE is a table describing the median signal and standard deviation in each of the N_cut parts or sub-rectangles. The default name of this file is profile.tbl. Figure 5.12 shows an example of the profile calculated from a SL observation of a faint source on a complex background. An excerpt from a profile.tbl table for the same module is shown in Table 5.2.

Table 5.1:  Sample wavsamp.tbl file.

\wavsamp version 5.0 (Thu May 9 10:19:35 PDT 2002)

\processing time 17:05:26 PST 03/12/2003

\comment WAVSAMP SL, generated from b0_ordfind.tbl 03/12/03

\character channelID = 0

| order |x_center |y_center | wavelength | angle    | x0      | y0      | x1      | y1      | x2      | y2      | x3      | y3      |

| int   | real    | real    | real       | real     | real    | real    | real    | real    | real    | real    | real    | real    |

       2  60.75172  78.86935      5.27230  -1.880000  76.65864  78.83240  44.87576  79.87564  44.84472  78.90629  76.62761  77.86305

       2  60.72052  77.89996      5.30254  -1.880000  76.62761  77.86305  44.84472  78.90629  44.81336  77.93686  76.59624  76.89362

       2  60.68900  76.93050      5.33278  -1.880000  76.59624  76.89362  44.81336  77.93686  44.78167  76.96736  76.56455  75.92412

       2  60.65714  75.96097      5.36303  -1.880000  76.56455  75.92412  44.78167  76.96736  44.74964  75.99780  76.53253  74.95456

       2  60.62495  74.99137      5.39327  -1.880000  76.53253  74.95456  44.74964  75.99780  44.71729  75.02817  76.50017  73.98493

       2  60.59243  74.02171      5.42351  -1.880000  76.50017  73.98493  44.71729  75.02817  44.68461  74.05847  76.46749  73.01523

 

Table 5.2:  Sample profile.tbl file (excerpt).

\int CHNLNUM = 0

\int FOVID = 27

\int ORDER1 = 1

| pct  | dn        | stdev     | n   | region |

| real | real      | real      | int | int    |

   0.50  2.5838E+01  4.1910E+01   108        0

   1.50  3.1066E+01  4.0129E+01   108        0

   2.50  3.0284E+01  3.7313E+01   109        0

   3.50  2.8732E+01  2.2572E+01   113        0

   4.50  2.8311E+01  2.0112E+01   121        0

   5.50  2.6560E+01  1.8742E+01   129        0

 

Figure 5.11  One spectral order defined by the wavsamp.tbl file is illustrated, with a single pseudo-rectangle highlighted. Order curvature is highly exaggerated here for illustration.

 

 

Figure 5.12  An example of the plotted output of the PROFILE module.