We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20a173f commit 1ee8a0dCopy full SHA for 1ee8a0d
1 file changed
dataqs/hadghcnd/tests.py
@@ -76,11 +76,11 @@ def test_extract_band(self):
76
self.processor.base_url, layer.rstrip('.tgz'))
77
ncds_gdal_name = 'NETCDF:{}:tmin'.format(
78
os.path.join(self.processor.tmp_dir, imgfile))
79
- bandout = os.path.join(self.processor.tmp_dir,
80
- '{}test'.format(self.processor.prefix))
81
- self.processor.extract_band(ncds_gdal_name, 1, bandout)
82
- self.assertTrue(os.path.exists(os.path.join(bandout)))
83
- img = gdal.Open(bandout)
+ bandout = '{}_test.tif'.format(self.processor.prefix)
+ outpath = self.processor.extract_band(ncds_gdal_name, 1, bandout,
+ projection='WGS84')
+ self.assertTrue(os.path.exists(outpath))
+ img = gdal.Open(outpath)
84
try:
85
self.assertEquals(1, img.RasterCount)
86
finally:
0 commit comments