From f69d9f579d0abf049500ffec63e239f5dbeeaaf5 Mon Sep 17 00:00:00 2001
From: Clemens Berteld <clemens@berteld.com>
Date: Mon, 27 Sep 2021 15:36:56 +0200
Subject: [PATCH] Minor changes

---
 dataacquisition/sandbox_raster.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/dataacquisition/sandbox_raster.py b/dataacquisition/sandbox_raster.py
index 2f8f636..688d40e 100644
--- a/dataacquisition/sandbox_raster.py
+++ b/dataacquisition/sandbox_raster.py
@@ -34,13 +34,10 @@ with psycopg2.connect(database=db_name, user=user, password=pw, host=param_postg
         geotransform = (xmin, xres, 0, ymax, 0, -yres)
 
         output_raster = gdal.GetDriverByName('GTiff').Create('D:/Uni/Master/01_SS2021/Automatisierte_Geodatenprozessierung/temperaturverteilung/dataacquisition/output/myraster.tif', ncols, nrows, 1, gdal.GDT_Float32)  # Open the file
-        output_raster.SetGeoTransform(geotransform)  # Specify its coordinates
-        srs = osr.SpatialReference()  # Establish its coordinate encoding
-        srs.ImportFromEPSG(4326)  # This one specifies WGS84 lat long.
-        # Anyone know how to specify the
-        # IAU2000:49900 Mars encoding?
-        output_raster.SetProjection(srs.ExportToWkt())  # Exports the coordinate system
-        # to the file
-        output_raster.GetRasterBand(1).WriteArray(np_pixel_array)  # Writes my array to the raster
+        output_raster.SetGeoTransform(geotransform)
+        srs = osr.SpatialReference()
+        srs.ImportFromEPSG(4326)
+        output_raster.SetProjection(srs.ExportToWkt())
+        output_raster.GetRasterBand(1).WriteArray(np_pixel_array)
 
         output_raster.FlushCache()
\ No newline at end of file
-- 
GitLab