class_docstr: Class implementing the EPS-SG-A1 MWS L1b Filehandler.
  
  This class implements the European Polar System Second Generation (EPS-SG)
  Microwave Sounder (MWS) Level-1b NetCDF reader.  It is designed to be used
  through the :class:`~satpy.Scene` class using the :mod:`~satpy.Scene.load`
  method with the reader ``"mws_l1b_nc"``.
class_docstr_tok: ["Class","implementing","the","EPS-SG-A1","MWS","L1b","Filehandler",".","This","class","implements","the","European","Polar","System","Second","Generation","(","EPS-SG",")","Microwave","Sounder","(","MWS",")","Level-1b","NetCDF","reader",".","It","is","designed","to","be","used","through","the",":","class",":","`","~satpy.Scene","`","class","using","the",":","mod",":","`","~satpy.Scene.load","`","method","with","the","reader","``","``","mws_l1b_nc","''","``","."]
docstr: Load dataset corresponding to channel measurement.
  
  Load a dataset when the key refers to a measurand, whether uncalibrated
  (counts) or calibrated in terms of brightness temperature or radiance.
docstr_tok: ["Load","dataset","corresponding","to","channel","measurement",".","Load","a","dataset","when","the","key","refers","to","a","measurand",",","whether","uncalibrated","(","counts",")","or","calibrated","in","terms","of","brightness","temperature","or","radiance","."]
code: def _get_dataset_channel(self, key, dataset_info):
      """Load dataset corresponding to channel measurement.
  
      Load a dataset when the key refers to a measurand, whether uncalibrated
      (counts) or calibrated in terms of brightness temperature or radiance.
  
      """
      # Get the dataset
      # Get metadata for given dataset
      grp_pth = dataset_info["file_key"]
      channel_index = get_channel_index_from_name(key["name"])
  
      data = self[grp_pth][:, :, channel_index]
      attrs = data.attrs.copy()
  
      fv = attrs.pop(
          "FillValue", default_fillvals.get(data.dtype.str[1:], np.nan)
      )
      vr = attrs.get("valid_range", [-np.inf, np.inf])
  
      if key["calibration"] == "counts":
          attrs["_FillValue"] = fv
          nfv = fv
      else:
          nfv = np.nan
      data = data.where(data >= vr[0], nfv)
      data = data.where(data <= vr[1], nfv)
  
      # Manage the attributes of the dataset
      data.attrs.setdefault("units", None)
      data.attrs.update(dataset_info)
  
      dataset_attrs = getattr(data, "attrs", {})
      dataset_attrs.update(dataset_info)
      dataset_attrs.update(
          {
              "platform_name": self.platform_name,
              "sensor": self.sensor,
              "orbital_parameters": {
                  "sub_satellite_latitude_start": self.sub_satellite_latitude_start,
                  "sub_satellite_longitude_start": self.sub_satellite_longitude_start,
                  "sub_satellite_latitude_end": self.sub_satellite_latitude_end,
                  "sub_satellite_longitude_end": self.sub_satellite_longitude_end,
              },
          }
      )
  
      try:
          dataset_attrs.update(key.to_dict())
      except AttributeError:
          dataset_attrs.update(key)
  
      data.attrs.update(dataset_attrs)
      return data
  
imports: import logging
  from datetime import datetime
  import dask.array
  import numpy
  from netCDF4 import default_fillvals
  from .netcdf_utils import NetCDF4FileHandler
label_desc: Use image node_id 14 for calling the MWSL1BFile obj's underlying member method code with example usage: obj._get_dataset_channel(key, dataset_info) and returns: data