Previously I also have the same problem, to solve myneed of the 'big'
SRTM data, i found 3 methods can work. However the output of the last
2 methods is not hgt file.
1. from
http://www.uoregon.edu/~das/WikiRoiPac/doku.php?id=roipac:srtm
i.e.
% read 30m SRTM DEMs
fid=fopen(’N37W122o.hgt’);
B1=fread(fid,[3601 3601],’int16’);
fclose(fid);
fid=fopen(’N37W123o.hgt’);
B2=fread(fid,[3601 3601],’int16’);
fclose(fid);
fid=fopen(’N38W122o.hgt’);
B3=fread(fid,[3601 3601],’int16’);
fclose(fid);
fid=fopen(’N38W123o.hgt’);
B4=fread(fid,[3601 3601],’int16’);
fclose(fid);
% mosaic tiles
B=[B4’ B3’;B2’ B1’];
% delete overlapping row and column
B(3601,:)=[];
B(:,3601)=[];
% replace bad data points
jj=find(B==-32768);
B(jj)=NaN;
% view result
imagesc(B);
Using the output figure you can check to make sure the files are in
the right order. If so, use the following Matlab commands to save the
file:
% write output file
fid=fopen(’bayarea.dem’,’w’);
fwrite(fid,B’,’int16’);
fclose(fid);
2. Using GMT which is explained in
http://able1.mines.unr.edu/Geophysics_website/701h_Radar_Fall03/Radar_F03_lab_guide_26Aug03/ROI_PAC_DOCs/ROI_PAC.02.3.27_chris_okubo_reduced_resolution.pdf
i.e.
unzip N38W110.hgt.zip
grdraster 1 -R-110/-109/38/39 -I1c -GN38W110.grd -V
rm *hgt
unzip N37W110.hgt.zip
grdraster 2 -R-110/-109/37/38 -I1c -GN37W110.grd -V
rm *hgt
grdpaste N38W110.grd N37W110.grd -Ginter_110_109.grd -V
rm N38W110.grd N37W110.grd
unzip N38W111.hgt.zip
grdraster 3 -R-111/-110/38/39 -I1c -GN38W111.grd -V
rm *hgt
unzip N37W111.hgt.zip
grdraster 4 -R-111/-110/37/38 -I1c -GN37W111.grd -V
rm *hgt
grdpaste N38W111.grd N37W111.grd -Ginter_111_110.grd -V
rm N38W111.grd N37W111.grd
grdpaste inter_110_109.grd inter_111_110.grd –Gcanyonlands_all.grd -V
rm inter_110_109.grd inter_111_110.grd
grdcut canyonlands_all.grd -R–110.5/-109.5/37.5/38.5 –
Gcanyonlands_sub.grd
grd2xyz canyonlands_sub.grd >
canyonlands_sub.xyz –S –V
surface
canyonlands_sub.xyz –I1c -R–110.5/-109.5/37.5/38.5 –
Gcanyonlands.grd –T0.35 -V
grd2cpt -Crainbow canyonlands.grd >canyonlands.cpt -V
grdgradient canyonlands.grd -A0/270 -Gcanyonlands_grad.grd -Ne0.6 -V
grdimage canyonlands.grd -JM16c -Icanyonlands_grad.grd -P -V -R–
110.5/-109.5/37.5/38.5 -Ccanyonlands.cpt >canyonlands.eps
grd2xyz canyonlands.grd >canyonlands.dem –ZTLh –V
3. Using MIRONE SRTM-tile and then save to GMT grid file.
regards,
agustan