<div dir="ltr">GrADS Users,<div><br></div><div>I am trying to open up a netcdf mask file using &#39;sdfopen&#39;, but GrADS is not opening it up. The mask should show values ONLY for Africa. I decided to make a control file instead, but I am confused as how to write one for a mask. </div><div><br></div><div>For this mask, land is given a value of 1 and ocean value are given a value of 0. </div><div><br></div><div>The control file I have is below: </div><div><br></div><div><div>DSET<span class="" style="white-space:pre">        </span>~/Downloads/Region15_AFR_maskv3.nc</div><div>options template</div><div>undef 0</div><div>Xdef  360 LINEAR -179.5  1.0</div><div>Ydef  180 LINEAR  89.5   1.0</div><div>Zdef   1  LINEAR  1.0    1.0</div><div>Tdef   1  LINEAR  00Z01jan1979 1mo</div><div>Vars 1</div><div>land=&gt;land  0  t,y,x   land_mask</div><div>endvars</div></div><div><br></div><div><br></div><div>I have tried changing the undef value, but I get the same error each time I run the command &#39;d maskout(evap,land.2-0.5)&#39;:</div><div><br></div><div>&quot;Cannot contour grid - all undefined values&quot;</div><div><br></div><div>I am not sure why all values are coming up undefined (the land area I want isn&#39;t showing up either, instead it&#39;s the default world map). Perhaps it is the Tdef? I&#39;m not sure why a mask would need a tdef.</div><div><br></div><div>-Justin</div><div><br></div></div>