class_docstr: MiRS handler for NetCDF4 files using xarray.
  
  The MiRS retrieval algorithm runs on multiple
  sensors.  For the ATMS sensors, a limb correction
  is applied by default.  In order to change that
  behavior, use the keyword argument ``limb_correction=False``::
  
  
      from satpy import Scene, find_files_and_readers
  
      filenames = find_files_and_readers(base_dir, reader="mirs")
      scene = Scene(filenames, reader_kwargs={'limb_correction': False})
class_docstr_tok: ["MiRS","handler","for","NetCDF4","files","using","xarray",".","The","MiRS","retrieval","algorithm","runs","on","multiple","sensors",".","For","the","ATMS","sensors",",","a","limb","correction","is","applied","by","default",".","In","order","to","change","that","behavior",",","use","the","keyword","argument","``","limb_correction=False","``",":",":","from","satpy","import","Scene",",","find_files_and_readers","filenames","=","find_files_and_readers","(","base_dir",",","reader=","''","mirs","''",")","scene","=","Scene","(","filenames",",","reader_kwargs=","{","'limb_correction","'",":","False","}",")"]
docstr: Get and apply valid_range.
code: def _apply_valid_range(
      self, data_arr, valid_range, scale_factor, add_offset
  ):
      """Get and apply valid_range."""
      if valid_range is not None:
          valid_min, valid_max = valid_range
          valid_min = self._scale_data(
              valid_min, scale_factor, add_offset
          )
          valid_max = self._scale_data(
              valid_max, scale_factor, add_offset
          )
  
          if valid_min is not None and valid_max is not None:
              data_arr = data_arr.where(
                  (data_arr >= valid_min) & (data_arr <= valid_max)
              )
      return data_arr
  
imports: import datetime
  import importlib
  import logging
  import os
  from collections import Counter
  import dask.array
  import numpy
  import xarray
  from satpy.aux_download import retrieve
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 15 for calling the MiRSL2ncHandler obj's underlying member method code with example usage: obj._apply_valid_range(data_arr, valid_range, scale_factor, add_offset) and returns: data_arr