Personal tools

ConvertToXYZ

From MohidWiki

Revision as of 14:03, 7 October 2008 by 192.168.20.177 (talk) (SRTM30)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ConvertToXYZ is a small tool that extracts baseline three-dimensional data into XYZ points files. It is useful, for instance, to extract baseline data to create bathymetries.

Quick Start

  1. Map a network drive to the data file (ETOPO, GEBCO, NOAA etc...).
  2. Create and edit a ConvertToXYZ.dat file. Save it in the same path of the executable.
  3. Run the executable.

Options file

WARNING: Only use integer coordinate lat/lon numbers.

ETOPO2'

Here's what the options ConvertToXYZ.dat file looks like:

<begin_window>
FILE_TYPE                   : 2
INPUT_FILENAME              : Z:\etopo2.dat
OUTPUT_FILENAME             : WestIberiaET2.xyz
TOP                         : 46
BOTTOM                      : 33
LEFT                        : -14
RIGHT                       : -5
MAXIMUM                     : 1
MINIMUM                     : -9999
WRITE_AS_BATHYMETRY         : 1
CONVERT_TO_HDF5             : 0
<end_window>

SRTM30

Caution: make sure the ORIGIN_X and ORIGIN_Y correspond to the origin of the srtm30 original source file!

<begin_window>
FILE_TYPE                   : 7
TOP                         : 46
BOTTOM                      : 33
LEFT                        : -14
RIGHT                       : -5
MAXIMUM                     : 1
MINIMUM                     : -9999
INPUT_FILE                  : \\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\SRTM30\Data\w020n40.Bathmetry.srtm
XYZ_OUTPUT_FILENAME         : WestIberiaSRTM.xyz
ORIGIN_X                    : -20
ORIGIN_Y                    : 40
<end_window>

See also