Closed aleksandervines closed 6 years ago
I didn't see that before
Hi,
Now that IW mode is referred to in the routine, I see this occurring with IW images:
Traceback (most recent call last): File "/home/nicholsh/git/s1-gridengine/Python/test_nansat.py", line 32, in <module> s1i.add_denoised_band('HH') File "/home/nicholsh/git/sentinel1denoised/S1_TOPS_GRD_NoiseCorrection.py", line 1050, in add_denoised_band parameters={'name': 'sigma0_%s' % polarization + '_raw'},nomem=True) File "/home/nicholsh/Nansat/lib/python2.7/site-packages/nansat-1.1.3-py2.7-linux-x86_64.egg/nansat/nansat.py", line 295, in add_band self.add_bands([array], [parameters], nomem) File "/home/nicholsh/Nansat/lib/python2.7/site-packages/nansat-1.1.3-py2.7-linux-x86_64.egg/nansat/nansat.py", line 330, in add_bands vrt = VRT.from_array(array, nomem=nomem) File "/home/nicholsh/Nansat/lib/python2.7/site-packages/nansat-1.1.3-py2.7-linux-x86_64.egg/nansat/vrt.py", line 202, in from_array vrt._init_from_array(array, **kwargs) File "/home/nicholsh/Nansat/lib/python2.7/site-packages/nansat-1.1.3-py2.7-linux-x86_64.egg/nansat/vrt.py", line 376, in _init_from_array gdal.VSIFWriteL(array.tostring(), len(array.tostring()), 1, ofile) File "/usr/local/lib/python2.7/dist-packages/osgeo/gdal.py", line 1434, in VSIFWriteL return _gdal.VSIFWriteL(*args) RuntimeError: too large buffer (>2GB)
I tried adding the nomem=True
to the relevant lines in S1_Tops_GRD_NoiseCorrection.py but that didn't have any effect.
Cheers,
Nick
I wanted to find out the memory requirements for the sentinel1ice program. But when I opened a huge image - S1A_EW_GRDH_1SDH_20180321T072153_20180321T072403_021110_024456_25A0.zip which is 2.2GB, I got a RuntimeError in S1_EW_GRD_NoiseCorrection
I will look a bit further into this. But has anyone seen this before?