Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Nikos Alexandris
Martin Lacayo wrote: > I am having trouble getting started with GRASS Python scripts. Note the following useful GRASS-Wiki pages: - - > I am using GRASS 6.4 on Debian. Could some

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Nikos Alexandris
Martin Lacayo wrote: > I think I have now figured out most of the answers to my question, but > I am still wondering about some file management. If I may chime in, I repeat what Richard already explained actually, just for fun :-) The GRASS GIS data base is the root (of all good geospatial ana

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Glynn Clements
Martin Lacayo wrote: > I think I have now figured out most of the answers to my question, but > I am still wondering about some file management. > > Is the following command a "normal" way to make a location with a > projection from a georeferenced file: > > g.proj -c georef=/home/user/raster.

Re: [GRASS-user] SOLVED: How to implement 2D lookup table?

2013-05-23 Thread Glynn Clements
Rainer M. Krug wrote: > >> Hmm - sounds interesting, but also for other purposes. But as the result > >> will be a raster map, I don't think this approach is usable here (unless > >> I can feed the numbers back into a raster map, i.e. the inverse of > >> r.stats -c) > > > > r.cross + r.reclass ?

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Martin Lacayo
I think I have now figured out most of the answers to my question, but I am still wondering about some file management. Is the following command a "normal" way to make a location with a projection from a georeferenced file: g.proj -c georef=/home/user/raster.tif location=example Is there a comm

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Rich Shepard
On Thu, 23 May 2013, Martin Lacayo wrote: Thank you. Yes, that does help. I hadn't realized that in this case database was essentially synonymous with user directory. Several things have now clicked into place. Martin, Yeah, it ain't intuitive. :-) Took me a while to get my head around t

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Martin Lacayo
Rich, Thank you. Yes, that does help. I hadn't realized that in this case database was essentially synonymous with user directory. Several things have now clicked into place. -Martin On Thu, May 23, 2013 at 2:06 PM, Rich Shepard wrote: > On Thu, 23 May 2013, Martin Lacayo wrote: > >> Have I und

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Rich Shepard
On Thu, 23 May 2013, Martin Lacayo wrote: Have I understood correctly that a database can only contain one projection, which is set when it is first created, and that besides importing and exporting data all processing has to happen with data that is in the database? Martin, You seem to con

[GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Martin Lacayo
Hello, I am having trouble getting started with GRASS Python scripts. I am using GRASS 6.4 on Debian. Could some provide a basic example of a Python script that imports a raster and exports the same raster? In particular I am interested in seeing the entire setup of a database (locally on disk), l

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Rainer M. Krug
Vincent Bain writes: >> Not at all this sounds interesting. But could you give some more details >> on how I could do this? and what do you mean by "calling LUT[i,j]"? > > Rainer, > I fear my solution is hopeless. > I first reminded in r.mapcalc algebra, one could point at a particular > (row,col

Re: [GRASS-user] how to create parameters for run r.ros for fire simulation

2013-05-23 Thread Margherita Di Leo
Hi, I'll try to answer up to my wits' end (inlines) On Thu, May 23, 2013 at 2:17 PM, sittichai choosumrong < sittichai@gmail.com> wrote: > > My question is, How can I create and get the values of the parameters as > shows below; > > *model=*name Name of an existing raster map layer in the us

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Vincent Bain
> Not at all this sounds interesting. But could you give some more details > on how I could do this? and what do you mean by "calling LUT[i,j]"? Rainer, I fear my solution is hopeless. I first reminded in r.mapcalc algebra, one could point at a particular (row,col) position within a raster. But I

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Rainer M. Krug
Vincent Bain writes: >> >>> , >> >>> | r.mapcalc expression = "result = lookupTable[col=ageClass, >> row=dc]" >> >>> ` > > Not a mapcalc expert, but what about turning your lookup table in a true > raster, I mean create a 3colsx7rows LUT raster with values from your > table, then use thi

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Vincent Bain
> >>> , > >>> | r.mapcalc expression = "result = lookupTable[col=ageClass, > row=dc]" > >>> ` Not a mapcalc expert, but what about turning your lookup table in a true raster, I mean create a 3colsx7rows LUT raster with values from your table, then use this "map" in an r.mapcalc expression

[GRASS-user] SOLVED: How to implement 2D lookup table?

2013-05-23 Thread Rainer M. Krug
Moritz Lennert writes: > On 23/05/13 11:04, Rainer M. Krug wrote: >> >> Moritz Lennert writes: >> >>> On 23/05/13 10:26, Rainer M Krug wrote: Hi I have two raster layers , | dc: CELL, 1, ..., 7, NULL | ageClass: CELL, 1,2,3,NULL ` A

[GRASS-user] how to create parameters for run r.ros for fire simulation

2013-05-23 Thread sittichai choosumrong
Dear community, I am using GRASS program to study fire simulations to learn how all this working. I downloaded the fire simulation package from the GRASS server[1]. If I understand is correctly, I have to run r.ros first before use r.spread. With r.ros function, some parameters is needed [2],[3].

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Moritz Lennert
On 23/05/13 11:04, Rainer M. Krug wrote: Moritz Lennert writes: On 23/05/13 10:26, Rainer M Krug wrote: Hi I have two raster layers , | dc: CELL, 1, ..., 7, NULL | ageClass: CELL, 1,2,3,NULL ` And I want to create a third one, depending on the value in a lookup table. dc correspo

Re: [GRASS-user] GRASS6 Addons in UbuntuGIS

2013-05-23 Thread Rashad M
FYI https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+packages?field.name_filter=grass-addons&field.status_filter=published&field.series_filter=raring On Wed, May 22, 2013 at 1:22 PM, Rainer M. Krug wrote: > Rashad M writes: > > > sure. I will add it in a day or two (max). Btw so

Re: [GRASS-user] How to perform Layer reduction for hyperspectral image cube?

2013-05-23 Thread Nikos Alexandris
Asefa Areda wrote: > Dear All: Hello Asefa, > I want to reduce layers from NOVASOL hyperspectral image cube which has 140 > bands/layers. > 1) How can I perform layer reduction I have no experience with Hyperspectral imagery. But PCA should be a valuable option to consider. Have a look at the

[GRASS-user] How to perform Layer reduction for hyperspectral image cube?

2013-05-23 Thread Asefa Areda
Dear All: I want to reduce layers from NOVASOL hyperspectral image cube which has 140 bands/layers. 1) How can I perform layer reduction 2) If I want use* i.atcorr *should I process only a single layer at a time? 3) if 2) is not how do I process all the layers in one go (the txt? 4) Is there any

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Rainer M. Krug
Moritz Lennert writes: > On 23/05/13 10:26, Rainer M Krug wrote: >> >> Hi >> >> I have two raster layers >> >> , >> | dc: CELL, 1, ..., 7, NULL >> | ageClass: CELL, 1,2,3,NULL >> ` >> >> And I want to create a third one, depending on the value in a lookup >> table. dc corresponds to the

Re: [GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Moritz Lennert
On 23/05/13 10:26, Rainer M Krug wrote: Hi I have two raster layers , | dc: CELL, 1, ..., 7, NULL | ageClass: CELL, 1,2,3,NULL ` And I want to create a third one, depending on the value in a lookup table. dc corresponds to the row, ageClass to the column, The lookup table looks as f

[GRASS-user] How to implement 2D lookup table?

2013-05-23 Thread Rainer M Krug
Hi I have two raster layers , | dc: CELL, 1, ..., 7, NULL | ageClass: CELL, 1,2,3,NULL ` And I want to create a third one, depending on the value in a lookup table. dc corresponds to the row, ageClass to the column, The lookup table looks as follow: , | seedling young adult |