Commit 3212c2e5 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files
parent c6c4cd5f
Pipeline #13003 failed
...@@ -57,13 +57,13 @@ class TestStackedInputs(EOTSVTestCase): ...@@ -57,13 +57,13 @@ class TestStackedInputs(EOTSVTestCase):
assert isinstance(drv, gdal.Driver) assert isinstance(drv, gdal.Driver)
datasets = [] datasets = []
for i, r in enumerate([r1, r2]): for i, r in enumerate([r1, r2]):
p = '{}tmpstack{}.bsq'.format(vsiDir, i + 1) p = '{}stack{}.bsq'.format(vsiDir, i + 1)
nb = len(r) nb = len(r)
ds = drv.Create(p, ns, nl, nb, eType=gdal.GDT_Float32) ds = drv.Create(p, ns, nl, nb, eType=gdal.GDT_Float32)
assert isinstance(ds, gdal.Dataset) assert isinstance(ds, gdal.Dataset)
ds.SetProjection(crs.ExportToWkt()) ds.SetProjection(crs.ExportToWkt())
ds.SetGeoTransform([0.0, 1.0, 0.0, 1.0, 0.0, -1.0])
dateString = ','.join([str(d) for d in r]) dateString = ','.join([str(d) for d in r])
dateString = '{{{}}}'.format(dateString) dateString = '{{{}}}'.format(dateString)
ds.SetMetadataItem('wavelength', dateString, 'ENVI') ds.SetMetadataItem('wavelength', dateString, 'ENVI')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment