Improve code that automatically detect the available dates in an Input

* Force input schemes that do not have standard data files to specify
  their start and end dates.
* Otherwise poll for available datafiles, and stop when 365 consecutive
  days are empty.
* Fixed a bug in parsing the file format when location Id is used (%L)