[gradsusr] Histogram from Timeseries Analysis

Mohsen Soltani soltani.clima at gmail.com
Tue May 14 11:03:42 EDT 2013


Thanks a lot!

--
some are weather-wise some are otherwise!
--
Best Wishes,
(Mr.) Mohsen Soltani
Climatology Grad Student (M.Sc.),
Faculty of Geography, University of Tehran, Tehran, Iran
Tel: (+98) 9119772934
e-mail: soltani.clima at gmail.com


On Tue, May 14, 2013 at 7:57 AM, Stephen McMillan <smcmillan at planalytics.com
> wrote:

> t1='01Apr1995'
> t2='30Jun1995'
> 'set time 't1' 't2
> 'd pcpn'   (or whatever your var name is)
>
> Stephen Mc
>
>
> On Tue, May 14, 2013 at 10:34 AM, Mohsen Soltani <soltani.clima at gmail.com>wrote:
>
>> Dear Stephen,
>>
>> I was watching your posts - you and Mary, and said to myself, OK! let's
>> try to make a time series plot based on your example script!
>> It was very good and the attached plot is my output. I applied this
>> script for a weather station in north of Iran viz Rasht station - in
>> southern coasts of Caspian Sea. I used daily precipitation data compiled by
>> APHRODITE's Water Resources in the year 1995, just as an example.
>>
>> Now, I have a question: is it possible to define a specific period of
>> time to draw time-series plot? For example, imagine we have a daily
>> precipitation data for 12-months in one year, say 1995,  I would like to
>> plot the histogram of only between the e.g. April and June, how should I
>> set time to do so?
>>
>> Any suggestion?
>>
>> Thank you,
>> Mohsen
>>
>>
>> --
>> some are weather-wise some are otherwise!
>> --
>> Best Wishes,
>> (Mr.) Mohsen Soltani
>> Climatology Grad Student (M.Sc.),
>> Faculty of Geography, University of Tehran, Tehran, Iran
>> Tel: (+98) 9119772934
>> e-mail: soltani.clima at gmail.com
>>
>>
>> On Tue, May 14, 2013 at 6:30 AM, Stephen McMillan <
>> smcmillan at planalytics.com> wrote:
>>
>>> Mary,
>>> You're welcome.  Regarding the script hist.gs, I have never used and
>>> barely reviewed, so hopefully its author or someone else can provide more
>>> insight into its use applicable to your situation.
>>> Stephen Mc
>>>
>>>
>>> On Tue, May 14, 2013 at 9:14 AM, Mary Ndlovu <maryndlovu2 at gmail.com>wrote:
>>>
>>>> Thanks Stephen,
>>>>
>>>> I think this is the same as recipe 20 open grads. I wasn't clear
>>>> enough. Ok, I have just looked into this, this would give me the yrs vs the
>>>> precipitation, where as what i am looking into doing is to draw a histogram
>>>> where you get the mean in the middle of the chart, then have an interval of
>>>> the precipitation in mm/dy. I am trying to compare variability between
>>>> re-analysis and model outputs. So i guess assigning the bins, and using
>>>> somehow a hist.gs would help. But i am clueless as to how this script
>>>> works since there seems to be no documentation on it, or atleast something
>>>> online that somebody tried.
>>>>
>>>>
>>>> On Tue, May 14, 2013 at 2:59 PM, Stephen McMillan <
>>>> smcmillan at planalytics.com> wrote:
>>>>
>>>>> Hello Mary,
>>>>>
>>>>> Here's a short example using precip from the GFS model:
>>>>>
>>>>> 'set t 1 last'
>>>>> 'set lat 40';'set lon -75.5'
>>>>> 'set gxout bar'
>>>>> 'set bargap 25'
>>>>> 'set barbase 0'
>>>>> 'set vrange 0 2';'set ylint 0.2'
>>>>> 'set ccolor 3'
>>>>> 'd apcpsfc/25.4'
>>>>>
>>>>> Above example should plot green bars (columns) for precipitation for
>>>>> all 65 timesteps in dataset.  See Documentation Index for more information
>>>>> on each command.
>>>>>
>>>>> Stephen McMillan
>>>>>
>>>>>
>>>>> On Tue, May 14, 2013 at 8:37 AM, Mary Ndlovu <maryndlovu2 at gmail.com>wrote:
>>>>>
>>>>>> Hello all,
>>>>>>
>>>>>> Please help me with plotting a histogram from timeseries. I tried
>>>>>> googling and found hist.gs but it is so difficult to use it since i
>>>>>> do not understand what i really need to do. Please help if you have a
>>>>>> script to do this, or how to let my script work with the hist.gs.
>>>>>> Thanks in advance
>>>>>>
>>>>>> _______________________________________________
>>>>>> gradsusr mailing list
>>>>>> gradsusr at gradsusr.org
>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>>
>>>>>>
>>>>> ***************************************************
>>>>> 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.
>>>>> ***************************************************
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>> ***************************************************
>>> 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.
>>> ***************************************************
>>>
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
> ***************************************************
> 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.
> ***************************************************
>
>
>
> _______________________________________________
> 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/20130514/c33a8c30/attachment-0003.html 


More information about the gradsusr mailing list