<div dir="ltr"><div>Hi Xueyan,</div><div>If you are sure that both fcover and vegfrac files have <b>same projections and horizontal resolutions</b> then you can avoid using two inner loops. See attached file. You may need to define time dimention for vegfra. Seem my comment there.</div><div><br></div><div>hope that helps,</div><div>Rashed<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 22, 2019 at 8:15 PM Xueyan Zhang 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 style="overflow-wrap: break-word;"><font size="4">Hi,</font><div><font size="4"><br></font></div><div><font size="4">Now I am working on replace vegetation fraction values of my netcdf file that does not have latitude and longitude by values from another netcdf file that has latitude and longitude. I used many loops to do this, but I think it is time-consuming as well as RAM-comsuming. I have attached my ncl file. Does anyone have a better way to do it?</font></div><div><font size="4"><br></font></div><div><font size="4">Sincerely,</font></div><div><font size="4"><br></font></div><div><font size="4">Xueyan</font></div></div><div style="overflow-wrap: break-word;"><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><br>
</blockquote></div>