Make the netcdf read/write subroutines look more like those in cice and mom.