[#10] excised a little more netcdf-specific stuff from the core and transplanted it here