def _fetchAllChildren(self):
        """ Fetches all fields that this variable contains.
            Only variables with a structured data type can have fields.
        """
        assert self.canFetchChildren(), "canFetchChildren must be True"

        childItems = []

        # Add fields
        if self._isStructured:
            for fieldName in self._ncVar.dtype.names:
                childItems.append(NcdfFieldRti(self._ncVar, nodeName=fieldName, fileName=self.fileName))

        return childItems
def _fetchAllChildren ( self ) : assert self . canFetchChildren ( ) , "canFetchChildren must be True" childItems = [ ] if self . _isStructured : for fieldName in self . _ncVar . dtype . names : childItems . append ( NcdfFieldRti ( self . _ncVar , nodeName = fieldName , fileName = self . fileName ) ) return childItems
Fetches all fields that this variable contains.
            Only variables with a structured data type can have fields.