nansat icon indicating copy to clipboard operation
nansat copied to clipboard

Problems with export()

Open knutfrode opened this issue 7 years ago • 1 comments

When trying to export an OpenWind (Nansat) object to file, I get this error message:

>>> o.export(nc_file)
 File "/home/knutfd/software/openwind/openwind/sar_wind.py", line 537, in export
    super(SARWind, self).export(bands=bands, *args, **kwargs)
  File "/home/knutfd/software/nansat/nansat/nansat.py", line 432, in export
    exportVRT.delete_bands(rmBands)
  File "/home/knutfd/software/nansat/nansat/vrt.py", line 1345, in delete_bands
    self.delete_band(iBand)
  File "/home/knutfd/software/nansat/nansat/vrt.py", line 1332, in delete_band
    self.write_xml(node0.rawxml())
  File "/home/knutfd/software/nansat/nansat/vrt.py", line 836, in write_xml
    self.dataset = gdal.Open(self.fileName)
  File "build/bdist.linux-x86_64/egg/osgeo/gdal.py", line 3007, in Open
    
RuntimeError: panDstBands[16] = 18 ... out of range for dataset.

This occurs after o has been reprojected to new domain. Unprojected, it works fine. There are 19 bands in the dataset. Using branch 'develop'

knutfrode avatar Jun 13 '17 09:06 knutfrode

We need more information... Could you reproduce the problem in a test and send us the SAR file?

mortenwh avatar Jun 21 '17 14:06 mortenwh