| apercen | stsdas.hst_calib.hsp | apercen |
apercen -- Determine the deflection coordinates of an HSP aperture's center.
apercen infile outtable
This task calculates an HSP aperture center's deflection coordinates (aperture location calibration phase I). It uses the area scan data of a uniformly illuminated extended source (e.g., bright Earth) to determine the edge of the circular aperture; it then fits these edge contour points with a circle to find the center coordinate in HSP deflection units.
The user can choose N brightest data points (specified by the pt_ceiling parameter) to determine the mean "ceiling" count level. A mean "floor" count level can be similarly determined. The edge count level is then determined from a fraction (specified by the edge_level parameter) of the floor-to-ceiling difference, i.e.,
edge_count = floor_mean_count + edge_level * (ceiling_mean_count - floor_mean_count)Coordinates of the edge points can be written to a table (parameter contourtable). A least squares method is then used to determine the circular aperture's center coordinate and its radius. This scheme works even if only part of the circular aperture is exposed.
The input file must be 2-dimensional and no larger than 80 x 80.
The following keywords are needed from the science file header:
'ROOTNAME' Rootname of the observation set (char*10). 'APERTURE' Aperture name (char*10).
'ROOTNAME' Observation ID of the file used in this task
(char*10).
'APERTURE' Name of the aperture whose coordinate is
determined in this task (char*10).
'X0' X coordinate of the circle center (real).
'Y0' Y coordinate of the circle center (real).
'RADIUS' Radius of the circle (real).
'SIGMA_X0' Standard error of X0 (real).
'SIGMA_Y0' Standard error of Y0 (real).
'SIGMA_R' Standard error of RADIUS (real).
'C_X0_Y0' Correlation between X0 and Y0 (real).
'C_X0_R' Correlation between X0 and RADIUS (real).
'C_Y0_R' Correlation between Y0 and RADIUS (real).
'X_WEIGHT' Weight scheme of X axis (real).
'Y_WEIGHT' Weight scheme of Y axis (real).
'EDGE' Count level of the edge points (real).
'CEILING' Count level of the ceiling (real).
'FLOOR' Count level of the floor (real).
'CHISQ' Chi-squared (real).
'TOLERANCE' Convergence of sigma squared (real).
'XMIN' leftmost pixel of the selected section (int).
'XMAX' rightmost pixel of the selected section (int).
'YMIN' bottom pixel of the selected section (int).
'YMAX' top pixel of the selected section (int).
'NPOINTS' Number of edge points (int).
'ITERMAX' Number of iterations used in the least square
fitting (int).
'VHORIZ' Horizontal deflection of the starting point (int). 'VVERT' Vertical deflection of the starting point (int). 'VHPOINTS' Number of area scan columns (int). 'VVPOINTS' Number of area scan rows (int). 'VHORSTPT' Horizontal steps per point (int). 'VVERSTPT' Vertical steps per point (int). 'VNOINTPT' Number of integrations per point (int).
X X coordinate (real). Y Y coordinate (real). DX Standard error of X (real). DY Standard error of Y (real).
1. Determine the aperture center from the input data file input.hhh and put results in the output table output while saving the intermediate result of edge contour coordinates in contour. The input file has an associated data quality mask file input.msh. The count level of edge points is assumed to be half way between the floor level and the ceiling level.
hs> apercen infile="input.hhh" outtable="output" inmask="input.msh" udlfile="input.ulh" edge_level=0.5 contourkeep=yes contourtable="contour"