Included call to function to output tsi to .nc file
Modifying writer routine to output tsi to .nc file.