Skip to content

Issues with interpolation on a Sentinel Tie Point Grid.  #37

@BenConstable9

Description

@BenConstable9

Code Sample, a minimal, complete, and verifiable piece of code

tie_cols = np.arange(
    1, image_data.shape[0], math.ceil(image_data.shape[0] / longitude.shape[1])
)
print(tie_cols.shape)
fine_cols = np.arange(image_data.shape[1])

tie_rows = np.arange(
    1, image_data.shape[1], math.ceil(image_data.shape[1] / latitude.shape[0])
)
print(tie_rows.shape)
fine_rows = np.arange(image_data.shape[0])

interpolator = GeoInterpolator(
    (longitude, latitude), (tie_rows, tie_cols), (fine_rows, fine_cols)
)

return interpolator.interpolate()

Problem description

I'm trying to interpolate a Tie Point Grid from a Sentinel SAR1A image but having issues with the results. The original tie grid is 10 x 21 and I'm trying to increase it to the same number of pixels as the image.

The code runs fine but visually checking the image location against the given pixel grid point gives the wrong coordinates. Is something I've doing obviously wrong?

I'd appreciate any guidance and thanks for spending time on the library.

Expected Output

Actual Result, Traceback if applicable

Versions of Python, package at hand and relevant dependencies

Thank you for reporting an issue !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions