fixed data assimilation script