nicer.fitsutils
Helpers that run FTOOLS to merge and filter event files.
All of these need HEASoft to be installed and initialized.
Functions
|
Merge event files with |
|
Merge event files with |
|
Merge event files with |
|
Merge event files with |
|
Merge event files with |
|
Run a command, logging it first. |
- nicer.fitsutils.runcmd(cmd)[source]
Run a command, logging it first.
- Parameters:
cmd (list of str) -- The command and its arguments. It is not passed through a shell.
- Raises:
OSError -- If the command could not be run (for example, if FTOOLS is not initialized).
subprocess.CalledProcessError -- If the command returns a non-zero exit status.
- nicer.fitsutils.filtallandmerge_ftools(evfiles, workdir=None)[source]
Merge event files with
ftmerge, keeping only standard science events.Events are selected with
EVENT_FLAGS==bx1x000.
- nicer.fitsutils.get_eventovershoots_ftools(evfiles, workdir=None)[source]
Merge event files with
ftmerge, keeping only overshoot-only events.Events are selected with
EVENT_FLAGS==bxxx010.
- nicer.fitsutils.get_eventundershoots_ftools(evfiles, workdir=None)[source]
Merge event files with
ftmerge, keeping only undershoot-only events.Events are selected with
EVENT_FLAGS==bxxx001.
- nicer.fitsutils.get_eventbothshoots_ftools(evfiles, workdir=None)[source]
Merge event files with
ftmerge, keeping only events flagged as both overshoot and undershoot.Events are selected with
EVENT_FLAGS==bxxx011.