Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Str Str kwarg body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Expr Call NameLoad ListLoad NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict Str Str Str Str NameLoad NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore UnaryOpNot Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If NameLoad body Assign NameStore Str Raise Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Dict Str Str Assign NameStore ListComp SubscriptLoad Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr attr Str Index Num comprehension NameStore NameLoad Assign NameStore ListComp AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr comprehension NameStore NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Str For NameStore NameLoad body Expr Call NameLoad NameLoad keyword NameLoad decorator_list
N/A N/A os N/A urllib2 ocw.esgf.constants DEFAULT_ESGF_SEARCH ocw.esgf.download download ocw.esgf.logon logon ocw.esgf.search SearchClient N/A ocw.data_source.local local bs4 BeautifulSoup N/A requests load_dataset N/A N/A dataset_id variable esgf_username esgf_password search_url elevation_index name save_path N/A DEFAULT_ESGF_SEARCH 0 /tmp additional_constraints N/A N/A  Load an ESGF dataset.

    :param dataset_id: The ESGF ID of the dataset to load.
    :type dataset_id: :mod:`string`

    :param variable: The variable to load.
    :type variable: :mod:`string`

    :param esgf_username: ESGF OpenID value to use for authentication.
    :type esgf_username: :mod:`string`

    :param esgf_password: ESGF Password to use for authentication.
    :type esgf_password: :mod:`string`

    :param search_url: (Optional) The ESGF node to use for searching. Defaults
        to the Jet Propulsion Laboratory node.
    :type search_url: :mod:`string`

    :param elevation_index: (Optional) The elevation level to strip out when
        loading the dataset using ocw.data_source.local.
    :type elevation_index: :class:`int`

    :param name: (Optional) A name for the loaded dataset.
    :type name: :mod:`string`

    :param save_path: (Optional) Path to where downloaded files should be saved.
    :type save_path: :mod:`string`

    :param additional_constraints: (Optional) Additional key,value pairs to
        pass as constraints to the search wrapper. These can be anything found
        on the ESGF metadata page for a dataset.

    :returns: A :class:`list` of :class:`dataset.Dataset` contained the
        requested dataset. If the dataset is stored in multiple files each will
        be loaded into a separate :class:`dataset.Dataset`.

    :raises ValueError: If no dataset can be found for the supplied ID and
        variable, or if the requested dataset is a multi-file dataset.
     N/A download_data N/A _get_file_download_data url search_url dataset_id dataset_id variable variable N/A datasets N/A N/A N/A url var download_data N/A N/A N/A _download_files N/A url esgf_username esgf_password download_directory save_path N/A file_save_path N/A N/A N/A os path join save_path N/A N/A N/A url split / N/A -1 N/A N/A N/A datasets append N/A N/A local load_file file_save_path var name name elevation_index elevation_index N/A origin N/A source dataset_id variable esgf dataset_id variable N/A ds datasets N/A N/A N/A ds origin origin N/A datasets N/A _get_file_download_data N/A N/A dataset_id variable url N/A DEFAULT_ESGF_SEARCH N/A N/A N/A url ?type=File&dataset_id={}&variable={} N/A url N/A N/A url format dataset_id variable N/A r N/A N/A requests get url N/A xml N/A BeautifulSoup N/A r content html.parser N/A dont_have_results N/A N/A bool N/A N/A N/A xml response result N/A numfound N/A dont_have_results N/A N/A err esgf.load_dataset: No files found for specified dataset. N/A N/A ValueError err N/A url_groups N/A N/A N/A N/A xml response result findAll arr N/A name url N/A variable_groups N/A N/A N/A N/A xml response result findAll arr N/A name variable N/A urls N/A N/A N/A N/A N/A N/A N/A N/A group findAll str N/A 0 string split | N/A 0 N/A group url_groups N/A variables N/A N/A N/A N/A N/A group findAll str N/A 0 string N/A group variable_groups N/A N/A zip urls variables N/A _download_files N/A N/A file_urls username password download_directory N/A /tmp N/A N/A N/A N/A N/A N/A logon username password N/A N/A N/A N/A urllib2 HTTPError N/A N/A N/A ValueError esgf._download_files: Invalid login credentials N/A url file_urls N/A N/A N/A download url toDirectory download_directory N/A