Add a possibility to specify year range when exporting data to hdf.