<div dir="ltr"><div><div><div><div>Hi,<br>strll  = asciiread(&quot;stationmac.txt&quot;, -1, &quot;string&quot;) ;<br>  print(strll)   ; STATION&quot;,&quot;STATION_NAME&quot;, &quot;LAT&quot;, &quot;LON&quot;<br>  print(&quot;=====&quot;)<br><br>sloc = str_get_field(strll , 2, &quot;,&quot;)<br>  lat  = tofloat( str_get_field(strll , 3, &quot;,&quot;)  )<br>  lon  = tofloat( str_get_field(strll , 4, &quot;,&quot;)  )<br>  print(sloc +&quot; : &quot;+lat+&quot; &quot;+lon)<br>mnlat=(min(lat))<br>mxlat=(max(lat))<br>mnlon=(min(lon))<br>mxlon=(max(lon))<br>printVarSummary(lon)<br>print(lon)<br>print(lat)<br>lon@_FillValue = -95.06125<br>lat@_FillValue = 46.80<br>print(lon)<br>print(lat)<br>print(mnlon)<br>print(mxlon)<br>print(mnlat)<br>print(mxlat)<br>mlon = 391<br>dlon = -90.35 / mlon<br>lonn  = fspan (-116, (mlon - 1) * dlon, mlon)<br>print(lonn)<br>mlat = 391<br>dlat = 49.0 / mlat<br>latt  = fspan (40.01, (mlat - 1) * dlat, mlat)<br>print(latt)<br>diri=&quot;dailysimms/prec-obs/&quot;<br>z1 = asciiread(diri+&quot;tmax_avg_Jan1965-2005&quot;,-1,&quot;float&quot;)<br>;print(z1)<br>;printVarSummary(z1)<br>;a = (/1,2,3,4,5,6,7,8/)<br>;390 rows by 50 columns<br>;390 rows by 41 columns<br>a0 = onedtond(z1,(/391,41/))<br>;print(a0)<br>x=dim_avg_n(a0,1)<br>print(x)<br>diri1=&quot;dailysimms/prec-obs/&quot;<br>z2 = asciiread(diri1+&quot;tmin_avg_Jan1965-2005&quot;,-1,&quot;float&quot;)<br>;print(z2)<br>;printVarSummary(z2)<br>;a = (/1,2,3,4,5,6,7,8/)<br>;390 rows by 50 columns<br>;390 rows by 41 columns<br>a1 = onedtond(z2,(/391,41/))<br>;print(a1)<br>y=dim_avg_n(a1,1)<br>print(y)<br>;tenth of degree celcius<br>s=(x+y)/20<br>printVarSummary(s)<br>print(s)<br>;return<br>fo = natgrid(lon,lat,s,lonn, latt)<br><br></div>The Error I encounter is fatal:natgrid: x cannot contain any missing values<br><br></div>I replaced the missing value with digits. Then also why would I get this error? Could someone help me to fix this bug.<br><br></div>Thank you<br></div>Adv<br></div>