Packages

object TwilightCalc extends TwilightCalc

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TwilightCalc
  2. TwilightCalc
  3. SunCalc
  4. ImprovedSkyCalcMethods
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class DoubleRef extends AnyRef
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val DELTS: Array[Double]
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  5. val XFORM_DOAPPAR: Int
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  6. val XFORM_FROMSTD: Int
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  7. val XFORM_JUSTPRE: Int
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  8. val XFORM_TOSTDEP: Int
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  9. def aberrate(epoch: Double, vec: Array[Double], from_std: Int): Unit

    corrects celestial unit vector for aberration due to earth's motion.

    corrects celestial unit vector for aberration due to earth's motion. Uses accurate sun position ... replace with crude one for more speed if needed.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  10. def accumoon(jd0: Double, geolat: Double, lst: Double, elevsea: Double, geora: DoubleRef, geodec: DoubleRef, geodist: DoubleRef, topora: DoubleRef, topodec: DoubleRef, topodist: DoubleRef): Unit
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  11. def accusun(jd0: Double, lst: Double, geolat: Double, ra: DoubleRef, dec: DoubleRef, dist: DoubleRef, topora: DoubleRef, topodec: DoubleRef, x: DoubleRef, y: DoubleRef, z: DoubleRef): Unit

    implemenataion of Jean Meeus' more accurate solar ephemeris.

    implemenataion of Jean Meeus' more accurate solar ephemeris. For ultimate use in helio correction! From Astronomical Formulae for Calculators, pp. 79 ff. This gives sun's position wrt *mean* equinox of date, not apparent*. Accuracy is << 1 arcmin. Positions given are geocentric ... parallax due to observer's position on earth is ignored. This is up to 8 arcsec; routine is usually a little better than that. // -- topocentric correction *is* included now. -- // Light travel time is apparently taken into account for the ra and dec, but I don't know if aberration is and I don't know if distance is simlarly antedated.

    x, y, and z are heliocentric equatorial coordinates of the EARTH, referred to mean equator and equinox of date.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  12. def adj_time(x0: Double): Double

    adjusts a time (decimal hours) to be between -12 and 12, generally used for hour angles.

    adjusts a time (decimal hours) to be between -12 and 12, generally used for hour angles.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  13. def altit(dec: Double, ha: Double, lat: Double): Double

    returns altitude(degr) for dec, ha, lat (decimal degr, hr, degr)

    returns altitude(degr) for dec, ha, lat (decimal degr, hr, degr)

    dec

    target declination in degrees

    ha

    the hour angle in hours

    lat

    the observer's latitude in degrees

    returns

    the altitude in degrees

    Attributes
    protected
    Definition Classes
    SunCalc
  14. def altit(dec0: Double, ha0: Double, lat0: Double, az: DoubleRef, parang: DoubleRef): Double

    returns altitude(degr) for dec, ha, lat (decimal degr, hr, degr); also computes and returns azimuth through pointer argument, and as an extra added bonus returns parallactic angle (decimal degr) through another pointer argument.

    returns altitude(degr) for dec, ha, lat (decimal degr, hr, degr); also computes and returns azimuth through pointer argument, and as an extra added bonus returns parallactic angle (decimal degr) through another pointer argument.

    returns

    the parallactic angle in degrees

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def atan_circ(x: Double, y: Double): Double

    returns radian angle 0 to 2pi for coords x, y -- get that quadrant right !!

    returns radian angle 0 to 2pi for coords x, y -- get that quadrant right !!

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  17. def circulo(x: Double): Double

    assuming x is an angle in degrees, returns modulo 360 degrees.

    assuming x is an angle in degrees, returns modulo 360 degrees.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  19. def cooxform(rin: Double, din: Double, std_epoch: Double, date_epoch: Double, rout: DoubleRef, dout: DoubleRef, just_precess: Int, from_std: Int): Unit
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  20. def eclrot(jd: Double, x: DoubleRef, y: DoubleRef, z: DoubleRef): Unit
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  21. def eclrot(jd: Double, y: DoubleRef, z: DoubleRef): Unit

    rotates ecliptic rectangular coords x, y, z to equatorial (all assumed of date.)

    rotates ecliptic rectangular coords x, y, z to equatorial (all assumed of date.)

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def etcorr(jd: Double): Double

    Given a julian date in 1900-2100, returns the correction delta t which is: TDT - UT (after 1983 and before 1998) ET - UT (before 1983) an extrapolated guess (after 1998).

    Given a julian date in 1900-2100, returns the correction delta t which is: TDT - UT (after 1983 and before 1998) ET - UT (before 1983) an extrapolated guess (after 1998).

    For dates in the past (<= 1998 and after 1900) the value is linearly interpolated on 5-year intervals; for dates after the present, an extrapolation is used, because the true value of delta t cannot be predicted precisely. Note that TDT is essentially the modern version of ephemeris time with a slightly cleaner definition.

    Where the algorithm shifts there is an approximately 0.1 second discontinuity. Also, the 5-year linear interpolation scheme can lead to errors as large as 0.5 seconds in some cases, though usually rather smaller.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  25. def forBoundedInterval(twilightType: TwilightType, interval: Bounded[Instant], place: Place): IntervalSeq[Instant]
    Definition Classes
    TwilightCalc
  26. def forDate(twilightType: TwilightType, date: LocalDate, place: Place): Option[Bounded[Instant]]

    Compute start and end of night for a particular date and place.

    Compute start and end of night for a particular date and place.

    The night will be bounded by twilight as defined by lucuma.core.enum.TwilightType. It will be the night that starts on the given date and ends on the following day.

    twilightType

    twilight bound type to use

    date

    date when the night starts

    place

    place on Earth

    returns

    A tuple of java.time.Instants containing sunset and sunrise respectively, or None if there's no sunset or sunrise for the provided parameters.

    Definition Classes
    TwilightCalc
  27. def geocent(geolong0: Double, geolat0: Double, height: Double, x_geo: DoubleRef, y_geo: DoubleRef, z_geo: DoubleRef): Unit

    computes the geocentric coordinates from the geodetic (standard map-type) longitude, latitude, and height.

    computes the geocentric coordinates from the geodetic (standard map-type) longitude, latitude, and height. These are assumed to be in decimal hours, decimal degrees, and meters respectively. Notation generally follows 1992 Astr Almanac, p. K11

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  28. def getAirmass(alt: Double): Double

    Return the airmass for the given altitude in degrees.

    Return the airmass for the given altitude in degrees.

    Definition Classes
    ImprovedSkyCalcMethods
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  30. def getLst(lstHours: Double, instant: Instant): ZonedDateTime

    Return the LST time as a ZonedDateTime object for the given instant.

    Return the LST time as a ZonedDateTime object for the given instant.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  31. def ha_alt(dec0: Double, lat0: Double, alt: Double): Double

    Returns hour angle at which object at dec is at altitude alt.

    Returns hour angle at which object at dec is at altitude alt. If object is never at this altitude, signals with special return values 1000 (always higher) and -1000 (always lower).

    Attributes
    protected
    Definition Classes
    SunCalc
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  33. def instant_to_jd(instant: Instant): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def jd_sun_alt(alt: Double, jdguess0: JulianDate, lat: Double, longit: Double): Option[JulianDate]

    returns jd at which sun is at a given altitude, given jdguess as a starting point.

    returns jd at which sun is at a given altitude, given jdguess as a starting point. Uses low-precision sun, which is plenty good enough.

    Attributes
    protected
    Definition Classes
    SunCalc
  36. def lpsun(jd: JulianDate): (Double, Double)

    Low precision sun.

    Low precision sun.

    returns

    Coordinates in (Hours, Degress)

    Attributes
    protected
    Definition Classes
    SunCalc
  37. def lst(jd: JulianDate, longit: Double): Double
    Attributes
    protected
    Definition Classes
    SunCalc
  38. def lst(jd: Double, longit: Double): Double

    returns the local MEAN sidereal time (dec hrs) at julian date jd at west longitude long (decimal hours).

    returns the local MEAN sidereal time (dec hrs) at julian date jd at west longitude long (decimal hours). Follows definitions in 1992 Astronomical Almanac, pp. B7 and L2. Expression for GMST at 0h ut referenced to Aoki et al, A&A 105, p.359, 1982. On workstations, accuracy (numerical only!) is about a millisecond in the 1990s.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  39. def lunskybright(alpha0: Double, rho: Double, kzen: Double, altmoon: Double, alt: Double, moondist0: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  40. def min_max_alt(lat0: Double, dec0: Double): Array[Double]

    Computes minimum and maximum altitude for a given dec and latitude.

    Computes minimum and maximum altitude for a given dec and latitude.

    returns

    2 element double array where element 0 is the min altitude and element 1 is the max altitude

    Attributes
    protected
    Definition Classes
    SunCalc
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  44. def nutation_params(date_epoch: Double, del_psi: DoubleRef, del_ep: DoubleRef): Unit

    computes the nutation parameters delta psi and delta epsilon at julian epoch (in years) using approximate formulae given by Jean Meeus, Astronomical Formulae for Calculators, Willman-Bell, 1985, pp.

    computes the nutation parameters delta psi and delta epsilon at julian epoch (in years) using approximate formulae given by Jean Meeus, Astronomical Formulae for Calculators, Willman-Bell, 1985, pp. 69-70. Accuracy appears to be a few hundredths of an arcsec or better and numerics have been checked against his example. Nutation parameters are returned in radians.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  45. def sb(mpa: Double, mdist: Double, mZD: Double, ZD: Double, sZD: Double, moondist0: Double): Double

    mpa

    moon phase angle (alpha in lunskybright)

    mdist

    Moon target distance (rho in lunskybright)

    mZD

    moon zenith distance

    ZD

    object zenith distance

    sZD

    Sun zenith distance

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  46. def secant_z(alt: Double): Double

    Computes the secant of z, assuming the object is not too low to the horizon; returns 100.

    Computes the secant of z, assuming the object is not too low to the horizon; returns 100. if the object is low but above the horizon, -100. if the object is just below the horizon.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  47. def setup_time_place(instant: Instant, longit: Double, jdut: DoubleRef, sid: DoubleRef, curepoch: DoubleRef): Short

    This takes the date (which contains the time), and the site parameters, and prints out a banner giving the various dates and times; also computes and returns various jd's, the sidereal time, and the epoch.

    This takes the date (which contains the time), and the site parameters, and prints out a banner giving the various dates and times; also computes and returns various jd's, the sidereal time, and the epoch. Returns negative number to signal error if date is out of range of validity of algorithms, or if you specify a bad time during daylight-time change; returns zero if successful.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  48. def subtend(ra01: Double, dec01: Double, ra02: Double, dec02: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. def true_airmass(secz: Double): Double

    returns the true airmass for a given secant z.

    returns the true airmass for a given secant z. The expression used is based on a tabulation of the mean KPNO atmosphere given by C. M. Snell & A. M. Heiser, 1968, PASP, 80, 336. They tabulated the airmass at 5 degr intervals from z = 60 to 85 degrees; I fit the data with a fourth order poly for (secz - airmass) as a function of (secz - 1) using the IRAF curfit routine, then adjusted the zeroth order term to force (secz - airmass) to zero at z = 0. The poly fit is very close to the tabulated points (largest difference is 3.2e-4) and appears smooth. This 85-degree point is at secz = 11.47, so for secz > 12 I just return secz - 1.5 ... about the largest offset properly determined.

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. def xair(z: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  56. def xyz_cel(x0: Double, y0: Double, z0: Double, ra: DoubleRef, dec: DoubleRef): Unit

    A much cleaner rewrite of the original skycalc code for this, which was transcribed from a PL/I routine ....

    A much cleaner rewrite of the original skycalc code for this, which was transcribed from a PL/I routine ....

    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  57. def ztwilight(alt: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from TwilightCalc

Inherited from SunCalc

Inherited from ImprovedSkyCalcMethods

Inherited from AnyRef

Inherited from Any

Ungrouped