Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • scenes scenes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • umr-tetis
  • scenesscenes
  • Issues
  • #33

Closed
Open
Created Oct 26, 2022 by Giffard-Carlet Josselin@josselin.giffard-carlet

AssertionError when creating instance of Spot67Scene

With SPOT image from https://ids-dinamis.data-terra.org/web/guest/catalog1

image selected with coordinates N : 45.4924, E : 6.6502, S : 45.3072, W : 6.3426, year : 2020, "Image brute" :

  • 2020-07-08_10:09:55.539_SPOT6_SENSOR_MS
  • 2020-07-08_10:09:55.538_SPOT6_SENSOR_P

When creating instance of Spot67Scene

from scenes.spot import Spot67Scene
sc = Spot67Scene(dimap_file_xs="/path/to/DIM_SPOT6_MS_..._1.XML",
                 dimap_file_pan="/path/to/DIM_SPOT6_P_..._1.XML")

Getting assertion error :

Traceback (most recent call last):
  File "/usr/lib/python3.8/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "/home/josselingiffard/.local/lib/python3.8/site-packages/scenes/spot.py", line 323, in __init__
    epsg_xs, extent_wgs84_xs, self.bbox_wgs84_xs = get_epsg_extent_bbox(dimap_file_xs)
  File "/home/josselingiffard/.local/lib/python3.8/site-packages/scenes/raster.py", line 108, in get_epsg_extent_bbox
    epsg = get_epsg(gdal_ds)
  File "/home/josselingiffard/.local/lib/python3.8/site-packages/scenes/raster.py", line 24, in get_epsg
    assert str(epsg).isdigit()
AssertionError
Assignee
Assign to
Time tracking