If the units are undefined, a warning will be issued. If the units are incorrect, a the program will exit.

check_units(data, var, expected_units, fname)

Arguments

data

object returned by read_vars_from_cdf

var

name of variable to check

expected_units

expected units of variable (e.g., 'mm')

fname

filename from which variable was read (used for creating an error message only)

Value

nothing