ocssw
V2022
|
cyan_alaska_tiles.py
Go to the documentation of this file.
19 description='This script generates 12 GeoTIFF tiles in a 4x3 grid from an input full\nAlaskan GeoTIFF\n' +
26 args = parser.parse_args()
28 nXtiles = 4
29 nYtiles = 3
31 sourcefile = args.ifile
34 srcDS = gdal.Open(sourcefile)
36 T0 = Affine.from_gdal(*srcDS.GetGeoTransform())
50 ytile = y + 1
51 uly = y * ystride + yoff
54 xtile = x +1
55 ulx = x * xstride + xoff
56 srcwin = [ulx,uly,xstride,ystride]
61 gdal.Translate(tileFile,srcDS, options=transop)