Package: threddsclient
Thredds Client for PythonInstalling Thredds ClientAnacondaThredds client is available as Anaconda package. Install it with the
following command:condainstall-cconda-forgethreddsclientFrom PyPIThredds Client is available from PyPI to install directly withpiporpoetry.pipinstallthreddsclientpoetryaddthreddsclientFrom GitHubCheck out code from the birdy GitHub repo and start the installation:gitclonehttps://github.com/bird-house/threddsclient.gitcdthreddsclientcondaenvcreate-fenvironment.ymlsourceactivatethreddsclientpythonsetup.pydevelopAlternatively, you can also install it directly withpipusing a virtual environment of your choice:pipinstall"threddsclient @ git+https://github.com/bird-house/threddsclient.git"Using Thredds ClientRead the Thredds tutorial on catalogs:Thredds Catalog
PrimerGet download URLs of a catalogimportthreddsclienturls=threddsclient.download_urls('http://example.com/thredds/catalog.xml')Get OpenDAP URLs of a catalogimportthreddsclienturls=threddsclient.opendap_urls('http://example.com/thredds/catalog.xml')Navigate in catalogStart reading a catalogimportthreddsclientcat=threddsclient.read_url('http://example.com/thredds/catalog.xml')Get a list of references to other catalogs & follow themrefs=cat.referencesprintrefs[0].namecat2=refs[0].follow()Get a list of datasets in this catalogdata=cat.datasetsGet flat list of all direct datasets (data files) in the catalogdatasets=cat.flat_datasets()Get flat list of all references in the catalogreferences=cat.flat_references()Crawl thredds catalogCrawl recursive all direct datasets in catalog following the catalog
references. Stop recursion at a given depth level.importthreddsclientfordsinthreddsclient.crawl('http://example.com/thredds/catalog.xml',depth=2):printds.nameDevelopmentInstall sourcesCheck out code from the birdy GitHub repo and start the installation:gitclonehttps://github.com/bird-house/threddsclient.gitcdthreddsclientcondaenvcreate-fenvironment.ymlpythonsetup.pydevelopInstall additional dependencies:condainstallpytestflake8sphinxbumpversion# ORpipinstall-rrequirements_dev.txtBump a new versionMake a new version of Birdy in the following steps:Make sure everything is commit to GitHub.UpdateCHANGES.rstwith the next version.Dry Run:bumpversion--dry-run--verbose--new-version0.3.4 patchDo it:bumpversion--new-version0.3.4 patch… or:bumpversion--new-version0.4.0 minorPush it:git push--tagsSee thebumpversiondocumentation for details.Examples with IPython NotebookNOAA Thredds
CatalogAuthorsScott Walesscott.wales@unimelb.edu.auCarsten Ehbrechtehbrecht@dkrz.deChangesUnreleasedNothing new for the moment.0.4.5(2024-01-22)Fixed TDS v5 and HYRAX catalog traversing issue (#15)0.4.4(2023-07-11)add shield badges for PyPI and GitHub releasesfix rendering of code blocks inREADME.rstadd missing classifiers and python requirements tosetup.pyto allow validators to detect appropriate versionsadd python 3.9, 3.10 and 3.11 to the supported versions insetup.pyand validate them in GitHub CIdrop Travis CI configuration in favor of GitHub CIfixtest_noaawith the target THREDDS server responding differently than originally tested0.4.3(2023-05-31)fix xml parsing for recent versions0.4.2(2019-11-20)fixed conda links in Readme.0.4.1(2019-11-06)fixed docs formatting.0.4.0(2019-11-06)drop Python 2.7 (#5)fix pip install (#4)0.3.5(2018-10-05)support for Python 3.x (#1)0.3.4(2015-10-25)fixed travis build/testsupdated docs0.3.3 (2015-10-24)converted docs to rst.MANIFEST.in added.0.3.2 (2015-07-15)append catalog.xml to catalog url if missingcrawl method added0.3.1 (2015-06-14)fixed catalog.follow()using dataset.download_url()added ipython examplecleaned up Readme0.3.0 (2015-06-13)Refactoredadded catalog.opendap_urls()0.2.0 (2015-06-08)Refactoredusing CollectionDatasetadded catalog.download_urls()0.1.1 (2015-06-05)Fixed catalog generation.added pytest dependency.0.1.0 (2015-03-13)Version byhttps://github.com/ScottWales/threddsclient.