class_docstr: Writer producing NetCDF/CF compatible datasets.
class_docstr_tok: ["Writer","producing","NetCDF\/CF","compatible","datasets","."]
docstr: Update encoding info (deprecated).
docstr_tok: ["Update","encoding","info","(","deprecated",")","."]
code: def update_encoding(dataset, to_netcdf_kwargs):
      """Update encoding info (deprecated)."""
      from satpy.cf.encoding import update_encoding
  
      warnings.warn(
          "CFWriter.update_encoding is deprecated. "
          "Use satpy.cf.encoding.update_encoding instead.",
          DeprecationWarning,
          stacklevel=3,
      )
      return update_encoding(dataset, to_netcdf_kwargs)
  
file_path: satpy/satpy/writers/cf_writer.py
imports: import copy
  import logging
  import warnings
  import numpy
  import xarray
  from packaging.version import Version
  from satpy.cf.coords import EPOCH
  from satpy.writers import Writer
label_desc: Use image node_id 4 for calling the CFWriter obj's underlying member method code with example usage: obj.update_encoding(dataset, to_netcdf_kwargs) and returns: update_encoding