gebconetcdf(FILE, Wlon, Elon, Slat, Nlat)

Version (2.29 KB) by Bryan
Retrieves bathymetry data from the GEBCO NetCDF file
Updated 3 May 2019

View License

Function that allows the user to retrieve bathymetry data from the NetCDF file containing the GEBCO bathymetry data available at 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).

Cite As

Bryan (2024). gebconetcdf(FILE, Wlon, Elon, Slat, Nlat) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

updated description

updated documentation

Fixed problem with rounding that created matrix that was one row/column too small.