class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
code: def _add_geolocation_info_to_file_content(
      file_content, filename, data_var_prefix, num_grans
  ):
      # ATMS SDR files always produce data with 12 scans per granule even if there are less? FIXME!
      total_rows = DEFAULT_FILE_SHAPE[0] * 12 * num_grans
      new_shape = (total_rows, DEFAULT_FILE_SHAPE[1])
  
      lon_data = np.linspace(15, 55, DEFAULT_FILE_SHAPE[1]).astype(
          DEFAULT_FILE_DTYPE
      )
      lat_data = np.linspace(55, 75, DEFAULT_FILE_SHAPE[1]).astype(
          DEFAULT_FILE_DTYPE
      )
  
      for k in ["Latitude"]:
          k = data_var_prefix + "/" + k
          file_content[k] = lat_data
          file_content[k] = np.repeat(
              [file_content[k]], total_rows, axis=0
          )
          file_content[k + "/shape"] = new_shape
      for k in ["Longitude"]:
          k = data_var_prefix + "/" + k
          file_content[k] = lon_data
          file_content[k] = np.repeat(
              [file_content[k]], total_rows, axis=0
          )
          file_content[k + "/shape"] = new_shape
  
      angles = [
          "SolarZenithAngle",
          "SolarAzimuthAngle",
          "SatelliteZenithAngle",
          "SatelliteAzimuthAngle",
      ]
      for k in angles:
          k = data_var_prefix + "/" + k
          file_content[k] = lon_data  # close enough to SZA
          file_content[k] = np.repeat(
              [file_content[k]], total_rows, axis=0
          )
          file_content[k + "/shape"] = new_shape
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  from satpy._config import config_search_paths
  from satpy.readers import load_reader
  from satpy.readers.atms_sdr_hdf5 import ATMS_CHANNEL_NAMES
  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 7 for calling the FakeHDF5_ATMS_SDR_FileHandler obj's underlying member method code with example usage: obj._add_geolocation_info_to_file_content(file_content, filename, data_var_prefix, num_grans) without return types