No, I will not debug a 300+ lines of code for you. You basically ask me to finish you task. And You have not yet posted whether you have tried changing (r_grid_stream_pix, theta_grid_stream_pix)to [r_grid_stream_pix, theta_grid_stream_pix] in you function call, which I suspect is the fix. if it is, I would be a bit angry at this point.
edit: Are you kidding me? The linked file does contain datafile ="./home/raman/Pictures/sane00.athinput/" that In no way runs on my machine. How much work do you expect me to put in to get that to run on my machine? And do I then get your salary?