Changeset 7b6d348
- Timestamp:
- Sep 15, 2018, 3:09:30 PM (8 years ago)
- Branches:
- debian/bullseye, master
- Children:
- b76295a
- Parents:
- cb89b0e
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (09/15/18 15:04:54)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (09/15/18 15:09:30)
- Location:
- src/python
- Files:
-
- 2 edited
-
bin/gnuboat-log-analyser (modified) (2 diffs)
-
gnuboat/datahandler/loghandler.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/python/bin/gnuboat-log-analyser
rcb89b0e r7b6d348 137 137 138 138 # create ogr file info 139 source_xml_file = "{}/{}".format(output_directory, "ogr_input_file.vrt")139 source_xml_file = os.path.join(output_directory, "ogr_input_file.vrt") 140 140 try: 141 output_file = open(source_xml_file, 'w ')141 output_file = open(source_xml_file, 'wb') 142 142 except IOError as error: 143 143 print('ERROR: Could not open the output file for the ogr data source description: {}'.format(error)) … … 179 179 180 180 # create the grid data 181 gdal_file = os.path.join(output_directory, "water_depth.tif") 181 182 grid_options = gdal.GridOptions(format = "GTiff", width = target_x_res, height = target_y_res, outputSRS = "WGS84", noData = target_nodata_value, layers = source_data_layer) 182 183 #gdal.Grid("/tmp/test.tif", source_xml_file) 183 gdal.Grid( "/tmp/test.tif", source_xml_file, options = grid_options)184 gdal.Grid(gdal_file, source_xml_file, options = grid_options) 184 185 185 186 # creating pipeline -
src/python/gnuboat/datahandler/loghandler.py
rcb89b0e r7b6d348 17 17 ''' 18 18 19 import os 19 20 import re 20 21 import pynmea2 … … 56 57 self._nmea_file_date = nmea_file_date_should 57 58 nmea_log_file = 'nmea0183-{}.log'.format(self._nmea_file_date) 58 self._nmea_file = open( '{}/{}'.format(self._log_directory, nmea_log_file), 'a', 0)59 self._nmea_file = open(os.path.join(self._log_directory, nmea_log_file), 'a', 0) 59 60 except IOError as error: 60 61 print('Could not open the logfile: {}'.format(error))
Note:
See TracChangeset
for help on using the changeset viewer.
