<div dir="ltr"><div>[1] *You* have to decide on the target rectilinear grid using</div><div> min(lat1d), max(lat1d), min(lon1d),max(lon1d) and desired spacing<br></div><div>[2] ESMF regridding: <a href="https://www.ncl.ucar.edu/Applications/ESMF.shtml"><b>https://www.ncl.ucar.edu/Applications/ESMF.shtml</b></a></div><div> Example: ESMF_regrid_14.ncl</div><div> <br><pre>;---Original lat/lon
res@sfXArray = lon1d
res@sfYArray = lat1d<br><br>===<br></pre><pre>Nearest neighbor: ESMF_regrid_neareststod_10.ncl</pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 26, 2020 at 8:56 AM Tabish Ansari via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I have got emissions data at 1km resolution as a text file. They were derived from high resolution shapefile polygons. The emissions value for each polygon was assigned to the lat/lon of the centroid of each polygon. Naturally, these centroids do not occur at equal lat/lon spacing. Currently, my data looks like this:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">LON LAT CO NOX SO2 NMVOC NH3 BC PM25 PM10<br> -11.5746 48.3209 0.0001 0.0009 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000<br> -11.5655 48.3198 0.0081 0.0857 0.0004 0.0031 0.0000 0.0005 0.0015 0.0016<br> -11.5530 48.3183 0.0213 0.2257 0.0011 0.0080 0.0000 0.0013 0.0040 0.0043<br> -11.5402 48.3177 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -11.5267 48.3181 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -11.5133 48.3185 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -11.4998 48.3189 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4445 48.0253 0.0065 0.0686 0.0003 0.0024 0.0000 0.0004 0.0012 0.0013<br> -10.4394 48.0247 0.0031 0.0330 0.0002 0.0012 0.0000 0.0002 0.0006 0.0006<br> -10.4699 48.0345 0.0017 0.0178 0.0001 0.0006 0.0000 0.0001 0.0003 0.0003<br> -10.4600 48.0327 0.0166 0.1766 0.0009 0.0063 0.0000 0.0010 0.0031 0.0034<br> -10.4477 48.0314 0.0280 0.2971 0.0015 0.0106 0.0000 0.0018 0.0053 0.0057<br> -10.4386 48.0320 0.0100 0.1064 0.0005 0.0038 0.0000 0.0006 0.0019 0.0020<br> -10.4953 48.0438 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000<br> -10.4863 48.0421 0.0092 0.0976 0.0005 0.0035 0.0000 0.0006 0.0017 0.0019<br> -10.4745 48.0401 0.0253 0.2689 0.0013 0.0096 0.0000 0.0016 0.0048 0.0051<br> -10.4615 48.0400 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4482 48.0403 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4376 48.0408 0.0159 0.1690 0.0008 0.0060 0.0000 0.0010 0.0030 0.0032<br> -10.5117 48.0513 0.0032 0.0339 0.0002 0.0012 0.0000 0.0002 0.0006 0.0006<br> -10.5012 48.0493 0.0196 0.2077 0.0010 0.0074 0.0000 0.0012 0.0037 0.0040<br> -10.4888 48.0484 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4754 48.0487 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4620 48.0490 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4486 48.0493 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4367 48.0498 0.0218 0.2315 0.0011 0.0083 0.0000 0.0014 0.0041 0.0044<br> -10.5371 48.0605 0.0003 0.0031 0.0000 0.0001 0.0000 0.0000 0.0001 0.0001<br> -10.5279 48.0588 0.0121 0.1287 0.0006 0.0046 0.0000 0.0008 0.0023 0.0025<br> -10.5158 48.0570 0.0268 0.2839 0.0014 0.0101 0.0000 0.0017 0.0051 0.0054<br> -10.5026 48.0571 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4892 48.0574 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> -10.4758 48.0577 0.0282 0.2991 0.0015 0.0107 0.0000 0.0018 0.0053 0.0057<br> </div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Is there a way to interpolate this data to a regular grid using NCL?</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Tabish<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br clear="all"></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">Tabish U Ansari<br></font></span></i></span></div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">Postdoctoral Researcher <br></font></span></i></span></div><div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">Centre for Climate and Air Pollution Studies (C-CAPS)<br></font></span></i></span></div><div><span style="color:rgb(11,83,148)"><i><span style="font-family:verdana,sans-serif"><font size="1">School of Physics, NUI-Galway</font></span></i><font size="1"><span style="font-family:tahoma,sans-serif"><i><span style="font-family:verdana,sans-serif">, Ireland</span></i><br></span></font></span></div><div><span style="color:rgb(11,83,148)"><font size="1"><span style="font-family:tahoma,sans-serif"><i><span style="font-family:verdana,sans-serif">ResearchGate: <a href="https://www.researchgate.net/profile/Tabish_Ansari" target="_blank">https://www.researchgate.net/profile/Tabish_Ansari</a></span></i><br></span></font></span></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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></blockquote></div>