NICER data
Observation directories
NICER data are organized by observation ID (ObsID), a 10-digit number. Each ObsID directory downloaded from the HEASARC has this structure:
<obsid>/
├── auxil/
│ ├── ni<obsid>.orb orbit file
│ ├── ni<obsid>.mkf filter file (spacecraft and instrument housekeeping)
│ └── ni<obsid>_apid0260.hk GPS (SPS) housekeeping
└── xti/
├── event_cl/
│ ├── ni<obsid>_0mpu7_cl.evt cleaned events (from nicerl2)
│ └── ni<obsid>_0mpu7_ufa.evt merged, unfiltered events (from nicerl2)
├── event_uf/
│ └── ni<obsid>_0mpu?_uf.evt raw unfiltered events, one per MPU
└── hk/ MPU housekeeping
Files may be gzipped (.gz); NICERsoft finds them either way.
The pipelines in NICERsoft start from the ufa (merged, unfiltered) event
files and the .mkf filter file, both made by the standard nicerl2
processing, and do their own screening (see Selecting good data).
Reading an observation in Python
nicer.NicerFileSet.NicerFileSet finds the files in an ObsID directory
and loads the events, GTIs and filter file. It is what
nicerql.py uses. It takes an argparse.Namespace of
options, normally from nicerql.py; see its documentation for the attributes
it uses.
Event tables
Most of the nicer functions work on event tables: astropy.table.Table
objects read from the EVENTS extension of an event file. The main columns are:
Column |
Meaning |
|---|---|
|
Event time, in MET seconds (see Times, energies and detectors). Some functions expect it to be renamed |
|
Energy channel, in units of 10 eV. |
|
Energy channel from the fast chain. |
|
Detector that recorded the event (see Times, energies and detectors). |
|
Bit flags describing the event. |
|
Detector position in the focal plane. |
|
Pulse phase, added by |
For example, to read the events and convert their energies to keV:
from astropy.table import Table
from nicer.values import PI_TO_KEV
etable = Table.read("cleanfilt.evt", hdu="EVENTS")
energy_kev = etable["PI"] * PI_TO_KEV