API

deprojected_sersic_models Package

Functions

interpolate_entire_table([R, table, ...])

Interpolate entire table, returning new profiles sampled at r.

interpolate_entire_table_nearest([R, ...])

Interpolate entire table, returning new profiles sampled at r, using the nearest values of n and invq that are included in the Sersic profile table collection.

interpolate_sersic_profile_VC([R, ...])

Interpolate vcirc(R) at arbitrary radii R, for arbitrary Mtot and Reff.

interpolate_sersic_profile_VC_nearest([R, ...])

Interpolate vcirc(R) at arbitrary radii R, for arbitrary Mtot and Reff, using the nearest values of n and invq that are included in the Sersic profile table collection.

interpolate_sersic_profile_dlnrho_dlnR([R, ...])

Interpolate dlnrho/dlnR at arbitrary radii R, for arbitrary Reff.

interpolate_sersic_profile_dlnrho_dlnR_function([...])

Return function to interpolate dlnrho/dlnR (R) at arbitrary radii R, for arbitrary Mtot and Reff.

interpolate_sersic_profile_dlnrho_dlnR_nearest([...])

Interpolate dlnrho_g/dlnR at arbitrary radii R, for arbitrary Reff, using the nearest values of n and invq that are included in the Sersic profile table collection.

interpolate_sersic_profile_dlnrho_dlnR_two_component_nearest([...])

Interpolate dlnrho_g/dlnR at arbitrary radii R, for a composite system.

interpolate_sersic_profile_logrho_function([...])

Return function to interpolate log10(rho(R)) at arbitrary radii R, for arbitrary Mtot and Reff.

interpolate_sersic_profile_menc([R, ...])

Interpolate Menc3D_sphere(R) at arbitrary radii R, for arbitrary Mtot and Reff.

interpolate_sersic_profile_menc_nearest([R, ...])

Interpolate Menc3D_sphere(R) at arbitrary radii R, for arbitrary Mtot and Reff, using the nearest values of n and invq that are included in the Sersic profile table collection.

interpolate_sersic_profile_rho([R, ...])

Interpolate Rho(R) at arbitrary radii R, for arbitrary Mtot and Reff.

interpolate_sersic_profile_rho_nearest([R, ...])

Interpolate Rho(R) at arbitrary radii R, for arbitrary Mtot and Reff, using the nearest values of n and invq that are included in the Sersic profile table collection.

nearest_n_invq([n, invq])

Nearest value of n and invq for which a Sersic profile table has been calculated, using the DEFAULT array of n and invq which have been used here.

Classes

DeprojSersicModel([total_mass, Reff, n, q, ...])

Deprojected Sersic mass distribution, with arbitrary flattening (or elongation).

InterpFunc([f_interp, f_extrap, table_Rad, ...])

Helper class to wrap a returned interpolation function: to allow for cubic/other interpolation within table coverage, but linear extrapolation outside of coverage.

deprojected_sersic_models.table_generation Module

Functions

calculate_sersic_profile_table([n, invq, ...])

Calculate the Sersic profile table for a specific Sersic index n and inverse axis ratio invq.

wrapper_calculate_sersic_profile_tables([...])

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

wrapper_calculate_full_table_set([...])

Wrapper function to calculate the full set of Sersic profile tables.

deprojected_sersic_models.io Module

Functions

save_profile_table([table, path, ...])

Save the table of Sersic profile values in a binary FITS table.

read_profile_table([n, invq, path, ...])

Read the table of Sersic profile values from the binary FITS table.

deprojected_sersic_models.utils Package

Functions

check_for_inf([table])

Check core table quantities for non-finite entries, to determine if numerical errors occured.

find_rhalf3D_sphere([R, menc3D_sph, total_mass])

Evalutation of the radius corresponding to the sphere that encloses half of the total mass for a Sersic profile of a given intrinsic axis ratio, effective radius, and Sersic index.

menc_spherical_symmetry([R, vcirc])

Determine Menc for a spherically symmetric mass distribution, given vcirc:

vcirc_spherical_symmetry([R, menc])

Determine vcirc for a spherically symmetric mass distribution:

virial_coeff_3D(R[, m3D, vc])

Evalutation of the "total" virial coefficient ktot, which satisfies

virial_coeff_tot(R[, total_mass, vc])

Evalutation of the "total" virial coefficient ktot, which satisfies

deprojected_sersic_models.plot Package

Functions

plot_density(sersic_profs[, r, rlim, rlog, ...])

Function to show mass density profile(s) for the Sersic mass distribution(s).

plot_dlnrho_dlnR(sersic_profs[, r, rlim, ...])

Function to show dlnrho/dlnr profile(s) for the Sersic mass distribution(s).

plot_enclosed_mass(sersic_profs[, r, rlim, ...])

Function to show enclosed mass profile(s) for the Sersic mass distribution(s).

plot_profiles(sersic_profs[, r, rlim, rlog, ...])

Function to show all six parameter profiles for the Sersic mass distribution(s).

plot_profiles_single_type(sersic_profs[, ...])

Base function to plot single parameter profile(s) for the Sersic mass distribution(s).

plot_projected_enclosed_mass(sersic_profs[, ...])

Function to show projected (2D) enclosed mass profile(s) for the Sersic mass distribution(s).

plot_surface_density(sersic_profs[, r, ...])

Function to show surface density profile(s) for the Sersic mass distribution(s).

plot_vcirc(sersic_profs[, r, rlim, rlog, ...])

Function to show circular velocity profile(s) for the Sersic mass distribution(s).

deprojected_sersic_models.paper.paper_plots Module

Functions

make_all_paper_plots([output_path, table_path])

Wrapper function to make all plots for the paper.

list_table1_values([table_path, n_arr, ...])

Wrapper to list ktot, k3D values for Table 1.