Problems with imagefilter

33 views
Skip to first unread message

lisar...@gmail.com

unread,
Nov 16, 2017, 2:22:47 AM11/16/17
to RSGISLib Support

Hi, I'm having an issue with imagefilter on ubuntu.  All other scripts are running fine, and it is not a problem of disk space.  The error I receive is:

(osgeo) lrebelo@Lisa-VirtualBox:~/DATAShare/TANA/SCANSAR_MOSAIC$ python FilterAndMask.py 
*******FILTERING FILE: C004_N00E036_HH_G0
Found 1 filter:
 1) Lee: size = 5 nLooks = 5 
C004_N00E036_HH_G0
Executing filter 1 of 1
Traceback (most recent call last):
  File "FilterAndMask.py", line 20, in <module>
    imagefilter.applyLeeFilter(HHImg, FilterHHimage, 5, 5, 'KEA', rsgislib.TYPE_32FLOAT)
  File "/home/lrebelo/miniconda3/envs/osgeo/lib/python3.5/site-packages/rsgislib/imagefilter/__init__.py", line 813, in applyLeeFilter
    applyfilters(inputimage, outputImageBase, filters, gdalformat, outExt, datatype)
_imagefilter.error: Output image could not be created. Check filepath.

It was running fine (same directory, same script) until today.  I've updated to the latest version of rsgislib but no luck.  

Thanks for any help,
Lisa

Daniel Clewley

unread,
Nov 16, 2017, 2:31:02 AM11/16/17
to lisar...@gmail.com, RSGISLib Support
Hi,

Are you using the latest version of RSGISLib from conda-forge (3.3.16)?

Can you send what ‘outputImageBase’ is defined as?

Also can you confirm you have permission to write to where the output image is being saved to.

Thank,

Dan

On 16 Nov 2017, at 07:22, lisar...@gmail.com wrote:


Hi, I'm having an issue with imagefilter on ubuntu.  All other scripts are running fine, and it is not a problem of disk space.  The error I receive is:

(osgeo) lrebelo@Lisa-VirtualBox:~/DATAShare/TANA/SCANSAR_MOSAIC$ python FilterAndMask.py 
*******FILTERING FILE: C004_N00E036_HH_G0
Found 1 filter:
 1) Lee: size = 5 nLooks = 5 
C004_N00E036_HH_G0
Executing filter 1 of 1
Traceback (most recent call last):
  File "FilterAndMask.py", line 20, in <module>
    imagefilter.applyLeeFilter(HHImg, FilterHHimage, 5, 5, 'KEA', rsgislib.TYPE_32FLOAT)
  File "/home/lrebelo/miniconda3/envs/osgeo/lib/python3.5/site-packages/rsgislib/imagefilter/__init__.py", line 813, in applyLeeFilter
    applyfilters(inputimage,outputImageBase, filters, gdalformat, outExt, datatype)
_imagefilter.error: Output image could not be created. Check filepath.

It was running fine (same directory, same script) until today.  I've updated to the latest version of rsgislib but no luck.  

Thanks for any help,
Lisa

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.

lisar...@gmail.com

unread,
Nov 16, 2017, 3:47:45 AM11/16/17
to RSGISLib Support
Hi Dan,

Yes, I have permission - and no problems writing from other rsgislib scripts to same directory.
rsgislib is version 3.2.1363 updated just now through conda.

The 'outputImageBase' is a processed ALOS ScanSAR tile, example attached (converted to geotif for ease of attaching) along with script.

Thanks,
Lisa
FilterAndMask.py
Example.rar

Daniel Clewley

unread,
Nov 16, 2017, 1:36:52 PM11/16/17
to lisar...@gmail.com, RSGISLib Support
Hi Lisa,

So the basename for the output image will be:

C004_N00E036_HH_G0_filt

I’m not sure why there would be a problem with this. Can you try creating a file in that directory using:

touch C004_N00E036_HH_G0_filt

If you can create this file try changing the line:

FilterHHimage = HHImg + ‘_filt'

to:

FilterHHimage = HHImg + ‘_filt.kea’

As in add the correct extension for a KEA format file and see if this works.

Thanks,

Dan

--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
<FilterAndMask.py><Example.rar>

Lisa Rebelo

unread,
Nov 16, 2017, 7:57:22 PM11/16/17
to Daniel Clewley, RSGISLib Support
Hi Dan,

Yes, I can create the files.  Also when I run the script the file is created, it just does not get written to.  I'm getting the same error on both of my machines (desktop and laptop, both running Ubuntu through Virtual box, and for different file types (e.g. writing to ENVI/Kea/tif)

Thanks,
Lisa

Dan

To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-support+unsubscribe@googlegroups.com.
To post to this group, send email to rsgislib-support@googlegroups.com.
<FilterAndMask.py><Example.rar>


Reply all
Reply to author
Forward
0 new messages