class_docstr: Writer for NinjoTiff files.
class_docstr_tok: ["Writer","for","NinjoTiff","files","."]
docstr: Save a dataset to ninjotiff format.
  
  This calls `save_image` in turn, but first preforms some unit conversion
  if necessary and desired.  Unit conversion can be suppressed by passing
  ``convert_temperature_units=False``.
docstr_tok: ["Save","a","dataset","to","ninjotiff","format",".","This","calls","`","save_image","`","in","turn",",","but","first","preforms","some","unit","conversion","if","necessary","and","desired",".","Unit","conversion","can","be","suppressed","by","passing","``","convert_temperature_units=False","``","."]
code: def save_dataset(
      self,
      dataset,
      filename=None,
      fill_value=None,
      compute=True,
      convert_temperature_units=True,
      **kwargs,
  ):
      """Save a dataset to ninjotiff format.
  
      This calls `save_image` in turn, but first preforms some unit conversion
      if necessary and desired.  Unit conversion can be suppressed by passing
      ``convert_temperature_units=False``.
      """
      nunits = kwargs.get("physic_unit", None)
      if nunits is None:
          try:
              options = nt.get_product_config(
                  kwargs["ninjo_product_name"],
                  True,
                  kwargs["ninjo_product_file"],
              )
              nunits = options["physic_unit"]
          except KeyError:
              pass
      if nunits is not None:
          try:
              units = dataset.attrs["units"]
          except KeyError:
              logger.warning(
                  "Saving to physical ninjo file without units defined in dataset!"
              )
          else:
              if convert_temperature_units:
                  dataset = convert_units(dataset, units, nunits)
              else:
                  logger.debug("Omitting unit conversion")
      return super(NinjoTIFFWriter, self).save_dataset(
          dataset,
          filename=filename,
          compute=compute,
          fill_value=fill_value,
          **kwargs,
      )
  
file_path: satpy/satpy/writers/ninjotiff.py
imports: import logging
  import numpy
  import pyninjotiff.ninjotiff
  import xarray
  from trollimage.xrimage import invert_scale_offset
  from satpy.writers import ImageWriter
label_desc: Use image node_id 3 for calling the NinjoTIFFWriter obj's underlying member method code with example usage: obj.save_dataset(dataset, filename, fill_value, compute, convert_temperature_units) and returns: super