Generates statistics about a HiRISE cube and ancillary data
This program computes statistics about the HiRISE image and it's
associated ancillary data including the calibration image,
dark reference pixels, and buffer pixels. There are ten sets
of statistics that will be produced using:
The first 30 lines of image data
Remaining lines of image data after the postramp.
If the input image is 30 lines or less, then all statistics will be zero
Image dark reference pixels
16 pixels per line
Image buffer pixels
12 pixels per line
Calibration image reverse lines
First 20 lines of calibration image
Calibration masked lines
From 5 - 20 lines after reverse depending on TDI
Remaining lines after masked lines
Calibration image dark reference pixels
16 pixels per line
The calibration image buffer pixels
12 pixels per line
The following statistics for each data set will be produced:
Low instrument saturation pixels
Low representation saturation pixels
High instrument saturation pixels
High representation saturation pixels
The statistics will be output to the print file and additionally, if the user specifies, a file using the
TO parameter, the statistics will be written to the file in a standard PVL format which can then be read using
the getkey program. Because the very edges of several parts of the image are
often inaccurate, histat also has the ability to disregard some pixels.
The first and last line of the calibration image is not regarded, nor are the
first and last samples of any line in the calibration image. For this reason,
an image with a calibration image of 62 lines by 512 samples will be broken
down as follows:
Last 19 lines of the reverse readout pixels (all but the first)
All 6 (in this case) lines of the masked pixels
First 33 lines of the ramp pixels (all but the last)
Since the first and last samples of each of these lines is disregarded
automatically, the user is left statistics for the three sections of a
60 line by 510 sample calbration image.
The user is given much more flexibility in excluding samples from the
calibration and dark reference areas of the actual (not calibration)
image. The specific parameters used are described in the "Parameters"
Fixed reporting of special pixels within the HiRISE tables. Special pixels were
not being converted from 16 bit signed word to 32 bit double values before
being sent to the Statistics objects.
Added the ability to use offsets so that edges of the calibration data may
Seperated calibration image into reverse, masked, and ramp groups.
Changed the default offsets, keywords, and internal offsets, Also added
the CAL_DARK_RAMP group and the IMAGE_POSTRAMP group
Fixed bug where the number of mask lines was calculated. This also
effected the number of ramp lines.
Modified brief and full descriptions of the keywords for ignoring left and
right edges of the different calibration and main image portions of the
observation to eliminate identical descriptions.
Merged the changes made by Drew Davidson with the USGS version
to provide single source code management. Changed how the data
is recorded. When a TO file is given output is not written to the terminal
or the log file. If TO is not given, output is written to the terminal and
the log file (default: print.prt).
Removed references to CubeInfo
Corrected bug in computation of CAL_DARK_RAMP dataset. It was
hardcoded for handling summing mode 1. It has been corrected to
handle all summing/tdi combinations.
Removed tabs in source code, fixed the example, expanded and structured
This ascii file will contain the statistics of the various HiRISE components.
It is written in such a format that the values can be read using the getkey program.
This is useful for when developing