<div dir="ltr"><div>There are several ways to do this. A simple approach is attached.</div><div><br></div><div><b>%></b> ncl GovindJha_1.ncl</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 8, 2019 at 5:12 AM Govind Jha via ncl-install <<a href="mailto:ncl-install@ucar.edu">ncl-install@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><div class="gmail-m_5643707725548483807ydp2ddaabcbyahoo-style-wrap" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div><div dir="ltr">Dear Sir,</div><div dir="ltr"><br></div><div dir="ltr">I have 12 monthly netcdf files having variable called rain .I wish to calculate seasonal rainfall from monthly rainfall in NCL. <br></div><div dir="ltr">for eg: monsoon season= sum of jun,july,aug and sept.</div><div dir="ltr"><br></div><div dir="ltr">How could I calculate it.</div><div dir="ltr"><br></div><div dir="ltr">Here the the monthly netcdf files.</div><div dir="ltr"><br></div><div dir="ltr"><div> a = "/home/gopi/Build_WRF/work/MODE_analyis/Nirmala/GPM_july_2016" ; or manual precipitaiton same will work<br> a1 = addfile(a+".nc","r")<br> gp = a1 ->rain<br><br><br> gsrc_lat = a1->lat ;;---Change (maybe)<br><div> gsrc_lon = a1->lon ;;---Change (maybe)</div><div><br></div> APCP = gp<br> APCP!0 = "lat"<br> APCP!1 = "lon" <br>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br> a2 = "/home/gopi/Build_WRF/work/MODE_analyis/Nirmala/GPM_jun_2016" ; or manual precipitaiton same will work<br> a3 = addfile(a2+".nc","r")<br> gp1 = a3 ->rain<br><br> gsrc_lat = a3->lat ;;---Change (maybe)<br> gsrc_lon = a3->lon ;;---Change (maybe)<br><br> APCP1 = gp1<br> APCP1!0 = "lat"<br> APCP1!1 = "lon"<br><br><br> g = array_append_record (APCP, APCP1, 0)<br><br><br> gp3 = g<br> gp3!0 = "lat"<br><div> gp3!1 = "lon"</div><div><br></div><div dir="ltr">Any help and suggestion would be highly appreciated.</div><div dir="ltr"><br></div><div dir="ltr">Thank you in advance.<br></div></div><div><br></div></div><div><br></div><div class="gmail-m_5643707725548483807ydp2ddaabcbsignature"><div><br></div><div class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1455712910249_2705">With Regards </div><div class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454834651024_4240"> ..................................................</div><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9384" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874"><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9546" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:rgb(255,255,255)"><b id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1455782953590_8969" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874">Govind Kumar Jha</b> <br id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454834651024_4374" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874"></div><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9546" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:rgb(255,255,255)">...................................................</div><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9550" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:rgb(255,255,255)"> Assistant Meteorologist <br id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454834651024_4377" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874"></div><font id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9644" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="background-color:rgb(255,255,255)" size="2" face="times new roman, new york, times, serif" color="#0000ff">(Agro-Meteorology Section)<br class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9623">Department of Hydrology and Meteorology (DHM)<br class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9625">P.O. Box 406 Naxal, Nagpokhari, Kathmandu, Nepal<br class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9627">Tel: <a class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9629" style="margin:0px;padding:0px;text-decoration:underline;color:rgb(25,106,212);outline:medium none currentcolor;background-color:transparent;background-repeat:repeat;background-image:none;background-size:auto auto">+977 1 4436272</a>, 4432409<br class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9631">Fax: <a class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9633" style="margin:0px;padding:0px;text-decoration:underline;color:rgb(25,106,212);outline:medium none currentcolor;background-color:transparent;background-repeat:repeat;background-image:none;background-size:auto auto">+977 1 4429919</a>, 4432137<br class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9635"><a class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9637" href="http://www.dhm.gov.np/" style="margin:0px;padding:0px;color:rgb(25,106,212);outline:medium none currentcolor;background-color:transparent;background-repeat:repeat;background-image:none;background-size:auto auto" rel="nofollow" target="_blank">www.dhm.gov.np</a>, <a class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9639" href="http://www.hydrology.gov.np/" style="margin:0px;padding:0px;color:rgb(25,106,212);outline:medium none currentcolor;background-color:transparent;background-repeat:repeat;background-image:none;background-size:auto auto" rel="nofollow" target="_blank">www.hydrology.gov.np</a>, <a class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9641" href="http://www.mfd.gov.np/" style="margin:0px;padding:0px;color:rgb(25,106,212);outline:medium none currentcolor;background-color:transparent;background-repeat:repeat;background-image:none;background-size:auto auto" rel="nofollow" target="_blank">www.mfd.gov.np</a><br class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9643"></font><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9660" dir="ltr" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:rgb(255,255,255)"><font class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9621" size="2" face="times new roman, new york, times, serif" color="#0000ff">.............................................................................</font></div><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9556" dir="ltr" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:rgb(255,255,255)"> Mobile Number: 9779846265433</div><div id="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874yui_3_16_0_1_1454308705572_9556" dir="ltr" class="gmail-m_5643707725548483807ydp2ddaabcbyiv2221815874" style="font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:rgb(255,255,255)"> Email Id: <a href="mailto:govind_jha65@yahoo.com" target="_blank">govind_jha65@yahoo.com</a></div></div>.......................................................... <br></div></div></div></div>_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a></blockquote></div>