Changeset 7b6d348 for src/python/bin
- 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)
- File:
-
- 1 edited
-
src/python/bin/gnuboat-log-analyser (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
Note:
See TracChangeset
for help on using the changeset viewer.
