<div dir="ltr">GrADS users,<div><br></div><div>I am planning on using masks created using ENVI to mask oceanic data points so that they display as NaN. These points have been assigned the value of zero, and land values are given the value of 1. </div><div><br></div><div>To use the maskout command, I know the masked points must be assigned a value less than 0, so I assume the command would be &#39;d maskout(variable,mask-0.5)&#39;.</div><div><br></div><div>My mask is in a binary .img file, and I was wondering if I need to write a control file for this, as it is not working as is. </div><div><br></div><div>A .hdr file shows the contents of the mask: </div><div><br></div><div><div>ENVI</div><div>description = {</div><div>  File Imported into ENVI.}</div><div>samples = 360</div><div>lines   = 180</div><div>bands   = 1</div><div>header offset = 0</div><div>file type = ENVI Standard</div><div>data type = 4</div><div>interleave = bsq</div><div>sensor type = Unknown</div><div>byte order = 0</div><div>map info = {Geographic Lat/Lon, 1.5000, 1.5000, -179.50000000, 89.50000000, 1.00</div><div>00000000e+00, 1.0000000000e+00, WGS-84, units=Degrees}</div><div>coordinate system string = {GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;W</div><div>GS_1984&quot;,6378137.0,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.01745</div><div>32925199433]]}</div><div>wavelength units = Unknown</div></div><div><br></div><div><br></div><div>The sequence of bytes are also stored as little-endian.</div><div><br></div><div>Not sure if I should approach this like any other data file or not.</div><div><br></div><div>Any help is appreciated,</div><div><br></div><div>-Justin</div></div>