<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Martalopezm</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Martalopezm"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/Martalopezm"/>
		<updated>2026-04-04T17:03:14Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=8353</id>
		<title>ConvertToXYZ</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=8353"/>
				<updated>2020-11-10T17:10:34Z</updated>
		
		<summary type="html">&lt;p&gt;Martalopezm: /* ASCII Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ConvertToXYZ]] is a small tool that extracts baseline three-dimensional data into [[XYZ points |XYZ points files]]. It is useful, for instance, to extract baseline data to create bathymetries (or topography in land projects).&lt;br /&gt;
&lt;br /&gt;
== Quick Start ==&lt;br /&gt;
#Map a network drive to the data file (ETOPO, GEBCO, NOAA etc...).&lt;br /&gt;
#Create and edit a ''ConvertToXYZ.dat'' file. Save it in the same path of the executable.&lt;br /&gt;
#Run the executable.&lt;br /&gt;
&lt;br /&gt;
== Options file ==&lt;br /&gt;
&lt;br /&gt;
'' '''WARNING:''' Only use integer coordinate lat/lon numbers''.&lt;br /&gt;
&lt;br /&gt;
 FILE_TYPE: is the parameter that defines the type of input data. &lt;br /&gt;
 It accepts values from 1 to 6 that indicates the following possible origins of data:&lt;br /&gt;
 1 NASA SRTM (Shuttle Radar Topography Mission)&lt;br /&gt;
 2 ETOPO 2 (every 2')&lt;br /&gt;
 3 ETOPO 5 (every 5')&lt;br /&gt;
 4 Shoreline (Mapgen)&lt;br /&gt;
 5 GEBCO  (every 30&amp;quot; or 1')&lt;br /&gt;
 6 ASCII  (ArcView.....)&lt;br /&gt;
 7 NASA SRTM30 (every 30&amp;quot;)&lt;br /&gt;
 INPUT_FILENAME: input data file,&lt;br /&gt;
 OUTPUT_FILENAME: where the results will be written,&lt;br /&gt;
 TOP, BOTTOM, LEFT, RIGHT: Latitude and longitude minimum and maximum values (integers only!)&lt;br /&gt;
 WRITE_AS_BATHYMETRY: indicates if equal to 1 that the output is written in bathymetry format&lt;br /&gt;
 WRITE_AS_POLYGONS: indicates that would produce outcoming files with polygons format *.xy when 1. &lt;br /&gt;
&lt;br /&gt;
===ETOPO2===&lt;br /&gt;
Here's what the options ''ConvertToXYZ.dat'' file looks like:&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 2&lt;br /&gt;
 INPUT_FILENAME              : Z:\etopo2.dat&lt;br /&gt;
 OUTPUT_FILENAME             : WestIberiaET2.xyz&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY         : 1&lt;br /&gt;
 CONVERT_TO_HDF5             : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOAA Shoreline/Coastline===&lt;br /&gt;
&lt;br /&gt;
The file ConvertToXYZ.dat to convert a coastline downloaded from the [http://www.ngdc.noaa.gov/mgg/shorelines/shorelines.html NOAA Marine Geology &amp;amp; Geophysics Shoreline/Coastline Data] would look like that:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 4&lt;br /&gt;
 INPUT_FILENAME              : Aysen-lowres.dat&lt;br /&gt;
 OUTPUT_FOLDER               : C:\Aplica\Ecomanage\Data\NGDC_NOAA_shorelines\Software\&lt;br /&gt;
 OUTPUT_NAME                 : Aysen-lowres&lt;br /&gt;
 WRITE_AS_POLYGONS           : 1&lt;br /&gt;
 MAX_BUFFER_SIZE             : 250000&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GEBCO===&lt;br /&gt;
For [http://www.gebco.net/ GEBCO] bathymetric downloaded data the file would look like: &lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                    : 5&lt;br /&gt;
 INPUT_FILENAME               : 60W30S_40W10S.cdf&lt;br /&gt;
 OUTPUT_FILENAME              : 60W30S_40W10S.xyz&lt;br /&gt;
 MAXIMUM                      : 1&lt;br /&gt;
 MINIMUM                      : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY          : 1&lt;br /&gt;
 CONVERT_TO_HDF5              : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===ASCII Grid===&lt;br /&gt;
Use this option if you have and ASCII grid. ASCII grids can be produced from raster datasets for example in ArcGIS (&amp;quot;Raster to ASCII&amp;quot;).&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 6&lt;br /&gt;
 INPUT_FILENAME              : DTM.asc&lt;br /&gt;
 OUTPUT_FILENAME             : DTM.xyz&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally it is possible now to reduce resolution of the xyz. This is quite handy when dealing with very detailed DTM's that are not openable in GUI because of the file size. This can be done by defining the step to pick points (2 will select half of the points and so on).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 6&lt;br /&gt;
 INPUT_FILENAME              : DTM.asc&lt;br /&gt;
 OUTPUT_FILENAME             : DTM.xyz&lt;br /&gt;
 REDUCE_RESOLUTION           : 1&lt;br /&gt;
 REDUCE_RESOLUTION_STEP      : 2&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other KEYWORDS that can be useful:&lt;br /&gt;
&lt;br /&gt;
IGNORE_NEGATIVE_VALUES : 1 &lt;br /&gt;
&lt;br /&gt;
ignores negative values and these are not written to output file.&lt;br /&gt;
&lt;br /&gt;
ADD_FACTOR             : xx &lt;br /&gt;
&lt;br /&gt;
adds the xx value to the original z (e.g. units conversion). it can have negative values&lt;br /&gt;
&lt;br /&gt;
MULTIPLY_FACTOR        : xx &lt;br /&gt;
&lt;br /&gt;
multiplies the xx value to the original z (e.g. units conversion). it can have negative values&lt;br /&gt;
&lt;br /&gt;
===SRTM30===&lt;br /&gt;
''Caution: make sure the ORIGIN_X and ORIGIN_Y correspond to the BOTTOM-LEFT origin of the srtm30 original source file! [http://www.dgadv.com/srtm30/ Here's] a map of srtm30 tiles.''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 7&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 INPUT_FILE                  : \\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\SRTM30\Data\w020n40.Bathmetry.srtm&lt;br /&gt;
 XYZ_OUTPUT_FILENAME         : WestIberiaSRTM.xyz&lt;br /&gt;
 ORIGIN_X                    : -20&lt;br /&gt;
 ORIGIN_Y                    : -10&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NASA Topography===&lt;br /&gt;
&lt;br /&gt;
1) If you have NASA binary files (.hgt):&lt;br /&gt;
&lt;br /&gt;
For land topography look on \\kepler\DataCenter1\DataCenter\DadosBase\Terra\Topografia\NASA&lt;br /&gt;
&lt;br /&gt;
In Eurasia folder you will find data for Europe. Copy the .zip files you need (or all) to your Hard Disk and unzip them.&lt;br /&gt;
&lt;br /&gt;
Run the ConvertToXYZ with a structure adapted to your needs:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE             : 1&lt;br /&gt;
 LEFT                  : -9.28&lt;br /&gt;
 RIGHT                 : -9.056&lt;br /&gt;
 TOP                   : 38.99&lt;br /&gt;
 BOTTOM                : 38.75&lt;br /&gt;
 INPUT_FOLDER          : D:\Dados\NASA\&lt;br /&gt;
 XYZ_OUTPUT_FILENAME   : D:\Aplica\Trancao\Trancao.xyz&lt;br /&gt;
 SAMPLE_POINTS         : 1&lt;br /&gt;
 CONVERT_TO_UTM        : 1&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) If you have NASA grids (e.g. SRTM from site):&lt;br /&gt;
&lt;br /&gt;
Convert DEM grid to ascii (e.g. using ArcGIS &amp;quot;Raster to ASCII&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Convert ascii to .xyz using this tool (see example above).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Digital_Terrain_Creator|Digital Terrain Creator]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Martalopezm</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=8352</id>
		<title>ConvertToXYZ</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=8352"/>
				<updated>2020-11-10T17:10:08Z</updated>
		
		<summary type="html">&lt;p&gt;Martalopezm: /* ASCII Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ConvertToXYZ]] is a small tool that extracts baseline three-dimensional data into [[XYZ points |XYZ points files]]. It is useful, for instance, to extract baseline data to create bathymetries (or topography in land projects).&lt;br /&gt;
&lt;br /&gt;
== Quick Start ==&lt;br /&gt;
#Map a network drive to the data file (ETOPO, GEBCO, NOAA etc...).&lt;br /&gt;
#Create and edit a ''ConvertToXYZ.dat'' file. Save it in the same path of the executable.&lt;br /&gt;
#Run the executable.&lt;br /&gt;
&lt;br /&gt;
== Options file ==&lt;br /&gt;
&lt;br /&gt;
'' '''WARNING:''' Only use integer coordinate lat/lon numbers''.&lt;br /&gt;
&lt;br /&gt;
 FILE_TYPE: is the parameter that defines the type of input data. &lt;br /&gt;
 It accepts values from 1 to 6 that indicates the following possible origins of data:&lt;br /&gt;
 1 NASA SRTM (Shuttle Radar Topography Mission)&lt;br /&gt;
 2 ETOPO 2 (every 2')&lt;br /&gt;
 3 ETOPO 5 (every 5')&lt;br /&gt;
 4 Shoreline (Mapgen)&lt;br /&gt;
 5 GEBCO  (every 30&amp;quot; or 1')&lt;br /&gt;
 6 ASCII  (ArcView.....)&lt;br /&gt;
 7 NASA SRTM30 (every 30&amp;quot;)&lt;br /&gt;
 INPUT_FILENAME: input data file,&lt;br /&gt;
 OUTPUT_FILENAME: where the results will be written,&lt;br /&gt;
 TOP, BOTTOM, LEFT, RIGHT: Latitude and longitude minimum and maximum values (integers only!)&lt;br /&gt;
 WRITE_AS_BATHYMETRY: indicates if equal to 1 that the output is written in bathymetry format&lt;br /&gt;
 WRITE_AS_POLYGONS: indicates that would produce outcoming files with polygons format *.xy when 1. &lt;br /&gt;
&lt;br /&gt;
===ETOPO2===&lt;br /&gt;
Here's what the options ''ConvertToXYZ.dat'' file looks like:&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 2&lt;br /&gt;
 INPUT_FILENAME              : Z:\etopo2.dat&lt;br /&gt;
 OUTPUT_FILENAME             : WestIberiaET2.xyz&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY         : 1&lt;br /&gt;
 CONVERT_TO_HDF5             : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOAA Shoreline/Coastline===&lt;br /&gt;
&lt;br /&gt;
The file ConvertToXYZ.dat to convert a coastline downloaded from the [http://www.ngdc.noaa.gov/mgg/shorelines/shorelines.html NOAA Marine Geology &amp;amp; Geophysics Shoreline/Coastline Data] would look like that:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 4&lt;br /&gt;
 INPUT_FILENAME              : Aysen-lowres.dat&lt;br /&gt;
 OUTPUT_FOLDER               : C:\Aplica\Ecomanage\Data\NGDC_NOAA_shorelines\Software\&lt;br /&gt;
 OUTPUT_NAME                 : Aysen-lowres&lt;br /&gt;
 WRITE_AS_POLYGONS           : 1&lt;br /&gt;
 MAX_BUFFER_SIZE             : 250000&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GEBCO===&lt;br /&gt;
For [http://www.gebco.net/ GEBCO] bathymetric downloaded data the file would look like: &lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                    : 5&lt;br /&gt;
 INPUT_FILENAME               : 60W30S_40W10S.cdf&lt;br /&gt;
 OUTPUT_FILENAME              : 60W30S_40W10S.xyz&lt;br /&gt;
 MAXIMUM                      : 1&lt;br /&gt;
 MINIMUM                      : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY          : 1&lt;br /&gt;
 CONVERT_TO_HDF5              : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===ASCII Grid===&lt;br /&gt;
Use this option if you have and ASCII grid. ASCII grids can be produced from raster datasets for example in ArcGIS (&amp;quot;Raster to ASCII&amp;quot;).&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 6&lt;br /&gt;
 INPUT_FILENAME              : DTM.asc&lt;br /&gt;
 OUTPUT_FILENAME             : DTM.xyz&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally it is possible now to reduce resolution of the xyz. This is quite handy when dealing with very detailed DTM's that are not openable in GUI because of the file size. This can be done by definiNg the step to pick points (2 will select half of the points and so on).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 6&lt;br /&gt;
 INPUT_FILENAME              : DTM.asc&lt;br /&gt;
 OUTPUT_FILENAME             : DTM.xyz&lt;br /&gt;
 REDUCE_RESOLUTION           : 1&lt;br /&gt;
 REDUCE_RESOLUTION_STEP      : 2&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other KEYWORDS that can be useful:&lt;br /&gt;
&lt;br /&gt;
IGNORE_NEGATIVE_VALUES : 1 &lt;br /&gt;
&lt;br /&gt;
ignores negative values and these are not written to output file.&lt;br /&gt;
&lt;br /&gt;
ADD_FACTOR             : xx &lt;br /&gt;
&lt;br /&gt;
adds the xx value to the original z (e.g. units conversion). it can have negative values&lt;br /&gt;
&lt;br /&gt;
MULTIPLY_FACTOR        : xx &lt;br /&gt;
&lt;br /&gt;
multiplies the xx value to the original z (e.g. units conversion). it can have negative values&lt;br /&gt;
&lt;br /&gt;
===SRTM30===&lt;br /&gt;
''Caution: make sure the ORIGIN_X and ORIGIN_Y correspond to the BOTTOM-LEFT origin of the srtm30 original source file! [http://www.dgadv.com/srtm30/ Here's] a map of srtm30 tiles.''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 7&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 INPUT_FILE                  : \\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\SRTM30\Data\w020n40.Bathmetry.srtm&lt;br /&gt;
 XYZ_OUTPUT_FILENAME         : WestIberiaSRTM.xyz&lt;br /&gt;
 ORIGIN_X                    : -20&lt;br /&gt;
 ORIGIN_Y                    : -10&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NASA Topography===&lt;br /&gt;
&lt;br /&gt;
1) If you have NASA binary files (.hgt):&lt;br /&gt;
&lt;br /&gt;
For land topography look on \\kepler\DataCenter1\DataCenter\DadosBase\Terra\Topografia\NASA&lt;br /&gt;
&lt;br /&gt;
In Eurasia folder you will find data for Europe. Copy the .zip files you need (or all) to your Hard Disk and unzip them.&lt;br /&gt;
&lt;br /&gt;
Run the ConvertToXYZ with a structure adapted to your needs:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE             : 1&lt;br /&gt;
 LEFT                  : -9.28&lt;br /&gt;
 RIGHT                 : -9.056&lt;br /&gt;
 TOP                   : 38.99&lt;br /&gt;
 BOTTOM                : 38.75&lt;br /&gt;
 INPUT_FOLDER          : D:\Dados\NASA\&lt;br /&gt;
 XYZ_OUTPUT_FILENAME   : D:\Aplica\Trancao\Trancao.xyz&lt;br /&gt;
 SAMPLE_POINTS         : 1&lt;br /&gt;
 CONVERT_TO_UTM        : 1&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) If you have NASA grids (e.g. SRTM from site):&lt;br /&gt;
&lt;br /&gt;
Convert DEM grid to ascii (e.g. using ArcGIS &amp;quot;Raster to ASCII&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Convert ascii to .xyz using this tool (see example above).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Digital_Terrain_Creator|Digital Terrain Creator]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Martalopezm</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=8351</id>
		<title>ConvertToXYZ</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=ConvertToXYZ&amp;diff=8351"/>
				<updated>2020-11-10T17:09:39Z</updated>
		
		<summary type="html">&lt;p&gt;Martalopezm: /* ASCII Grid */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ConvertToXYZ]] is a small tool that extracts baseline three-dimensional data into [[XYZ points |XYZ points files]]. It is useful, for instance, to extract baseline data to create bathymetries (or topography in land projects).&lt;br /&gt;
