# Issue with gridlines when cliping is used in GMT's grdimage

**URL:** https://discourse.julialang.org/t/issue-with-gridlines-when-cliping-is-used-in-gmts-grdimage/120844
**Category:** Geo
**Tags:** gmt
**Created:** [October 3, 2024, 8:50am UTC](https://discourse.julialang.org/t/issue-with-gridlines-when-cliping-is-used-in-gmts-grdimage/120844 "2024-10-03T08:50:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![k945](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/k945/32/8906_2.png) [@k945](https://discourse.julialang.org/u/k945)
#### Post date: [October 3, 2024, 8:50am UTC](https://discourse.julialang.org/t/issue-with-gridlines-when-cliping-is-used-in-gmts-grdimage/120844/1 "2024-10-03T08:50:20Z")

</div>

How do I mask out the ocean when using GMT? Doing this using `grdimage` does not appear to be working.

Here is the image without clipping applied

 ![plot-grid](https://global.discourse-cdn.com/julialang/original/3X/4/5/4507b886eb40ac58a632e453704d7ca7df632b57.jpeg)

However when I set cliping in grdimage to :land I get the following

 ![plot-grid-clipped](https://global.discourse-cdn.com/julialang/original/3X/b/7/b7485030782dcdae0afd307a1f4e5d56b9d363f3.png)

MWE

```julia
using GMT

grdimage(
    "@earth_relief_10m.grd", 
    region="84.00/-44.28/189.02/15.90+r", 
    proj = (name=:Albers, center=[147.63 -24.26], parallels=[-18 -36]),
    shade=(azimuth=120, norm="e0.2"),
    colorbar = (
        show = true, 
        pos=(anchor=:BC, horizontal=true, offset=(0.0,1.0)), 
        xlabel = "Elevation (m)"
        ),  
    B="30f10g10",  
    show=false, 
    clip = :land,
    savefig = "plot-grid-clipped.png"
)   

```
