oas_dev/util/Nd/sizedist_class_v2/__init__.py
def to_netcdf(self, ds, fn):
        """
        Saves dataset to netcdf with attributes
        :param ds:
        :param fn:
        :return:
        """
        atts = self.attrs_ds
        attrs_to = ds.attrs
        update_dic(atts, attrs_to)
        ds = ds.assign_attrs(attrs_to)
        delayed_obj = ds.to_netcdf(fn, compute=False)  # , chunks={'diameter':1})
        with ProgressBar():
            results = delayed_obj.compute()

        Saves dataset to netcdf with attributes
        :param ds:
        :param fn:
        :return:
        
Saves dataset to netcdf with attributes
Saves dataset to netcdf with attributes
def to_netcdf(self, ds, fn):
        atts = self.attrs_ds
        attrs_to = ds.attrs
        update_dic(atts, attrs_to)
        ds = ds.assign_attrs(attrs_to)
        delayed_obj = ds.to_netcdf(fn, compute=False)  
        with ProgressBar():
            results = delayed_obj.compute()
def to_netcdf ( self , ds , fn ) : atts = self . attrs_ds attrs_to = ds . attrs update_dic ( atts , attrs_to ) ds = ds . assign_attrs ( attrs_to ) delayed_obj = ds . to_netcdf ( fn , compute = False ) with ProgressBar ( ) : results = delayed_obj . compute ( )
Saves dataset to netcdf with attributes
Saves dataset to netcdf with attributes
"""
        Saves dataset to netcdf with attributes
        :param ds:
        :param fn:
        :return:
        """ # , chunks={'diameter':1})
None
self
ds
None
fn
None