X-ray Properties Module

Tools for calculating X-ray properties of the IGrM using pynbody. Assume any necessary quantity is already prepared as the derived arrays of the snapshot.

XIGrM.X_properties.cal_tspec(hdgas, cal_f, datatype)[source]

Calculate the Tspec of hot diffuse gas particles.

Parameters
hdgaspynbody.snapshot.SubSnap

SubSnap of the hot diffuse gas.

cal_fstr

Calibration file.

datatypestr

Simulation data type.

XIGrM.X_properties.cal_tweight(halo, weight_type='Lx')[source]

Calculate luminosity weighted or mass weighted temperatures.

Parameters
halopynbody.snapshot.SubSnap

SubSnap of the halo.

weight_typestr

Type of weight to take. Related to the available properties of the gas. Now available: luminousity weighted (starts with ‘l’) and mass weighted (starts with ‘m’)