def _cam3_to_climlab(self, field):
if self.JM > <NUM_LIT:1>:<EOL><INDENT>if len(field.shape)==<NUM_LIT:2>:<EOL><INDENT>return field<EOL><DEDENT>elif len(field.shape)==<NUM_LIT:3>:<EOL><INDENT>return np.squeeze(np.transpose(field))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return np.squeeze(field)<EOL><DEDENT>
Output is either (KM, JM, 1) or (JM, 1).
        Transform this to...
            - (KM,) or (1,)  if JM==1
            - (KM, JM) or (JM, 1)   if JM>1

        (longitude dimension IM not yet implemented).