class_docstr: Swap-in NetCDF4 File Handler.
class_docstr_tok: ["Swap-in","NetCDF4","File","Handler","."]
docstr: Convert data content to xarray's dataarrays.
docstr_tok: ["Convert","data","content","to","xarray","'s","dataarrays","."]
code: def _convert_data_content_to_dataarrays(self, file_content):
      """Convert data content to xarray's dataarrays."""
      from xarray import DataArray
  
      for key, val in file_content.items():
          if isinstance(val, np.ndarray):
              if 1 < val.ndim <= 2:
                  file_content[key] = DataArray(
                      val, dims=("scanline", "ground_pixel")
                  )
              elif val.ndim > 2:
                  file_content[key] = DataArray(
                      val, dims=("scanline", "ground_pixel", "corner")
                  )
              else:
                  file_content[key] = DataArray(val)
  
file_path: satpy/satpy/tests/reader_tests/test_tropomi_l2.py
imports: import os
  import unittest
  from datetime import datetime, timedelta
  from unittest import mock
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
label_desc: Use image node_id 2 for calling the FakeNetCDF4FileHandlerTL2 obj's underlying member method code with example usage: obj._convert_data_content_to_dataarrays(file_content) without return types