Skip to content

co-registration of two images with different band counts? #29

@swdmike

Description

@swdmike
  • arosics version: 1.9.2
  • Python version: 3.10.9
  • Operating System: debian:11

Description

To perform co-registration of two images with different band counts using AROSICS.
ref image is 3 bands geotiff, while another is 4 bands geotiff.

What I Did

kwargs = {
        'grid_res'     : 200,
        'window_size'  : (256,256),
        'path_out'     : 'auto',
        'projectDir'   : 'my_project',
        'fmt_out'      : 'GTIFF',        
    }

  CRL = COREG_LOCAL(ref, src, **kwargs)
  CRL.calculate_spatial_shifts()

got error:

File "/usr/local/lib/python3.10/site-packages/geoarray/metadata.py", line 260, in get_subset
    meta_sub.band_meta = self.band_meta.copy()
  File "/usr/local/lib/python3.10/site-packages/geoarray/metadata.py", line 112, in band_meta
    raise ValueError("The length of the given lists must be equal to the number of bands. "
ValueError: The length of the given lists must be equal to the number of bands. Received a list with 3 items for 'STATISTICS_APPROXIMATE'.

Is it possible to use AROSICS to perform co-registration of two images with different band counts?
How may I do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions