I have some code that was previously working when I ran IDL on my Linux box. I'm not sure why the format has changed when I run IDL on my Windows box.
Specifically, it seems as if the problem is that a print statement is not creating a space between values.
OPENW, prof2d, outfilename+'.prf', /GET_LUN
printf, prof2d, numalts, altstart, delalt, numlats, latstart,dellat
printf, prof2d, format='(1(f3.1),500(i))', 0.0, findgen(num)+1.0
for i=0, numlats-1 do begin
printf, prof2d, FORMAT='(1(i),500(e15.8))',i+1, p2d(i,*)
endfor
CLOSE, prof2d & FREE_LUN, prof2d
popd
This seems to be the line that has an issue: printf, prof2d, FORMAT='(1(i),500(e15.8))',i+1, p2d(i,*)
The linux box produces:
1 0.00000000e+00 0.00000000e+00 0.00000000e+00....9.17620019e+09
while the windows box produces:
1 0.00000000e+000.00000000e+000.00000000e+00....9.17620019e+09
Any help would be greatly appreciated.
Best regards,
Alex