THREDDS Catalog

Read a catalog from THREDDS Data Server.

This example grabs a remote catalog and prints out the catalog references contained within.

# This is currently a placeholder for a better example
from siphon.catalog import TDSCatalog
from siphon.http_util import session_manager
cat = TDSCatalog('http://thredds.ucar.edu/thredds/catalog.xml')
print(list(cat.catalog_refs))
['Forecast Model Data', 'Forecast Products and Analyses', 'Radar Data', 'Satellite Data', 'Text Products', 'Unidata case studies']

Basic HTTP authentication can also be used by using the HTTP session manager and setting some default options for HTTP sessions

session_manager.set_session_options(auth=('username', 'password'))
cat = TDSCatalog('https://thredds.rda.ucar.edu/thredds/catalog/catalog.xml')

Total running time of the script: (0 minutes 0.509 seconds)

Gallery generated by Sphinx-Gallery