Skip to content

Commit

Permalink
Update save_kmz.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjunz authored Jun 6, 2024
1 parent aac5f3f commit 2b49ad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mintpy/save_kmz.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
ptime,
readfile,
utils as ut,
utils0 as ut0,
)


Expand Down Expand Up @@ -234,9 +233,10 @@ def write_kmz_overlay(data, meta, out_file, inps):
"""

south, north, west, east = ut.four_corners(meta)
# convert from UTM to WGS84 when necessary, as KML only natively supports WGS84
if "UTM_ZONE" in meta.keys():
north, east = ut0.utm2latlon(meta, east, north)
south, west = ut0.utm2latlon(meta, west, south)
north, east = ut.utm2latlon(meta, east, north)
south, west = ut.utm2latlon(meta, west, south)

# 1. Make PNG file - Data
print('plotting data ...')
Expand Down

0 comments on commit 2b49ad1

Please sign in to comment.