I am trying to use the GTOPO30 command to create a map that spans two tiles. My GTOPO30 data files are not on a CD but in a directory: /data/gtopo30/.
The files were retrieved via FTP and there are no "tile directories" as referred to in the GTOPO30 description returned when I type "help gtopo30". A partial directory listing shows:
E060N40.DEM E060N40.DMW E060N40.GIF E060N40.HDR E060N40.PRJ E060N40.SCH E060N40.SRC E060N40.STX E060N90.DEM
Here is what I try and the error I receive:
latlim = [30 45]; lonlim = [60 90];gt30files = gtopo30s(latlim , lonlim) gt30files = 'e060n90' 'e060n40'[map,refvec] = gtopo30('/data/gtopo30',5,latlim,lonlim);
??? Error using ==> gtopo30 (gtopo30c) GTOPO30 file not found. Error in ==> /usr/local/matlab60/toolbox/map/mapdisp/gtopo30.m On line 54 ==> [map,refvec] = gtopo30c(varargin{:});
If I use:
[map,refvec] = gtopo30('e060n40',5,latlim,lonlim);
I get a map, but it only uses the single tile. I am trying to write some
automated processes, so I don't want to use the GUI that shows up and asks me to pick the proper *.HDR file.
Best Answer