| Knowledgebase Home | Contact |
| How do I convert an ESRI ASCII grid file to a Surfer GRD file? | |||||||||
Surfer 9 and 10 directly supports ESRI grid files. You
can use the Grid | Convert command in Surfer 9 or 10 to convert an ESRI
grid to a Surfer grid, or you can use the ESRI grid directly in Surfer 9 or 10
to create maps. ncols 4320 Change the ESRI grid file header to the Surfer GS ASCII header: DSAA
'Surfer ASCII GRD ID The GS ASCII format requires the XYZ min max. Calculate the XY max from the XY min, the number of rows and columns, and the cellsize. xMax = xMin + (0.5*cellsize) + (cellsize * (ncols-1)) yMax = yMin + (0.5*cellsize) + (cellsize * (nrows-1)) The XY min max should be adjusted by half the cell size because ESRI grids are based on the center of the grid cell and Surfer grids are based on grid lines which equate to the edges of a cell. If you don't know the zMin and zMax, use 0 and 1 as placeholders for now. The values will be calculated automatically in a subsequent step. DSAA Use a text editor Find/Replace function or Grid | Math (after the grid
has been saved) to replace the NODATA value with the Surfer blanking value of
1.70141e+38. Save the changes to an ASCII text format with the GRD extension. |
| Visitor Comments |
| No visitor comments posted. Post a comment |
| Related Questions |
| Attachments |
| No attachments were found. |