Thanks for the code and it works, but only I comment out line64 and 65. It seems the streamflow data is deleted at these two lines.