Text this: An Optimal Linear Transformation for Data Assimilation