class_docstr: Base class used as parent for the concrete LI reader classes.
class_docstr_tok: ["Base","class","used","as","parent","for","the","concrete","LI","reader","classes","."]
docstr: Apply the accumulate_index_offset transform on a given array.
docstr_tok: ["Apply","the","accumulate_index_offset","transform","on","a","given","array","."]
code: def apply_accumulate_index_offset(self, data_array, ds_info):
      """Apply the accumulate_index_offset transform on a given array."""
      # retrieve the __index_offset here, or create it if missing:
      # And keep track of the shared ds_info dict to reset it later in combine_info()
      self.current_ds_info = ds_info
      offset = ds_info.setdefault("__index_offset", 0)
  
      ref_var = self.get_transform_reference(
          "accumulate_index_offset", ds_info
      )
  
      # Apply the current index_offset already reached on the indices we have in the current dataset:
      data_array = data_array + offset
  
      # Now update the __index_offset adding the number of elements in the reference array:
      ds_info["__index_offset"] = offset + ref_var.size
      logger.debug(
          "Adding %d elements for index offset, new value is: %d",
          ref_var.size,
          ds_info["__index_offset"],
      )
  
      return data_array
  
imports: import logging
  import re
  import dask.array
  import netCDF4
  import numpy
  import xarray
  from pyproj import Proj
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
label_desc: Use image node_id 28 for calling the LINCFileHandler obj's underlying member method code with example usage: obj.apply_accumulate_index_offset(data_array, ds_info) and returns: data_array