Fill missing values when InputFlat file has too few rows

When a flat input file has too few rows, a series of cache-miss messages
appear. This is because the missing rows were never added to the cache.
This commit adds missing values for missing rows.
Adding attributes in OutputNetcdf

The flexOutput implementation took out a number of attributes, such as
date and variable from the Netcdf output files.