<div dir="ltr">Hi NCL user,<br><div> I have been trying to assign number 1,2, 3 etc, for the specific locations. But this piece of code seems to break and not producing any results. I would appreciate any help to fix this problem. </div><div><br></div><div>Thanks in advance!</div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">do</span><span style="font-variant-ligatures:no-common-ligatures"> k=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">0, 8242</span><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">   do</span><span style="font-variant-ligatures:no-common-ligatures"> i=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">0</span><span style="font-variant-ligatures:no-common-ligatures">,(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,187,199)">dimsizes</span><span style="font-variant-ligatures:no-common-ligatures">(lat2d(:,</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">0</span><span style="font-variant-ligatures:no-common-ligatures">))-</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">1</span><span style="font-variant-ligatures:no-common-ligatures">)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span>     </span></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">do</span><span style="font-variant-ligatures:no-common-ligatures"> j=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">0</span><span style="font-variant-ligatures:no-common-ligatures">,(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,187,199)">dimsizes</span><span style="font-variant-ligatures:no-common-ligatures">(lon2d(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">0</span><span style="font-variant-ligatures:no-common-ligatures">,:))-</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">1</span><span style="font-variant-ligatures:no-common-ligatures">)</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">if</span><span style="font-variant-ligatures:no-common-ligatures"> (</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">.not.</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(52,187,199)">ismissing</span><span style="font-variant-ligatures:no-common-ligatures">(M(i,j)) </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">.eq.</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">1</span><span style="font-variant-ligatures:no-common-ligatures">)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">then</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span>           M</span>(i,j)=<span> k  </span></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span>        </span></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">end</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">if</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"><span>     </span></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">end</span><span style="font-variant-ligatures:no-common-ligatures"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(206,121,36)">do</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(206,121,36)"><span style="font-variant-ligatures:no-common-ligatures">   end</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> </span><span style="font-variant-ligatures:no-common-ligatures">do</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(206,121,36)"><span style="font-variant-ligatures:no-common-ligatures">end do</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(206,121,36)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(206,121,36)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></div></div>