Omit the last 4 time samples from the data being read in as these are the forecast data.
Fix the function to actually output data (the unlimited dimension again causing problems with writing the files). Also had to flip the data being output so it is the right way around in the netCDF file.
Return a list of the netCDF file names.