wrapper_calculate_sersic_profile_tables

deprojected_sersic_models.table_generation.wrapper_calculate_sersic_profile_tables(n_arr=None, invq_arr=None, output_path=None, total_mass=50000000000.0, Reff=1.0, logR_min=-2.0, logR_max=2.0, nSteps=101, include_R0=True, i=90.0, cumulative=None, filename_base='deproj_sersic_model', overwrite=False, f_log=None)[source]

Wrapper function to calculate Sersic profile tables over a range of n and invq values.

Parameters:
  • n_arr (array_like) – Array of Sersic indices

  • invq_arr (array_like) – Array of inverse intrinsic axis ratio

  • output_path (str) – Path to directory where the Sersic profile table will be saved If not set, system variable DEPROJECTED_SERSIC_MODELS_DATADIR must be set. Default: system variable DEPROJECTED_SERSIC_MODELS_DATADIR, if specified.

  • total_mass (float, optional) – Total mass of the Sersic profile [Msun]. Default: total_mass = 5.e10 Msun

  • Reff (float, optional) – Effective radius [kpc]. Default: Reff = 1 kpc

  • logR_min (float, optional) – Log of minimum radius to calculate, relative to Reff. Default: logR_min = -2. (or R_min = 10^(-2.) * Reff)

  • logR_max (float, optional) – Log of maximum radius to calculate, relative to Reff. Default: logR_max = +2. (or R_max = 10^(+2.) * Reff)

  • nSteps (int, optional) – Number of radii steps to calculate. Default: 101

  • include_R0 (bool, optional) – Include R=0 in table or not. Default: True

  • i (float, optional) – Inclination of model (to determin q_obs relative to the intrinsic axis ratio q.) Default: i = 90 deg

  • cumulative (bool, optional) – Shortcut option to only calculate the next annulus, then add to the previous Menc(r-rdelt). Default: Uses cumulative if n >= 2.

  • filename_base (str, optional) – Base filename to use, for the default naming convention: <filename_base>_nX.X_invqX.XX.fits. Default: deproj_sersic_model

  • 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).

  • f_log (str, optional) – Filename of log file, to save information output while calculation is in progress.