Packages

c

lucuma.core.math.skycalc

ImprovedSkyCalc

case class ImprovedSkyCalc(place: Place) extends ImprovedSkyCalcMethods with Product with Serializable

Improved version of SkyCalc that supports lunar calculations. All instance stuff is here; the trait is exclusively static stuff.

Source
ImprovedSkyCalc.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ImprovedSkyCalc
  2. Serializable
  3. Product
  4. Equals
  5. ImprovedSkyCalcMethods
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ImprovedSkyCalc(place: Place)

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(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
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. 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
  16. def calculate(coords: Coordinates, instant: Instant, calculateMoon: Boolean): SkyCalcResults
  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. val degreesLatitude: Double
  21. def eclrot(jd: Double, x: DoubleRef, y: DoubleRef, z: DoubleRef): Unit
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  22. 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
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  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 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
  26. 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
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  28. def getLst(instant: Instant): ZonedDateTime

    Return the LST time for the given instant at the given site.

  29. 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
  30. def getSiderealTime(instant: Instant): Double

    Return the sidereal time for the given instant at the given site, in decimal hours.

  31. val hoursLongitude: Double
  32. def instant_to_jd(instant: Instant): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. 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
  35. def lunskybright(alpha0: Double, rho: Double, kzen: Double, altmoon: Double, alt: Double, moondist0: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  39. 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
  40. val place: Place
  41. def productElementNames: Iterator[String]
    Definition Classes
    Product
  42. 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
  43. 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
  44. 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
  45. val siteAltitude: Double
  46. def subtend(ra01: Double, dec01: Double, ra02: Double, dec02: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. 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
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. def xair(z: Double): Double
    Attributes
    protected
    Definition Classes
    ImprovedSkyCalcMethods
  53. 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
  54. 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 Serializable

Inherited from Product

Inherited from Equals

Inherited from ImprovedSkyCalcMethods

Inherited from AnyRef

Inherited from Any

Ungrouped