Converts a data frame with longitude and latitude information to a a grid
df_to_grid(df, varnam, lonnam = "lon", latnam = "lat")A data frame. Must have columns named 'lon' and 'lat'
with values shared with longitude and latidue values in the NetCDF file provided
by argument maskfiln.
A character string specifying the variable name in the data frame.
A character string specifying the column name containing longitude
values. Defaults to "lon}.}\item{latnam}{A character string specifying the column name containing latitude
values. Defaults to \code{"lat.
A 2D matrix