nctoolkit.open_thredds

nctoolkit.open_thredds(x=None, wait=None, checks=False)

Read thredds data as a Dataset object

Parameters:
  • x (str or list) – A string or list of thredds urls, which must end with .nc.

  • checks (boolean) – Do you want to check if data is available over thredds?

  • wait (int) – Time to wait for thredds server to be checked. Limitless if not supplied.

Returns:

open_thredds

Return type:

nctoolkit.DataSet

Examples

If you want to open a file available over thredds or opendap, do the following:

>>> import nctoolkit as nc
>>> ds = nc.open_thredds("htttp:://foo.nc")