MB-System Unix Manual Page

mbm_arc2grd

Section: MB-System 5.0 (1)
Updated: 3 June 2013
Index
 

NAME

mbm_arc2grd - Macro to convert an ArcView ASCII grid to a GMT grid file in the GMT NetCDF grid format.

 

VERSION

Version 5.0

 

SYNOPSIS

mbm_arc2grd -Iarcfile -Ogrdfile [-H -V]

 

DESCRIPTION

mbm_arc2grd is a macro to convert a ArcView ASCII grid to an GMT grid file in the GMT NetCDF grid format. This allows users to import the grid into GMT. The grid will have the same grid interval in both longitude and latitude. The macro first obtains the bounds, dimensions, and grid cell size of the grid by parsing the six line header. The macro then reformats the gridded data as xyz data, writing it to a temporary file. This temporary file is processed using the GMT program xyz2grd, yielding a GMT GRD format grid file.

 

AUTHORSHIP

David W. Caress (caress@mbari.org)

  Monterey Bay Aquarium Research Institute
Dale N. Chayes (dale@ldeo.columbia.edu)

  Lamont-Doherty Earth Observatory

 

OPTIONS

-H
This "help" flag cause the program to print out a description of its operation and then exit immediately.
-I
arcfile
Sets the filename of the input ArcView ASCII grid.
-O
grdname
Sets the filename of the output GMT grid file. This file will be in the GMT NetCDF GRD format.
-V
The -V option causes mbm_arc2grd to print out status messages.

 

EXAMPLES

Suppose that we have obtained an ascii ArcView grid called kohalab.asc. To translate this file to a GMT grd file, the following will suffice:

        mbm_arc2grd -I kohalab.asc -O kohalab.grd -V

Running the example above produced the following output:
        Program mbm_arc2grd status:

                Input ArcView ASCII  file: kohalab.asc

                Output GRD file:           kohalab.grd

                Grid dimensions:  1597  1431

                Grid cell sizes:  0.0001914456033  0.0001914456033

                Grid bounds:      -155.72855  -155.423002817133    20.1318  20.405567212719


        Running xyz2grd...

        xyz2grd: nx = 1597  ny = 1431

 

SEE ALSO

mbsystem(1), mbm_grd2arc(1), mbm_grid(1)

 

BUGS

Perhaps.


 

Index

NAME
VERSION
SYNOPSIS
DESCRIPTION
AUTHORSHIP
OPTIONS
EXAMPLES
SEE ALSO
BUGS


Last Updated: 3 June 2013


Return to list of MB-System manual pages...

Back to MB-System Home Page...