Hi Dan,
I get a "Segmentation fault" that closes the python console when I try to call to the "calcRelDiffNeighStats" function the second time. I'm using KEA format with a clumps file obtained with Orfeo Toolbox (originally in GTiff and converted to KEA Float32 using the gdal_translate command). If I call the function only once (only the First call paragraph), the script finishes the process as expected.
Any ideas how to tackle this?
Linux Mint 17.1 and last version of RSGISLib
Thanks in advance
rastergis.populateStats(image_clumps_file_KEA)
ratutils.populateImageStats(image_BS_dif_KEA, image_clumps_file_KEA,calcMean=True,calcStDev=True)
#First call
rsgislib.rastergis.findNeighbours(image_clumps_file_KEA, 1)
fieldInfo = rsgislib.rastergis.FieldAttStats(field='Band1Avg', meanField='Band1AvgMeanDiff')
rsgislib.rastergis.calcRelDiffNeighStats(image_clumps_file_KEA, fieldInfo,False)
#Second call
rsgislib.rastergis.findNeighbours(image_clumps_file_KEA, 1)
fieldInfo = rsgislib.rastergis.FieldAttStats(field='Band2Avg', meanField='Band2AvgMeanDiff')
rsgislib.rastergis.calcRelDiffNeighStats(image_clumps_file_KEA, fieldInfo,False)