Finished moving functions that do not depend on ncdf4 over to the package.