add ncdf and some tests