In this tutorial, we explain how to use the GalMod web interface. All parameters and a detailed derivation of the adopted formulation are in three dedicated papers: Pasetto et al. (2016, 2018a,b).
GalMod aims to generate mock catalogs for a specified field of view of our Galaxy (the Milky Way, MW), an external galaxy such as Andromeda (M31), a dwarf galaxy, or a quasi-equilibrium stellar model. Each input set of parameters corresponds to a single output. The output is not unique, being the product of stochastic simulations based on Monte Carlo integration methods. If the user runs GalMod twice (or more) on the same set of parameters, GalMod produces “statistically equivalent” results but not identical.
GalMod requires the user to fill a (basic) input form, containing the minimum requirements for the model to work (or an extended/advanced input form). The preset parameters that the user finds in the GalMod input form are random examples of the field of view based on an MW “optimal model.” The user is free to change those parameters within the indicated range (or accept the preset parameters). Once the user fills all the parameters and provides a correct email address, GalMod produces the simulation and sends an email with a password and a link to download the results (the website is mobile friendly). The timescale for the delivery of a mock catalog depends on the input parameters and the servers’ availability; a minimum time of 10 minutes is preset, and times longer than 10,000 minutes indicate either difficult FoVs or a bug in GalMod. In that case, feel free to contact the support (see below).
The input form requires the user to provide a set of parameters (grouped by background color) referring to a Galactic composite stellar population (CSP). By hovering with the mouse over any box inside these sections, a brief explanation of the parameter appears with a few hints on its possible value. The allowed parameter range (if a real number) is below the input box, written in mathematical notation, e.g., \(x \in \left] {a,b} \right]\) meaning \(a < x \le b\), or \(y = {a..d}\) for integer limits meaning \(y = a \vee y = b \vee y = c \vee y = d\). Each box must contain a single number; no arrays of numbers are allowed as input. The input form comes with preset parameters for the Galaxy to facilitate the use of the model (including a field of view as an example). Selecting a parameter outside the range of allowed values causes the box border to become red to indicate the mistake. By refreshing the web page, GalMod performs a check on the full list of parameter values. Reloading the page resets the preset parameters to their original values.
If the input is accepted, the simulation runs "as soon as possible," and when finished, GalMod sends a communication to the provided email address with a temporary password and a link to download the file from GalMod. The simulations are available for download for a few days.
Not all parameters are necessary to run GalMod; the recommended fields to set are:
If the user wants to study a direction in the Galaxy, an all-sky mock catalog results in a low-resolution model in the direction of interest. Hence it is strongly recommended to specify the field of view because this allows GalMod to produce a better simulation only in the direction of interest. Full-sky simulations are allowed; there is no limit on the solid angle of the field of view. GalMod informs the user of the correct amount of stars that should fill the desired field of view under the specified parameters.
Choosing a photometric system is also important. Several important photometric systems are available in the drop-down list menu, and the closest to the user’s interest should be set.
Other relevant parameters to set are:
The “basic” parameter section influences the way the Galaxy “looks” in the simulation output. Modifying the structural parameters changes the way in which the Galaxy “is,” independently of the possibility of detecting it in the output catalog. This concept can be explained with a few simple examples. Modifying the structure parameters of the bulge components for a small field of view of an MW model pointing toward the anticenter direction rarely results in visible changes in the resulting mock catalog, even though changes to the bulge parameters affect the global potential of the MW. As a less straightforward example, modifying the metallicity/age of a thin disk CSP in the structure section implies a variation in the velocity-dispersion distribution of stars because of the implemented age-velocity dispersion relation for the thin disk CSPs. However, if the user requires a model with a high velocity dispersion for very young thin disk CSPs, the MSP-CT predicts a small probability for this type of CSP to exist, thus reducing this CSP's total mass in favor of other disk CSPs. The MSP-CT “redistributes” the mass onto other more probable CSPs. Conversely, the stellar halo, which is supposed to be old and metal-poor but whose connection with other CSPs is not obvious, is left free to be metal-poor and old as well as metal-rich and young. The GalMod user has responsibility for the simulation inputs as well as the freedom to experiment.
GalMod generates the Galaxy potential, the number of stars in the CMDs and the kinematics of the stars depending on a set of parameters that define the stellar populations, the dark matter and the gas contents of the Galaxy. For each CSP, these parameters are:
The interstellar medium (ISM) component is considered in the total Galaxy density to obtain the total potential and to determine the extinction that will affect the simulated CMDs. The ISM distribution follows the spiral arm parameters adopted for the first stellar population distribution (i.e., thin disk CSP-I), but it perturbs the density profile of the ISM and is dimmed by the “reducing factor” (see Pasetto et al. 2016). In the case of M31 simulations, the extinction of the stars is computed from the solar location excluding the MW extinction that the user must account for in a separate simulation. The ray-tracing technique is a spin-off of the ray-tracing 3D dust radiative transfer code DART-Ray by Natale et al. (2017).
If the generation of the model is successful, the user receives a second email containing a password and a link to download the catalog of data containing the results of the simulation. The file contains an initial section that recaps the chosen input parameters, including the version of GalMod used and references to the sections of Pasetto et al. (2016, 2018a,b).
The first section of the output file looks like the following:
GalMod rel. XX.XX
GalMod is presented in Pasetto et al. (2016a, 2018a,b), and references therein.
The section numbers here quoted refer to the sections in those papers.
Please see and cite those documents if you use GalMod.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Some infos about the GalMod simulation you realized are here summarized:
Total number of stars is automatically fixed
Photometric system adopted: extended JOHNSON-COUSINS
fltr no{1st,2nd}, Mag{min,max}, Col{min,max} [mag,mag,mag,mag]: {1, 2},{6.00, 22.00},{.00, 4.00}
ErrMag{min,max} [mag,mag]: {.01, .05}
Z{min,max} [mass fraction]: {.00004, .03000}
Binary fraction: .300
Squared FoV in Galactic coordinates
{lmin,lmax,bmin,bmax} [deg,deg,deg,deg]: {.00, 359.90, -90.00, 90.00}
{rhelmin,rhelmax} [kpc,kpc]: {.01, 25.00}
{mu_1 min,mu_1 max} [mas/yr,mas/yr]: {-700.00, 700.00}
{mu_2 min,mu_2 max} [mas/yr,mas/yr]: {-700.00, 700.00}
{Vrhelmin,Vrhelmax} [km/s,km/s]: {-700.00, 700.00}
{R,phi,z}@Sun [kpc,deg,kpc]: {8.00, .00, .02}
{VR,Vphi,Vz}@Sun-->LSR [km/s,km/s,km/s]: {-10.90, -5.20, 7.20}
Bulge CSPs parameters (P18b Sec. 3.3.3) + tilted bar (P18b, Sec. 3.3.2.)
Etc…
The order of this first metadata block is the same order used by the current output writer: code release and references, the user-visible input summary, the binary fraction, the FoV definition and cuts, the Sun position and velocity, and then the CSP, dark-matter, and interstellar-medium parameters. If \({r_ \odot } < 50\) kpc, these first lines are followed by a set of parameters obtained as a solution of the Poisson equation with the input density parameters. For example:
Some structural values from the density profiles:
The structural block is followed by the selection-function Monte Carlo diagnostics. Since the binary implementation can represent an unresolved binary as one catalogued system, this section now reports unresolved systems rather than only single stars. It gives the total number of unresolved systems expected before any observational cuts, the number of trial systems generated by the Monte Carlo selection-function estimator, the number accepted after the magnitude, color, metallicity, distance, proper-motion, and radial-velocity cuts, the estimated selection probability, the expected number of unresolved systems after cuts, and an approximate upper value. For example:
Selection-function Monte Carlo diagnostics:
pre-cut expected unresolved systems: 41839764287
generated trial unresolved systems: 99995
accepted unresolved systems after all cuts: 9833
selection probability estimate: 9.8335E-02
expected unresolved systems after cuts: 4.1143E+09 +/- 3.9398E+07
approximate 95 pct upper value: 4.1915E+09
The final section contains the synthetic catalog after the selection cuts have been applied. The table starts with three header rows: the column names, the column numbers, and the units. The number of photometric and extinction columns changes with the selected photometric system. In the Johnson-Cousins example above the table has 48 columns. Each row is one accepted unresolved system, which can be a single star or a binary system, and the first columns are:
\(t\left[ {yr} \right]\): age of the star,
\({\log _{10}}\left( {L/{L_ \odot }} \right)\): logarithm of the stellar luminosity normalized to the solar luminosity,
\(\log _{10}\left( T_\rm{eff}\left[ {^\circ K} \right] \right)\): logarithm of the effective temperature,
\(\log _{10}\left( {g\left[ m\;s^{ - 2} \right]} \right)\): logarithm of the stellar gravity at the stellar surface,
\(M\left[ M_ \odot \right]\): current mass of the source represented in the HR diagram,
\(Z\left[ {\rm{frac}} \right]\): stellar metallicity mass fraction,
\(Y\left[ {\rm{frac}} \right]\): helium mass fraction.
The following columns change depending on the stellar photometry selected:
\(m_{X,\rm{app}}\left[ {mag} \right]\): apparent magnitude in photometric band \(X\), after distance modulus, extinction, photometric errors, and the unresolved-binary photometric contribution have been applied. For rows with \({\rm{Binary}}=1\), the listed magnitude is the unresolved system magnitude used by the selection cuts;
\(A_X\left[ {mag} \right]\): absorption in photometric band \(X\) for the source along the l.o.s.
The following columns contain the position and velocity-space description of each accepted system:
\(r_{\rm{hel}}\left[ {kpc} \right]\): heliocentric distance,
\(\left\{\alpha,\delta\right\}\left[ \deg \right]\) or \(\left\{l,b\right\}\left[ \deg \right]\): angular coordinates, depending on the selected FoV definition,
\(\left\{R,z,\phi+\phi_\odot\right\}\left[ {kpc,kpc,\deg} \right]\): Galactocentric cylindrical position,
\(v_{r,\rm{hel}}\left[ {km\;s^{ - 1}} \right]\): heliocentric radial velocity, including the binary radial-velocity perturbation where applicable,
\(\left\{\mu_\alpha,\mu_\delta\right\}\) or \(\left\{\mu_l,\mu_b\right\}\)\(\left[ mas\;yr^{ - 1} \right]\): proper motions in the two angular coordinates, including the binary photocentre-motion perturbation where applicable,
\(\left\{V_R,V_z,V_\phi\right\}\left[ {km\;s^{ - 1}} \right]\): Galactocentric cylindrical velocity components.
The final columns contain stellar-evolution, compact-object, binary, and CSP identifiers:
\(M_{\rm{ini}}\left[ M_\odot \right]\): initial stellar mass,
\(C/O\): carbon-to-oxygen value associated with the stellar-evolution stage,
\(K_{\rm{CO}}\): compact-object type flag,
\({\rm{Binary}}\): binary flag, equal to 1 for unresolved binary systems and 0 for single-star systems,
\(q_{\rm{bin}}\): binary mass ratio \(q=M_2/M_1\),
\(\left\{M_{1,\rm{now}},M_{2,\rm{now}}\right\}\left[ M_\odot \right]\): current primary and secondary masses,
\(\beta_{\rm{bin}}\): dimensionless binary photocentre/light parameter used by the kinematic correction,
\(P_{\rm{bin,d}}\left[ day \right]\): binary orbital period in days,
\(\Delta v_{r,\rm{bin}}\left[ {km\;s^{ - 1}} \right]\): binary-induced radial-velocity offset,
\(\left\{\Delta \mu_{1,\rm{bin}},\Delta \mu_{2,\rm{bin}}\right\} \left[ mas\;yr^{ - 1} \right]\): binary-induced proper-motion offsets along the two output angular coordinates,
\({\rm{CSP}}\): composite stellar population type. For single-star systems, the binary-specific quantities are set to zero.
Binary-star photometric and observed-kinematic corrections are generated statistically from the input binary fraction and the current GalMod binary prescription. Simulations are made at one's own risk. The authors are not responsible for wrong applications of their model. For further information, please contact Galaxy.Model@yahoo.com.
The support team can be reached at Galaxy.Model@Yahoo.com. GalMod is hosted by a cloud service; the support team does not have access to either the user’s email or to the produced simulations. If support on a simulation is needed, please contact the support email and include the first 100 lines of the file received. These contain the GalMod version and the parameters introduced in the form, and this will enable us to regenerate a simulation with the same version of GalMod.
Jun 2018 release (ver. 17.10): bug fixed on the azimuthal velocity written in the output table.
Oct 2018 release (ver. 17.20): bug fixed on the M31/dwarf-galaxies velocity field and FoV definition. New faster extinction and gravitational potential computation algorithms.
Dec 2018 release (ver. 18.01): numerous bugs evidenced by a larger GalMod community of users. Bug fixed on the M31/dwarf-galaxies FoV definition. Bug fixed on the M31/dwarf-galaxies FoV radial velocity computation. Bug fixed on the number of stars computed beyond the Galactic center in the (l,b)=(0,0) direction. Bug fixed on the vertical velocity dispersion for some young stellar populations. Bug fixed on the HR diagram for masses of 0.6 Msun. Bug fixed for the random generator of the age/metallicity distribution. Minor bugs fixed on the kinematics computation. Furthermore, in the semi-equilibrium model initial-condition generator mode, GalMod no longer uses the database of simulations (in this way, every time the user runs a simulation, new, different i.c. are generated). Use of co-arrays (and other Fortran 2018 features) has been implemented to speed up the computations.
Feb 2019 release (ver. 18.06): bug fixed on the position angle for the M31/dwarf-galaxies simulation mode.
Mar 2019 release (ver. 18.06): Simplified web-page with Basic and Advanced input form. Implemented encryption with SSL Certificate Management System.
Apr 2019 release (ver. 18.09): bug fixed to handle crashes gracefully.
Jul 2019 release (ver. 18.15): Introduction of parallel tempering technique to sample the posterior probability distribution functions more efficiently. Introduction of the small-FoV approximation to the solution of the star count equation to speed up the computation of very small FoV. Bug fixed in the bulge dispersion velocity computation of external galaxy models and/or MW bulge.
Aug 2019 release (ver. 18.19): Subaru Hyper Suprime-Cam photometry added to the synthetic CMD generator, extinction model, and webpage access. Bugs fixed on selection cuts.
Sep 2020 release (ver. 18.20): Speed up extinction computation. Bugs fixed.
Dec 2020 release (ver. 18.21): Bugs on the AI memory database fixed. Extinction computing bug fixed.
Nov 2021 release (ver. 18.22): New spherical frustum definitions.
Dec 2022 release (ver. 18.23): Bugs on M31-FoV generation fixed.
Jan 2024 release (ver. 19.01): Multiple thin disk stellar populations, new hardware, new webpage.
Feb 2024 release (ver. 19.03): Bug fixed on stellar halo total mass computation. New extinction map calibrated.
Mar 2024 release (ver. 19.04): Delivering up to 1e6 stars in .tgz output format.
Jun 2024 release (ver. 19.05): webpage bug fixed, new input/output reader, bugs on the number of stars computed fixed.
Jun 2024 release (ver. 19.06): M31 FoV model bugs reported and fixed.
Feb 2026 release (ver. 20.02): bugs in the number-of-stars normalization fixed.
Apr 2026 release (ver. 21.25): new MIST-based photometry, including AGB and white-dwarf sequences; new bolometric corrections from the MIST photometric tables; five new photometric systems added (INT Photometric H-alpha, S-PLUS, UVIT, VISTA, and Roman/RST), with Gaia DR3 photometry updated; optimized performance for faster catalog generation.
May 2026 release (ver. 22.07): binary-star support added to the online GalMod workflow and to the synthetic-catalog engine. The web interface now includes a Binary Fraction input, allowing the user to set the fraction of generated systems treated as binaries directly from the basic form. Binary systems are now propagated through the Hertzsprung-Russell and color-magnitude diagram generation, so unresolved binary contributions are included in the synthetic photometry and in the photometric selection cuts. The catalog generation also carries binary-state information into the velocity-space stage, including companion-related quantities and binary-induced radial-velocity and proper-motion perturbations where applicable.