Index: src/python/bin/gnuboat-log-analyser
===================================================================
--- src/python/bin/gnuboat-log-analyser	(revision cb89b0eba182879207d0dbcae83a824191ee67c8)
+++ src/python/bin/gnuboat-log-analyser	(revision 7b6d3488166efbec4afb2f6707dbd8c84b1224cd)
@@ -137,7 +137,7 @@
 
 	# create ogr file info
-	source_xml_file = "{}/{}".format(output_directory, "ogr_input_file.vrt")
+	source_xml_file = os.path.join(output_directory, "ogr_input_file.vrt")
 	try:
-		output_file = open(source_xml_file, 'w')
+		output_file = open(source_xml_file, 'wb')
 	except IOError as error:
 		print('ERROR: Could not open the output file for the ogr data source description: {}'.format(error))
@@ -179,7 +179,8 @@
 	
 	# create the grid data
+	gdal_file = os.path.join(output_directory, "water_depth.tif")
 	grid_options = gdal.GridOptions(format = "GTiff", width = target_x_res, height = target_y_res, outputSRS = "WGS84", noData = target_nodata_value, layers = source_data_layer)
 	#gdal.Grid("/tmp/test.tif", source_xml_file)
-	gdal.Grid("/tmp/test.tif", source_xml_file, options = grid_options)
+	gdal.Grid(gdal_file, source_xml_file, options = grid_options)
 
 	# creating pipeline
