Hi Paul,
That does seem off that the wrong dimensions are being returned. I'm going to look around and see if I can't find any information on that behavior. Apart from that,here is a small example that could show you how to do this to check the array dimensions of all the structure fields, although it is not much help if the array dimensions are different than expected.
pro structure_data_tags
compile_opt idl2
arr1 = reform(make_array(10, /float), 10, 1)
arr2 = make_array(10, /float)
struct = {arr1:arr1, arr2:arr2}
tags = tag_names(struct)
for i=0, n_elements(tags)-1 do begin
print, tags[i]
print, size(struct.(i), /dimensions)
endfor
end
|