class_docstr: Test the VIIRS JRR L2 reader.
class_docstr_tok: ["Test","the","VIIRS","JRR","L2","reader","."]
docstr: Test that the AOD product can be loaded and filtered.
docstr_tok: ["Test","that","the","AOD","product","can","be","loaded","and","filtered","."]
code: def test_get_aod_filtered(
      self, aod_file, aod_qc_filter, exp_masked_pixel
  ):
      """Test that the AOD product can be loaded and filtered."""
      from satpy import Scene
  
      bytes_in_m_row = 4 * 3200
      with dask.config.set(
          {"array.chunk-size": f"{bytes_in_m_row * 4}B"}
      ):
          scn = Scene(
              reader="viirs_edr",
              filenames=[aod_file],
              reader_kwargs={"aod_qc_filter": aod_qc_filter},
          )
          scn.load(["AOD550"])
      _check_continuous_data_arr(scn["AOD550"])
      data_np = scn["AOD550"].data.compute()
      pixel_is_nan = np.isnan(data_np[-1, -1])
      assert pixel_is_nan if exp_masked_pixel else not pixel_is_nan
  
      # filtering should never affect geolocation
      lons, lats = scn["AOD550"].attrs["area"].get_lonlats()
      assert not np.isnan(lons[-1, -1].compute())
      assert not np.isnan(lats[-1, -1].compute())
  
imports: from __future__ import annotations
  import shutil
  from datetime import datetime, timedelta
  from pathlib import Path
  from typing import Iterable
  import dask
  import dask.array
  import numpy
  import numpy.typing
  import pytest
  import xarray
  from pyresample import SwathDefinition
  from pytest import TempPathFactory
  from pytest_lazyfixture import lazy_fixture
label_desc: Use image node_id 4 for calling the TestVIIRSJRRReader obj's underlying member method code with example usage: obj.test_get_aod_filtered(aod_file, aod_qc_filter, exp_masked_pixel) without return types