<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Rupak sir<div>Thank you very much .<br><br><i>Regards<br>Ramchandra Karki<br></i><br><br><div>> From: gradsusr-request@gradsusr.org<br>> Subject: gradsusr Digest, Vol 69, Issue 3<br>> To: gradsusr@gradsusr.org<br>> Date: Mon, 2 Nov 2015 20:53:25 -0500<br>> <br>> Send gradsusr mailing list submissions to<br>>         gradsusr@gradsusr.org<br>> <br>> To subscribe or unsubscribe via the World Wide Web, visit<br>>         http://gradsusr.org/mailman/listinfo/gradsusr<br>> or, via email, send a message with subject or body 'help' to<br>>         gradsusr-request@gradsusr.org<br>> <br>> You can reach the person managing the list at<br>>         gradsusr-owner@gradsusr.org<br>> <br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of gradsusr digest..."<br>> <br>> <br>> Today's Topics:<br>> <br>> 1. Need Help for specific command (MD ABDUS SATTAR)<br>> 2. Re: Need Help for specific command (Rashed Mahmood)<br>> 3. Re: monthly calculation from daily data (Rupak Rajbhandari)<br>> <br>> <br>> ----------------------------------------------------------------------<br>> <br>> Message: 1<br>> Date: Tue, 3 Nov 2015 11:52:43 +1100<br>> From: MD ABDUS SATTAR <md-abdus.sattar@students.mq.edu.au><br>> Subject: [gradsusr] Need Help for specific command<br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID:<br>>         <CAKnWhdkN7VebhGCP36bO9AEKNqHmCTOiEreduj4T+f9sQZW2oA@mail.gmail.com><br>> Content-Type: text/plain; charset="utf-8"<br>> <br>> Dear Team<br>> I was trying to calculate year by year time series from monthly mean SST<br>> data by using following formula:<br>> <br>> [image: Inline image 1]<br>> Where, N3 and N4 denote Nino3 and Nino4 indices respectively. I would like<br>> to calculate NCT and NWP for a specific year, for instance, 1997 (January<br>> to December). My question is how can I define "?<br>> <br>> value" in GrADS so that it can use the value of 2/5 or 0 automatically? If<br>> anybody could help me, it would be great.<br>> <br>> I look forward to your message.<br>> <br>> Best regards<br>> Abdus<br>> -- <br>> Md. Abdus Sattar<br>> PhD Student<br>> Department of Environmental Sciences<br>> Level 2, Australian Hearing Hub Building<br>> <br>> Faculty of Science and Engineering<br>> Macquarie University<br>> NSW 2109 Australia<br>> <br>> <br>> Cell: +61404400401<br>> Email: md-abdus.sattar@students.mq.edu.au<br>> <br>> *AND*<br>> <br>> Assistant Professor<br>> Department of Disaster Risk Management (DRM)<br>> Faculty of Disaster Management<br>> Patuakhali Science and Technology University, Dumki, Patuakhali, Bangladesh<br>> <br>> Cell: +8801716851612<br>> Email: abdus.sattar@pstu.ac.bd<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151103/605a91ee/attachment-0001.html <br>> -------------- next part --------------<br>> A non-text attachment was scrubbed...<br>> Name: image.png<br>> Type: image/png<br>> Size: 5520 bytes<br>> Desc: not available<br>> Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151103/605a91ee/attachment-0001.png <br>> <br>> ------------------------------<br>> <br>> Message: 2<br>> Date: Mon, 2 Nov 2015 17:27:23 -0800<br>> From: Rashed Mahmood <rashidcomsis@gmail.com><br>> Subject: Re: [gradsusr] Need Help for specific command<br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID:<br>>         <CAOmfQPpxpOH-Deh1hXx3b-6jRP55zpKSw2EEymxCAUWsOrnMXw@mail.gmail.com><br>> Content-Type: text/plain; charset="utf-8"<br>> <br>> It should be simple using if else statement.<br>> Untested:<br>> <br>> prod = N3*N4<br>> <br>> if ( prod > 0)<br>> alpha = 0.4<br>> else<br>> alpha = 0<br>> endif<br>> <br>> Nct = N3-alpha*N4<br>> Nwp = N4-alpha*N3<br>> <br>> hope that helps<br>> <br>> <br>> <br>> On Mon, Nov 2, 2015 at 4:52 PM, MD ABDUS SATTAR <<br>> md-abdus.sattar@students.mq.edu.au> wrote:<br>> <br>> > Dear Team<br>> > I was trying to calculate year by year time series from monthly mean SST<br>> > data by using following formula:<br>> ><br>> > [image: Inline image 1]<br>> > Where, N3 and N4 denote Nino3 and Nino4 indices respectively. I would like<br>> > to calculate NCT and NWP for a specific year, for instance, 1997 (January<br>> > to December). My question is how can I define "?<br>> ><br>> > value" in GrADS so that it can use the value of 2/5 or 0 automatically? If<br>> > anybody could help me, it would be great.<br>> ><br>> > I look forward to your message.<br>> ><br>> > Best regards<br>> > Abdus<br>> > --<br>> > Md. Abdus Sattar<br>> > PhD Student<br>> > Department of Environmental Sciences<br>> > Level 2, Australian Hearing Hub Building<br>> ><br>> > Faculty of Science and Engineering<br>> > Macquarie University<br>> > NSW 2109 Australia<br>> ><br>> ><br>> > Cell: +61404400401<br>> > Email: md-abdus.sattar@students.mq.edu.au<br>> ><br>> > *AND*<br>> ><br>> > Assistant Professor<br>> > Department of Disaster Risk Management (DRM)<br>> > Faculty of Disaster Management<br>> > Patuakhali Science and Technology University, Dumki, Patuakhali, Bangladesh<br>> ><br>> > Cell: +8801716851612<br>> > Email: abdus.sattar@pstu.ac.bd<br>> ><br>> > _______________________________________________<br>> > gradsusr mailing list<br>> > gradsusr@gradsusr.org<br>> > http://gradsusr.org/mailman/listinfo/gradsusr<br>> ><br>> ><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151102/9de28f91/attachment-0001.html <br>> -------------- next part --------------<br>> A non-text attachment was scrubbed...<br>> Name: image.png<br>> Type: image/png<br>> Size: 5520 bytes<br>> Desc: not available<br>> Url : http://gradsusr.org/pipermail/gradsusr/attachments/20151102/9de28f91/attachment-0001.png <br>> <br>> ------------------------------<br>> <br>> Message: 3<br>> Date: Tue, 3 Nov 2015 07:39:01 +0545<br>> From: Rupak Rajbhandari <rupak.rajbhandari@gmail.com><br>> Subject: Re: [gradsusr] monthly calculation from daily data<br>> To: GrADS Users Forum <gradsusr@gradsusr.org><br>> Message-ID:<br>>         <CAPUBxUQOUg_GTQJ1CE06yz5+xr7n9upYpURt0eY_=2gWFuZCrw@mail.gmail.com><br>> Content-Type: text/plain; charset="utf-8"<br>> <br>> Ramchandra,<br>> <br>> To answer your first question, you will need to develop a script to<br>> calculate each months total for every year. Hard coding would be something<br>> like;<br>> <br>> define jan=sum(precip,t=1,t=31)<br>> define feb=sum(precip,t=32,t=59)<br>> define mar=sum(precip,t=60,t=90)<br>> ....<br>> <br>> Next year data i.e. 1952 jan 1st starts at t=366 and continues so on (you<br>> must have already known). Now if you can put this kind of commands in a<br>> loop then you have it. Eventually, if you want to build a climatology from<br>> the 57 year of data, I suggest you create monthly binary file and work on<br>> it. Daily rainfall data is useful only to study the extremes such as your<br>> next two questions.<br>> <br>> Your second question about the number of rainy days - I presume number of<br>> rainy days in a year. Again you need a separate program which counts days<br>> when condition is fulfilled. In my case, I wrote o short program in Fortran<br>> which calculates number of days over each grid, then I used GrADS to read<br>> this file to display the number of rainy days.<br>> <br>> Third question;<br>> In order to calculate percentile, first you need to SORT the data and find<br>> the values for different percentile. Once you have the threshold value, you<br>> can follow the same procedure for finding number of rainy days and work on.<br>> <br>> So the way forward is not that simple. For more queries, you can contact me<br>> at my office.<br>> <br>> -rupak<br>> <br>> <br>> <br>> <br>> On Sun, Nov 1, 2015 at 11:07 PM, Ramchandra Karki <rammetro@hotmail.com><br>> wrote:<br>> <br>> > Hi all<br>> > I am beginner to grads and I want to calculate the following from these<br>> > data set<br>> > i have *daily *Aphrodite data set with control file in this format<br>> ><br>> > dset F:\005deg\APHRO_NPL_005deg_V1003R1.%y4<br>> > *<br>> > undef -99.9<br>> > options little_endian template<br>> > title Averaged Daily Precipitation Value<br>> > *<br>> > xdef 190 linear 79.525 0.05<br>> > ydef 100 linear 26.025 0.05<br>> > zdef 1 levels 1<br>> > tdef 20819 linear 01jan1951 1dy<br>> > *<br>> > vars 3<br>> > precip 1 00 daily precipitation analysis (mm/day)<br>> > flgcnt 1 00 if 1, offline (individual country's) gauge(s) exists<br>> > flggts 1 00 if 1, online (GTS-based) gauge(s) exists<br>> > endvars<br>> ><br>> ><br>> > 1. *how can i calculate the monthly rainfall total for each year from<br>> > 1951 to 2009 using some loops or easier way*<br>> > 2. how can i get rainy days (count of days >1mm rainfall)<br>> > 3. how can i get percentile 99 for 1971 to 2000 and then days with<br>> > count > 99 percentile<br>> ><br>> ><br>> ><br>> ><br>> ><br>> ><br>> > *RegardsRamchandra KarkiDepartment of Hydrology and Meteorology, Nepal*<br>> ><br>> > _______________________________________________<br>> > gradsusr mailing list<br>> > gradsusr@gradsusr.org<br>> > http://gradsusr.org/mailman/listinfo/gradsusr<br>> ><br>> ><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20151103/2db07e89/attachment.html <br>> <br>> ------------------------------<br>> <br>> _______________________________________________<br>> gradsusr mailing list<br>> gradsusr@gradsusr.org<br>> http://gradsusr.org/mailman/listinfo/gradsusr<br>> <br>> <br>> End of gradsusr Digest, Vol 69, Issue 3<br>> ***************************************<br></div></div>                                            </div></body>
</html>