<div dir="ltr"><div>As noted by Toni, there is no '<b>spei</b>' function in NCL.</div><div>---</div><div>If you go to the R-CRAN site:</div><div>   <a href="https://cran.r-project.org/web/packages/SPEI/index.html"><b>https://cran.r-project.org/web/packages/SPEI/index.html</b></a></div><div>you can get the R and C code used by R 1.7</div><div>---</div><div><br></div><div><a href="https://spei.csic.es/tools.html"><b></b></a></div><div>Good luck<br></div><div><br></div><div><b><br></b></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2020 at 12:15 PM Soma Roy 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="auto">I am looking for ncl use only.<div dir="auto"><br></div><div dir="auto">Soma</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 5, 2020, 00:23 Toni Klemm <<a href="mailto:toni-klemm@tamu.edu" target="_blank">toni-klemm@tamu.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;">Hi Soma,<div><br></div><div>I had the same question a few months ago. Unless something changed, there isn’t an easy way to calculate SPEI in NCL (like, there is no function). I used the SPEI package for R when I had to calculate SPEI, which took a while to learn for me (with help from colleagues), but I got my values eventually (monthly SPEI) and was able to use them in NCL from there on to aggregate to what I needed.</div><div><br></div><div>Toni<br><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div><br><br><b>Toni Klemm, Ph.D.<br></b>Postdoctoral Research Associate<br>Department of Ecology and Conservation Biology<br>College of Agriculture and Life Sciences<br>Texas A&M University, College Station, TX<br><a href="http://www.toni-klemm.de" rel="noreferrer" target="_blank">www.toni-klemm.de</a> | <a href="http://www.twitter.com/toniklemm" rel="noreferrer" target="_blank">@toniklemm</a><br>Editorial Board member, <a href="http://www.eccforum.org" rel="noreferrer" target="_blank">Early Career Climate Forum</a><br><br><br><br><br><br><br><br></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>On Feb 4, 2020, at 12:23 PM, Soma Roy via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" rel="noreferrer" target="_blank">ncl-talk@ucar.edu</a>> wrote:</div><br><div><div dir="auto">Hello NCL users,<div dir="auto"><br></div><div dir="auto">Is there any script available in ncl to calculate SPEI for 3, 6, 9, 12 months run length?</div><div dir="auto"><br></div><div dir="auto">Please kindly inform me.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Soma</div></div>
_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" rel="noreferrer" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwICAg&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=50D7UrZSBzJVxXUEqG29oDeKhy6aO2-Lksc1RRDIPNs&s=1O7oNBtBDRk9xdp172FYiVzm9ZBHUkcuHs2k7gS3gaw&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwICAg&c=u6LDEWzohnDQ01ySGnxMzg&r=zmhRVp0i4wZ5_1Ujh0fnRXAExHgKLTQu0rZLW7PxKA4&m=50D7UrZSBzJVxXUEqG29oDeKhy6aO2-Lksc1RRDIPNs&s=1O7oNBtBDRk9xdp172FYiVzm9ZBHUkcuHs2k7gS3gaw&e=</a> </div></blockquote></div><br></div></div></blockquote></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>