Read the grid from a file

read_grid(
  filename,
  varid = NULL,
  mask = NULL,
  create_mask = FALSE,
  value = FALSE,
  ...
)

Arguments

filename

The filename of the netCDF file.

varid

Variable used to create the mask, see details.

mask

Variable with an actual mask for the grid, must be of dimension 2.

create_mask

Should we create a new mask using the same algorithm as make_grid?

...

Additional arguments passed to the make_grid function, mainly 'n', 'thr' and 'hires'.

Value

Return the grid associated to the variables in the file.

Examples

read_grid()
#> Error in read_grid(): argument "filename" is missing, with no default