[GRASS-dev] what happened to r.out.arc?

r.out.arc has disappeared from GRASS 7 and it is not at all clear what other module will output ESRI ASCII format. We need that to feed into NetLogo but it is also a pseudo-standard.

Any suggestions?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www: http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton

On Mon, Mar 9, 2015 at 5:47 PM, Michael Barton <Michael.Barton@asu.edu>
wrote:

r.out.arc has disappeared from GRASS 7 and it is not at all clear what
other module will output ESRI ASCII format. We need that to feed into
NetLogo but it is also a pseudo-standard.

r.out.gdal does not do that?

Anna

Any suggestions?

Michael
            ______________________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www: http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Mar 9, 2015 at 10:47 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

r.out.arc has disappeared from GRASS 7 and it is not at all clear what other
module will output ESRI ASCII format. We need that to feed into NetLogo but
it is also a pseudo-standard.

Please see

http://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Replacedandremovedmodules
-> r.out.arc: use r.out.gdal

Markus

So AAIGrid is the newish name for ESRI in gdal I guess. In tests today, it has the same problem as before.

The null values need to be specified as -9999. This is not a big problem. Just a little annoyance.
Sometimes it exports different headers that are not compatible with NetLogo raster ingest. Perhaps this is the only program that has a problem but maybe not.

Sometimes it exports a header with a single “cellsize” line (which is what r.out.arc always did and what NetLogo expects) and other times it exports 2 lines “dx” and “dy”.

Of course someone can go in and edit the header but it makes for confusing output that sometimes works and sometimes does not.

Michael

···

On Mon, Mar 9, 2015 at 5:55 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

It did not do it well before and we are having trouble finding what to pick to get this (it doesn’t help that the list of output formats is not sorted for some reason). We don’t see an ESRI ASCII or ASC format.

AAIGrid (rw): Arc/Info ASCII Grid?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www: http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton

On Mar 9, 2015, at 2:50 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Mon, Mar 9, 2015 at 5:47 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

r.out.arc has disappeared from GRASS 7 and it is not at all clear what other module will output ESRI ASCII format. We need that to feed into NetLogo but it is also a pseudo-standard.

r.out.gdal does not do that?

Anna

Any suggestions?

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www: http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Mon, Mar 9, 2015 at 11:20 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

So AAIGrid is the newish name for ESRI in gdal I guess. In tests today, it
has the same problem as before.

The null values need to be specified as -9999. This is not a big problem.
Just a little annoyance.

I would expect that r.out.gdal can take care of that.

Sometimes it exports different headers that are not compatible with NetLogo
raster ingest. Perhaps this is the only program that has a problem but maybe
not.

Sometimes it exports a header with a single “cellsize” line (which is what
r.out.arc always did and what NetLogo expects) and other times it exports 2
lines “dx” and “dy”.

This happens in case of non-square pixels:

http://www.gdal.org/frmt_various.html
"If pixels being written are not square (the width and height of a
pixel in georeferenced units differ) then DX and DY parameters will be
output instead of CELLSIZE."

So you may control that with g.region prior to r.out.gdal.

Markus