interpolate_sersic_profile_dlnrho_dlnR_two_component_nearest

deprojected_sersic_models.interpolate_sersic_profile_dlnrho_dlnR_two_component_nearest(R=None, mass_comp1=100000000000.0, mass_comp2=0.0, Reff_comp1=None, n_comp1=1.0, invq_comp1=5.0, Reff_comp2=1.0, n_comp2=4.0, invq_comp2=1.0, path=None, filename_base='deproj_sersic_model', filename=None, interp_type='cubic')[source]

Interpolate dlnrho_g/dlnR at arbitrary radii R, for a composite system. Both comp1 and comp2 (e.g., disk and bulge) can have arbitary Reff, but this uses the nearest values of n and invq that are included in the Sersic profile table collection.

Finds the nearest n, invq for the “default” table collection, then returns dlnrho_dlnR_interp_nearest() for the total system.

Parameters:
  • R (float or array_like) – Radius at which to interpolate profile [kpc]

  • mass_comp1 (float) – Total mass of the first component [Msun] [Default: 10^11 Msun]

  • Reff_comp1 (float) – Effective radius of the first component Sersic profile [kpc]

  • n_comp1 (float) – Sersic index of the first component. [Default: 1.]

  • invq_comp1 (float) – Inverse of the intrinsic axis ratio of the first component Sersic profile, invq = 1/q. [Default: 5.]

  • mass_comp2 (float) – Total mass of the second component [Msun] [Default: 0 Msun]

  • Reff_comp2 (float) – Effective radius of the second component Sersic profile [kpc]. [Default: 1 kpc]

  • n_comp2 (float) – Sersic index of the second component. [Default: 4]

  • invq_comp2 (float) – Inverse of the intrinsic axis ratio of the second component Sersic profile, invq = 1/q. [Default: 1.]

  • 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 variable DEPROJECTED_SERSIC_MODELS_DATADIR, if specified.

  • filename_base (str, optional) – Base filename to use, when combined with default naming convention: <path>/<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.

  • interp_type (str, optional) – Default profile interpolation within the table Rarr region. (Extrapolation is always linear). Default: cubic

Returns:

dlnrho_dlnR_interp_nearest

Return type:

float or array_like