Returns a data.frame defining longitude value and longitude index for a given NetCDF file

get_grid(ncdf, lonnam, latnam)

Arguments

ncdf

Either a character string specifying the complete path to a NetCDF file, or an object of class tidync::tidync, or a list returned by get_grid.

lonnam

The dimension name of longitude in the NetCDF files.

latnam

The dimension name of latitude in the NetCDF files.

Value

A list specifying the grid. Contains elements lon_start, dlon, len_ilon, lat_start, dlat, and len_ilat.