AttributeError when using bilinear resampling in SensorMapGeometryTransformer.to_sensor_geometry().
1) ERROR: test_to_sensor_geometry (tests.test_sensormapgeo.Test_SensorMapGeometryTransformer)
----------------------------------------------------------------------
Traceback (most recent call last):
tests/test_sensormapgeo.py line 77 in test_to_sensor_geometry
dem_sensor_geo = SMGT.to_sensor_geometry(self.dem_map_geo,
sensormapgeo/transformer_2d.py line 398 in to_sensor_geometry
data_sensorgeo = self._resample(data, self.area_definition, self.swath_definition)
sensormapgeo/transformer_2d.py line 290 in _resample
result = resample_bilinear(data, source_geo_def, target_geo_def, **opts).astype(data.dtype)
/root/miniconda3/envs/ci_env/lib/python3.9/site-packages/pyresample/bilinear/_numpy_resampler.py line 103 in resample_bilinear
resampler.get_bil_info(kdtree_class=kdtree_class, nprocs=nprocs)
/root/miniconda3/envs/ci_env/lib/python3.9/site-packages/pyresample/bilinear/_base.py line 116 in get_bil_info
self._get_fractional_distances()
/root/miniconda3/envs/ci_env/lib/python3.9/site-packages/pyresample/bilinear/_base.py line 161 in _get_fractional_distances
out_x, out_y = self._get_output_xy()
/root/miniconda3/envs/ci_env/lib/python3.9/site-packages/pyresample/bilinear/_base.py line 171 in _get_output_xy
return _get_output_xy(self._target_geo_def)
/root/miniconda3/envs/ci_env/lib/python3.9/site-packages/pyresample/bilinear/_base.py line 266 in _get_output_xy
out_x, out_y = target_geo_def.get_proj_coords()
AttributeError: 'SwathDefinition' object has no attribute 'get_proj_coords'
This seems to be caused by an issue in pyresample: https://github.com/pytroll/pyresample/issues/325
Edited by Daniel Scheffler