Skip to Content.

mget-help - RE: [mget-help] Help: Cayula-Cornillon error

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: "Jason Roberts" <>
To: <>, <>
Subject: RE: [mget-help] Help: Cayula-Cornillon error
Date: Mon, 11 Nov 2013 11:13:18 -0500
Hi Leandro,

I tried to track that down several months ago with someone but was
unsuccessful. The person I was working with changed several things at once
and the problem went away.

When I last looked at it, there were two possibilities:

1. The rasters that the tool has found to process contain floating point
numbers instead of integers. In this case, the tool is supposed to fail with
a more readable error saying that you need to specify a Map Algebra
Expression (under Input Raster Options) that will convert the rasters to
integers. Perhaps the tool is proceeding without reporting that message,
then failing in this odd way. If you have floating point rasters, try
providing the Map Algebra Expression and see what happens.

2. There was a bug in MGET that is preventing it from working with integer
rasters. If you have integer rasters, the Map Algebra Expression is not
necessary, and the tool is supposed to just work. If you have integer
rasters, could you please somehow send me a copy of one (my email accepts 20
MB maximum)? Maybe I can finally reproduce this and fix it.

Thanks,
Jason

P.S. Sorry I was not able to get back to you several weeks ago. I had a
number of deadlines that culminated in a workshop last week. I'm back now,
but will get busy again within a week or two, until mid December.

-----Original Message-----
From: 

 
[mailto:]
 
Sent: Monday, November 11, 2013 9:04 AM
To: 

Subject: [mget-help] Help: Cayula-Cornillon error

Dear all,

I am trying to run
"CayulaCornillonEdgeDetectionFindArcGISRastersAndDetectEdges" but got the
following error:

TypeError: int() argument must be a string or a number, not 'NoneType'
<type 'exceptions.TypeError'>: int() argument must be a string or a number,
not 'NoneType'


Any workaround?
Thanks!

Leandro

Ps.: Here is the complete log from the run:

Executing: CayulaCornillonEdgeDetectionFindArcGISRastersAndDetectEdges
G:\MODIS_AQUA_L2\SST\binados_geotif\melhores
G:\MODIS_AQUA_L2\SST\binados_geotif\t1 400 * false # false # 3 32 16
0,65 0,25 0,76 0,9 0,92 1 # false # os.path.join(outputWorkspace,
inputRaster[len(workspaceToSearch)+1:]) # # # # # os.path false Start Time:
Mon Nov 11 11:58:04 2013 Running script
CayulaCornillonEdgeDetectionFindArcGISRastersAndDetectEdges...
Finding ArcGIS rasters and inserting rows into table "work":  
workspace="G:\MODIS_AQUA_L2\SST\binados_geotif\melhores",
wildcard="*", searchTree=False, rasterType="None"
Finished inserting rows: 0:00:00 elapsed, 20 rows inserted,
0:00:00.009000 per row.
Updating field "outputFrontsRaster" in table "work"...
Update complete: 0:00:00 elapsed, 20 rows updated, 0 deleted, 0 unchanged,
0:00:00 per row.
Querying the table "work" to build lists of inputs and outputs...
Query complete: 0:00:00 elapsed, 20 rows retrieved, 0:00:00.000500 per row.
Processing 20 inputs...
Finding fronts in
G:\MODIS_AQUA_L2\SST\binados_geotif\melhores\A2012024d.tif using
parameters: minPopMeanDiff=400.0, medianFilter=3, histogramWindow=32,
histogramStride=16, minPropCellsWithData=0.65000000000000002,
minPopProp=0.25, minTheta=0.76000000000000001,
minSinglePopCohesion=0.90000000000000002,
minGlobalPopCohesion=0.92000000000000004, threads=1, threads=1,
fillHoles=None, thin=False, minSize=None.
Output rasters:  
fronts=G:\MODIS_AQUA_L2\SST\binados_geotif\t1\A2012024d.tif,
filteredImage=None, candidateCounts=None, frontCounts=None,
windowStatusCodes=None, windowStatusValues=None
TypeError: int() argument must be a string or a number, not 'NoneType'
<type 'exceptions.TypeError'>: int() argument must be a string or a number,
not 'NoneType'
Failed to execute
(CayulaCornillonEdgeDetectionFindArcGISRastersAndDetectEdges).
Failed at Mon Nov 11 11:58:05 2013 (Elapsed Time: 1,00 seconds)


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Archives powered by MHonArc.
Top of Page