org.stellarium
Class SkyBright

java.lang.Object
  extended by org.stellarium.SkyBright

public class SkyBright
extends java.lang.Object


Field Summary
private  double airMassMoon
          Air mass for the Moon
(package private)  double airMassSun
          Air mass for the Sun
(package private)  double bDaylight
          Daylight sky brightness
(package private)  double bMoon
          Moon brightness
(package private)  double bMoonTerm1
           
(package private)  double bNight
          Dark night brightness
(package private)  double bNightTerm
           
(package private)  double bTotal
          Total brightness
(package private)  double bTwilight
          Twilight brightness
(package private)  double bTwilightTerm
           
(package private)  double C3
          Term for moon brightness computation
(package private)  double C4
          Term for sky brightness computation
(package private)  double K
          Useful coef...
(package private)  double magMoon
          Moon magnitude
(package private)  double RA
          Something related with date
(package private)  double SN
          Snellen Ratio (20/20=1.0, good 20/10=2.0)
 
Constructor Summary
SkyBright()
           
 
Method Summary
 double getLuminance(double cosDistMoon, double cosDistSun, double cosDistZenith)
          Compute the luminance at the given position
 void setDate(int year, int month, double moonPhase)
           
 void setLoc(double latitude, double altitude, double temperature, double relativeHumidity)
           
 void setSunMoon(double cosDistMoonZenith, double cosDistSunZenith)
          Set the moon and sun zenith angular distance (cosin given) and precompute what can be
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

airMassMoon

private double airMassMoon
Air mass for the Moon


airMassSun

double airMassSun
Air mass for the Sun


bTotal

double bTotal
Total brightness


bNight

double bNight
Dark night brightness


bTwilight

double bTwilight
Twilight brightness


bDaylight

double bDaylight
Daylight sky brightness


bMoon

double bMoon
Moon brightness


magMoon

double magMoon
Moon magnitude


RA

double RA
Something related with date


K

double K
Useful coef...


C3

double C3
Term for moon brightness computation


C4

double C4
Term for sky brightness computation


SN

double SN
Snellen Ratio (20/20=1.0, good 20/10=2.0)


bNightTerm

double bNightTerm

bMoonTerm1

double bMoonTerm1

bTwilightTerm

double bTwilightTerm
Constructor Detail

SkyBright

public SkyBright()
Method Detail

setDate

public void setDate(int year,
                    int month,
                    double moonPhase)
Parameters:
year -
month - 1=Jan, 12=Dec
moonPhase - in radian 0=Full Moon, PI/2=First Quadrant/Last Quadran, PI=No Moon

setLoc

public void setLoc(double latitude,
                   double altitude,
                   double temperature,
                   double relativeHumidity)

setSunMoon

public void setSunMoon(double cosDistMoonZenith,
                       double cosDistSunZenith)
Set the moon and sun zenith angular distance (cosin given) and precompute what can be

Parameters:
cosDistMoonZenith -
cosDistSunZenith -

getLuminance

public double getLuminance(double cosDistMoon,
                           double cosDistSun,
                           double cosDistZenith)
Compute the luminance at the given position

Parameters:
cosDistMoon - Math.cos(angular distance between moon and the position)
cosDistSun - Math.cos(angular distance between sun and the position)
cosDistZenith - Math.cos(angular distance between zenith and the position)
Returns: