1d streamer code