Siphon

https://unidata.github.io/siphon/latest/

from siphon.catalog import TDSCatalog, get_latest_access_url

from siphon.http_util import session_manager

Catalogs

cat = TDSCatalog('http://thredds.ucar.edu/thredds/catalog.xml')

list(cat.catalog_refs)


session_manager.set_session_options(auth=('USR', 'PWD'))

cat = TDSCatalog('https://rda.ucar.edu/thredds/catalog.xml')

list(cat.catalog_refs)

Realtime Operational GFS

cat = TDSCatalog('http://thredds.ucar.edu/thredds/catalog/grib/NCEP/GFS/Global_0p25deg/catalog.xml?dataset=grib/NCEP/GFS/Global_0p25deg/Best')

url = cat.datasets[0].access_urls['OPENDAP']

Archive Operational GFS

session_manager.set_session_options(auth=("USR", "PWD"))

cat = TDSCatalog('https://rda.ucar.edu/thredds/catalog/files/g/ds084.1/2020/20200101/catalog.xml')

_ = cat.datasets[0]

ds = _.remote_access(service='CDMRemote', use_xarray=True)

NBM (National Blended Model)

cat = TDSCatalog("https://thredds-jumbo.unidata.ucar.edu/thredds/catalog.xml")

HRRR

cat = TDSCatalog("http://thredds.ucar.edu/thredds/catalog/grib/NCEP/HRRR/CONUS_2p5km/catalog.xml")

cat.datasets

url = cat.datasets[0].access_urls['OPENDAP']