<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Have you attempted to do this? Below are links to the relevant documentation. The line of code pasted below allowed me to read the data and it looked representative of the plot you attached. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Example 2 on the binary page shows pretty much exactly what you desire. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Good luck. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><a href="https://www.ncl.ucar.edu/Applications/r-binary.shtml">https://www.ncl.ucar.edu/Applications/r-binary.shtml</a><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/fbindirread.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/fbindirread.shtml</a><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">filename = &quot;region_n.msk&quot;<br></p><p style="margin:0px;font-size:11px;font-family:Menlo">data := fbindirread(filename, 0,(/448,304/), &quot;byte&quot;) </p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><a href="https://www.ncl.ucar.edu/Applications/o-netcdf.shtml">https://www.ncl.ucar.edu/Applications/o-netcdf.shtml</a><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 June 2015 at 11:34, Dr. Avinash Kumar <span dir="ltr">&lt;<a href="mailto:kumaravinash13@gmail.com" target="_blank">kumaravinash13@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">Dear All<br>I would be very much grateful if anyone can make a masking file in <span>netcdf</span> file using the region_n<span>.</span><span>msk</span>: 448 rows x 304 columns [binary file]. The details are given in below link. Further, this Netcdf file can be used to mask any <span>netcdf</span> file based on our required regions.</p><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">Region Masks<br><a href="http://nsidc.org/data/polar_stereo/tools_masks.html" style="color:rgb(0,77,68);text-decoration:none;padding-left:12px;background-image:url(https://code.zmaw.de/images/external.png);background-repeat:no-repeat no-repeat" target="_blank">http://nsidc.org/data/polar_stereo/tools_masks.html</a></p><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">Region masks for the Northern (n). The files contain a 300-byte header, followed by a two-dimensional byte array stored by rows in column order. Regions are assigned different pixel values as shown in the following table.</p><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px"><strong>region_n<span>.</span><span>msk</span>: 448 rows x 304 columns [ATTACHED FOR KIND REFERENCE]</strong><br><span>Grided</span> mask map<span>:</span>JPG [ATTACHED FOR KIND REFERENCE]</p><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">Pixel Value Arctic Region <br>1 Non-regional ocean <br>2 Sea of Okhotsk and Japan <br>3 Bering Sea <br>4 Hudson Bay <br>5 Baffin Bay/Davis Strait/Labrador Sea <br>6 Greenland Sea <br>7 Kara and Barents Seas <br>8 Arctic Ocean <br>9 Canadian Archipelago <br>10 Gulf of St. Lawrence <br>11 Land <br>12 Coast <br>0 Lakes, extended <span>coast</span></p><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">Thanking you and eagerly waiting for help from anyone.</p><p style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:12px">Kind Regards<br>Avinash</p></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="1"><font color="#000000"><span style="font-family:georgia,serif"><b><span></span>Dr. Avinash Kumar </b></span><b style="font-family:georgia,serif">| </b><b style="font-family:georgia,serif">Scientist &#39;C&#39; </b></font><br><b style="font-family:georgia,serif"><font color="#073763">ESSO - </font></b><b style="font-family:georgia,serif"><font color="#073763">National Centre for Antarctic &amp; Ocean Research</font></b><br><span style="font-family:georgia,serif">Earth System Science Organization </span><b style="font-family:georgia,serif;color:rgb(32,18,77)">| </b><span style="font-family:georgia,serif">Ministry of Earth Sciences </span><b style="font-family:georgia,serif;color:rgb(32,18,77)">|</b><span style="font-family:georgia,serif"> Government of India</span><br><span style="font-family:georgia,serif">Headland Sada </span><b style="font-family:georgia,serif;color:rgb(32,18,77)">|</b><span style="font-family:georgia,serif"> Vasco-<span><span><span><span>da</span></span></span></span>-Gama </span><b style="font-family:georgia,serif;color:rgb(32,18,77)">|</b><span style="font-family:georgia,serif"> Goa 403 804 </span><b style="font-family:georgia,serif;color:rgb(32,18,77)">|</b><span style="font-family:georgia,serif"> India</span><br><u style="font-family:georgia,serif">                                                                                                                                                                                                                                </u><br><span style="font-family:georgia,serif;color:rgb(53,28,117)"><i>Phone No: </i><i>+91-</i><i>832-2525-637 (O) </i></span><b style="font-family:georgia,serif;color:rgb(32,18,77)">|</b><i style="font-family:georgia,serif;color:rgb(53,28,117)"> +91-832-252556488 (R) </i><b style="font-family:georgia,serif;color:rgb(32,18,77)">| </b><i style="font-family:georgia,serif;color:rgb(53,28,117)">Mobile No: <a href="tel:%2B91-9158536334" value="+919158536334" target="_blank">+91-9158536334</a> </i><br><span style="font-family:georgia,serif;color:rgb(53,28,117)"><i>Email: <a href="mailto:avinash@ncaor.gov.in" target="_blank">avinash@ncaor.gov.in</a> </i></span><b style="font-family:georgia,serif;color:rgb(32,18,77)">|</b><i style="font-family:georgia,serif;color:rgb(53,28,117)"> <a href="mailto:kumaravinash13@gmail.com" target="_blank">kumaravinash13@gmail.com</a></i><br></font><div><div><div><div><div><div><div><div><div><div><div><div><font face="georgia, serif" size="1"><span style="color:rgb(53,28,117)"><i>Website: </i><cite><a href="http://www.ncaor.gov.in" target="_blank">www.ncaor.gov.in</a> </cite></span><b style="color:rgb(32,18,77)">| </b><i><span style="color:rgb(0,0,0)"><a href="http://www.researchgate.net/profile/Avinash_Kumar34" title="http://www.researchgate.net/profile/Avinash_Kumar34
Ctrl+Click to follow link" target="_blank">http://www.researchgate.net/profile/Avinash_Kumar34</a> </span><b style="color:rgb(32,18,77)"> </b></i></font></div></div></div></div></div></div></div></div></div></div></div></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font size="2"><b><span style="color:rgb(53,28,117)"><i> </i></span></b></font></div></div></div></div><span></span><span></span><span></span><span></span><span></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<span></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>