changed ncread to named arguments