Re: [GRASS-user] r.mapcalc appears to have changed behavior
Nice to know I can remove one possibility from my list of computing worries :-) regards, shane. On Sat, 2011-10-01 at 00:51 -0700, Michael Barton wrote: > Fortunately, upgrading GRASS should have no effect on the region settings for > maps. > > Michael > > C. Michael Barton > Director, Center for Social Dynamics & Complexity > Professor of Anthropology, School of Human Evolution & Social Change > Arizona State University > > voice:480-965-6262 (SHESC), 480-727-9746 (CSDC) > fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) > www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu > > > > > > > > > > > > On Sep 30, 2011, at 11:35 PM, Shane Litherland wrote: > > > Jim, et al., > > > > I am not an authority on GRASS, but it may not have been you that 'did > > that' - if you were using an earlier version and did a significant > > upgrade or a fresh install of a newer version of GRASS, some fine > > details like this might end up with new default values (?) I recall > > doing a few re-installs/upgrades and having to keep a close eye on user > > settings, mapset locations, etc when starting up a newer GRASS. > > > > May not be what happened in your case, but worth keeping in mind if/when > > you are moving around GRASS versions or using it on other computers etc, > > check up on some of the environment variables as you go. Help docs have > > info on how to find the gory detail :-) > > > > > > > > From: Jim Mochel > > Subject: Re: [GRASS-user] r.mapcalc appears to have changed behavior > > To: Michael Barton > > Cc: grass-user grass-user > > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > > > Thank you. ! > > > > I am not sure how I did that but I am sure it seemed like a good idea at > > the > > time :-) > > > > Jim > > > > > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Eliminat small patches
On Mon, Oct 3, 2011 at 6:57 PM, Luisa Peña wrote: > Greetings > I have a bitmask raster (ones and nulls) and I want to eliminate patches, > with values of 1, that have an area smaller than X ha (or X pixels). How can > I do this in GRASS (without having to convert to vector) Try http://grass.osgeo.org/gdp/html_grass64/r.reclass.area.html Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Eliminat small patches
Hi Luisa, I wrote a script that does exactly what you want to do. It uses r.clump, r.stats, and r.reclass in addition to some bash coding to make the input file for r.reclass from the r.stats output minus the clumps below your threshold size. Let me know if you want me to send you the code. I'd be interested if anyone has a better solution. Best, Nick On Tue, Oct 4, 2011 at 12:57 AM, Luisa Peña wrote: > Greetings > > I have a bitmask raster (ones and nulls) and I want to eliminate patches, > with values of 1, that have an area smaller than X ha (or X pixels). How can > I do this in GRASS (without having to convert to vector) > THanks > Luisa > > ___ > 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] Eliminat small patches
Greetings I have a bitmask raster (ones and nulls) and I want to eliminate patches, with values of 1, that have an area smaller than X ha (or X pixels). How can I do this in GRASS (without having to convert to vector) THanks Luisa ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Error in r.regression.line manual- R output
2011/10/3 António Rocha : > Greetings > In r.regression.line R is being defined as "residuals". Well, after doing > some calculation in other tools I realized that R corresponds to Pearson > Correlation (also known as R). Can anyone else confirm me this? Yes. I have changed the manual accordingly. Markus M ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] How to use r.mapcalc from command-line
On Fri, Sep 30, 2011 at 2:59 PM, katrin eggert wrote: > Greetings I would like to run an expression r.mapcalc (with ifs, Sums and /) > from command-line. How can i do that? For example like this (nonsense example): r.mapcalc "output = if(slopemap >= 0.0 && slopemap < 10.0, somemap / 5.0, null())" You may look into these GRASS scripts which contain more examples: d.rast.edit i.fusion.brovey i.image.mosaic i.in.spotvgt i.tasscap r3.mapcalculator r3.mapcalculator r.blend r.colors.stddev r.fillnulls r.in.wms r.mapcalculator r.mapcalculator r.mask r.reclass.area r.shaded.relief v.colors Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] What does agnps stand for in r.fill.dir
On Fri, Sep 30, 2011 at 8:25 PM, Rainer M Krug wrote: > On Fri, Sep 30, 2011 at 3:48 PM, ahmadou dicko > wrote: >> >> Hi Rainer, >> >> I think that AGNPS stand for AGricultural Non-Point Source Pollution >> Model, more info at : http://go.usa.gov/KFO > > I found that as well - but the naming does not make that much sense, as > agnps stands for a format of the flow direction? I assume, the coding of the > direction is in line with what the AGNPS model needs. You can find (oldish) material about AGNPS here: http://grass.osgeo.org/gdp/erosion/agnps/ Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] How to calculate SUM of an image
Hi Kim, What about using r.sum [1] or r.univar [2] ? Regards, Daniel [1] http://grass.osgeo.org/grass64/manuals/html64_user/r.sum.html [2] http://grass.osgeo.org/grass64/manuals/html64_user/r.univar.html On Mon, Oct 3, 2011 at 3:08 PM, Kim Besson wrote: > Greetings > I have a raster map and I wan to calculate its sum. How can I do this in > GRASS? > Thanks > Kim > > ___ > 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] How to calculate SUM of an image
Greetings I have a raster map and I wan to calculate its sum. How can I do this in GRASS? Thanks Kim ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] group/ subdirectory under mapset
Hi, I noticed that r.in.wms leaves multiple directories in group/ under the mapset directory, corresponding to each of the downloaded tiles. After the process finishes, I don't need information from the individual tiles because the raster with the full requested region has been produced. Can one simply manually remove all these directories without breaking other aspects of the mapset/location? Thanks, -- Seb ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Error in r.regression.line manual- R output
Greetings In r.regression.line R is being defined as "residuals". Well, after doing some calculation in other tools I realized that R corresponds to Pearson Correlation (also known as R). Can anyone else confirm me this? THanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6512 (20111003) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user