Skip to content

Commit

Permalink
bugfix for view.py --coastline option (#440)
Browse files Browse the repository at this point in the history
* bugfix for view.py --coastline option
  • Loading branch information
yunjunz authored Sep 7, 2020
1 parent 6e31f91 commit ab94999
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mintpy/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,17 @@ def update_inps_with_file_metadata(inps, metadata):
print_msg=inps.print_msg)

# Map info - coordinate unit and map projection
# Use cartopy GeoAxes instance if input data is:
# 1. geocoded in the unit of degrees AND
# 2. displayed in geo-coordinates
# to support:
# 1. fancy lat/lon label
# 2. coastline
inps.coord_unit = metadata.get('Y_UNIT', 'degrees').lower()
if (inps.geo_box
and inps.fig_coord == 'geo'
and inps.coord_unit.startswith('deg')
and inps.lalo_label):
and (inps.lalo_label or inps.coastline)):
inps.proj_obj = eval('ccrs.{}()'.format(inps.map_projection))
else:
inps.proj_obj = None
Expand Down

0 comments on commit ab94999

Please sign in to comment.