I want to execute a kmeans cluster analysis but the script is not working.
This is the command line I’m using:
gpt S:\Temporal_Step3_kmeans_v3.xml -t E:\prova.dim E:\juliol_mosaic.dim
In order to run your graph in GPT you need to specify three arguments which are the following:
path to your graph
path to your output folder
Source product
In the command line, this should look like something like this:
gpt c:\tutorial\cloudMask.xml -t c:\tutorial\out\mask.dim C:\tutorial\in\A2008112121000.L2_LAC.hdf
first argument is your graph (xml)
-t denotes the output folder
finally your source product
This is just an example. It does not have to be .hdf extension.
You just provide the gpt with your source product (it might be tiff or any format that SNAP recognizes)
the KMeansClusteringAnalysis graph looks like the one in the figure below:
We just need to populate the parameters and run it on the command line.
I have never run cluster analysis on the terminal but the general idea on running a process on the command line is the following:
gpt KMeansClusterAnalysis -s <source of your product> <output product>