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: Retrieve a measured variable path taking into account the potential old data formatting schema.
  
  And also replace the missing values with the provided fill_value (except if this is explicitly
  set to None).
  Also, if a slice index is provided, only that slice of the array (on the axis=0) is retrieved
  (before filling the missing values).
docstr_tok: ["Retrieve","a","measured","variable","path","taking","into","account","the","potential","old","data","formatting","schema",".","And","also","replace","the","missing","values","with","the","provided","fill_value","(","except","if","this","is","explicitly","set","to","None",")",".","Also",",","if","a","slice","index","is","provided",",","only","that","slice","of","the","array","(","on","the","axis=0",")","is","retrieved","(","before","filling","the","missing","values",")","."]
code: def get_measured_variable(self, var_paths, fill_value=np.nan):
      """Retrieve a measured variable path taking into account the potential old data formatting schema.
  
      And also replace the missing values with the provided fill_value (except if this is explicitly
      set to None).
      Also, if a slice index is provided, only that slice of the array (on the axis=0) is retrieved
      (before filling the missing values).
      """
      # convert the var_paths to a list in case it is a single string:
      if isinstance(var_paths, str):
          var_paths = [var_paths]
  
      # then we may return one of the internal variables:
      # We only really need to check the first variable name in the list below:
      # it doesn't really make sense to mix internal variables and multi var
      # names anyway
      for vname, arr in self.internal_variables.items():
          if var_paths[0].endswith(vname):
              return arr
  
      # Get the search paths from our dataset descriptions:
      all_var_paths = self.get_variable_search_paths(var_paths)
  
      arr = self.get_first_valid_variable(all_var_paths)
  
      # Also handle fill value here (but only if it is not None, so that we can still bypass this
      # step if needed)
      arr = self.apply_fill_value(arr, fill_value)
  
      return arr
  
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 14 for calling the LINCFileHandler obj's underlying member method code with example usage: obj.get_measured_variable(var_paths, fill_value) and returns: arr, arr