[gradsusr] gradsusr Digest, Vol 69, Issue 3

Ramchandra Karki rammetro at hotmail.com
Tue Nov 3 05:23:07 EST 2015


Dear Rupak sirThank you very much .

Regards
Ramchandra Karki


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


More information about the gradsusr mailing list