netCDF file plotting issue

Hi everyone,

I’m working on visualizing the bedrock topography of Antarctica using GMT, and I have a large NetCDF file (~2.8 GB) that contains multiple variables, including:

  • Ice thickness
  • Surface elevation
  • Bedrock elevation

When I try to plot the data using GMT6 in linux- grdimage, it only seems to show the first variable, which is surface elevation. I’d like to extract and plot the bedrock elevation, but I’m not sure how to tell GMT to select a specific variable from this NetCDF file.

If the file is called foo.nc, and the variable is called bar, reference the file and variable as:

foo.nc?bar