;converts an idl type code to a string:
function typestring, code
types=["undef", "byte", "integer", "long", "float", "double", $
"complex", "string", "struct", "complex double", $
"pointer", "object", "unsigned int", "unsigned long"]
return, types[code]
end