[GRASS-user] ESRI - Grass Equivalents

2011-02-21 Thread jaydub

Hi I'm trying to replicate some of the functionality in ESRI via GRASS.

I need to do a regularized spline with the following parameters:
weight = 0.1
points = 12
cell size = 100

So far I'm trying to use the v.sruf.rst to accomplish this. I'm not sure how
to match these values up with GRASS at all. Is the tension param similar to
weight? Grass uses segments and ESRI uses cells? How do I match up GRASS's
vars with esri's?
max/min number of points in a segment
min distance between points 
max distance between points on isoline
conversion factor


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ESRI-Grass-Equivalents-tp6049458p6049458.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] r.mapcalculator / r.mapcalc not producing raster

2011-02-18 Thread jaydub

Hi all, I'm trying to combine two raster using the r.mapcalc/r.mapcalculator
but am getting no where. I'm using python. 

# I did this previously... so dem and rain exist as rasters
grass.run_command(r.in.gdal,input=location/dem.tif,output=dem)
grass.run_command(r.in.gdal,input=location/rain.tif,output=rain)

# Then I try this...
grass.run_command(r.mapcalculator,amap=dem,bmap=rain,formula=A *
B,outfile=test_combo)

The output from that gives me...
r.mapcalc test_combo = ( dem * rain )
 100%
Done.

When I try to add test_combo to the display in GRASS, nothing shows, even
when I try to zoom to the layer in GRASS.

r.info gives me the following:
++
 | Layer:test_combo2Date: Fri Feb 18 13:19:52 2011   
|
 | Mapset:   PERMANENT  Login of Creator: jay
|
 | Location: newLocation 
|
 | DataBase: .  |
 | Title: ( test_combo )
|
 | Timestamp: none   
|

||
 |   
|
 |   Type of Map:  raster   Number of Categories: 255
|
 |   Data Type:FCELL 
|
 |   Rows: 20
|
 |   Columns:  20
|
 |   Total Cells:  400   
|
 |Projection: Lambert Conformal Conic
|
 |N: 707999.97864227S: 628766.19610209   Res: 3961.68912701  
|
 |E: 827306.35554785W: 607862.24148022   Res: 10972.20570338 
|
 |   Range of data:min = 0.00  max = 4241302.00  
|
 |   
|
 |   Data Description:   
|
 |generated by r.mapcalc 
|
 |   
|
 |   Comments:   
|
 |dem * rain 
|
 |   
|

++

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/r-mapcalculator-r-mapcalc-not-producing-raster-tp6041018p6041018.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: r.mapcalculator / r.mapcalc not producing raster

2011-02-18 Thread jaydub

That's not right @ all... How would I set the region?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/r-mapcalculator-r-mapcalc-not-producing-raster-tp6041018p6041165.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] Re: r.mapcalculator / r.mapcalc not producing raster

2011-02-18 Thread jaydub

Thanks, that did the trick. Setting g.region. Question, does that function
set the region globally for Grass? For instance, if I'm using grass in
another python console will that region be affected if I set the region in
another instance of a python session?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/r-mapcalculator-r-mapcalc-not-producing-raster-tp6041018p6041309.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user