[cig-commits] [commit] devel, master: renamed DATA/topo_bathy/ascii2bin.py to DATA/topo_bathy/convert_etopo_files_from_specfem_ASCII_to_binary_topo_format_ascii2bin.py (ef85836)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Nov 6 08:26:00 PST 2014


Repository : https://github.com/geodynamics/specfem3d_globe

On branches: devel,master
Link       : https://github.com/geodynamics/specfem3d_globe/compare/bc58e579b3b0838a0968725a076f5904845437ca...be63f20cbb6f462104e949894dbe205d2398cd7f

>---------------------------------------------------------------

commit ef85836bb3ec2627f8351a144e24feb1a6454ed1
Author: Dimitri Komatitsch <komatitsch at lma.cnrs-mrs.fr>
Date:   Mon Jul 7 23:32:19 2014 +0200

    renamed DATA/topo_bathy/ascii2bin.py to DATA/topo_bathy/convert_etopo_files_from_specfem_ASCII_to_binary_topo_format_ascii2bin.py


>---------------------------------------------------------------

ef85836bb3ec2627f8351a144e24feb1a6454ed1
 ..._specfem_ASCII_to_binary_topo_format_ascii2bin.py} |  4 ++++
 ...vert_etopo_files_to_specfem_ASCII_topo_format.csh} |  0
 ...database_if_you_want_other_topographic_models.bash | 19 +++++++++++--------
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/DATA/topo_bathy/ascii2bin.py b/DATA/topo_bathy/convert_etopo_files_from_specfem_ASCII_to_binary_topo_format_ascii2bin.py
similarity index 83%
rename from DATA/topo_bathy/ascii2bin.py
rename to DATA/topo_bathy/convert_etopo_files_from_specfem_ASCII_to_binary_topo_format_ascii2bin.py
index 55fa746..58f0e6b 100755
--- a/DATA/topo_bathy/ascii2bin.py
+++ b/DATA/topo_bathy/convert_etopo_files_from_specfem_ASCII_to_binary_topo_format_ascii2bin.py
@@ -1,5 +1,9 @@
 #!/usr/bin/env python
 
+# conversion of topography files from ASCII to binary to reduce their size.
+# endianness (little-endian or big-endian machines) is properly handled based on a byte-order mark written in the header.
+# script written by Elliott Sales de Andrade.
+
 from __future__ import print_function
 import sys
 from io import BytesIO
diff --git a/DATA/topo_bathy/convert_etopo_files_to_specfem_topo_format.csh b/DATA/topo_bathy/convert_etopo_files_to_specfem_ASCII_topo_format.csh
similarity index 100%
rename from DATA/topo_bathy/convert_etopo_files_to_specfem_topo_format.csh
rename to DATA/topo_bathy/convert_etopo_files_to_specfem_ASCII_topo_format.csh
diff --git a/download_the_whole_topography_database_if_you_want_other_topographic_models.bash b/download_the_whole_topography_database_if_you_want_other_topographic_models.bash
index fac49f3..3ea5ad4 100755
--- a/download_the_whole_topography_database_if_you_want_other_topographic_models.bash
+++ b/download_the_whole_topography_database_if_you_want_other_topographic_models.bash
@@ -8,17 +8,20 @@
 cd DATA/topo_bathy
 
 echo " "
-echo "downloading the whole topography database, which has a size of close to 1 GB; this may take a while..."
+echo "downloading the whole topography database, which has a size of YYYYYYY GB; this may take a while..."
 echo " "
 
 wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/etopo1_ice_c.grd.bz2
 wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/etopo1_ice_c_resampled_at_2minutes.grd.bz2
 wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/etopo2v2c.grd.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_original_unmodified_unsmoothed.dat.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_resampled_at_2minutes_original_unmodified_unsmoothed.dat.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_resampled_at_2minutes_smoothed_window_3.dat.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_smoothed_window_3.dat.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo2v2c_original_unmodified_unsmoothed.dat.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo2v2c_smoothed_window_3.dat.bz2
-wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo4_from_etopo2_subsampled.dat.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_original_unmodified_unsmoothed.bin.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_resampled_at_2minutes_original_unmodified_unsmoothed.bin.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_resampled_at_2minutes_smoothed_window_3.bin.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo1_ice_c_smoothed_window_3.bin.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo2v2c_original_unmodified_unsmoothed.bin.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo2v2c_smoothed_window_3.bin.bz2
+wget http://data.geodynamics.org/specfem/specfem3d_globe/topo_bathy/topo_bathy_etopo4_from_etopo2_subsampled.bin.bz2
 
+echo " "
+echo "You can now uncompress the topography file you want using the bunzip2 command."
+echo " "



More information about the CIG-COMMITS mailing list