Packages

t

lucuma.core.math.skycalc

ImprovedSkyCalcMethods

trait ImprovedSkyCalcMethods extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ImprovedSkyCalcMethods
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class DoubleRef extends AnyRef
    Attributes
    protected

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
  5. val XFORM_DOAPPAR: Int
    Attributes
    protected
  6. val XFORM_FROMSTD: Int
    Attributes
    protected
  7. val XFORM_JUSTPRE: Int
    Attributes
    protected
  8. val XFORM_TOSTDEP: Int
    Attributes
    protected
  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
  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
  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
  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
  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
  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
  16. 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
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  18. 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
  19. def eclrot(jd: Double, x: DoubleRef, y: DoubleRef, z: DoubleRef): Unit
    Attributes
    protected
  20. 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
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. 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
  24. 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
  25. def getAirmass(alt: Double): Double

    Return the airmass for the given altitude in degrees.

  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  27. 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
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  29. def instant_to_jd(instant: Instant): Double
    Attributes
    protected
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. 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
  32. def lunskybright(alpha0: Double, rho: Double, kzen: Double, altmoon: Double, alt: Double, moondist0: Double): Double
    Attributes
    protected
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  36. 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
  37. 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
  38. 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
  39. 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
  40. def subtend(ra01: Double, dec01: Double, ra02: Double, dec02: Double): Double
    Attributes
    protected
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. 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
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. def xair(z: Double): Double
    Attributes
    protected
  48. 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
  49. def ztwilight(alt: Double): Double
    Attributes
    protected

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped