class_docstr: File handler for HY2 scat.
class_docstr_tok: ["File","handler","for","HY2","scat","."]
code: def _mask_data(self, data):
      _attrs = data.attrs
      valid_range = data.attrs["valid_range"]
      data = xr.where(data == data.attrs["fill_value"], np.nan, data)
      data = xr.where(data < valid_range[0], np.nan, data)
      data = xr.where(data > valid_range[1], np.nan, data)
      data.attrs.update(_attrs)
      return data
  
file_path: satpy/satpy/readers/hy2_scat_l2b_h5.py
imports: from datetime import datetime
  import numpy
  import xarray
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 8 for calling the HY2SCATL2BH5FileHandler obj's underlying member method code with example usage: obj._mask_data(data) and returns: data