EP-FXT Science Data Center / Users Guide v2.0 · 2026-11-04

FXTSoft v2.0 documentation

fxtplotgrade help

Command help for fxtplotgrade in the FXTSoft v2.0 release.

← Back to Command Reference

NAME

fxtplotgrade -- Plot grade fraction of events for input event FITS file

USAGE

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.

ParameterTypeModeDefault / rangePurpose
evtfilesqrequiredThe input event file
outfileshNONEOptional output PNG file (NONE disables saving; specify each run)
plotbinsih100Maximum number of equal-count energy bins
showbhyesDisplay the plot window?(yes/no)
clobberbhyesOverwrite existing output file (if outfile!=NONE)?(yes/no)
verboseih1; range 0 .. 2Logging verbosity
modeshqlQuery/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 outfile is omitted for this invocation, empty (outfile=), or NONE (case-insensitive), including when PFILES contains a learned output name. Specify a filename on every invocation to save the plot. An explicit filename without .png receives a .png suffix. The positional form fxtplotgrade evtfile.fits grade.png is equivalent to outfile=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. Use show=no to suppress the window. With no output file, no PNG is generated regardless of show.

(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. With clobber=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

  1.  >fxtplotgrade evtfile=evtfile
        

    Display the plot without saving a PNG; omitting outfile disables output for this invocation even if PFILES has a learned output name.

  2.  >fxtplotgrade evtfile=evtfile outfile=grade.png plotbins=50
        
  3.  >fxtplotgrade evtfile.fits grade
        

    Save the plot as grade.png using the second positional argument.

BUGS

SEE ALSO

Manual page updated

2026-11-04