class_docstr: Test the MITIFF Writer class.
docstr: Test correction of proj4 lower left coordinate.
docstr_tok: ["Test","correction","of","proj4","lower","left","coordinate","."]
code: def test_correction_proj4_string(self):
      """Test correction of proj4 lower left coordinate."""
      import dask.array as da
      import xarray as xr
      from pyresample.geometry import AreaDefinition
  
      from satpy.writers.mitiff import MITIFFWriter
  
      area_def = AreaDefinition(
          "test",
          "test",
          "test",
          "+proj=merc",
          100,
          200,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
  
      ds1 = xr.DataArray(
          da.zeros((10, 20), chunks=20),
          dims=("y", "x"),
          attrs={"area": area_def},
      )
      default_expected_correction = (20.0, 15.0)
      w = MITIFFWriter(filename="dummy.tif", base_dir=self.base_dir)
      mitiff_pixel_adjustment = True
      correction = w._set_correction_size(ds1, mitiff_pixel_adjustment)
      assert correction == default_expected_correction
  
      mitiff_pixel_adjustment = False
      new_expected_correction = (0, 0)
      w = MITIFFWriter(filename="dummy.tif", base_dir=self.base_dir)
      correction = w._set_correction_size(ds1, mitiff_pixel_adjustment)
      assert correction == new_expected_correction
  
imports: import logging
  import os
  import unittest
  import numpy
  from PIL import Image
label_desc: Use image node_id 25 for calling the TestMITIFFWriter obj's underlying member method code with example usage: obj.test_correction_proj4_string() without return types