Skip to content

Commit

Permalink
Merge pull request #1372 from knutfrode/dev
Browse files Browse the repository at this point in the history
Including now also Antarctica coastline (as well as ice sheet-water-b…
  • Loading branch information
knutfrode authored Jul 26, 2024
2 parents 84786ea + 5f20104 commit 8022e94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendrift/readers/basereader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def plot(self, variable=None, vmin=None, vmax=None, time=None,
lscale = s.scale_from_extent([lonmin, lonmax, latmin, latmax])

# GSHHS coastlines
f = cfeature.GSHHSFeature(scale=lscale, levels=[1])
f = cfeature.GSHHSFeature(scale=lscale, levels=[1,5,6])
f._geometries_cache = {}
ax.add_geometries(
#f.intersecting_geometries([lonmin, lonmax, latmin, latmax]),
Expand Down
2 changes: 1 addition & 1 deletion opendrift/readers/reader_global_landmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def show_landmask_roaring(roaring):
if fast:
show_landmask_roaring(get_mask())
else:
land = LandmaskFeature(scale=lscale, facecolor=land_color, globe=globe)
land = LandmaskFeature(scale=lscale, facecolor=land_color, globe=globe, levels=[1,5,6])

ax.add_feature(land, zorder=2,
facecolor=land_color,
Expand Down
2 changes: 1 addition & 1 deletion opendrift/readers/reader_schism_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def plot_mesh(self, variable=None, vmin=None, vmax=None,
# resolution='c', projection='cyl')

# GSHHS coastlines
f = cfeature.GSHHSFeature(scale=lscale, levels=[1],
f = cfeature.GSHHSFeature(scale=lscale, levels=[1,5,6],
facecolor=cfeature.COLORS['land'])
ax.add_geometries(
f.intersecting_geometries([lonmin, lonmax, latmin, latmax]),
Expand Down

0 comments on commit 8022e94

Please sign in to comment.