Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gdal2Gores/gdal2gores.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def Usage():
Usage()
if gores is None:
gores = 8
print "Warning: Number of gores defaulting to 8, send -nd VALUE to set a different value."
print("Warning: Number of gores defaulting to 8, send -nd VALUE to set a different value.")

#Try to open input image
in_dataset = gdal.Open( infile, GA_ReadOnly )
Expand All @@ -105,7 +105,7 @@ def Usage():
in_dataset.RasterYSize, in_dataset.RasterCount, type)

#gore parameters
goreWidth = in_dataset.RasterXSize/(gores);
goreWidth = in_dataset.RasterXSize // gores;

#loop over bands -- probably can handle all bands at once...
for band in range (1, in_dataset.RasterCount + 1):
Expand Down