Adding NetCDF output support