Hi Scott,
watch out! It is not a .tar.gz or .tgz file - instead its "only" a
gzipped file (.gz) - so a "gunzip srtm_1240-1300E_4740-4750N.asc.gz"
should work. However the Python script reads directly from the .gz
file so you should not need to touch it at all.
- ----
barsch@lvps176-28-22-73:~$ wget
http://examples.obspy.org/srtm_1240-1300E_4740-4750N.asc.gz
- --2012-08-13 16:16:53--
http://examples.obspy.org/srtm_1240-1300E_4740-4750N.asc.gz
Resolving examples.obspy.org... 85.214.39.232
Connecting to examples.obspy.org|85.214.39.232|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 113396 (111K) [application/x-gzip]
Saving to: `srtm_1240-1300E_4740-4750N.asc.gz'
100%[===================================================================================================================================================>]
113,396 --.-K/s in 0.1s
2012-08-13 16:16:53 (951 KB/s) - `srtm_1240-1300E_4740-4750N.asc.gz'
saved [113396/113396]
barsch@lvps176-28-22-73:~$ tar -xzf srtm_1240-1300E_4740-4750N.asc.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
barsch@lvps176-28-22-73:~$ gunzip srtm_1240-1300E_4740-4750N.asc.gz
barsch@lvps176-28-22-73:~$ cat srtm_1240-1300E_4740-4750N.asc
ncols 400
nrows 200
xllcorner 12�40'E
yllcorner 47�40'N
xurcorner 13�00'E
yurcorner 47�50'N
cellsize 0.00083333333333333
NODATA_value -9999
682 681 685 690 691 689 678 670 675 680 681 679 675 671 674 680 679 679
....
Hope it helps,
Robert
Robert,
Just so you know I tried getting the file through Safari, Chrome,
& Firefox and curl. I then use
tar -xzvf srtm_1240-1300E_4740-4750N.asc.gz
And get the following error every time tar: Unrecognized archive
format
--Scott
- --
Dr. Robert Barsch
EGU Office Munich
Luisenstr. 37
80333 Munich
Germany
Phone: +49-89-21806549
Fax: +49-89-218017855
eMail: barsch@egu.eu