&lt;br /&gt;
== Quick Start ==&lt;br /&gt;
#Map a network drive to the data file (ETOPO, GEBCO, NOAA etc...).&lt;br /&gt;
#Create and edit a ''ConvertToXYZ.dat'' file. Save it in the same path of the executable.&lt;br /&gt;
#Run the executable.&lt;br /&gt;
&lt;br /&gt;
== Options file ==&lt;br /&gt;
&lt;br /&gt;
'' '''WARNING:''' Only use integer coordinate lat/lon numbers''.&lt;br /&gt;
&lt;br /&gt;
 FILE_TYPE: is the parameter that defines the type of input data. &lt;br /&gt;
 It accepts values from 1 to 6 that indicates the following possible origins of data:&lt;br /&gt;
 1 NASA SRTM (Shuttle Radar Topography Mission)&lt;br /&gt;
 2 ETOPO 2 (every 2')&lt;br /&gt;
 3 ETOPO 5 (every 5')&lt;br /&gt;
 4 Shoreline (Mapgen)&lt;br /&gt;
 5 GEBCO  (every 30&amp;quot; or 1')&lt;br /&gt;
 6 ASCII  (ArcView.....)&lt;br /&gt;
 7 NASA SRTM30 (every 30&amp;quot;)&lt;br /&gt;
 INPUT_FILENAME: input data file,&lt;br /&gt;
 OUTPUT_FILENAME: where the results will be written,&lt;br /&gt;
 TOP, BOTTOM, LEFT, RIGHT: Latitude and longitude minimum and maximum values (integers only!)&lt;br /&gt;
 WRITE_AS_BATHYMETRY: indicates if equal to 1 that the output is written in bathymetry format&lt;br /&gt;
 WRITE_AS_POLYGONS: indicates that would produce outcoming files with polygons format *.xy when 1. &lt;br /&gt;
&lt;br /&gt;
===ETOPO2===&lt;br /&gt;
Here's what the options ''ConvertToXYZ.dat'' file looks like:&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 2&lt;br /&gt;
 INPUT_FILENAME              : Z:\etopo2.dat&lt;br /&gt;
 OUTPUT_FILENAME             : WestIberiaET2.xyz&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY         : 1&lt;br /&gt;
 CONVERT_TO_HDF5             : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NOAA Shoreline/Coastline===&lt;br /&gt;
&lt;br /&gt;
The file ConvertToXYZ.dat to convert a coastline downloaded from the [http://www.ngdc.noaa.gov/mgg/shorelines/shorelines.html NOAA Marine Geology &amp;amp; Geophysics Shoreline/Coastline Data] would look like that:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 4&lt;br /&gt;
 INPUT_FILENAME              : Aysen-lowres.dat&lt;br /&gt;
 OUTPUT_FOLDER               : C:\Aplica\Ecomanage\Data\NGDC_NOAA_shorelines\Software\&lt;br /&gt;
 OUTPUT_NAME                 : Aysen-lowres&lt;br /&gt;
 WRITE_AS_POLYGONS           : 1&lt;br /&gt;
 MAX_BUFFER_SIZE             : 250000&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===GEBCO===&lt;br /&gt;
For [http://www.gebco.net/ GEBCO] bathymetric downloaded data the file would look like: &lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                    : 5&lt;br /&gt;
 INPUT_FILENAME               : 60W30S_40W10S.cdf&lt;br /&gt;
 OUTPUT_FILENAME              : 60W30S_40W10S.xyz&lt;br /&gt;
 MAXIMUM                      : 1&lt;br /&gt;
 MINIMUM                      : -9999&lt;br /&gt;
 WRITE_AS_BATHYMETRY          : 1&lt;br /&gt;
 CONVERT_TO_HDF5              : 0&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===ASCII Grid===&lt;br /&gt;
Use this option if you have and ASCII grid. ASCII grids can be produced from raster datasets for example in ArcGIS (&amp;quot;Raster to ASCII&amp;quot;).&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 6&lt;br /&gt;
 INPUT_FILENAME              : DTM.asc&lt;br /&gt;
 OUTPUT_FILENAME             : DTM.xyz&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally it is possible now to reduce resolution of the xyz. This is quite handy when dealing with very detailed DTM's that are not openable in GUI because of the file size. This can be done by definig the step to pick points (2 will select half of the points and so on).&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 6&lt;br /&gt;
 INPUT_FILENAME              : DTM.asc&lt;br /&gt;
 OUTPUT_FILENAME             : DTM.xyz&lt;br /&gt;
 REDUCE_RESOLUTION           : 1&lt;br /&gt;
 REDUCE_RESOLUTION_STEP      : 2&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other KEYWORDS that can be useful:&lt;br /&gt;
&lt;br /&gt;
IGNORE_NEGATIVE_VALUES : 1 &lt;br /&gt;
&lt;br /&gt;
ignores negative values and these are not written to output file.&lt;br /&gt;
&lt;br /&gt;
ADD_FACTOR             : xx &lt;br /&gt;
&lt;br /&gt;
adds the xx value to the original z (e.g. units conversion). it can have negative values&lt;br /&gt;
&lt;br /&gt;
MULTIPLY_FACTOR        : xx &lt;br /&gt;
&lt;br /&gt;
multiplies the xx value to the original z (e.g. units conversion). it can have negative values&lt;br /&gt;
&lt;br /&gt;
===SRTM30===&lt;br /&gt;
''Caution: make sure the ORIGIN_X and ORIGIN_Y correspond to the BOTTOM-LEFT origin of the srtm30 original source file! [http://www.dgadv.com/srtm30/ Here's] a map of srtm30 tiles.''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE                   : 7&lt;br /&gt;
 TOP                         : 46&lt;br /&gt;
 BOTTOM                      : 33&lt;br /&gt;
 LEFT                        : -14&lt;br /&gt;
 RIGHT                       : -5&lt;br /&gt;
 MAXIMUM                     : 1&lt;br /&gt;
 MINIMUM                     : -9999&lt;br /&gt;
 INPUT_FILE                  : \\kepler\DataCenter1\DataCenter\DadosBase\Oceanografia\Batimetria\SRTM30\Data\w020n40.Bathmetry.srtm&lt;br /&gt;
 XYZ_OUTPUT_FILENAME         : WestIberiaSRTM.xyz&lt;br /&gt;
 ORIGIN_X                    : -20&lt;br /&gt;
 ORIGIN_Y                    : -10&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NASA Topography===&lt;br /&gt;
&lt;br /&gt;
1) If you have NASA binary files (.hgt):&lt;br /&gt;
&lt;br /&gt;
For land topography look on \\kepler\DataCenter1\DataCenter\DadosBase\Terra\Topografia\NASA&lt;br /&gt;
&lt;br /&gt;
In Eurasia folder you will find data for Europe. Copy the .zip files you need (or all) to your Hard Disk and unzip them.&lt;br /&gt;
&lt;br /&gt;
Run the ConvertToXYZ with a structure adapted to your needs:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;begin_window&amp;gt;&lt;br /&gt;
 FILE_TYPE             : 1&lt;br /&gt;
 LEFT                  : -9.28&lt;br /&gt;
 RIGHT                 : -9.056&lt;br /&gt;
 TOP                   : 38.99&lt;br /&gt;
 BOTTOM                : 38.75&lt;br /&gt;
 INPUT_FOLDER          : D:\Dados\NASA\&lt;br /&gt;
 XYZ_OUTPUT_FILENAME   : D:\Aplica\Trancao\Trancao.xyz&lt;br /&gt;
 SAMPLE_POINTS         : 1&lt;br /&gt;
 CONVERT_TO_UTM        : 1&lt;br /&gt;
 &amp;lt;end_window&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2) If you have NASA grids (e.g. SRTM from site):&lt;br /&gt;
&lt;br /&gt;
Convert DEM grid to ascii (e.g. using ArcGIS &amp;quot;Raster to ASCII&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Convert ascii to .xyz using this tool (see example above).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Digital_Terrain_Creator|Digital Terrain Creator]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Martalopezm</name></author>	</entry>

	</feed>