Calculating Percentiles in GrADS

Stephen R McMillan smcmillan at PLANALYTICS.COM
Mon Apr 28 15:11:12 EDT 2008


Hernán,
I have done it three different ways:

1. Use "set gxout print" and "prnopts" along with "write" command to 
output data as text file, which I can then read or open directly in Excel.
2. Use "fwrite" to output field as gridded binary, which I can then read 
and load into an Excel spreadsheet using VB macro code.
3. Extract data gridpoint-by-gridpoint using "q defval..." in a lat/lon 
loop while using "write" command to output to an Excel-compatible CSV or 
other text file.

Stephen Mc



hersala <hersala at GMAIL.COM> 
Sent by: GRADSUSR at LIST.CINECA.IT
04/28/2008 01:43 PM
Please respond to
GRADSUSR at LIST.CINECA.IT


To
GRADSUSR at LIST.CINECA.IT
cc

Subject
Re: Calculating Percentiles in GrADS





Hi Stephen:
Sorry, because I am answering your question with another question, in fact 
I do not know how to do what are you asking.
But, if you let me, how do you export the info that you are visualising in 
GrADS to Excel?
Thanks in advance,
Hernán

2008/4/28 Stephen R McMillan <smcmillan at planalytics.com>:

I found nothing in the user archives to address this question: Is there a 
relatively simple way to calculate various percentiles in GrADS? For 
example:

1.  Assume I have a 30-year dataset of daily mean temperature values for 
an x-y domain, contained in a single 3D (x,y,t) gridded file
2.  Desired output: a single 3D gridded file containing 11 variables for 
each gridpoint, per day of year (excluding Feb 29th): 0th pcntile, 10th 
pcntile, 20th pcntile...100th pcntile. In other words, there would be 30 
data values to analyze per grid location (each Jan 1st, each Jan 
2nd...each Dec 31st).

My alternative would be to evaluate text output in Excel then re-convert 
to gridded, but I'd prefer to keep in GrADS.

I'm using GrADS v1.9.0-rc1 (win32) on Win XP Pro. 

Stephen Mc

***************************************************
The information contained in this e-mail message is intended only for the 
use of the recipient(s) named above and may contain information that is 
privileged, confidential, and/or proprietary.  If you are not the intended 
recipient, you may not review, copy or distribute this message.  If you 
have received this communication in error, please notify the sender 
immediately by e-mail, and delete the original message.
***************************************************



-- 
En www.porloschicos.com con sólo dos clicks podés donar un plato de comida 
diaria a chicos carenciados. 



***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.  If you are not the intended recipient, you may not review, copy or distribute this message.  If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080428/cd15619b/attachment.html 


More information about the gradsusr mailing list