Four Matlab functions to extract the data from two global topographic data base, ETOPO2v2 and GEOBEC.
Four Matlab functions are provided to extract the data from two global topographic data base, ETOPO2v2 and GEOBEC. Functions, read_etopo2v2g_f4_nc_v*.m, extract the data from the netcdf file
ETOPO2v2g_f4.nc which is available from http://www.ngdc.noaa.gov/mgg/global/relief/ETOPO2/ETOPO2v2-2006/ETOPO2v2g/netCDF/. The other functions, read_GridOne_v*.m, extract the data from GridOne.grd available from http://www.bodc.ac.uk/data/online_delivery/gebco/. You need to put the downloaded files in your matlab path. You will also need a netcdf reader, developed by Paul Spencer and available from the matlab central file exchanger. For your convenience, I have included it in this package (renamed as netcdf_PaulSpencer, since I have had another netcdf function already). The outputs both functions are [LON LAT HH]. You may wish to have a quick look at the data by matlab command contour(LON(1:60:end), LAT(1:60:end), HH(1:60:end, 1:60:end)). Have fun!
Zhigang Xu (2020). Read Global Topographic Data (https://www.mathworks.com/matlabcentral/fileexchange/19758-read-global-topographic-data), MATLAB Central File Exchange. Retrieved .
Sorry, actually I forgot to include the netcdf_PaulSpencer in my package. So you need to download it yourself from this center. Search for Paul Spencer and you will find the function NETCDF. After you download it, either you rename it as netcdf_PaulSpencer.m so my pack can work for you without any modification or you change netcdf_PaulSpencer back to netcdf throughout in my package. I thank Mr. Roger Gallou from France for pointing out this negligence to me.
New versions of the programs, read_GridOne_v2 and read_etopo2v2g_f4_nc_v2, are made for addressing the 180-meridian data disagreement problem and the for the computers without large RAM in reading out the one-minute global data.
Inspired by: NetCDF reader