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
just_grid : bool, optional
|
---|---|
Returns: | RasterModelGrid
|