Python API

The nicer package contains the functions and classes that the scripts are built on. Import them as, for example:

from nicer.values import PI_TO_KEV, IDS
from nicer.plotutils import find_hot_detectors

nicer.values

Constants used throughout NICERsoft: time epochs, energy conversions, standard energy bands, EVENT_FLAGS bits and detector IDs.

nicer.NicerFileSet

Locate and load the files that make up one NICER observation.

nicer.plotutils

Plotting and event-selection helpers used by the quick-look scripts.

nicer.fitsutils

Helpers that run FTOOLS to merge and filter event files.

nicer.fourier

Fourier (harmonic) analysis of pulse phases.

nicer.fillgaps

Fill gaps in a time series while preserving its noise characteristics.

nicer.sigmaz

Compute the sigma_z timing-stability statistic.

nicer.latloninterp

Interpolate the spacecraft latitude and longitude from tabulated values.

nicer.sps

ISS position from the GPS SPS housekeeping data.

nicer.mcc

ISS position from an MCC (Mission Control Center) ephemeris file.

nicer.yday_custom

An astropy time format for year and day-of-year strings.

nicer.sci_plots

The "science" quick-look page made by nicerql.py.

nicer.eng_plots

The "engineering" quick-look pages made by nicerql.py.

nicer.bkg_plots

The background quick-look page made by nicerql.py.

nicer.cartographer

Maps of the background rates against spacecraft position.