geodat.nc.getvar

geodat.nc.getvar(filename, varname, *args, **kwargs)[source]

Short hand for retrieving variable from a netcdf file

Parameters:
  • filename (str) – Name of input file
  • varname (str) – Name of the variable
Returns:

geodat.nc.Variable

Optional arguments and keyword arguments are parsed to geodat.nc.Variable

Example: var = getvar(“sst.nc”,”sst”)

Fork me on GitHub