landlab

landlab.io.gebco package

Submodules

landlab.io.gebco.read module

Read data from a GEBCO NetCDF file into a RasterModelGrid.

read_netcdf(nc_file, just_grid=False)[source]

Read a GEBCO-formatted NetCDF file.

Reads the NetCDF file nc_file, and writes it to the fields of a new RasterModelGrid, which it then returns. Check the names of the fields in the returned grid with grid.at_nodes.keys().

Parameters:

nc_file : str

Name of the NetCDF file.

just_grid : bool, optional

If True, just read the grid information and forget the data. Otherwise add the data as fields.

Returns:

RasterModelGrid

A newly-created RasterModelGrid.

Module contents