profitMag2Mu: Magnitude to Surface Brightness Conversions

Description Usage Arguments Value Author(s) See Also Examples

View source: R/profitUtility.R

Description

Functions to convert total magnitudes to surface brightness and vica-versa. These are provided to allow models to be either specified by total magnitude or mean surface brightness within Re. The latter is a useful way of specifying a disk model since surface brightness does not span a huge range.

Usage

1
2
profitMag2Mu(mag = 15, re = 1, axrat = 1, pixscale = 1)
profitMu2Mag(mu = 17, re = 1, axrat = 1, pixscale = 1)

Arguments

mag

Total magnitude of the 2D Sersic profile.

mu

Mean surface brightness within Re of the 2D Sersic profile.

re

Effective radii of the 2D Sersic profile.

axrat

Axial ratio of Sersic profile defined as minor-axis/major-axis, i.e. 1 is a circle and 0 is a line.

pixscale

The pixel scale, where pixscale=asec/pix (e.g. 0.4 for SDSS). If set to 1, then the surface brightness is interpreted in terms of pixels, otherwise it is interpreted in terms of arcseconds^2.

Value

profitMag2Mu returns the mean surface brightness within Re of the 2D Sersic profile.

profitMag2Mu returns total magnitude of the 2D Sersic profile.

Author(s)

Aaron Robotham

See Also

profitMakeModel

Examples

1
2
profitMag2Mu(mag=22, re=10, axrat=0.5)
profitMu2Mag(mu=28, re=10, axrat=0.5)

Example output

Loading required package: FITSio
Loading required package: LaplacesDemon
Loading required package: magicaxis
Loading required package: MASS
Loading required package: plotrix
Loading required package: sm
Package 'sm', version 2.2-5.4: type help(sm) for summary information

Attaching package: 'sm'

The following object is masked from 'package:MASS':

    muscle

Loading required package: mapproj
Loading required package: maps
Loading required package: celestial
Loading required package: RANN
Loading required package: NISTunits
Loading required package: pracma

Attaching package: 'pracma'

The following object is masked from 'package:sm':

    nile

The following objects are masked from 'package:LaplacesDemon':

    Mode, logit, loglog

Loading required package: R2Cuba
Loading required package: RColorBrewer
[1] 28.24287
[1] 21.75713

ProFit documentation built on Nov. 11, 2019, 5:07 p.m.