Exemple #1
0
        public VisibilityDetails Planet_Visibility(SkyContext c, int p)
        {
            var    ctx             = c.Copy(c.JulianDayMidnight);
            var    eq              = ctx.Get(Planet_Equatorial, p);
            var    eqSun           = ctx.Get(Sun_Equatorial);
            double minBodyAltitude = ctx.MinBodyAltitudeForVisibilityCalculations ?? 5;
            double minSunAltitude  = ctx.MaxSunAltitudeForVisibilityCalculations ?? 0;

            return(Visibility.Details(eq, eqSun, ctx.GeoLocation, ctx.SiderealTime, minBodyAltitude, minSunAltitude));
        }
Exemple #2
0
        /// <summary>
        /// Gets visibility info for the star
        /// </summary>
        private VisibilityDetails VisibilityDetails(SkyContext c, ushort hrNumber)
        {
            var    ctx             = c.Copy(c.JulianDayMidnight);
            var    eq              = ctx.Get(Equatorial, hrNumber);
            var    eqSun           = ctx.Get(sky.SunEquatorial);
            double minBodyAltitude = ctx.MinBodyAltitudeForVisibilityCalculations ?? 5;
            double minSunAltitude  = ctx.MaxSunAltitudeForVisibilityCalculations ?? 0;

            return(Visibility.Details(eq, eqSun, ctx.GeoLocation, ctx.SiderealTime, minBodyAltitude, minSunAltitude));
        }
        public VisibilityDetails Pluto_Visibility(SkyContext c)
        {
            double jd       = c.JulianDayMidnight;
            double theta0   = Date.ApparentSiderealTime(jd, c.NutationElements.deltaPsi, c.Epsilon);
            double parallax = c.Get(Pluto_Parallax);

            var ctx   = new SkyContext(jd, c.GeoLocation);
            var eq    = ctx.Get(Pluto_Equatorial);
            var eqSun = ctx.Get(Sun_Equatorial);

            return(Visibility.Details(eq, eqSun, c.GeoLocation, theta0, 5));
        }