[GRASS-user] (no subject)

José Carlos Guerrero Antúnez jcgantunez at gmail.com
Wed Jun 13 13:12:08 PDT 2012


Hi,

I need to obtain this format from shapefile, how do I?

        ESRI ASCII Grid Format

 (Copied from the ArcWorkstation 8.3 Help File)

The ASCII file must consist of header information containing a set of
keywords, followed by cell values in row-major order. The file format is

  <NCOLS xxx>
  <NROWS xxx>
  <XLLCENTER xxx | XLLCORNER xxx>
  <YLLCENTER xxx | YLLCORNER xxx>
  <CELLSIZE xxx>
  {NODATA_VALUE xxx}
  row 1
  row 2
  ...

  row n

where xxx is a number, and the keyword nodata_value is optional and
defaults to -9999. Row 1 of the data is at the top of the grid, row 2 is
just under row 1 and so on. For example:

  ncols         386
  nrows         286
  xllcorner     -128.66338
  yllcorner     13.7502065
  cellsize      0.2
  NODATA_value  -9999
  -9999 -9999 -123 -123 -123 -9999 -9999 -9999 -9999 -9999 ...

  -9999 -9999 -123 -123 -123 -9999 -9999 -9999 -9999 -9999 ...
  -9999 -9999 -117 -117 -117 -119 -119 -119 -119 -119 -9999 ...
  ...

The nodata_value is the value in the ASCII file to be assigned to those
cells whose true value is unknown. Cell values should be delimited by
spaces. No carriage returns are necessary at the end of each row in the
grid. The number of columns in the header is used to determine when a new
row begins. The number of cell values must be equal to the number of rows
times the number of columns.


I'm working
GRASS 6.4.2 (2012)
OSX 10.6.8

Many thanks,


Jose C. Guerrero


-- 
################################################################
Dr. José Carlos Guerrero
Laboratorio de Desarrollo Sustentable y Gestión Ambiental del Territorio
(LDSGAT)
Instituto de Ecología y Ciencias Ambientales (IECA)
Facultad de Ciencias
Universidad de la República
Montevideo-URUGUAY
################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120613/4f8ad044/attachment.html>


More information about the grass-user mailing list