Write the code in the main process (grace_swat_da.m), unfinished.