API
dysmalpy.galaxy Module
Classes
|
Container for simulating or modelling a galaxy |
dysmalpy.models Package
Functions
|
Radial surface density function for an infinitely thin exponential disk |
|
Enclosed mass function for exponential disk |
|
Rotation curve function for exponential disk |
|
Radial surface mass density function for a generic sersic model |
|
Enclosed mass as a function of r for a generic sersic model |
|
Circular velocity given an enclosed mass and radius |
|
Enclosed mass given a circular velocity and radius |
Classes
|
Object that contains all model components, parameters, and settings |
|
Mass distribution following a Sersic profile |
|
Mass distribution with a disk and bulge |
|
Mass distribution with a disk and bulge |
|
Infinitely thin exponential disk (i.e. Freeman disk). |
|
Central black hole. |
|
Mass distribution following an infinitely thin Gaussian ring profile. |
|
Dark matter halo following an NFW profile |
|
Same as |
|
Two power law density model for a dark matter halo |
|
Dark matter halo following a Burkert profile |
|
Dark matter halo following an Einasto profile |
|
Dekel-Zhao halo profile (Dekel et al. 2017, Freundlich et al. 2020). |
|
Model for a biconical outflow |
|
Model for an unresolved outflow component described by a Gaussian |
|
Model for a uniform radial flow. |
|
Model for a planar uniform radial flow, with radial flow only in the plane of the galaxy. |
Model for a planar radial flow, with radial flow only in the plane of the galaxy, |
|
|
Model for a uniform flow along a bar, along some axis in the galaxy midplane. |
|
Model for flow along a bar, along some axis in the galaxy midplane, |
|
Model for a uniform planar radial flow (only in the plane of the galaxy), |
|
Model for a spiral density wave, assumed in the galaxy midplane. |
|
Light distribution following a Sersic profile. |
|
Light distribution following a Gaussian ring profile. |
|
Light distribution for a clump following a Sersic profile, at a given galaxy midplane R and azimuthal angle phi. |
|
Light distribution following a Gaussian ring profile, with azimuthal brightness variation. |
|
Model for a constant dispersion |
|
Model for extinction due to a thin plane of dust |
|
Model for extinction due to a foreground plane of dust |
|
Model for extinction due to a foreground plane of dust |
|
Model for constant dimming. |
|
Model for constant cosmological dimming. |
|
Model component defining the transformation from galaxy to sky coordinates |
|
Object for storing and applying kinematic corrections |
|
Gaussian flux distribution in the z-direction |
|
Exponential flux distribution in the z-direction |
|
Class to handle circular velocities / enclosed mass profiles for a thick Sersic component. |
|
Class to handle circular velocities / enclosed mass profiles for an infinitely thin, massive Gaussian ring. |
dysmalpy.instrument Module
Classes
|
Base class to define an instrument to observe a model galaxy. |
|
Re-definition of radio_beam.Beam to allow it to work with copy.deepcopy and copy.copy. |
|
Beam object that is the superposition of two Gaussian Beams |
|
Object describing a Moffat PSF |
|
An object to handle line spread functions. |
dysmalpy.data_classes Module
Classes
|
|
|
Convention: |
|
|
|
dysmalpy.aperture_classes Module
Functions
|
Classes
|
Base Aperture class, containting a single aperture from which to extract a 1D spectrum and flux, velocity, and dispersion. |
|
Elliptical Aperture |
|
Rectangular aperture. |
|
Base Aperture class, continaing a list/array of Aperture objects defining the full set of apertures for a kinematic observation. |
|
Set of elliptical apertures. |
|
Set of circular apertures. |
|
Set of rectangular apertures. |
dysmalpy.fitting Package
Functions
|
Utility to reload the Galaxy and Results object from a previous fit. |
|
Evaluate reduced chi square of model, relative to the data. |
|
Evaluate chi square of model, relative to the data. |
|
Evaluate reduced chi square of the model velocity/dispersion/flux map/profile |
Classes
|
Class to hold the MCMC fitter attributes + methods |
|
Class to hold the Nested sampling fitter attributes + methods |
|
Class to hold the MPFIT fitter attributes + methods |
|
Class to hold results of MCMC fitting to DYSMALPY models. |
|
Class to hold results of nested sampling fitting to DYSMALPY models. |
|
Class to hold results of using MPFIT to fit to DYSMALPY models. |
dysmalpy.plotting Module
Functions
|
Plot trace of Bayesian samples |
|
Plot corner plot of Bayesian result posterior distributions. |
|
Plot data, bestfit model, and residuals from the MCMC fitting. |
dysmalpy.fitting_wrappers Package
dysmalpy.lensing Module
This is a Python code to implement lensing tranformation in DysmalPy.
This code uses the C++ library libLensingTransformer.so
.
Classes
|
docstring for LensingTransformer |
dysmalpy.parameters Module
Classes
|
New parameter class for dysmalpy based on |
|
Base class for priors |
Object for flat priors |
|
|
Object for gaussian priors |
|
Object for Gaussian priors that only extend to a minimum and maximum value |
|
|
|
Object for priors described by a bounded sine Gaussian distribution |
|
Object for flat priors, but with boundaries that are conditional on other model parameters. |
|
Object for flat priors, but with boundaries that are conditional on other model parameters. |
dysmalpy.utils Module
Functions
|
|
|
Function to calculate the distance of each pixel from a specific pixel as well as the position angle |
|
Function to create an aperture mask. |
|
Determine the centers of the apertures that span an image/cube along a line with position angle pa and goes through center_coord. |
|
Simple function to determine the pixel that is r away from (xcenter, ycenter) along a line with position angle (pa) |
|
Measure the 1D rotation curve using equally spaced apertures along a defined axis |
|
|
|
|
|
This routine generates a bi-symmetric ('axisymmetric') version of a given set of kinematical measurements. |
|
|
|
Find the best fitting mean and standard deviation of a sample assuming the distribution is a truncated Gaussian with the truncation occurring at low values. |
|
|
|
Get the uncertainty ellipse of the sample for each photocenter. |
|
|
|
|
|
|
Return the papers that should be cited when using DYSMALPY |
dysmalpy.config Module
Classes
|
Class to hold all options for file output during and after fitting |