FXTSoft v2.0 documentation
fxtplotgrade help
Command help for fxtplotgrade in the FXTSoft v2.0 release.
NAME
fxtplotgrade -- Plot grade fraction of events for input event FITS fileUSAGE
DESCRIPTION
Plot event grade fractions, selecting the reference from PICALVER or retained processing history, and otherwise using T18V2; PNG output is saved only when an output filename is supplied.
PNG output is disabled by default. The default outfile=NONE means that
omitting outfile, using outfile=, or using outfile=NONE
(case-insensitive) does not save a PNG for that invocation, even when PFILES
contains a learned output name. Specify an output filename on each invocation
to save the plot. The plot window is displayed by default and is independent of
PNG saving; use show=no to suppress it.
The grade-fraction reference version is selected from the authoritative
PICALVER card when present. Otherwise the EVENTS
HISTORY cards are scanned backward in FITS append order and the last
explicit fxtpical processing record wins; routine fxtpical control
records are ignored. Explicit 1.x processing selects T18V1. Version 2.x and
named fxtpical implementations (for example
fxtpical_deltae_g13_20261025) select T18V2, so a new implementation
name does not require a fxtplotgrade update. Explicit legacy 1.x
PICALVER selects T18V1; any other explicit or unrecognized
PICALVER selects the current T18V2 path. An unrecognized HISTORY
record is ignored. If no recognizable processing record is present, the latest
supported version, T18V2, is used. A recognized fxtpical
version takes precedence over a CALDB path in the same record; residual
CREATOR or legacy header fields do not override it. CALDB lookup and
the .dat fallback use the selected version only; if that version is
missing, the command reports an error instead of falling back to the other
version.
When the selected FITS reference contains both
GRADEFRACTION_A and GRADEFRACTION_B tables, the matching
curve is chosen from the event DETNAM card (for example
FXTA/FXTB or A/B). An explicit
INSTRUME=FXTA or INSTRUME=FXTB can supply the detector
identity when DETNAM does not; generic INSTRUME=FXT does not
identify A or B. Conflicting detector cards, incomplete A/B tables, or a split
reference without an identifiable event detector produce an error. Existing
single-table shared FITS files and same-version .dat references remain
supported. If CALDB CIF lookup is unavailable, the canonical FITS reference is
tried before the legacy .dat fallback.
PARAMETER SUMMARY
This table is synchronized with the installed HEASoft parameter file. Mode letters follow the standard PFILES convention.
| Parameter | Type | Mode | Default / range | Purpose |
|---|---|---|---|---|
evtfile | s | q | required | The input event file |
outfile | s | h | NONE | Optional output PNG file (NONE disables saving; specify each run) |
plotbins | i | h | 100 | Maximum number of equal-count energy bins |
show | b | h | yes | Display the plot window?(yes/no) |
clobber | b | h | yes | Overwrite existing output file (if outfile!=NONE)?(yes/no) |
verbose | i | h | 1; range 0 .. 2 | Logging verbosity |
mode | s | h | ql | Query/learn mode |
PARAMETERS
- evtfile [file name]
- Name of the input event FITS file.
- (outfile=NONE) [file name]
- Optional output PNG file. PNG saving is disabled when
outfileis omitted for this invocation, empty (outfile=), orNONE(case-insensitive), including when PFILES contains a learned output name. Specify a filename on every invocation to save the plot. An explicit filename without.pngreceives a.pngsuffix. The positional formfxtplotgrade evtfile.fits grade.pngis equivalent tooutfile=grade.png. - (plotbins=100) [integer]
- Maximum number of equal-count energy bins. The actual number is limited by the event count; the default is 100.
- (show=yes) [boolean]
- If
show=yes(the default), display the plot window independently of whether a PNG is saved. Useshow=noto suppress the window. With no output file, no PNG is generated regardless ofshow. - (clobber=yes) [boolean]
- If
clobber=yes(the default) and an explicit output filename is supplied, an existing PNG with the same name will be overwritten. Withclobber=no, an existing output file is preserved and the command fails. - verbose
- Logging verbosity:
0=warning/error,1=normal info,2=debug. Default:1.
EXAMPLES
-
>fxtplotgrade evtfile=evtfileDisplay the plot without saving a PNG; omitting
outfiledisables output for this invocation even if PFILES has a learned output name. -
>fxtplotgrade evtfile=evtfile outfile=grade.png plotbins=50 -
>fxtplotgrade evtfile.fits gradeSave the plot as
grade.pngusing the second positional argument.
BUGS
SEE ALSO
Manual page updated
2026-11-04