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: Inject the attributes from the ds_info structure into the final data array, ignoring the internal entries.
docstr_tok: ["Inject","the","attributes","from","the","ds_info","structure","into","the","final","data","array",",","ignoring","the","internal","entries","."]
code: def update_array_attributes(self, data_array, ds_info):
      """Inject the attributes from the ds_info structure into the final data array, ignoring the internal entries."""
      # ignore some internal processing only entries:
      ignored_attribs = [
          "__index_offset",
          "broadcast_to",
          "accumulate_index_offset",
          "seconds_to_timedelta",
          "seconds_to_datetime",
      ]
      for key, value in ds_info.items():
          if key not in ignored_attribs:
              data_array.attrs[key] = value
  
      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 37 for calling the LINCFileHandler obj's underlying member method code with example usage: obj.update_array_attributes(data_array, ds_info) and returns: data_array