public async void GenerateHeatmapGrid(IEnumerable <ICoordinatePoint> points)
        {
            var grid = await Task.Run(() => HeatmapGenerator.GenerateValues((int)heatmapSize.x, (int)heatmapSize.y, mPlanetRadius, kmRange, startValue, endValue, points));

            var colorBytes = await Task.Run(() => HeatmapGenerator.CreateColorMap(grid, colors));

            var overlay = HeatmapGenerator.CreateHeatmapTexture((int)heatmapSize.x, (int)heatmapSize.y, colorBytes);

            hmRenderer.material.SetTexture("_OverlayTex", overlay);
        }
        private async Task <Texture2D> GenerateStaticHeatmap()
        {
            var parser = new DefaultParser(dataFile.text, keyFormat, latitudeKey, longitudeKey, magnitudeKey);
            var points = await parser.HandleDefaultParsing();

            var grid = await Task.Run(() => HeatmapGenerator.GenerateValues((int)heatmapSize.x, (int)heatmapSize.y, mPlanetRadius, kmRange, startValue, endValue, points));

            var colorBytes = await Task.Run(() => HeatmapGenerator.CreateColorMap(grid, colors));

            var overlay = HeatmapGenerator.CreateHeatmapTexture((int)heatmapSize.x, (int)heatmapSize.y, colorBytes);

            return(overlay);
        }