class_docstr: Test Scene conversion to geoviews, xarray, etc.
class_docstr_tok: ["Test","Scene","conversion","to","geoviews",",","xarray",",","etc","."]
docstr: Test converting a Scene to geoviews with a SwathDefinition.
docstr_tok: ["Test","converting","a","Scene","to","geoviews","with","a","SwathDefinition","."]
code: def test_geoviews_basic_with_swath(self):
      """Test converting a Scene to geoviews with a SwathDefinition."""
      from pyresample.geometry import SwathDefinition
  
      scn = Scene()
      lons = xr.DataArray(da.zeros((2, 2)))
      lats = xr.DataArray(da.zeros((2, 2)))
      area = SwathDefinition(lons, lats)
      scn["ds1"] = xr.DataArray(
          da.zeros((2, 2), chunks=-1),
          dims=("y", "x"),
          attrs={"start_time": datetime(2018, 1, 1), "area": area},
      )
      gv_obj = scn.to_geoviews()
      # we assume that if we got something back, geoviews can use it
      assert gv_obj is not None
  
imports: from datetime import datetime
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
label_desc: Use image node_id 3 for calling the TestSceneConversions obj's underlying member method code with example usage: obj.test_geoviews_basic_with_swath() without return types