removed write_osasis_file and substituted it with write_timeseries_file