Jeospace API

org.jeospace.util
Class StellarUtils

java.lang.Object
  extended byorg.jeospace.util.StellarUtils

public abstract class StellarUtils
extends java.lang.Object

Utility methods for handling stellar magnitudes and spectral color.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Constructor Summary
StellarUtils()
           
 
Method Summary
static double getAbsoluteMagnitude(double apparentMagnitude, double parallax)
          Return the absolute magnitude of a star given it's apparent magnitude and parallax
static double getAbsoluteMagnitude(double apparentMagnitude, Length distance)
          Return the absolute magnitude of a star given it's apparent magnitude and distance
static double getApparentMagnitude(double absoluteMagnitude, Length distance)
          Return the apparent magnitude of a star given it's absolute magnitude and distance
static void main(java.lang.String[] args)
          test cases
static java.awt.Color matchSpectralType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StellarUtils

public StellarUtils()
Method Detail

getAbsoluteMagnitude

public static double getAbsoluteMagnitude(double apparentMagnitude,
                                          Length distance)
Return the absolute magnitude of a star given it's apparent magnitude and distance

Parameters:
apparentMagnitude - the apparent magnitude of the star
distance - the distance of the star
Returns:
the star's absolute magnitude

getAbsoluteMagnitude

public static double getAbsoluteMagnitude(double apparentMagnitude,
                                          double parallax)
Return the absolute magnitude of a star given it's apparent magnitude and parallax

Parameters:
apparentMagnitude - the apparent magnitude of the star
parallax - the parallax of the star in arc seconds
Returns:
the star's absolute magnitude

getApparentMagnitude

public static double getApparentMagnitude(double absoluteMagnitude,
                                          Length distance)
Return the apparent magnitude of a star given it's absolute magnitude and distance

Parameters:
absoluteMagnitude - the apparent magnitude of the star
distance - the distance of the star
Returns:
the star's absolute magnitude

main

public static void main(java.lang.String[] args)
test cases


matchSpectralType

public static java.awt.Color matchSpectralType(java.lang.String type)

Jeospace API

Copyright © 2006 - jeospace.org