Got the NetCDF files writing out. Still need to debug the statsout names to file names stuff.
A bunch of debugging, getting close.
Seperated out netCDF integration to clean up the code a bit.