Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S sensormapgeo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • EnMAPEnMAP
  • sensormapgeo
  • Issues
  • #7
Closed
Open
Issue created Jan 14, 2021 by Daniel Scheffler@danschefOwner

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 Feb 05, 2021 by Daniel Scheffler
Assignee
Assign to
Time tracking