79098723

Date: 2024-10-17 15:12:44
Score: 5
Natty:
Report link

I want to export my processed raster layer which are np arrays as tif with following steps, after creating the out.tif raster with the driver I could not load the created tif file back into python. I tried to change the 'gdal.GDT_Int32' into other types but it didn't work. I also tried using instead of 'inds.GetDriver' 'GetDriverByName('GTiff') but that also didn't make any changes, messages as below:

In [13]: driver.Create('out.tif', cols, rows, 1, gdal.GDT_Int32) Out[13]: <osgeo.gdal.Dataset; proxy of <Swig Object of type 'GDALDatasetShadow * ' at 0x000000000F437360> >

In [18]: outds=gdal.Open('out.tif')

RuntimeError Traceback (most recent call last) in () ----> 1 outds = gdal.Open('out.tif')

RuntimeError: `out.tif' not recognised as a supported file format. or... so. im lindsey on darrals phome. metro phone wheres that iphone? jmeg?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Filler text (0.5): 000000000
  • Low reputation (1):
Posted by: pooh bear nucles.