On 05/31/2012 07:44 PM, Micha Silver wrote:
On 05/31/2012 07:23 PM, Daniel Lee wrote:



Ooops, typo error: r.out.arc NOT r.out.asc

Try like this:

RASTS=`g.mlist rast pat="*fill_mnat*"`
for r in $RASTS; do
    echo "Processing raster $r"
    g.region rast=$r
    r.out.asc $r out=$r.asc
          ^^^^^^
done

Note the backticks (`) in the first line.
Also, be aware that some software reads the asc header as cell *centers* and some as cell *corners*. GRASS outputs each pixel to the asc file as cell corners. If you need it as centers, add a '-c' to the r.out.asc command.

This mail was received via Mail-SeCure System.


_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.





This mail was received via Mail-SeCure System.


_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.



_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to