Geographic Procedures

Table of Contents

  1. Introduction
  2. Write ARC/INFO GRIDASCII file using put_gridascii
  3. Write Surfer file using put_text_surfer

Introduction

The following procedures are defined in the file geog.tcl. Note that there are also Geographic Functions.

Write ARC/INFO GRIDASCII file using put_gridascii

Procedure put_gridascii writes a file in ARC/INFO GRIDASCII format. All cells must be squares of the same size. Coordinate variable 0 (usually latitude) can be either ascending or descending.

Usage

put_gridascii expr filename [missing_value_string]
expr
NAP expression defining a matrix with coordinate variables (normally latitude and longitude)
filename
Pathname of the output file
missing_value_string
String representing missing value in file (Default: 1e9)

Example

% put_gridascii mat abc.txt -999

Write Surfer file using put_text_surfer

Procedure put_text_surfer writes a file in Surfer format. Surfer is a package developed by Golden Software.

Usage

put_text_surfer expr [filename] [format]
expr
NAP expression defining a matrix with coordinate variables
filename
Pathname of the output file. If none then writes to standard output.
format
C format specification of each output element (Default: "%g")

Example

% put_text_surfer mat abc.txt %8.4f

Author: Harvey Davies       © 2002, CSIRO Australia.       Legal Notice and Disclaimer
CVS Version Details: $Id: geog_proc.html,v 1.2 2004/11/18 06:29:03 dav480 Exp $