Пример #1
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));
        }
Пример #2
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));
        }
Пример #3
0
        protected VisibilityDetails Visibility(SkyContext c, T body)
        {
            double         jd              = c.JulianDayMidnight;
            SkyContext     ctx             = c.Copy(c.JulianDayMidnight);
            CrdsEquatorial eq              = ctx.Get(EquatorialT, body);
            CrdsEquatorial eqSun           = ctx.Get(SunEquatorial);
            double         minBodyAltitude = ctx.MinBodyAltitudeForVisibilityCalculations ?? 5;
            double         minSunAltitude  = ctx.MaxSunAltitudeForVisibilityCalculations ?? -5;

            return(Algorithms.Visibility.Details(eq, eqSun, ctx.GeoLocation, ctx.SiderealTime, minBodyAltitude, minSunAltitude));
        }
Пример #4
0
        private VisibilityDetails Visibility(SkyContext c, DeepSky body)
        {
            var ctx   = c.Copy(c.JulianDayMidnight);
            var eq    = ctx.Get(Equatorial, body);
            var eqSun = ctx.Get(sky.SunEquatorial);

            double minBodyAltitude = ctx.MinBodyAltitudeForVisibilityCalculations ?? 5;
            double minSunAltitude  = ctx.MaxSunAltitudeForVisibilityCalculations ?? -10;

            return(Algorithms.Visibility.Details(eq, eqSun, ctx.GeoLocation, ctx.SiderealTime, minBodyAltitude, minSunAltitude));
        }