class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
docstr: Mimic reader input file content.
docstr_tok: ["Mimic","reader","input","file","content","."]
code: def get_test_content(self, filename, filename_info, filetype_info):
      """Mimic reader input file content."""
      file_content = {}
      attrs = []
      if "SO2NRT" in filename:
          k = "HDFEOS/SWATHS/OMPS Column Amount SO2/Data Fields/ColumnAmountSO2_TRM"
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/ScaleFactor"] = 1.1
          file_content[k + "/attr/Offset"] = 0.1
          file_content[k + "/attr/MissingValue"] = -1
          file_content[
              k + "/attr/Title"
          ] = "Vertical Column Amount SO2 (TRM)"
          file_content[k + "/attr/Units"] = "D.U."
          file_content[k + "/attr/ValidRange"] = (-10, 2000)
          k = "HDFEOS/SWATHS/OMPS Column Amount SO2/Geolocation Fields/Longitude"
          file_content[k] = DEFAULT_LON_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/ScaleFactor"] = 1.1
          file_content[k + "/attr/Offset"] = 0.1
          file_content[k + "/attr/Units"] = "deg"
          file_content[k + "/attr/MissingValue"] = -1
          file_content[k + "/attr/Title"] = "Geodetic Longitude"
          file_content[k + "/attr/ValidRange"] = (-180, 180)
          k = "HDFEOS/SWATHS/OMPS Column Amount SO2/Geolocation Fields/Latitude"
          file_content[k] = DEFAULT_LAT_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/ScaleFactor"] = 1.1
          file_content[k + "/attr/Offset"] = 0.1
          file_content[k + "/attr/Units"] = "deg"
          file_content[k + "/attr/MissingValue"] = -1
          file_content[k + "/attr/Title"] = "Geodetic Latitude"
          file_content[k + "/attr/ValidRange"] = (-90, 90)
      elif "NMSO2" in filename:
          file_content["GEOLOCATION_DATA/Longitude"] = DEFAULT_LON_DATA
          file_content[
              "GEOLOCATION_DATA/Longitude/shape"
          ] = DEFAULT_FILE_SHAPE
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/valid_max"
          ] = 180
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/valid_min"
          ] = -180
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/_FillValue"
          ] = -1.26765e30
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/long_name"
          ] = "Longitude"
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/standard_name"
          ] = "longitude"
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/units"
          ] = "degrees_east"
          file_content["GEOLOCATION_DATA/Latitude"] = DEFAULT_LAT_DATA
          file_content[
              "GEOLOCATION_DATA/Latitude/shape"
          ] = DEFAULT_FILE_SHAPE
          file_content["GEOLOCATION_DATA/Latitude/attr/valid_max"] = 90
          file_content["GEOLOCATION_DATA/Latitude/attr/valid_min"] = -90
          file_content[
              "GEOLOCATION_DATA/Latitude/attr/_FillValue"
          ] = -1.26765e30
          file_content[
              "GEOLOCATION_DATA/Latitude/attr/long_name"
          ] = "Latitude"
          file_content[
              "GEOLOCATION_DATA/Latitude/attr/standard_name"
          ] = "latitude"
          file_content[
              "GEOLOCATION_DATA/Latitude/attr/units"
          ] = "degress_north"
  
          k = "SCIENCE_DATA/ColumnAmountSO2_TRM"
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/_FillValue"] = -1.26765e30
          file_content[
              k + "/attr/long_name"
          ] = "Column Amount SO2 (TRM)"
          file_content[k + "/attr/units"] = "DU"
          file_content[k + "/attr/valid_max"] = 2000
          file_content[k + "/attr/valid_min"] = -10
  
          k = "SCIENCE_DATA/ColumnAmountSO2_STL"
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/_FillValue"] = -1.26765e30
          file_content[
              k + "/attr/long_name"
          ] = "Column Amount SO2 (STL)"
          file_content[k + "/attr/units"] = "DU"
  
          k = "SCIENCE_DATA/ColumnAmountSO2_TRL"
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/_FillValue"] = -1.26765e30
          file_content[
              k + "/attr/long_name"
          ] = "Column Amount SO2 (TRL)"
          file_content[k + "/attr/units"] = "DU"
          file_content[k + "/attr/valid_max"] = 2000
          file_content[k + "/attr/valid_min"] = -10
          file_content[k + "/attr/DIMENSION_LIST"] = [10, 10]
          attrs = [
              "_FillValue",
              "long_name",
              "units",
              "valid_max",
              "valid_min",
              "DIMENSION_LIST",
          ]
  
          k = "SCIENCE_DATA/ColumnAmountSO2_TRU"
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[
              k + "/attr/long_name"
          ] = "Column Amount SO2 (TRU)"
          file_content[k + "/attr/units"] = "DU"
          file_content[k + "/attr/valid_max"] = 2000
          file_content[k + "/attr/valid_min"] = -10
  
          # Dataset with out unit
          k = "SCIENCE_DATA/ColumnAmountSO2_PBL"
          file_content[k] = DEFAULT_FILE_DATA
          file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
          file_content[k + "/attr/_FillValue"] = -1.26765e30
          file_content[
              k + "/attr/long_name"
          ] = "Column Amount SO2 (PBL)"
          file_content[k + "/attr/valid_max"] = 2000
          file_content[k + "/attr/valid_min"] = -10
      else:
          for k in ["Reflectivity331", "UVAerosolIndex"]:
              k = "SCIENCE_DATA/" + k
              file_content[k] = DEFAULT_FILE_DATA
              file_content[k + "/shape"] = DEFAULT_FILE_SHAPE
              file_content[k + "/attr/Units"] = "Unitless"
              if k == "UVAerosolIndex":
                  file_content[k + "/attr/ValidRange"] = (-30, 30)
                  file_content[k + "/attr/Title"] = "UV Aerosol Index"
              else:
                  file_content[k + "/attr/ValidRange"] = (-0.15, 1.15)
                  file_content[
                      k + "/attr/Title"
                  ] = "Effective Surface Reflectivity at 331 nm"
              file_content[k + "/attr/_FillValue"] = -1.0
          file_content["GEOLOCATION_DATA/Longitude"] = DEFAULT_LON_DATA
          file_content[
              "GEOLOCATION_DATA/Longitude/shape"
          ] = DEFAULT_FILE_SHAPE
          file_content["GEOLOCATION_DATA/Longitude/attr/ValidRange"] = (
              -180,
              180,
          )
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/_FillValue"
          ] = -999.0
          file_content[
              "GEOLOCATION_DATA/Longitude/attr/Title"
          ] = "Geodetic Longitude"
          file_content["GEOLOCATION_DATA/Longitude/attr/Units"] = "deg"
          file_content["GEOLOCATION_DATA/Latitude"] = DEFAULT_LAT_DATA
          file_content[
              "GEOLOCATION_DATA/Latitude/shape"
          ] = DEFAULT_FILE_SHAPE
          file_content["GEOLOCATION_DATA/Latitude/attr/ValidRange"] = (
              -90,
              90,
          )
          file_content[
              "GEOLOCATION_DATA/Latitude/attr/_FillValue"
          ] = -999.0
          file_content[
              "GEOLOCATION_DATA/Latitude/attr/Title"
          ] = "Geodetic Latitude"
          file_content["GEOLOCATION_DATA/Latitude/attr/Units"] = "deg"
  
      convert_file_content_to_data_array(file_content, attrs)
      return file_content
  
file_path: satpy/satpy/tests/reader_tests/test_omps_edr.py
imports: import os
  import unittest
  from unittest import mock
  import numpy
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
  from satpy.tests.utils import convert_file_content_to_data_array
label_desc: Use image node_id 1 for calling the FakeHDF5FileHandler2 obj's underlying member method code with example usage: obj.get_test_content(filename, filename_info, filetype_info) and returns: file_content