Beispiel #1
0
        public IHttpActionResult GetHighResReflectivity(RadarQuery query)
        {
            var data = _level2RadarReader.RunLevel2Radar("F://NEXRAD Files//" + query.RadarFile);

            if (query.Scan.HasValue == true)
            {
                return(Ok(data[query.ElevationNumber - 1].RecordMessages[query.Scan.Value].Record.ReflectivityData));
            }
            else
            {
                var scans = new List <MomentData>();

                for (var i = 0; i < data[query.ElevationNumber - 1].RecordMessages.Count; i++)
                {
                    scans.Add(data[query.ElevationNumber - 1].RecordMessages[i].Record.ReflectivityData);
                }

                return(Ok(scans));
            }
        }
Beispiel #2
0
        public void Run()
        {
            string fileName = "F:\\TempDev\\nexrad-radar-data-reader\\nexrad-radar-data-reader\\KAKQ20110504_000344_V03";

            _level2RadarReader.RunLevel2Radar(fileName);
        }