GalRotpy: an educational tool to understand and parametrize the rotation curve and gravitational potential of disk-like galaxies
Andr\'es Granados, Daniel Torres, Leonardo Casta\~neda, Lady-J., Henao-O., Santiago Vanegas

TL;DR
GalRotpy is an educational Python tool that helps users understand galaxy rotation curves by visualizing mass components and fitting parameters using MCMC, demonstrated on real galaxy data.
Contribution
It introduces a new Python-based visual and fitting tool for galaxy rotation curves, integrating multiple mass models and MCMC fitting in an educational context.
Findings
Successfully characterized two galaxies, NGC6361 and M33.
Results for M33 align with existing literature.
Provides an interactive way to learn galaxy dynamics.
Abstract
\textbf{GalRotpy} is an educational \verb+Python3+-based visual tool, which is useful to undestand how is the contribution of each mass component to the gravitational potential of disc-like galaxies by means of their rotation curve. Besides, \textbf{GalRotpy} allows the user to perform a parametric fit of a given rotation curve, which relies on a MCMC procedure implemented by using \verb+emcee+ package. Here the gravitational potential of disc-like galaxies is built from the contribution of a Miyamoto-Nagai potential model for the bulge/core and the thin/thick disc, an exponential disc, together with the NFW (Navarro-Frenk- White) potential or the Burkert (cored density profile) potential for the Dark Matter halo, where each contribution is implemented by using \verb+galpy+ package. We summarize the properties of each contribution to the rotation curve involved, and then describe how…
| Component | Parameter Range | Units | ||||||
|---|---|---|---|---|---|---|---|---|
| Bulge I |
|
|
||||||
| Bulge II |
|
|
||||||
| Thin Disc |
|
|
||||||
| Thick Disc |
|
|
||||||
| Exponential Disc |
|
|
||||||
| NFW - Halo |
|
|
||||||
| Burkert - Halo |
|
|
| Model I | ||||||||||||||||||||||||
| Component | Parameter | Fit | 68% | 95% | ||||||||||||||||||||
| NFW-Halo |
|
|
|
|
||||||||||||||||||||
| Model II | ||||||||||||||||||||||||
| Component | Parameter | Fit | 68% | 95% | ||||||||||||||||||||
| Exponential Disc |
|
|
|
|
||||||||||||||||||||
| Burkert-Halo |
|
|
|
|
||||||||||||||||||||
| Model III | ||||||||||||||||||||||||
| Component | Parameter | Fit | 68% | 95% | ||||||||||||||||||||
| Thin Disc |
|
|
|
|
||||||||||||||||||||
| Burkert-Halo |
|
|
|
|
||||||||||||||||||||
| Model I | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Component | Parameter | Fit | 68% | 95% | ||||||||||||||||||||
| Exponential Disc |
|
|
|
|
||||||||||||||||||||
| NFW-Halo |
|
|
|
|
||||||||||||||||||||
| Model II | ||||||||||||||||||||||||
| Component | Parameter | Fit | 68% | 95% | ||||||||||||||||||||
| Exponential Disc |
|
|
|
|
||||||||||||||||||||
| Burkert-Halo |
|
|
|
|
||||||||||||||||||||
| Model I | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Component | Parameter | Fit | Uncertainty | ||||||||||
| Stellar-Gas-Halo |
|
|
|
||||||||||
| NFW-Halo |
|
|
|
||||||||||
| Model II | |||||||||||||
| Component | Parameter | Fit | Uncertainty | ||||||||||
| Stellar-Gas-Halo |
|
|
|
||||||||||
| Burkert-Halo |
|
|
|
||||||||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
GalRotpy: an educational tool to understand and parametrize the rotation curve and the gravitational potential of disc-like galaxies
Andrés Granados
Departamento de Física
Observatorio Astronómico Nacional, Universidad Nacional de Colombia, Carrera 30 Calle 45-03, P.A. 111321 Bogotá, Colombia
Daniel Torres
Observatorio Astronómico Nacional, Universidad Nacional de Colombia, Carrera 30 Calle 45-03, P.A. 111321 Bogotá, Colombia
Leonardo Castañeda
Observatorio Astronómico Nacional, Universidad Nacional de Colombia, Carrera 30 Calle 45-03, P.A. 111321 Bogotá, Colombia
Lady Henao
Observatorio Astronómico Nacional, Universidad Nacional de Colombia, Carrera 30 Calle 45-03, P.A. 111321 Bogotá, Colombia
Santiago Vanegas
Observatorio Astronómico Nacional, Universidad Nacional de Colombia, Carrera 30 Calle 45-03, P.A. 111321 Bogotá, Colombia
Abstract
GalRotpy is an educational Python3-based visual tool, which is useful to undestand how is the contribution of each mass component to the gravitational potential of disc-like galaxies by means of their rotation curve. Besides, GalRotpy allows the user to perform a parametric fit of a given rotation curve, which relies on a MCMC procedure implemented by using emcee package. Here the gravitational potential of disc-like galaxies is built from the contribution of a Miyamoto-Nagai potential model for the bulge/core and the thin/thick disc, an exponential disc, together with the NFW (Navarro-Frenk- White) potential or the Burkert (cored density profile) potential for the Dark Matter halo, where each contribution is implemented by using galpy package. We summarize the properties of each contribution to the rotation curve involved, and then describe how GalRotpy is implemented along with its capabilities. Finally we present the characterization of two galaxies, NGC6361 and M33, and show that the results for M33 provided by GalRotpy are consistent with those found in the literature.
I Introduction
In 1914 Vesto Slipher discovered that spiral galaxies rotate, by detecting inclined absorption lines in nuclear spectra from M31 and Sombrero galaxies (Slipher, 1914). Later, Jan Oort in 1932, first found that there must be three times as much mass as it is observed in visible light when he studied stellar motions above the galactic plane. This finding prompted him to include undetected components like interstellar medium to explain the missing mass. Similar Fobservations for the external parts of NGC3115 galaxy, showed that the mass-to-light ratio is about two orders of magnitude larger than in the solar neighborhood (Oort et al., 1940), as evidence of no visible matter. The latter is known as the missing mass problem; it is, the mass contained in the bright objects of a defined region in space does not correspond to its dynamical mass, brought to us by its gravitational interactions.111asdfasdfasdf
The mass-to-light ratio is a quantity that describes how much the mass is a fraction of the light expressed in solar units (). It has been the main tool for investigating the missing mass problem in stellar systems like the Milky Way galaxy, external galaxies, and cluster of galaxies.
Is has been raised some explanations concerning the missing mass problem. H. Babcock in 1939 found that the rotation curve is approximately flat on the periphery of M31 galaxy, instead of the expected Keplerian decrease because of the diminishing in luminosity (predicted by the luminous profile) Babcock (1939). He concluded that the mass-to-light ratio must be not constant in the galactic radius, but it must increase. He suggested two explanations for this phenomenon: the light absorption must increase in external parts of the galaxy, or it is required a modification to the Newtonian dynamics Sanders (2010).
The findings published by Fritz Zwicky Zwicky (1933, 1937), suggested the existence of some sort of unseen matter or dark matter in his results using the virial theorem applied to the velocities of galaxies in the Coma galaxy cluster. Zwicky measured the radial velocities of the galaxies in the cluster, and thus he estimated the cluster mass as well as the average galaxy mass. Then comparing this value with the luminosity, he obtained the mass-to-light ratio for galaxies in the cluster suggesting that the major contribution comes from dark matter in the cluster. Later, in 1970 Vera Rubin, first reveals an observational evidence of dark matter in M31 galaxy. She realized the flattened circular velocity in the external regions of the galaxy based on the galaxy rotation curve from 67 Hii spectra within a range in the galactic radius of () Rubin and Ford Jr (1970).
The rotation curve of disc-like galaxies is the main kinematic observable data that allow the study of dynamical properties of its stars and interstellar gas, in addition to structure, evolutionary and formation processes of the galaxy Sofue and Rubin (2001). The shape of rotation curves was related to the morphology of spiral galaxies Rubin, Ford Jr, and Thonnard (1980) looking for a universal rotation curve depending only on the galaxy luminosity Persic, Salucci, and Stel (1996), and not only on the luminosity but by a multi-parameter family such as morphological type, the shape of the light distribution and other optical properties Noordermeer et al. (2007).
The mass distribution in a component of a galaxy can be estimated by the assumption that the mass-to-light ratio is constant Binney and Tremaine (2011). Given that the galaxy luminosity is an astrophysical observable, it can be obtained a light profile of a galaxy component and, therefore to infer its mass distribution. Then, it is possible to find the rotation curve for each mass contribution and derive interesting quantities like bulge to disc or bulge to the dark matter halo mass ratios, or equally interesting the radial extension of each mass component. The modeling of a rotation curve using mass decomposition is widely used even in recent studies, since it evidences the influence of all the mass contributions in each position.
Following the method of mass decomposition, GalRotpy is intended to visualize the parametric building of a rotation curve of disc-like galaxies in its main mass constituents and then to make an estimation of the parameters and their uncertainties associated to each contribution. A rotation curve can be fitted by changing in real time two or more gravitational potential parameters, to give a first glance about the importance of the different mass components of a galaxy, that can be compared directly with observational data. Therefore GalRotpy is also presented as a teaching guide for gravitational potential theory and dynamics of galaxies.
This paper is arranged in the following way. In section II we summarize the theory of gravitational potential as the foundations of GalRotpy, where we focus on the functional form of four gravitational potentials used to model the galaxy’s mass components and their circular velocities: Miyamoto-Nagai for the bulge and thin/thick disc, the exponential disc and the Navarro-Frenk-White or Burkert for the dark matter halo. Here, we also make a brief discussion on how this decomposition has been implementedSofue (1996, 2016); Pouliasis, Di Matteo, and Haywood (2017), which is a reference for defining the input parameters used in GalRotpy. This is followed by section III, in which we give the outline of how GalRotpy is implemented and how it works. Continuing with section IV, it is presented the application of GalRotpy to two spiral galaxies, NGC6361 and M33, in order to estimate the potential parameters like mass (or density), galactocentric distance and height scales from the rotation curve. Finally, the conclusions and summary are subject of section V.
II Gravitational potential of disc-like galaxies
In this section we take into account the primary results on the theory of gravitational potential related to different mass components in disc-like galaxies; we also show the equations of circular velocity and the meaning of the parameters for these potentials to understand the basis to decompose the observed rotation curve of disc galaxies. The potential theory is the fundamental issue needed to extract the kinematical features from rotation curves, and deduce the dynamics of these systems.
II.1 Potential Theory
A galaxy is a system of stars, interstellar gas and dark matter that interact between them fundamentally following Newton’s theory of gravity. The whole mass of a disc-like galaxy is composed of different masses associated with its constituents stellar systems. The mass distributions will give us the functional form for the potentials according to the Newton gravity law expressed in its differential form by Poisson’s equation Samurovic (2007); Binney and Tremaine (2011):
[TABLE]
with the gravitational constant, the mass density of the given system and the gravitational potential this systems generates. From now on we will refer to as potential.
The Poisson’s equation is an elliptical partial differential equation that allows linearity. It means that if two sources with mass density and generate the potentials , and respectively, then the source with mass density generates the potential . Here linearity is also known as *the superposition principle *, and it stays valid for as many mass components as needed. This is the key property implement in GalRotpy tool, since it allows the decomposition of the total potential of a given galaxy into its different components, and thus use them separately.
When we can set the solution to (1) is
[TABLE]
where the integral is taken over all the mass distribution, such that (2) satisfies , with F being the total force per unit mass on a particle, also known as the gravitational field.
For a deep discussion on potential theory in the gravitational context refer to Binney and Tremaine (2011).
II.2 Circular velocity
The central issue of this work is to compute the circular velocity (in the equatorial plane) associated to a gravitational potential of a disc-like galaxy, which is described by
[TABLE]
where in case of a spherical symmetric distribution, this velocity is not fixed at the equatorial plane, and reads
[TABLE]
Thus, along to the linearity of Poisson’s equation (1), we have that, for a system composed by mass distributions, it is characterized by the gravitational potential
[TABLE]
such that, according to equation (3) and the potentials composition (5), the total circular velocity reads
[TABLE]
Therefore, using equation (3), we obtain the circular velocities associated to each potential that we will use to model the rotation curve of a disc-like galaxy Binney and Tremaine (2011).
II.3 Potentials of a disc-like galaxy
It is a tough task to resolve the Poisson equation for given a mass density . However, supported by symmetry considerations and observed luminosity profiles it is possible to simplify the problem and to find a functional form for the mass distribution of a spiral galaxy(Miyamoto and Nagai, 1975).
There are different combinations of potentials which permit to characterize the rotation curve of a given disc galaxy, for example in Sofue (1996) the rotation curve for the Milky Way galaxy was modeled using the Miyamoto-Nagai potential for four different componets, while in Pouliasis, Di Matteo, and Haywood (2017) for this very same rotation curve, two models are given, where Miyamoto-Nagai potential, Plummer potential and a truncated spherical symmetric potential are used to model the thin/thick disc, the bulge and the dark halo respectively. In this way, Sofue (2016) modeled the rotation curve of several disc galaxies by means of the de Vaucouleurs potential for the bulge, an exponential disc and a NFW dark halo. Besides, it has been shown that Burkert cored distribution is useful to describe the dark halo for dwarf galaxies for example (see Karukes and Salucci (2016)).
Therefore, we have a guide of what potentials (mass distributions) are the best to be include in GalRotpy, taking into account that we will use galpy to implement the different contributions of a given rotation curve. Thus, as a first approximation to the real dynamics of disc-like galaxies, GalRotpy uses calculations of two axisymmetric potentials to model the barionic matter component, while it uses two spherical symmetric potentials to model the dark matter component. The mass distribution of a disc galaxy can be decomposed mainly into three mass components: bulge, disc, and Dark Matter Halo (Sofue, 2016). Below, we present in context the historical development of these components, the functional forms for its gravitational potentials and its importance in the understanding of the rotation curve of disc-like galaxies.
II.3.1 Miyamoto-Nagai potential
This potential expresses the mass components of the bulge and the thin/thick disc of a galaxy. The Miyamoto - Nagai potential is a generalization of the Plummer and Kuzmin potentials.
In 1911, Plummer used an elementary solution of the Lane-Emden equation to find the gravitational potential of a spherical system (refer to Binney and Tremaine (2011) for further details), which is know as the Plummer model, and it is given by
[TABLE]
with . The Plummer model raised on the discussion about stars distribution in globular clusters. The mass density at different distances from the center of globular clusters is approximately the same, and it is supposed these systems come from spherical distributions (Plummer, 1911).
Moreover, for a flattened mass distribution of axisymmetric galaxies, Toomre in 1963 found the exact solutions for the Poisson’s equation
[TABLE]
where and are the surface density and Dirac’s delta function respectively. Its solution Miyamoto and Nagai (1975); Binney and Tremaine (2011) turns out to be
[TABLE]
which is named the Kuzmin’s model or Toomre’s model 1.
On the other hand, the Miyamoto - Nagai potential is an axisymmetric potential defined in cylindrical coordinates as
[TABLE]
with , , the length, height scales and mass enclosed at galactocentric distance (amplitude), respectively; these can be used as free parameters to determinate the mass components. Thus, for this potential its associated circular velocity reads
[TABLE]
The Fig. 2 represents the changes in the rotation curve’s shape by three values of amplitude. These values are traced by the quantity (top) representing the mass in the Miyamoto-Nagai model and the height scale (bottom) that determines the flatness of the mass density (better traced by the dimensionless scale ratio ). The model 7 is free of singularities and tends to the Newtonian point mass potential when and become large (Miyamoto and Nagai, 1975).
This potential is a generalization of the Plummer and Kuzmin potentials and respectively. A spherically symmetric potential (i.e. a Plummer model) can be expressed using the scale parameters defined in the Miyamoto-Nagai potential (7) with (Samurovic, 2007), while the Kuzmin model is recovered when .
The Miyamoto-Nagai potential describes both a disc and a bulge geometries continuously, including Plumer and Kuzmin potentials without superposing them (Miyamoto and Nagai, 1975). This potential is implemented in galpy and is used to model the bulge, thin disc and thick disc when needed to reproduce the rotation curve of a given disc-like galaxy.
II.3.2 Razor thin exponential disc potential
An axisymmetric thin disc can be considered as very flattened spheroid. Then in the following, we show the gravitational potential of an infinitely thin spheroid assuming some key physical and geometric conditions.
Since the idea is to obtain the potential of a flat spheroid, it is important to describe its source. According to Fig. 3 we see that the distance along the polar axis (along the direction) allows us to express the enclosed mass at ; which is defined on the equatorial plane. Thus, the galactic disc can be found by bringing the height of the mass distribution towards the equatorial plane. This projection permits to describe the mass content by means of an effective surface mass density, which is commonly noted as Binney and Tremaine (2011).
The projection described above is a key step in this construction. For such projection it is needed to write the polar coordinate in terms of the other geometric quantities involved, thus, for a spheroid with axis and which satisfy the relation
[TABLE]
it is clear that the polar distance can be written as for an axis ratio . Therefore, for a homogeneous spheroid with mass density and total mass , the surface density is given by . Here is the distance along the Line Of Sight (LOS) which crosses the spheroid (see Fig. 3).
Then, calculating the mass and surface density differentials by a variation in the distance , it is obtained the respective flattened homoeoid quantities
[TABLE]
with the central density at fixed . So, letting the galactocentric radius as the only parameter for the surface density of a system with axis ratio (i.e. ) this parameter leads to the expression (Binney and Tremaine, 2011)
[TABLE]
Here, may be considered as an arbitrary observed surface density model. The above equation has the solution given by the Abel integral equation
[TABLE]
Now, the next step is concerned about the potential, such that following Cuddeford (1993) (and the references therein) it is possible to obtain a particular pair, given by
[TABLE]
for a cylindrical Bessel function and some free parameter. The resulting disc potential turns out to be a superposition of the above components (for more details see Toomre (1963)),
[TABLE]
with
[TABLE]
Using the properties in the integral form of the Bessel function , it can be constructed a razor-thin disc potential like an infinitely flattened homoeoid
[TABLE]
where the notation is being used. Then the potential for axisymmetric discs with surface density , decomposed in homoeoids using the equations (9, 10) can be expressed by
[TABLE]
with
[TABLE]
Finally, integrating it in , the potential for an axisymmetric disc in the plane (when ) is
[TABLE]
According to Freeman (1970), it can be assumed that mass-to-light ratio is approximately uniform, at least on the disc of a galaxy and then, the disc surface density profile reads
[TABLE]
known as the exponential disc, where and are the central surface mass density and the radial scale respectively. The Fig. 4 shows the change in rotation curve shape by the changes in the potential parameters of equation 12. A change in surface density represents from a very flat circular velocity up to a thick disc (top), and lower values in radius scale parameter allows the reproduction of a thin disc.
Replacing the surface density (12) in the second integral of the equation (11), it is obtained:
[TABLE]
moreover, the potential in the equatorial plane in terms of the modified Bessel functions and , takes the form
[TABLE]
which leads to the circular velocity
[TABLE]
where . For further discussion see Freeman (1970); Binney and Tremaine (2011); Cuddeford (1993). For this model the total disc mass is given by Freeman (1970):
[TABLE]
which depends only on the two free parameters, the scale radius and the central surface density .
A complementary method is given by the definition of the galaxy’s luminosity by unit of area or surface brightness (Binney and Tremaine, 2011):
[TABLE]
with the distribution of luminosity density. Given the notation of Fig. 3 in cylindrical coordinates the projection of a spherical body on the plane where the LOS is along the coordinate, results in the surface brightness:
[TABLE]
so that, taking into account the geometric constraint it is clear that , thus . The above equation takes the form
[TABLE]
which can be inverted in a direct way using the Abel integral identity to obtain ; that is
[TABLE]
Under the assumption of a particular value for the mass-to-light ratio, the volumetric mass density is proportional to the brightness function , that is
[TABLE]
Therefore, starting from the 2D surface density it can be found the 3D luminosity density and if the light traces the mass it can be derived the mass density of the system.
II.3.3 The Navarro-Frenk-White potential
Collisionless N-body numerical simulations of the clustering of dark matter particles suggest that the mass density within a Dark Matter halo has a similar structure to a power density model, and a universal scale behavior. It is interesting to see the similarity between the luminosity profile in elliptical galaxies (Binney and Tremaine, 2011) and the mass distribution in the Dark Matter halo. Such mass density is given by the two-power law
[TABLE]
In particular for it is called Navarro-Frenk-White (NFW) (Navarro, Frenk, and White, 1997) model. This model has two free parameters: the scale radius and the representative density . It has also two correlated parameters: the halo mass and its characteristic (dimensionless) density (Navarro, Frenk, and White, 1997). Finally the NFW model density is
[TABLE]
where is the cosmological critical mass density, and is known as the characteristic ( dimensionless) overdensity. Here, we use the Hubble parameter taken from Planck collaboration Ade et al. (2016).
Thus, the enclosed mass within a radius is (from Jimenez, Verde, and Oh (2003))
[TABLE]
with . This density profile leads to the potential
[TABLE]
such that its corresponding circular velocity is
[TABLE]
As it can be seen in Fig. 5, an increment in the quantity results in greater amplitude and any change in scale parameter gives a fast steep or larger coverage in the galactocentric distance of the galaxy. GalRotpy works directly over the scale and the effective mass since it is the amplitude parameter implemented in galpy.
II.3.4 The Burkert density profile
Some dwarf galaxies are completely dominated by Dark Matter, and the density profiles are according to the density in the center given by the modified isothermal law (20). It satisfies the outer rotation curve constant value because it falls proportionally to :
[TABLE]
where is the core radius and is the central dark matter density(Burkert, 1995).
Nevertheless, cosmological simulations in the Cold Dark Matter (CDM) scenario predict halos with central density cusps that are not observed for several dwarfs, spirals and Low Mass Brightness (LMB) galaxies (López Fune, Salucci, and Corbelli, 2017). The observed mass profiles of dwarf galaxies can be fitted by the phenomenological density distribution according to Burkert (1995), known as the Burkert density profile, which is given by
[TABLE]
such that the mass enclosed within a radius r is
[TABLE]
This mass distribution generates a potential given by
[TABLE]
whose corresponding circular velocity turns out to be
[TABLE]
Here and are parameters which represent the central core density and a scale radius respectively. The corresponding rotation curve is shown in Fig. 6 where a change in the density (top) gives a specific value in the amplitude of the cored profile and a lower radius scale value (bottom) results in a lower top velocity for the same central slope. An interesting property of this profile is that, for practical purposes, it may be characterized by only one of the two parameters described above, since there is an approximate linear relation between and (see Burkert (1995); Salucci and Burkert (2000)), which states
[TABLE]
Despite, this seems to be an advantage, we will work with and separately since equation (25) may induce biased results within the fitting process. Tt means while the walkers explore the parameters space (see section III.3). With respect to its implementation, unlike NFW profile, for Burkert profile galpy (and therefore also GalRotpy) uses as amplitude parameter directly, and as its scale factor.
II.3.5 Dark Halo’s Mass
The intrinsic parameters of each distribution described above are the best ones to describe a given dark halo, nevertheless in the literature the total mass is often used instead of the corresponding density , which makes useful to give a brief description of how is defined.
Theoretical work and computational simulations on gravitational collapse and cosmological structure formation have shown that the total mass (also known as critic mass) of a Dark halo is well defined as the mass enclosed by a limiting radius , within which the mean mass density of the halo is given by
[TABLE]
such that
[TABLE]
Here is the cosmological overdensity and is the cosmological critical mass density, which was defined above. The main problem with this definition is that depends on the author and also on the cosmological model used. However, is often taken as a standard value. For a deeper discussion about this topic see for example Mo, Van den Bosch, and White (2010); Coe (2010) and the references therein.
Now, it is clear that in order to obtain we need , which is obtained by solving equation (27) for a given profile and, its corresponding intrinsic parameters. In such way, defining the concentration parameter the NFW profile leads to the equation
[TABLE]
while Burkert profile leads to the equation
[TABLE]
Thus, solving for we see that for both equations, non trivial real solutions have to be found numerically; plotting the function at both sides of the given equations shows that there is only one non trivial real solution. Remember that the intrinsic parameters and are different for each profile.
III GalRotpy
GalRotpy is a visual tool whose aim is to help to visualize and also to explore the rotation curve of disc-like galaxies considering the contribution of each component independently, not only from a visual inspection but also through a parametric fit analysis.
In order to accomplish this task we make an extensive use of the following six main python packages to run GalRotpy: matplotlib to generate the interface and plots, astropy and numpy for units and data mangement, galpy to construct the rotation curves, emcee to fit the data and obtain the most likely parameters by means of the MCMC procedure, and corner to plot the credible regions obtained from the fit process. Other packages are involved but not extensively used, then for a more detailed description about GalRotpy, see the repository page GAL (a) where the source code is available as well as its requirements and the instructions for its use.
III.1 GalRotpy input
To initialize GalRotpy it is required to give an initial value for the different potential parameters needed to model the bulge, thin disc, thick disc, exponential disc, NFW-halo and burkert-halo, which are introduced by means of a file named input_params.txt. This file must contain an initial value for the mass in and, for the galactocentric distance and height scales in , along with an associated threshold for each component. This threshold should be established for the mass, as an exponent of 10 in relation to its initial value, while for the size scales it must be a percentage of their corresponding initial values.
The following potential parameters (Table 1) are based in those used to model the Milky Way galaxy and dwarf galaxies, which can be taken by default.
On the other hand, the rotation curve must be introduced through a file named rot_curve.txt containing three columns with units of for the radial coordinate and for the velocity and its uncertainty.
III.2 GalRotpy panel
GalRotpy panel is composed by two blocks, left and right, which are shown in Fig. 7. First the left block (Fig. 7—top) includes a checklist to select the potentials to be used to model the rotation curve, and also includes a set of sliders for each mass contribution and scale parameters whose color match their corresponding potential. The sliders present a red guide showing the input parameters described in the previous subsection. Finally at the bottom of this block, there are two buttons: one to reset all the parameters to their input values, and the other one to start the best fit processes.
Secondly the right block (Fig. 7—bottom) shows the composed rotation curve given by the black solid line, and also shows the different potentials selected to reproduce the data; each potential is represented by a dashed line whose color matches the corresponding sliders. These rotations curves are obtained by using galpy, which is a python library that contains a set of tools for galactic dynamics, including gravitational potentials and its derived quantities: mass density, circular velocity, total mass, among others. galpy performs numerical orbit integration with a variety of Runge–Kutta–type and symplectic integrators; and it supports the calculation of action-angle coordinates and orbital frequencies for spherical potentials. It includes some distribution functions (DF) also like two-dimensional axisymmetric and non-axisymmetric disc DFs, a three-dimensional disc DF, and a DF framework for tidal streams Bovy (2015).
For more details about how galpy works and what it is capable of refer to Bovy (2015) and its corresponding documentation GAL (b).
III.3 Fitting process and output
The GalRotpy visual interface is a great help when the behavior of rotation curves wants to be understood or explained, but even though the visual inspection of the different potentials allows the user to choose the best candidates to reproduce the data, and a set of parameters which at first glance seems to be correct, it is essential to find a better estimation of the parameters with their uncertainties.
To solve this problem we make use of the package emcee EMC ; Foreman-Mackey et al. (2013) which implements a particular Markov chain Monte Carlo (MCMC) algorithm proposed by Goodman and Weare (2010), where instead of getting a best fit curve like a frequentist approach does, MCMC obtains the posterior probability distribution with , and being the parameters involded, the data used and the model (composed rotation curve in our case) respectively, such that
[TABLE]
where is the likelihood, is the prior, and is the evidence (also known as marginal likelihood or normalization factor). Nevertheless, since the evidence is not considered in MCMC algorithms, we only need to input the likelihood and the prior distributions: for the likelihood we use a Gaussian distribution
[TABLE]
with being the number of data points, and for the prior we use a step-like distribution given by
[TABLE]
where refers to all parameters. It is worth noting that we chose this simple distributions in order to not to give several constrains during the fitting process since we lack of information of how the different contributions to the composed circular velocity will adapt to the given data. In case, there is previous knowledge which helps to constrain the parameters, it may be introduced into the probability distributions. For a further discussion about how to implement emcee refer to its documentation EMC .
Now, with respect to how GalRotpy works, for each distribution we allow to their parameters to evolve only in a constrained way, due to the probability distribution given above; except for the bulge which can be modeled by means of two distributions: a spherical symmetric distribution or spheroidal distribution. The first one is described by means of the Plummer potential, which is achieved leaving as initial guess such that this parameter will not be used through the fitting process. However, if the user let as initial guess, the bulge will be modeled by meas of the Miyamoto-Nagai potential.
Therefore, once the potentials and also the parameters’ values, which seems to reproduce the data, have been chosen, the user has to click on the start button which closes the panel and will start the fitting process on the shell, where it is shown the dimension of the system (number of parameters consider in total) and it is asked to introduce the number o walkers (Markov chains) to be used; which must be an even number at least, twice the dimension. After that, the number of steps the user wants the walkers to take, has to be introduced in order to explore the parameters space.
An initial set of parameters or initial guess is needed for emcee to work, thus, such set corresponds to those parameters approximated through the visual fitting and are saved in a file named init_guess_params.txt. This initial guess needs to reproduce the data as well as possible, othervise the results are more likely to diverge.
The success of the fitting process in linked to how well the walkers behave, such that it is advised to take a big enough number of steps for a small number of walker (at least twice the dimension of the system) so, the user can verify what combination of components are the best for the rotation curve to be studied, and also can verify if the walkers actually converge, and if they do, the user can check whether they converge to physical values or not. Therefore, once one is sure which components to use and how well the walkers behave, in order to improve the estimation of the parameters, the fitting process can be run several times, each one using the very same input number of walkers and steps, making a new initial guess each time from half of the steps, thus the system evolves smoothly. If the user wants to run the process more than once, in the last run the walkers will take three times the number of input steps in order to have a better visualization of the walkers’ behavior.
It is worth noting that not for every possible combination of contributions GalRotpy will provided reliable results, since for some combination the walkers will diverge or converge to unphysical values. This problem may be addressed using a careful number of steps (small compared to the number of steps by which the walkers start to diverge) and running GalRotpy as many times as considered correct, nevertheless this procedure most of the times yields to nonphysical results, so it has to be applied carefully.
After the walkers explore the parameters’ space (fitting process), a window opens. Such window shows the walkers behavior (Markov chains) as it is shown in Fig. 8. This window has three buttons: two of them allow the user to see the samples for each parameter being studied so, that it is easy to determine from which step the chains are actually converging. It means that it is possible to get rid of those steps which are not useful; for example in Fig. 8 the fact of getting rid of the first 500 steps, gives excellent results. Hence, when the user decides how many steps to burn in, after clicking on the named button, the window closes and the number of steps to be burn in, has to be introduced in the shell.
Finally, this leads to three files: the first one is a text file named final_params.txt which includes the parameters’ values obtained with their corresponding uncertainties for the and quantiles, and two plots: one shows the curve obtained with each of the contributions used, and the other one shows the credibility regions which are plotted using the package corner COR ; Foreman-Mackey (2016). In regards to the credibility, as can be seen in Fig. 11 and Fig. 12 we have that, the inner dark region correspods to the likelihood, followed by fainter regio corresponding to the likelihood. The outer dark dotted region corresponds to the data beyond the likelihood.
In case that the exponential disc is selected, the text file final_params.txt will also include the total mass of the given disc , likewise, for both dark halos it will also be included the concentration parameter and the halo’s total mass for a given cosmological overdensity , whose value is asked after GalRotpy panel is closed. Since these quantities are not included directly along the fitting process, they will not appear in the credibility regions plot.
IV Results using GalRotpy
For the purpose of showing how GalRotpy works, we use the disc galaxies M33 and NGC6361 as test cases to find a dynamical model that describes approximately the gravitational potential of the given galaxies. For M33 we are able to compare our results with those reported by López Fune, Salucci, and Corbelli (2017).
IV.1 NGC6361 test case
To get the rotation curve of NGC6361, we first make a selection of some galaxies from CALIFA (Calar Alto Legacy Integral Field Area) survey, which provides data cubes of more than 600 galaxies in the local universe with 0.005 z 0.03. CALIFA survey uses Integral Field Spectroscopy (IFS) to integrate the properties of images and spectroscopy. The data cubes have information about kinematic properties from emission and absorption lines, stellar populations, and other physical features of each galaxy in CALIFA survey sample (García-Benito et al., 2015). Then, we select the NGC6361 galaxy which is a spiral galaxy type (SAb edge-on) sim (a) that does not present a bar-like structure in it. After that, we obtain from CALIFA survey the data product of NGC6361, one derived using PIPE3D, a technique implemented by Sánchez et al. (2016). Based on the datacube of NGC6361 and the velocity map for H emission line provided by CALIFA collaboration, we get the Fig. 9.
In this example, the rotation curve of NGC6361 is obtained from the points over the kinematic center, taken over the radial coordinate on the gas velocity field, along the given major axis (see Fig. 9). To accomplish this task, we have defined two coordinate systems, each one with respect to a given plane: one of them is perpendicular to the line of sight, while the other is perpendicular to the galaxy’s polar axis, such that the inclination angle between these planes is named ; see Fig. 10 (top). Thus, if we set these coordinate systems in such a way that the axis and are parallel, and coincide with the galaxy’s major axis as seen by the observer, we can relate the position of a star over the galaxy’s plane and the observer’s plane, as it is illustrated in Fig. 10 (bottom).
Consider a point (star) in the galaxy’s plane, with position (see Fig. 10 bottom-left), and whose velocity in this coordinate basis is
[TABLE]
Now, the observer is capable of measuring only the component of the velocity along its line of sight i.e, along , which is given by . Therefore, taking into account that from our set up the relations , and , are satisfied, the velocity measured by the observer turns out to beBeckman, Zurita, and Vega Beltrán (2004)
[TABLE]
Here, an additional term named systemic velocity () is added, which corresponds to the velocity of the galaxy as a whole (given by the spectroscopic redshift), while and represent the velocity along the radial and tangential direction respectively; with being the velocity component we are interested in. For this situation is commonly assumed that can be neglected, and also, for simplicity only the velocities along the major axis are considered (). Then, from (33) the circular velocity reads
[TABLE]
In this case, we have assumed that the gas velocity follows approximately the galaxy potential like the stars velocity field.
At this point we have described how it is possible to obtain the rotation curve from observations, therefore, from now on we will focus on the analysis of this curve using GalRotpy.
In the literature is often found that for a given value of , dark halos contributions are parametrized directly through its total mass and the concentration parameter ; mostly the NFW profile. However, although GalRotpy does not use this parameters to fit the rotation curve, they can be derived as it is discussed in section II.3.5, while the total mass corresponding to the exponential disc is easily calculated by using (15).
Therefore, from its rotation curve, now it is possible to characterize NGC6361. Here, we show three models which provide reliable parameters’ values (see Table 2), where we run the fit process twice for 100 walkers, 3000 steps and .
We modeled this galaxy’s rotation curve using both dark matter halo profiles available in GalRotpy. For the NFW profile we found that reliable results are obtained only when this profile is applied, whose rotation curve is shown in Fig. 11 (top). It means that this profile is capable of reproducing the rotation curve by itself, which suggests that within the corresponding uncertainties, NGC6361 is a galaxy dominated by dark matter, for a halo with a mass concentrated within a radius . On the other hand, for the Burkert profile, we found that it is not capable of reproducing the given rotation curve by itself, which is expected considering its behavior (see Fig. 6), since this profile cannot reproduce the cusp in the inner region. We obtained two models compatible with the data, each one for a different disc profile: an exponential disc (Fig. 11 - middle) and a thin disc (Fig. 11 - bottom). Such discs structures are dominant in the inner regions, approximately , beyond this limit in both cases the disc contribution starts decreasing rapidly and the dark halo is the dominant dynamical component . For this profile, we also found that within the corresponding uncertainties the dark halo is dominant with a mass enclosed within a radius with respect to a mass for the disc contribution.
IV.2 M33 test case
We now focus on M33 which is a spiral galaxy type (SA(s)cd, Face -on) sim (b) without a bar-like structure. We will characterize this galaxy based on the rotation curve taken from Corbelli et al. (2014), such that following López Fune, Salucci, and Corbelli (2017), we have two models: in both cases we use an exponential disc potential to model the stellar and gaseous contribution, while the dark halo is modeled through NFW and Burkert profiles.
Here, for both models we have a system of six dimensions (parameters) where we run the fit process twice for 100 walkers, 1000 steps and López Fune, Salucci, and Corbelli (2017). Each parameter being considered converge as shown in Fig. 8, such that the models are well adapted to the data. The parameters obtained are presented in Table 3, which within the corresponding uncertainties agree with those reported in López Fune, Salucci, and Corbelli (2017), presented in Table 4.
From Fig. 12 we can see that beyond for both models, the dark halo is the dominant contribution, and it rules the dynamics of the stars at this radius. However, the NFW profile presents a more significant contribution for the dynamics in the inner region, producing a more massive halo than the Burkert profile in Model II. On the other hand, since the Burkert profile is not capable of reproducing the cusp presented in the inner region (), thus, to compensate this fact the exponential disc turns out to be more massive than it is in Model I, then the baryonic matter is dominant in the inner region.
V Conclusions
In this paper we have presented GalRotpy, which is a tool for the real-time composition of rotation curves of disc-like galaxies, being a straightforward and powerful method to study the behavior of rotation curves. This method gives an approximation to the dynamics of stellar systems and its global gravitational features. Thus, GalRotpy allows the user to check the presence of an assumed mass type component in an observed rotation curve, by including or removing a mass model quickly, then by means of a MCMC parametric fit, it is possible to verify if in fact, the contributions chosen are compatible with the data. From this fit process GalRotpy provides an estimation of the parameters involved with their uncertainties within the and likelihood, along with a plot of the credibility regions associated to the intrinsic parameters of each contribution applied (those associated to the different profiles), by which it is easy to infer the main mass contribution quantitatively, in a galaxy from the mass ratios between pairs of mass components. Especially the bulge to disc and, the disc to dark matter halo ratios are relevant. GalRotpy also provides a plot which includes the composed rotation curve and its corresponding contributions, so it is possible to study qualitatively the influence of each component to the dynamics of the stellar system.
In order to present the capabilities of GalRotpy we have performed the analysis for the disc galaxies NGC6361 and M33. For NGC6361 we found three models consistent with the data: when the dark halo was modeled with the NFW profile, we obtained that this profile by itself is capable of reproducing the rotation curve, suggesting that the dark halo is the dominant dynamical component for this galaxy. Nevertheless, when the dark halo was modeled with the Burkert profile unlike the foregoing model, since the Burkert profile is not capable of reproducing the inner cusp of this rotation curve, the presence of an additional structure was essential. For this task, we added a disc structure using an exponential disc and also a thin disc, such that in either case we have that the dynamical behavior in the inner region (approximately ) is dominated by the disc structure. With respect to M33 we applied the models suggested in López Fune, Salucci, and Corbelli (2017), where our results are qualitatively and quantitatively in agreement with what they have reported.
VI Acknowledgements
We thank PhD Jorge Barrera-Ballesteros and PhD Sebastián Sánchez for their collaboration on generating the kinematic map of NGC6361 from CALIFA survey. In the same way, we thank PhD E. López Fune, PhD P. Salucci and PhD E. Corbelli by allow us to use the rotation curve data of M33 galaxy. We are grateful to PhD P. Salucci for their suggestions on using the Burkert profile for an optional, not -CDM scenario giving broad capabilities to GalRotpy for building rotation curves of disc-like galaxies. Finally, we especially acknowledge to PhD Leonardo Castañeda for promoting the interest in this work conducting the lectures on Galactic Dynamics at Observatorio Astronómico Nacional.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1GAL (a) https://github.com/andres Granados C/Gal Rotpy.git (a).
- 2GAL (b) https://galpy.readthedocs.io/en/v 1.4.0 (b).
- 3(3) http://dfm.io/emcee/current .
- 4(4) https://corner.readthedocs.io/en/latest/ .
- 5sim (a) http://simbad.u-strasbg.fr/simbad/sim-basic?Ident=ngc 6361&submit=SIMBAD+search (a).
- 6(6) https://apod.nasa.gov/apod/ap 141119.html .
- 7sim (b) http://simbad.u-strasbg.fr/simbad/sim-basic Ident=m 33&submit=SIMBAD+search (b).
- 8Ade et al. (2016) Ade, P. A., Aghanim, N., Arnaud, M., Ashdown, M., Aumont, J., Baccigalupi, C., Banday, A., Barreiro, R., Bartlett, J., Bartolo, N., et al. , Astronomy & Astrophysics 594 , A 13 (2016) .
