Example #1
0
        public void GetMax(Atmosphere atm)
        {
            SeaLevel.GetMax(atm.SeaLevel);
            MidLevel.GetMax(atm.MidLevel);
            TopLevel.GetMax(atm.TopLevel);
            JetLevel.GetMax(atm.JetLevel);

            AirMass.MAX(atm.AirMass);
            Fronts.MAX(atm.Fronts);
        }
Example #2
0
        public void Add(Atmosphere atm)
        {
            SeaLevel.Add(atm.SeaLevel);
            MidLevel.Add(atm.MidLevel);
            TopLevel.Add(atm.TopLevel);
            JetLevel.Add(atm.JetLevel);

            AirMass.ADD(atm.AirMass);
            Fronts.ADD(atm.Fronts);
        }
        public SimDateTimeRangeStats(EarthModel earth)
        {
            MeanValues = new Atmosphere(earth, false, float.Epsilon);
            MinValues  = new Atmosphere(earth, false, float.MaxValue);
            MaxValues  = new Atmosphere(earth, false, float.MinValue);

            MeanValuesSFC = new SurfaceLevel(earth, false, float.Epsilon);
            MinValuesSFC  = new SurfaceLevel(earth, false, float.MaxValue);
            MaxValuesSFC  = new SurfaceLevel(earth, false, float.MinValue);
        }
        public SimDateTimeRange(EarthModel earth, SimDateTime dtStart, SimDateTime dtEnd)
        {
            this.Start = dtStart;
            this.End   = dtEnd;
            this.Earth = earth;

            AtmList = new List <Atmosphere>();
            SfcList = new List <SurfaceLevel>();

            for (SimDateTime sdt = dtStart; sdt.CompareTo(dtEnd) <= 0; sdt = sdt.AddHours(earth.SnapshotLength))
            {
                Atmosphere   atm = null;
                SurfaceLevel sfc = null;

                try
                {
                    earth.SetUTC(sdt);
                    atm = new Atmosphere(earth, true);
                    sfc = new SurfaceLevel(earth, true);
                }
                catch
                {
                    atm = null;
                    sfc = null;
                }

                if (atm != null)
                {
                    AtmList.Add(atm);
                }
                if (sfc != null)
                {
                    SfcList.Add(sfc);
                }
            }
        }
 public void ProcessAtmSnapshot(Atmosphere atm)
 {
     MeanValues.Add(atm);
     MinValues.GetMin(atm);
     MaxValues.GetMax(atm);
 }