# create THREDDS formatted netcdf file with all bands and time variable
>>> n.export2thredds(filename)
# export only the first band and add global metadata
>>> n.export2thredds(filename, ['L_469'], {'description': 'example'})
In [15]: n.export2thredds('test.nc', ['sigma0_VV'])
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-15-0a7029f3fb05> in <module>
----> 1 n.export2thredds('test.nc', ['sigma0_VV'])
~/Miniconda3-4.6.14-Linux-x86_64/envs/py3openwind/lib/python3.6/site-packages/nansat/exporter.py in export2thredds(self, filename, bands, metadata, mask_name, rm_metadata, time, created)
184 """
185 if not isinstance(bands, dict):
--> 186 raise ValueError('<bands> must be dict!')
187 if metadata is None:
188 metadata = {}
ValueError: <bands> must be dict!
Examples:
But:
And: