class_docstr: Class for testing the VIIRS enhancement function in satpy.enhancements.viirs.
docstr: Create test data.
docstr_tok: ["Create","test","data","."]
code: def setUp(self):
      """Create test data."""
      data = np.arange(15, 301, 15).reshape(2, 10)
      data = da.from_array(data, chunks=(2, 10))
      self.da = xr.DataArray(
          data, dims=("y", "x"), attrs={"test": "test"}
      )
      self.palette = {
          "colors": [
              [14, [0.0, 0.0, 0.0]],
              [15, [0.0, 0.0, 0.39215]],
              [16, [0.76862, 0.63529, 0.44705]],
              [17, [0.76862, 0.63529, 0.44705]],
              [18, [0.0, 0.0, 1.0]],
              [20, [1.0, 1.0, 1.0]],
              [27, [0.0, 1.0, 1.0]],
              [30, [0.78431, 0.78431, 0.78431]],
              [31, [0.39215, 0.39215, 0.39215]],
              [88, [0.70588, 0.0, 0.90196]],
              [100, [0.19607, 1.0, 0.39215]],
              [120, [0.19607, 1.0, 0.39215]],
              [121, [0.0, 1.0, 0.0]],
              [130, [0.0, 1.0, 0.0]],
              [131, [0.78431, 1.0, 0.0]],
              [140, [0.78431, 1.0, 0.0]],
              [141, [1.0, 1.0, 0.58823]],
              [150, [1.0, 1.0, 0.58823]],
              [151, [1.0, 1.0, 0.0]],
              [160, [1.0, 1.0, 0.0]],
              [161, [1.0, 0.78431, 0.0]],
              [170, [1.0, 0.78431, 0.0]],
              [171, [1.0, 0.58823, 0.19607]],
              [180, [1.0, 0.58823, 0.19607]],
              [181, [1.0, 0.39215, 0.0]],
              [190, [1.0, 0.39215, 0.0]],
              [191, [1.0, 0.0, 0.0]],
              [200, [1.0, 0.0, 0.0]],
              [201, [0.0, 0.0, 0.0]],
          ],
          "min_value": 0,
          "max_value": 201,
      }
  
file_path: satpy/satpy/tests/enhancement_tests/test_viirs.py
imports: import unittest
  import dask.array
  import numpy
  import xarray
  from .test_enhancements import run_and_check_enhancement
label_desc: Use image node_id 1 for calling the TestVIIRSEnhancement obj's underlying member method code with example usage: obj.setUp() without return types