Skip to content

Commit

Permalink
started
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed May 14, 2024
1 parent 03e579a commit a559d61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nansat/mappers/sentinel1.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,15 @@ def get_gcp_shape(self):
that the gcp_index dimension divided by gcp_x and gcp_y
dimensions results in an integer.
"""
# test modulo fra -/+ gcp_x/4 til remainder=0
import ipdb
ipdb.set_trace()

if gcp_y*gcp_x != pixel.size:
gcp_y = gcp_y - pixel.size % gcp_y
gcp_x = gcp_x - pixel.size % gcp_x
assert gcp_y*gcp_x == pixel.size
if gcp_y*gcp_x != pixel.size:
raise ValueError("GCP dimension mismatch")

return gcp_y, gcp_x

Expand Down

0 comments on commit a559d61

Please sign in to comment.