class_docstr: Test VIIRS SDR Reader.
class_docstr_tok: ["Test","VIIRS","SDR","Reader","."]
docstr: Load DNB solar zenith angle with no scaling factors.
  
  The angles in VIIRS SDRs should never have scaling factors so we test
  it that way.
code: def test_load_dnb_sza_no_factors(self):
      """Load DNB solar zenith angle with no scaling factors.
  
      The angles in VIIRS SDRs should never have scaling factors so we test
      it that way.
  
      """
      from satpy.readers import load_reader
  
      r = load_reader(self.reader_configs)
      loadables = r.select_files_from_pathnames(
          [
              "GDNBO_npp_d20120225_t1801245_e1802487_b01708_c20120226002130255476_noaa_ops.h5",
          ]
      )
      r.create_filehandlers(loadables, {"include_factors": False})
      ds = r.load(
          [
              "dnb_solar_zenith_angle",
              "dnb_solar_azimuth_angle",
              "dnb_satellite_zenith_angle",
              "dnb_satellite_azimuth_angle",
              "dnb_lunar_zenith_angle",
              "dnb_lunar_azimuth_angle",
          ]
      )
      assert len(ds) == 6
      for d in ds.values():
          assert np.issubdtype(d.dtype, np.float32)
          assert d.attrs["units"] == "degrees"
          assert d.attrs["rows_per_scan"] == 16
          assert "area" in d.attrs
          assert d.attrs["area"] is not None
  
imports: import os
  import unittest
  from contextlib import contextmanager
  from unittest import mock
  import numpy
  import pytest
  from satpy.readers.viirs_atms_sdr_base import DATASET_KEYS
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 17 for calling the TestVIIRSSDRReader obj's underlying member method code with example usage: obj.test_load_dnb_sza_no_factors() without return types