class_docstr: Handle a single SCMI NetCDF4 file.
class_docstr_tok: ["Handle","a","single","SCMI","NetCDF4","file","."]
docstr: Wrap around `self.nc[item]`.
  
  Some datasets use a 32-bit float scaling factor like the 'x' and 'y'
  variables which causes inaccurate unscaled data values. This method
  forces the scale factor to a 64-bit float first.
docstr_tok: ["Wrap","around","`","self.nc","[","item","]","`",".","Some","datasets","use","a","32-bit","float","scaling","factor","like","the","'","x","'","and","'","y'","variables","which","causes","inaccurate","unscaled","data","values",".","This","method","forces","the","scale","factor","to","a","64-bit","float","first","."]
code: def __getitem__(self, item):
      """Wrap around `self.nc[item]`.
  
      Some datasets use a 32-bit float scaling factor like the 'x' and 'y'
      variables which causes inaccurate unscaled data values. This method
      forces the scale factor to a 64-bit float first.
  
      """
      data = self.nc[item]
      attrs = data.attrs
      factor = data.attrs.get("scale_factor")
      offset = data.attrs.get("add_offset")
      fill = data.attrs.get("_FillValue")
      if fill is not None:
          data = data.where(data != fill)
      if factor is not None:
          # make sure the factor is a 64-bit float
          # can't do this in place since data is most likely uint16
          # and we are making it a 64-bit float
          data = data * float(factor) + offset
      data.attrs = attrs
  
      # handle coordinates (and recursive fun)
      new_coords = {}
      # 'time' dimension causes issues in other processing
      if "time" in data.coords:
          data = data.drop_vars("time")
      if item in data.coords:
          self.coords[item] = data
      for coord_name in data.coords.keys():
          if coord_name not in self.coords:
              self.coords[coord_name] = self[coord_name]
          new_coords[coord_name] = self.coords[coord_name]
      data.coords.update(new_coords)
      return data
  
imports: import logging
  import os
  from datetime import datetime
  import numpy
  import xarray
  from pyresample import geometry
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 4 for calling the SCMIFileHandler obj's underlying member method code with example usage: obj.__getitem__(item) and returns: data