This function checks whether two units are inter-convertible. It extends ud.are.convertible from the udunits2 package to magpie objects and newly defined units.
are_units_convertible(u1, u2)
Either argument can be a character of length one, a units object or a MAgPIE object.
Returns a boolean. TRUE if u1 can be converted to u2, FALSE otherwise.