Select to view content in your preferred language

Batch Iso Cluster Unsupervised Classification

3900
5
07-12-2013 08:13 AM
DerekNelson
Emerging Contributor
Having trouble getting the tool to work as a batch. When run individually with same parameters it seems to work fine. When run as a batch it informs me there is an error with number of classes being less than one when I have designated 16 classes for all. I know the script would be helpful but can't seem to figure out how to view it right now.

Secondly, why is it that the Iso Cluster Unsupervised Classification only works when you browse to/add all the individual raster band files and not the main raster that contains the different bands already?

The overall intent is to run numerous iso cluster classifications on about 20 different rasters for the purpose of vegetation mapping with 16 different classes, a minimum class size of 1300 at a sample interval of 20. Am I asking the tool to do much or something?
0 Kudos
5 Replies
DerekNelson
Emerging Contributor
Ok...If anybody was wondering about my question I have come to at least some solutions:

I think I assumed the fact the tool wouldnt execute is bc the script didnt see I was asking for 16 classes; I kept getting an error stating "Classes (0) is less than 1".
What I believe now is that for the parameters I was inputting there was a return of no acceptable classes meeting that criteria and therefore instead of the tool completing with this information it was just "failing". I have been able with extreme modification of my parameters (to the point that the information is useless) to get the tool to "successfully" run.
This error seemed to be the only problem the entire time as I was able use the main raster containing the bands to run the tool as well.
I guess my only other question is why the tool cannot work with certain parameters, ie:
The smallest area of interest (AOI) is a raster consisting of about 1500 cells but even on that raster the tool cannot find a cell cluster of at least 10-50 (I have tried all) cells when all of the cells are almost identical??? I know each cell has its own values but with a resolution (cell size) of about .36 meters it cannot locate 10 cells to group??? Even when they are all a slab of concrete for example on the raster......ahhhhhhhhhhh!
0 Kudos
paulagarcia_llamas
Emerging Contributor
Hi,
i am doing something similar to you...i am using using the isocluster unsupervised classification tool for ArgcGis 10.1 for landscape mapping. What i do is to make a PCA using 13 vegetation variables and 4 topographic variables and the i applied the isocluster unspervised classification tool to the map. The point is that with the same PCA and asking for the same amount of classes i get tow different maps. It is as if more weight is given to some components (the vegetation what i really want to) from the PCA sometimes and to different ones other time (the topographic)...Have you ever had this problem???

Thank you
0 Kudos
curtvprice
MVP Alum
The point is that with the same PCA and asking for the same amount of classes i get tow different maps.


IsoCluster algorithms usually start self-organizing your data by generating random "seeds" and iterating until those means converge. This means if you run the same tool twice with the same data you can get slightly different cluster results. I'm pretty sure these tools follow that procedure, but it isn't clear to me from the help.

It is as if more weight is given to some components (the vegetation what i really want to) from the PCA sometimes and to different ones other time (the topographic)..


Have you normalized your data?

Better results will be obtained if all input bands have the same data ranges. If the bands have vastly different data ranges, the data ranges can be transformed to the same range using Map Algebra to perform the equation. (Iso Cluster help doc)
0 Kudos
curtvprice
MVP Alum
[noparse]y[/noparse] only other question is why the tool cannot work with certain parameters, ie:
The smallest area of interest (AOI) is a raster consisting of about 1500 cells but even on that raster the tool cannot find a cell cluster of at least 10-50 (I have tried all) cells when all of the cells are almost identical??? I know each cell has its own values but with a resolution (cell size) of about .36 meters it cannot locate 10 cells to group??? Even when they are all a slab of concrete for example on the raster......ahhhhhhhhhhh!


This is the downside of using an unsupervised technique like IsoCluster - your data may not support the number of classes you are requesting. The results (and whether you get a result at all) are highly dependent on the parameters you provide and the distribution of your data. Normalizing data often helps (see my last post) -- if the parameters have extremely different distributions, parametric techniques like IsoCluster are unlikely to produce very helpful classifications.
0 Kudos
paulagarcia_llamas
Emerging Contributor
Hi, sorry for my delay reply...
i havent normalized my data because PCA proces already normalized the data, otherwise the band range used in the cluster continue being very different...yeah the ArcGis help use a normalized acuation, the point is that my vegetaion variables range between 1 and 100% cause it is percentage of vegetation while topographic variables for example solar radiation ranges between 1800 an 7 millions so....i have to get a new máximum and mimimum acording to ArcGis help
Z=(((x-oldmin)*(nexmax-newmin))/(oldmax-oldmin))+newmin
so my question is what new values getting in order to not distorting data...
0 Kudos