changed nc_varget to ncread