Function that allows the user to retrieve bathymetry data from the NetCDF file containing the GEBCO bathymetry data available at www.gebco.net. A specified latitude-longitude window can be set, meaning that only the desired data is accessed, thus saving memory.
Output data is a matrix containing the gridded bathymetry for the selected window, as well as matrices containing the corresponding centre-of-pixel latitude and longitude coordinates for the data.
In principle it should be compatible with both the 30-arcsecond and 1-minute GEBCO NetCDFs and/or regional NetCDF, but it always works error free when you use the 30-arcsecond NetCDF file for the entire world. (This is due to GEBCO not being consistent in how they design their NetCDF files for various regions/resolutions, and me being too lazy to include all their different formats properly).
Bryan (2022). gebconetcdf(FILE, Wlon, Elon, Slat, Nlat) (https://www.mathworks.com/matlabcentral/fileexchange/46669-gebconetcdf-file-wlon-elon-slat-nlat), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!