read_vars_from_cdfcheck_units.RdIf 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)
| data | object returned by |
|---|---|
| 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) |
nothing