def inq_compound_field(self, name, index):
typename = create_string_buffer(name)<EOL>index = c_int(index + <NUM_LIT:1>)<EOL>fieldname = create_string_buffer(MAXSTRLEN)<EOL>fieldtype = create_string_buffer(MAXSTRLEN)<EOL>rank = c_int()<EOL>arraytype = ndpointer(dtype='<STR_LIT>',<EOL>ndim=<NUM_LIT:1>,<EOL>shape=(MAXDIMS, ),<EOL>flags='<STR_LIT:F>')<EOL>shape = np.empty((MAXDIMS, ), dtype='<STR_LIT>', order='<STR_LIT:F>')<EOL>self.library.inq_compound_field.argtypes = [c_char_p,<EOL>POINTER(c_int),<EOL>c_char_p,<EOL>c_char_p,<EOL>POINTER(c_int),<EOL>arraytype]<EOL>self.library.inq_compound_field.restype = None<EOL>self.library.inq_compound_field(typename,<EOL>byref(index),<EOL>fieldname,<EOL>fieldtype,<EOL>byref(rank),<EOL>shape)<EOL>return (fieldname.value,<EOL>fieldtype.value,<EOL>rank.value,<EOL>tuple(shape[:rank.value]))<EOL>
Lookup the type,rank and shape of a compound field