save_profile_table
- deprojected_sersic_models.io.save_profile_table(table=None, path=None, filename_base='deproj_sersic_model', filename=None, overwrite=False)[source]
Save the table of Sersic profile values in a binary FITS table.
- Parameters:
table (dict) – The dictionary of the table for a particular n, invq
path (str, optional) – Path to directory containing the saved Sersic profile tables. If not set, system variable
DEPROJECTED_SERSIC_MODELS_DATADIR
must be set. Default: system variableDEPROJECTED_SERSIC_MODELS_DATADIR
, if specified.filename_base (str, optional) – Base filename to use, when combined with default naming convention:
<filename_base>_nX.X_invqX.XX.fits
. Default:deproj_sersic_model
filename (str, optional) – Option to override the default filename convention and instead directly specify the file location. (FITS format)
overwrite (bool, optional) – Option to overwrite the FITS file, if a previous version exists. Default: False (will throw an error if the file already exists).
Notes
Saves a binary FITS table containing Sersic profile values.
The table includes:
R
: array of radii [kpc]invq
: inverse intrinsic axis ratioq
: intrinsic axis ration
: Sersic indexReff
: Effective radius of Sersic profile (the projected 2D half-light radius)total_mass
: Total mass used for calculationmenc3D_sph
: Mass enclosed within a sphere of radius Rvcirc
: Circular velocity profile at Rrho
: Density at m=Rdlnrho_dlnR
: Derivative of ln(rho) w.r.t. ln(R) at m=R.menc3D_sph_Reff
: Mass enclosed within a sphere of radius r=Reffvcirc_Reff
: Circular velocity profile at R=Reffktot_Reff
: Total virial coefficient at Reffk3D_sph_Reff
: Virial coefficient to convert between menc3D and vcirc at Reffrhalf3D_sph
: 3D half mass radius (defined within spherical apertures)