Skip to content

Commit

Permalink
minor updates for older scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thareUSGS committed Jan 17, 2025
1 parent c9efab0 commit 8e48260
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 85 deletions.
3 changes: 2 additions & 1 deletion NewStandardParallel_Equi/NewStandardPar_Equi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from osgeo.gdalconst import *

gdal.TermProgress = gdal.TermProgress_nocb
gdal.DontUseExceptions()
except ImportError:
import gdal
from gdalconst import *
Expand Down Expand Up @@ -180,7 +181,7 @@ def ParseType(type):
# Report results
print("To standard_parallel_1: %f" % (newClat))
print("Original X: %f\tShifted X: %f" % (minx, newminx))
print("Original Y cellsize (will be unchanged): %f" % (cellsizey))
print("Original Y cellsize (will be unchanged): %f" % (-cellsizey))
print("Original X cellsize: %f\tNew X cellsize: %f" % (cellsizex, newcellsizex))

# Get the raster type - Byte, Uint16, Float32, ...
Expand Down
Loading

0 comments on commit 8e48260

Please sign in to comment.