Helper functions for use with the ncdf4 package