Difference between revisions of "ConvertToXYZ"
From MohidWiki
Davidbrito (talk | contribs) |
|||
Line 46: | Line 46: | ||
ORIGIN_X : -20 | ORIGIN_X : -20 | ||
ORIGIN_Y : -10 | ORIGIN_Y : -10 | ||
+ | <end_window> | ||
+ | |||
+ | ===NASA Topography=== | ||
+ | For land topography look on \\kepler\DataCenter1\DataCenter\DadosBase\Terra\Topografia\NASA | ||
+ | In Eurasia folder you will find NASA data for Europe. Copy the .zip files you need (or all) to your HD and unzip them. | ||
+ | Run the ConvertToXYZ with a structure adapted to you needs: | ||
+ | |||
+ | <begin_window> | ||
+ | FILE_TYPE : 1 | ||
+ | LEFT : -9.28 | ||
+ | RIGHT : -9.056 | ||
+ | TOP : 38.99 | ||
+ | BOTTOM : 38.75 | ||
+ | INPUT_FOLDER : D:\Dados\NASA\ | ||
+ | XYZ_OUTPUT_FILENAME : D:\Aplica\Trancao\Trancao.xyz | ||
+ | SAMPLE_POINTS : 1 | ||
+ | CONVERT_TO_UTM : 1 | ||
<end_window> | <end_window> | ||
Revision as of 17:02, 12 March 2009
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
- Map a network drive to the data file (ETOPO, GEBCO, NOAA etc...).
- Create and edit a ConvertToXYZ.dat file. Save it in the same path of the executable.
- Run the executable.
Options file
WARNING: Only use integer coordinate lat/lon numbers.
FILE_TYPE: defines what type of input data (ETOPO, GEBCO, SRTM30...), INPUT_FILENAME: input data file, OUTPUT_FILENAME: where the results will be written, TOP, BOTTOM, LEFT, RIGHT: Latitude and longitude minimum and maximum values (integers only!)
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 BOTTOM-RIGHT origin of the srtm30 original source file! Here's a map of srtm30 tiles.
<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 : -10 <end_window>
NASA Topography
For land topography look on \\kepler\DataCenter1\DataCenter\DadosBase\Terra\Topografia\NASA In Eurasia folder you will find NASA data for Europe. Copy the .zip files you need (or all) to your HD and unzip them. Run the ConvertToXYZ with a structure adapted to you needs:
<begin_window> FILE_TYPE : 1 LEFT : -9.28 RIGHT : -9.056 TOP : 38.99 BOTTOM : 38.75 INPUT_FOLDER : D:\Dados\NASA\ XYZ_OUTPUT_FILENAME : D:\Aplica\Trancao\Trancao.xyz SAMPLE_POINTS : 1 CONVERT_TO_UTM : 1 <end_window>