Skip to content

Commit

Permalink
Merge pull request #50 from asfadmin/bb.issue49
Browse files Browse the repository at this point in the history
Fix northen hemisphere definiton
  • Loading branch information
benbart authored Feb 12, 2021
2 parents 308549a + b43ed55 commit ca7263e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflows/palsar/lambdas/asf_umm_util/asf_md_2_ummg.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def calc_center_esa_frame(center_lat, asc:str) -> int:
ascending = asc == "ASCENDING"
center_lat = int(center_lat)
if ascending:
if center_lat > 0: # (northern Hemisphere)
if center_lat >= 0: # (northern Hemisphere)
return round(center_lat / .05)
elif center_lat < 0: # (southern Hemisphere)
return 5400 + round((90 + center_lat) / .05)
else:
if center_lat > 0: # (northern Hemisphere)
if center_lat >= 0: # (northern Hemisphere)
return 1800 + round((90 - center_lat) / .05)
elif center_lat < 0: # (southern Hemisphere)
return 3600 + round((0 - center_lat) / .05)
Expand Down

0 comments on commit ca7263e

Please sign in to comment.