Methods
# static getAstronomicalUnitsFromParsecs(pc) → {AstronomicalUnit}
Transform parsecs into Astronomical Units
Parameters:
Name | Type | Description |
---|---|---|
pc |
Parsec
|
# static getDistanceModulusFromParsecs(pc, visualAbsorption) → {Magnitude}
Get the distance modulus from a distance in parsecs.
Parameters:
# static getKilometersFromParsecs(pc) → {Kilometer}
Transform parsecs into kilometers
Parameters:
Name | Type | Description |
---|---|---|
pc |
Parsec
|
# static getLightYearsFromParsecs(pc) → {LightYear}
Transform parsecs into light-years
Parameters:
Name | Type | Description |
---|---|---|
pc |
Parsec
|
# static getMegaparsecsFromRedshift(z, hubbleConstant) → {MegaParsec}
Transform a redshift into a distance in Megaparsecs
Parameters:
Name | Type | Description |
---|---|---|
z |
||
hubbleConstant |
KilometerPerSecondPerMegaParsec
|
The Hubble constant (default = 72) |
# static getParallaxFromParsecs(parsec) → {ArcSecond}
Transform a distance in parsec into a parallax
Parameters:
Name | Type | Description |
---|---|---|
parsec |
Parsec
|
The input distance in parsecs |
The parallax
ArcSecond
# static getParsecsFromAstronomicalUnits(AU) → {Parsec}
Transform Astronomical Units to parsecs
Parameters:
Name | Type | Description |
---|---|---|
AU |
AstronomicalUnit
|
# static getParsecsFromDistanceModulus(mM, visualAbsorption) → {Parsec}
Get the distance in parsecs from a distance modulus
Parameters:
# static getParsecsFromKilometers(km) → {Parsec}
Transform kilometers into parsecs
Parameters:
Name | Type | Description |
---|---|---|
km |
Kilometer
|
# static getParsecsFromLightYears(ly) → {Parsec}
Transform light-years into parsecs
Parameters:
Name | Type | Description |
---|---|---|
ly |
LightYear
|
# static getParsecsFromParallax(arcseconds) → {Parsec}
Transform a parallax into a distance in parsec.
Parameters:
Name | Type | Description |
---|---|---|
arcseconds |
ArcSecond
|
The parallax |
The distance in parsec.
# static getRedshiftFromMegaparsecs(Mpc, hubbleConstant) → {number}
Transform a distance in Megaparsecs into a redshift
Parameters:
Name | Type | Description |
---|---|---|
Mpc |
MegaParsec
|
|
hubbleConstant |
KilometerPerSecondPerMegaParsec
|
The Hubble constant (default = 72) |
number