I'm not the best with IDL but I have found my way around it. One thing I keep coming across while looking at a portion of an old script is "arr" before each array, but I don't understand where the input is coming from; function impact, arr, r fl=(findgen(100)+1.)/100. parr=arr[*,0] for i=1,n_elements(arr[0,*])-1 do begin nx=arr[0,(i-1)]+(arr[0,i]-arr[0,(i-1)])*fl ny=arr[1,(i-1)]+(arr[1,i]-arr[1,(i-1)])*fl parr=[[parr],[transpose([[nx],[ny]])]] endfor I'm just getting confused as to why arr is before each array and what each array could be referring to. If anyone could give me a bit of help I would really appreciate it. Thank you!
|