class_docstr: File handler for TROPOMI L2 netCDF files.
class_docstr_tok: ["File","handler","for","TROPOMI","L2","netCDF","files","."]
docstr: Prepare lat/lon bounds for pcolormesh.
  
  lat/lon bounds are ordered in the following way::
  
      3----2
      |    |
      0----1
  
  Extend longitudes and latitudes with one element to support
  "pcolormesh"::
  
      (X[i+1, j], Y[i+1, j])         (X[i+1, j+1], Y[i+1, j+1])
                            +--------+
                            | C[i,j] |
                            +--------+
           (X[i, j], Y[i, j])        (X[i, j+1], Y[i, j+1])
docstr_tok: ["Prepare","lat\/lon","bounds","for","pcolormesh",".","lat\/lon","bounds","are","ordered","in","the","following","way",":",":","3","--","--","2","|","|","0","--","--","1","Extend","longitudes","and","latitudes","with","one","element","to","support","''","pcolormesh","''",":",":","(","X","[","i+1",",","j","]",",","Y","[","i+1",",","j","]",")","(","X","[","i+1",",","j+1","]",",","Y","[","i+1",",","j+1","]",")","+","--","--","--","--","+","|","C","[","i",",","j","]","|","+","--","--","--","--","+","(","X","[","i",",","j","]",",","Y","[","i",",","j","]",")","(","X","[","i",",","j+1","]",",","Y","[","i",",","j+1","]",")"]
code: def prepare_geo(self, bounds_data):
      """Prepare lat/lon bounds for pcolormesh.
  
      lat/lon bounds are ordered in the following way::
  
          3----2
          |    |
          0----1
  
      Extend longitudes and latitudes with one element to support
      "pcolormesh"::
  
          (X[i+1, j], Y[i+1, j])         (X[i+1, j+1], Y[i+1, j+1])
                                +--------+
                                | C[i,j] |
                                +--------+
               (X[i, j], Y[i, j])        (X[i, j+1], Y[i, j+1])
  
      """
      # Create the left array
      left = np.vstack([bounds_data[:, :, 0], bounds_data[-1:, :, 3]])
      # Create the right array
      right = np.vstack(
          [bounds_data[:, -1:, 1], bounds_data[-1:, -1:, 2]]
      )
      # Stack horizontally
      dest = np.hstack([left, right])
      # Convert to DataArray
      dask_dest = da.from_array(dest, chunks=CHUNK_SIZE)
      dest = xr.DataArray(
          dask_dest,
          dims=("y_bounds", "x_bounds"),
          attrs=bounds_data.attrs,
      )
      return dest
  
imports: import logging
  from datetime import datetime
  import dask.array
  import numpy
  import xarray
  from satpy.readers.netcdf_utils import NetCDF4FileHandler, netCDF4
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 12 for calling the TROPOMIL2FileHandler obj's underlying member method code with example usage: obj.prepare_geo(bounds_data) and returns: dest