[GRASS-user] Signature not invertible
Hello list, I'm with a problem running the i.gensig. I do: i.gensig trainingmap=areasras...@portugal_9 group=gr...@portugal_9subgroup=subgrupo signaturefile=assinaturascomareas where areasrastes has 4 classes. The *r.stats -c input=areasras...@portugal_9* is 1 92 2 234 3 2434 4 3016 * 287024 And I get the following: Finding training classes... 4 classes found Calculating class means... Calculating class covariance matrices... Signature 1 not invertible Signature 2 not invertible Signature 3 not invertible Signature 4 not invertible i.gensig complete. My question is: do I need any package to deal with matrix calculus? If so, each? If not, what is wrong here? Thanks in advance JD ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Stratified sampling in GRASS
Hello to all, I'm trying to do a stratified sampling in GRASS, and I found nothing in GRASS about it. Does anyone knows how to do it? Thank in advance JD ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Problems with i.pr (II)
Hello to all, I've just install the i.pr, but there is several problems with it, mainly with the i.pr.training module. 1) There is no manual, so I can only guess I each input parameter really is. I've send a mail asking for information about i.pr, but aparently is scarce. 2) When I try to use the interactive mode, it does nothing, it just stand still. More details about it, I do: i.pr.training map=lis...@portugal_9,lis...@portugal_9,lis...@portugal_9, lis...@portugal_9 vis_map=lis...@portugal_9 training=out4 rows=3 cols=3 class=1 And I get: PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 The process never ends and I have to abort it. 3) when I use the vector mode (I did try it with vectors containing just points, just areas and just boundaries, and the problem is the same), I do: i.pr.training map=lis...@portugal_9,lis...@portugal_9, lis...@portugal_9,lis...@portugal_9 vis_map=lis...@portugal_9 training=out5 vector=pipr2 rows=3 cols=3 class=1 And I get: Option class ignored Labels will be directlly read from site file PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 Dev note: Adapted sites library used for vector points. (module should be updated to GRASS 6 vector library) ERROR: Raster map out5_lis...@portugal_9.1 is not in the current mapset (Portugal_9) But, there is no out5_lis...@portugal_9.1, I dont know here this came from. The output is a file (in this case out5) with this: Data type: GrassTraining Number of layers: 4 Label: out5 Data: Layer_1Layer_2Layer_3Layer_4ClassEastNorth RowsColsEW-resNS-res And nothing else. So, what happening here? Can anyone tell me? Thank you JD ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Difficulties with i.pr
Hello to all, Does anyone knows any working example of the i.pr add-on? I have install it, and I'm having some problems with the i.pr.training. I do: i.pr.training map=lis...@p9,lis...@p9,lis...@p9,lis...@p9 training=iprteste9 vector=area1 rows=3 cols=3 class=0 And the iprteste9 only has this: Data type: GrassTraining Number of layers: 4 Label: /home/joel/iprteste9 Data: Layer_1Layer_2Layer_3Layer_4ClassEastNorth RowsColsEW-resNS-res And nothing else. I suppose that the file would have something more. Can anyone help me? ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Difficulties with i.pr
Hello Daniel, Thank you for the thread. I'm working with polygons. Did you classify any image with the i.pr? JD On Mon, Apr 12, 2010 at 4:36 PM, Daniel McInerney daniel.mciner...@ucd.iewrote: Hi Joel, I did some work with i.pr a while back, but was unsuccessful in getting it to fully work. Is your vector file a point or polygon? I tested i.pr.training with points. You might get some ideas from this thread: http://www.mail-archive.com/grass-user@lists.osgeo.org/msg00153.html Regards, Daniel. joel dinis wrote: Hello to all, Does anyone knows any working example of the i.pr add-on? I have install it, and I'm having some problems with the i.pr.training. I do: i.pr.training map=lis...@p9,lis...@p9,lis...@p9,lis...@p9training=iprteste9 vector=area1 rows=3 cols=3 class=0 And the iprteste9 only has this: Data type: GrassTraining Number of layers: 4 Label: /home/joel/iprteste9 Data: Layer_1Layer_2Layer_3Layer_4ClassEastNorth RowsColsEW-resNS-res And nothing else. I suppose that the file would have something more. Can anyone help me? ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] A problem with i.gensigset.
Hello to all, I trying to classify remote sensing imagery, and I thought to try the i.smap module, but when I run the i.gensigset, I always get the same problem: ... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 Clustering class 12 (184 pixels)... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 i.gensigset complete. And afterwards the signature file doesn't have any spectral information. I really don't understand whats happening and the cause to this outcome. Can anyone solve this enigma? Ps: I don't know if this information is important: I collected about 450 samples distributed by 10 classes. I may also add that the average number of pixels per sample is around 50. And thanks list, for the previous tips: they were very useful. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] A problem with i.gensigset.
Hello Nikos, In fact, I put maxsig=30. i.gensigset trainingmap=amostras group=grupo subgroup=subgrupo signaturefile=assinaturas maxsig=30 JD On Tue, Apr 6, 2010 at 4:04 PM, Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote: joel dinis wrote: I trying to classify remote sensing imagery, and I thought to try the i.smap module, but when I run the i.gensigset, Please, could you copy-paste the exact command you used? Does the maxsig= (e.g. maxsig=20) make any difference? Nikos I always get the same problem: ... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 Clustering class 12 (184 pixels)... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 i.gensigset complete. And afterwards the signature file doesn't have any spectral information. I really don't understand whats happening and the cause to this outcome. Can anyone solve this enigma? Ps: I don't know if this information is important: I collected about 450 samples distributed by 10 classes. I may also add that the average number of pixels per sample is around 50. And thanks list, for the previous tips: they were very useful. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] A problem with i.gensigset.
1 (15 remain) Removed a singular subsignature number 1 (14 remain) Removed a singular subsignature number 1 (13 remain) Removed a singular subsignature number 1 (12 remain) Removed a singular subsignature number 1 (11 remain) Removed a singular subsignature number 1 (10 remain) Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 i.gensigset complete. Yes, this happen to all the classes... Maybe is something prior to the i.gensigset run. I'll investigate. On Tue, Apr 6, 2010 at 4:33 PM, Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote: (sorry for re-sorting the message, just to keep it easy to follow-up) joel dinis: I trying to classify remote sensing imagery, and I thought to try the i.smap module, but when I run the i.gensigset, Nikos Alexandris: Please, could you copy-paste the exact command you used? Does the maxsig= (e.g. maxsig=20) make any difference? joel dinis: In fact, I put maxsig=30. i.gensigset trainingmap=amostras group=grupo subgroup=subgrupo signaturefile=assinaturas maxsig=30 What about smaller maxsig's, like: - maxsig=25 - maxsig=20 - maxsig=15 ? Nikos I always get the same problem: ... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 Clustering class 12 (184 pixels)... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 i.gensigset complete. And afterwards the signature file doesn't have any spectral information. I really don't understand whats happening and the cause to this outcome. Can anyone solve this enigma? Ps: I don't know if this information is important: I collected about 450 samples distributed by 10 classes. I may also add that the average number of pixels per sample is around 50. And thanks list, for the previous tips: they were very useful. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] A problem with i.gensigset.
Hello Micha, I put r.info -r amostras as sugested, get the following: min=112 max=512 (This values are index to my classes.) JD On Tue, Apr 6, 2010 at 4:39 PM, Micha Silver mi...@arava.co.il wrote: Nikos Alexandris wrote: (sorry for re-sorting the message, just to keep it easy to follow-up) joel dinis: I trying to classify remote sensing imagery, and I thought to try the i.smap module, but when I run the i.gensigset, Nikos Alexandris: Please, could you copy-paste the exact command you used? Does the maxsig= (e.g. maxsig=20) make any difference? joel dinis: In fact, I put maxsig=30. i.gensigset trainingmap=amostras group=grupo subgroup=subgrupo signaturefile=assinaturas maxsig=30 What about smaller maxsig's, like: - maxsig=25 - maxsig=20 - maxsig=15 ? Nikos Also it might help to know what is contained in the trainingmap. i.e: r.info -r amostras I always get the same problem: ... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 Clustering class 12 (184 pixels)... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 i.gensigset complete. And afterwards the signature file doesn't have any spectral information. I really don't understand whats happening and the cause to this outcome. Can anyone solve this enigma? Ps: I don't know if this information is important: I collected about 450 samples distributed by 10 classes. I may also add that the average number of pixels per sample is around 50. And thanks list, for the previous tips: they were very useful. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user This mail was received via Mail-SeCure System. -- Micha Silver Arava Development Co. +972-52-3665918 http://www.surfaces.co.il ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] A problem with i.gensigset.
NO NO NO! I have 30 CORINE land cover classes to classify. The number 512, for example, means 5.1.2, is a nominal number, IS NOT an classe id. But may be right: may be the way the classes are represented in the system cause that problem. I'll test that.. Thanks JD On Tue, Apr 6, 2010 at 6:44 PM, Micha Silver mi...@arava.co.il wrote: joel dinis wrote: Hello Micha, I put r.info http://r.info/ -r amostras as sugested, get the following: min=112 max=512 So, if I understand correctly, you are trying to classify into 400 separate classes?! I'm a beginner with image classification, and others with more experience will know better, but I'll bet that's your problem. There must be many separate training areas (with different cat values) with a very similar spectral signature, and the algorithm is not able to differentiate between them. (This values are index to my classes.) JD On Tue, Apr 6, 2010 at 4:39 PM, Micha Silver mi...@arava.co.il mailto: mi...@arava.co.il wrote: Nikos Alexandris wrote: (sorry for re-sorting the message, just to keep it easy to follow-up) joel dinis: I trying to classify remote sensing imagery, and I thought to try the i.smap module, but when I run the i.gensigset, Nikos Alexandris: Please, could you copy-paste the exact command you used? Does the maxsig= (e.g. maxsig=20) make any difference? joel dinis: In fact, I put maxsig=30. i.gensigset trainingmap=amostras group=grupo subgroup=subgrupo signaturefile=assinaturas maxsig=30 What about smaller maxsig's, like: - maxsig=25 - maxsig=20 - maxsig=15 ? Nikos Also it might help to know what is contained in the trainingmap. i.e: r.info http://r.info -r amostras I always get the same problem: ... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 Clustering class 12 (184 pixels)... Removed a singular subsignature number 1 (9 remain) Removed a singular subsignature number 1 (8 remain) Removed a singular subsignature number 1 (7 remain) Removed a singular subsignature number 1 (6 remain) Removed a singular subsignature number 1 (5 remain) Removed a singular subsignature number 1 (4 remain) Removed a singular subsignature number 1 (3 remain) Removed a singular subsignature number 1 (2 remain) Removed a singular subsignature number 1 (1 remain) Unreliable clustering. Try a smaller initial number of clusters Removed a singular subsignature number 1 (-1 remain) Unreliable clustering. Try a smaller initial number of clusters Number of subclasses is 0 i.gensigset complete. And afterwards the signature file doesn't have any spectral information. I really don't understand whats happening and the cause to this outcome. Can anyone solve this enigma? Ps: I don't know if this information is important: I collected about 450 samples distributed by 10 classes. I may also add that the average number of pixels per sample is around 50. And thanks list, for the previous tips: they were very useful
[GRASS-user] Raster stack with more than 3 rasters
Hello to all, I'm currently working multi-temporal LISS imagery and I intent to make a raster stack with 10 raster files to test a method. With GRASS, I know that is possible to make a stack with 3 rasters, but it's possible to do it with more than 3? Thanks JD ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] contour line algorithm
Hello to all, does anyone knows what kind of algorithm is implemented in the r.contour? It is the marching squares? JD ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] contour line algorithm
Thanks Hamish. On Mon, Mar 29, 2010 at 9:17 PM, Hamish hamis...@yahoo.com wrote: Joel: does anyone knows what kind of algorithm is implemented in the r.contour? It is the marching squares? see https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.contour/README Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Can't install i.pr
Hello fellow GRASS users, I'm new with GRASS. At this point, I need to install the i.pr add-on, but I've met some dificulties: I download the package via svn, and that went just fine. But when I do make MODULE_TOPDIR=/usr/lib/grass64 I get this a huge stream of errors and warnings, e.g. ... main.c:294: warning: assignment makes pointer from integer without a cast main.c:295: error: dereferencing pointer to incomplete type main.c:296: error: dereferencing pointer to incomplete type main.c:297: error: dereferencing pointer to incomplete type main.c:298: error: dereferencing pointer to incomplete type main.c:299: error: dereferencing pointer to incomplete type main.c:300: error: dereferencing pointer to incomplete type main.c:302: warning: assignment makes pointer from integer without a cast main.c:303: error: dereferencing pointer to incomplete type main.c:304: error: dereferencing pointer to incomplete type main.c:305: error: dereferencing pointer to incomplete type main.c:306: error: dereferencing pointer to incomplete type main.c:307: error: dereferencing pointer to incomplete type main.c:310: warning: implicit declaration of function ‘G_define_flag’ ... Can anyone tell me why this is so, and how can I solve this? Thanks. (PS: I'm working in Ubuntu 9.10 with GRASS 6.4.) ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Image segmentation á-la eCognition
Hello fellow GRASS users, Can anyone tell if is possible to do image segmentation, like eCognition or SPRING, in GRASS. I did some reasearch, but I couldn't find anything about it. Thank you ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user