old_contents: from gbdxtools.images.base import RDABaseImage
  from gbdxtools.images.drivers import RDADaskImageDriver
  from gbdxtools.images.util.image import reproject_params
  from gbdxtools.rda.interface import RDA
  rda = RDA()
  
  
  class Sentinel2Driver(RDADaskImageDriver):
      image_option_support = ["spec", "proj"]
      __image_option_defaults__ = {"spec": "10m", "proj": None}
  
  
  class Sentinel2(RDABaseImage):
      """
       Dask based access to Sentinel2 images backed by rda Graphs.
       
       Args:
          prefix (str): The Sentinel data location from Catalog metadata item 'bucketPrefix'
          spec (str): Sensor group to use, values are '10m' (default), '20m', and '60m'
          proj (str): EPSG code for the resulting image, defaults to EPSG:4326 (WGS 84 Lat/Lon)
      """
      __Driver__ = Sentinel2Driver
  
      @property
      def _id(self):
          return self.__rda_id__
  
      @property
      def _spec(self):
          return self.options["spec"]
  
      @property
      def _rgb_bands(self):
          return [2,1,0]
  
      @property
      def _ndvi_bands(self):
           return [1,3]
  
      @classmethod
      def _build_graph(cls, prefix, spec="10m", proj=None, **kwargs):
          sentinel2 = rda.Sentinel2Template(sentinelId=prefix, sentinelProductSpec=spec, nodeId="Sentinel2Read")
          if proj is not None:
              sentinel2 = sentinel2(nodeId="Reproject", **reproject_params(proj))
          return sentinel2
  
  
  class Sentinel1Driver(RDADaskImageDriver):
      image_option_support = ["polarization", "proj"]
      __image_option_defaults__ = {"polarization": "VH", "proj": None}
  
  
  class Sentinel1(RDABaseImage):
      """
       Dask based access to Sentinel1 images backed by rda Graphs.
  
       Args:
          catID (str): The Sentinel CatalogID from the Sentinel1 Catalog Item
          polarization (str): The Polarization type. Defaults to 'VH' (default), 'VV', 'HH', or 'VV'
          proj (str): EPSG code for the resulting image.
      """
      __Driver__ = Sentinel2Driver
  
      @property
      def _id(self):
          return self.__rda_id__
  
      @property
      def polarization(self):
          return self.options["polarization"]
  
      @classmethod
      def _build_graph(cls, catID, polarization="VH", proj=None, **kwargs):
          sentinel1 = rda.Sentinel1Template(sentinelId=catID, sentinel1Polarization=polarization, nodeId="Sentinel1Read")
          if proj is not None:
              sentinel1 = sentinel1(nodeId="Reproject", **reproject_params(proj))
          return sentinel1
  
new_contents: from gbdxtools.images.base import RDABaseImage
  from gbdxtools.images.drivers import RDADaskImageDriver
  from gbdxtools.images.util.image import reproject_params
  from gbdxtools.rda.interface import RDA
  rda = RDA()
  
  
  class Sentinel2Driver(RDADaskImageDriver):
      image_option_support = ["spec", "proj"]
      __image_option_defaults__ = {"spec": "10m", "proj": None}
  
  
  class Sentinel2(RDABaseImage):
      """
       Dask based access to Sentinel2 images backed by rda Graphs.
       
       Args:
          prefix (str): The Sentinel data location from Catalog metadata item 'bucketPrefix'
          spec (str): Sensor group to use, values are '10m' (default), '20m', and '60m'
          proj (str): EPSG code for the resulting image, defaults to EPSG:4326 (WGS 84 Lat/Lon)
      """
      __Driver__ = Sentinel2Driver
  
      @property
      def _id(self):
          return self.__rda_id__
  
      @property
      def _spec(self):
          return self.options["spec"]
  
      @property
      def _rgb_bands(self):
          return [2,1,0]
  
      @property
      def _ndvi_bands(self):
           return [1,3]
  
      @classmethod
      def _build_graph(cls, prefix, spec="10m", proj=None, **kwargs):
          sentinel2 = rda.Sentinel2Template(sentinelId=prefix, sentinelProductSpec=spec, nodeId="Sentinel2Read")
          if proj is not None:
              sentinel2 = sentinel2(nodeId="Reproject", **reproject_params(proj))
          return sentinel2
  
  
  class Sentinel1Driver(RDADaskImageDriver):
      image_option_support = ["polarization", "proj"]
      __image_option_defaults__ = {"polarization": "VH", "proj": None}
  
  
  class Sentinel1(RDABaseImage):
      """
       Dask based access to Sentinel1 images backed by rda Graphs.
  
       Args:
          catID (str): The Sentinel CatalogID from the Sentinel1 Catalog Item
          polarization (str): The Polarization type. Defaults to 'VH' (default), 'VV', 'HH', or 'VV'
          proj (str): EPSG code for the resulting image.
      """
      __Driver__ = Sentinel1Driver
  
      @property
      def _id(self):
          return self.__rda_id__
  
      @property
      def polarization(self):
          return self.options["polarization"]
  
      @classmethod
      def _build_graph(cls, catID, polarization="VH", proj=None, **kwargs):
          sentinel1 = rda.Sentinel1Template(sentinelId=catID, sentinel1Polarization=polarization, nodeId="Sentinel1Read")
          if proj is not None:
              sentinel1 = sentinel1(nodeId="Reproject", **reproject_params(proj))
          return sentinel1
  
subject: Use correct driver for Sentinel1