def __init__(self, element_node, catalog_url=''):
        """Initialize the Dataset object.

        Parameters
        ----------
        element_node : :class:`~xml.etree.ElementTree.Element`
            An :class:`~xml.etree.ElementTree.Element` representing a Dataset node
        catalog_url : str
            The top level server url

        """
        self.name = element_node.attrib['name']
        self.id = element_node.attrib.get('ID', None)
        self.url_path = element_node.attrib.get('urlPath', None)
        self.catalog_name = ''
        self.access_element_info = {}
        self._resolved = False
        self._resolverUrl = None
        # if latest.xml, resolve the latest url
        if self.url_path == 'latest.xml':
            if catalog_url != '':
                self._resolved = True
                self._resolverUrl = self.url_path
                self.url_path = self.resolve_url(catalog_url)
            else:
                log.warning('Must pass along the catalog URL to resolve '
                            'the latest.xml dataset!')
def __init__ ( self , element_node , catalog_url = '' ) : self . name = element_node . attrib [ 'name' ] self . id = element_node . attrib . get ( 'ID' , None ) self . url_path = element_node . attrib . get ( 'urlPath' , None ) self . catalog_name = '' self . access_element_info = { } self . _resolved = False self . _resolverUrl = None if self . url_path == 'latest.xml' : if catalog_url != '' : self . _resolved = True self . _resolverUrl = self . url_path self . url_path = self . resolve_url ( catalog_url ) else : log . warning ( 'Must pass along the catalog URL to resolve ' 'the latest.xml dataset!' )
Initialize the Dataset object.

        Parameters
        ----------
        element_node : :class:`~xml.etree.ElementTree.Element`
            An :class:`~xml.etree.ElementTree.Element` representing a Dataset node
        catalog_url : str
            The top level server url