Skip to content

Commit 02e13d5

Browse files
committed
Name pixel_offset variable for clarity
1 parent 1601680 commit 02e13d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/tops2vrt.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ def getLinePixelBbox(geobbox, latFile, lonFile):
220220

221221
print('write vrt file for geometry dataset')
222222
layers = ['lat', 'lon', 'hgt']
223+
224+
# Define pixel_offset variable (bytes)
225+
pixel_offset = 8
223226
for ind, val in enumerate(layers):
224227
with open(os.path.join(inps.geomdir, val + '.vrt'), 'w') as fid:
225228
fid.write(vrttmpl.format(xsize=xsize, ysize=ysize,
@@ -230,4 +233,4 @@ def getLinePixelBbox(geobbox, latFile, lonFile):
230233
os.path.join(inps.indir,
231234
'geom_reference',
232235
val + '.rdr.full.vrt')),
233-
linewidth=width * 8))
236+
linewidth=width * pixel_offset))

0 commit comments

Comments
 (0)