A first attempt at writing out a mean flow NetCDF input file based on an example from Dima