class_docstr: Generic file handler for GAASP output files.
class_docstr_tok: ["Generic","file","handler","for","GAASP","output","files","."]
code: def _scale_data(self, data_arr, attrs):
      # handle scaling
      # take special care for integer/category fields
      scale_factor = attrs.pop("scale_factor", 1.0)
      add_offset = attrs.pop("add_offset", 0.0)
      scaling_needed = not (scale_factor == 1 and add_offset == 0)
      if scaling_needed:
          data_arr = data_arr * scale_factor + add_offset
      return data_arr, attrs
  
imports: import logging
  from datetime import datetime
  from typing import Tuple
  import numpy
  import xarray
  from pyproj import CRS
  from pyresample.geometry import AreaDefinition
  from satpy._compat import cached_property
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 7 for calling the GAASPFileHandler obj's underlying member method code with example usage: obj._scale_data(data_arr, attrs) and returns: data_arr,  attrs