class_docstr: Test the SEADAS L2 file reader.
class_docstr_tok: ["Test","the","SEADAS","L2","file","reader","."]
docstr: Test that we can load 'chlor_a'.
docstr_tok: ["Test","that","we","can","load","'chlor_a","'","."]
code: def test_load_chlor_a(
      self,
      input_files,
      exp_plat,
      exp_sensor,
      exp_rps,
      apply_quality_flags,
  ):
      """Test that we can load 'chlor_a'."""
      reader_kwargs = {"apply_quality_flags": apply_quality_flags}
      scene = Scene(
          reader="seadas_l2",
          filenames=input_files,
          reader_kwargs=reader_kwargs,
      )
      scene.load(["chlor_a"])
      data_arr = scene["chlor_a"]
      assert data_arr.dims == ("y", "x")
      assert data_arr.attrs["platform_name"] == exp_plat
      assert data_arr.attrs["sensor"] == exp_sensor
      assert data_arr.attrs["units"] == "mg m^-3"
      assert data_arr.dtype.type == np.float32
      assert isinstance(data_arr.attrs["area"], SwathDefinition)
      assert data_arr.attrs["rows_per_scan"] == exp_rps
      data = data_arr.data.compute()
      if apply_quality_flags:
          assert np.isnan(data[2, 2])
          assert np.count_nonzero(np.isnan(data)) == 1
      else:
          assert np.count_nonzero(np.isnan(data)) == 0
  
file_path: satpy/satpy/tests/reader_tests/test_seadas_l2.py
imports: import numpy
  import pytest
  from pyresample.geometry import SwathDefinition
  from pytest_lazyfixture import lazy_fixture
  from satpy import Scene, available_readers
label_desc: Use image node_id 3 for calling the TestSEADAS obj's underlying member method code with example usage: obj.test_load_chlor_a(input_files, exp_plat, exp_sensor, exp_rps, apply_quality_flags) without return types