[gradsusr] setting time with intervals

Sagar P Parajuli psagar at utexas.edu
Tue Jan 15 13:23:46 EST 2013


Hi Jeff
I need to plot and print those extracted data. I know how to print it but I
want to know how to specify the time interval required. The code I am using
is:
open ERA.INTERIM.SFC.ctl
set lat 31.4
set lon 61.3
set t 1 last (It will print values pertaining to all t but I want to
specify an interval of 2).
set gxout print
set prnopts %g 1 1
d mag(no10usfc,no10vsfc)

How can I specify the required time interval for t?

thank you,

-Sagar


On Tue, Jan 15, 2013 at 10:03 AM, Jeff Duda <jeffduda319 at gmail.com> wrote:

> What do you want to do with the data?  Do you want to make plots in Grads
> or just extract the data?  If it's the latter, then you don't really even
> need to use Grads.
>
> Jeff
>
>
> On Tue, Jan 15, 2013 at 8:47 AM, Sagar P Parajuli <psagar at utexas.edu>wrote:
>
>> Hi Jeff,
>> I think I didn't clarify my question. I am writing control file for
>> extracting some wind speed data corresponding to particular time of a day.
>> What I could do in grads is:
>>  set t 1 last
>> But I want to do this skipping certain values eg. I want values
>> corresponding to t = 1, 3, 5, 7, 9, etc (i.e. with certain interval). So, I
>> need to skip some data and only extract those datas.
>> How can I do this?
>>
>>
>> Thank you so much again.
>>
>>
>>
>> Sagar
>>
>>
>>
>> On Mon, Jan 14, 2013 at 11:13 PM, Jeff Duda <jeffduda319 at gmail.com>wrote:
>>
>>> Time interval is specified in the control file used to open the data
>>> file.  However, if you used xdfopen or sdfopen, there may be a different
>>> way to determine the time interval.  In those cases, you should be able to
>>> find it by dumping the contents.  If your data are in netCDF format, for
>>> example, you could use ncdump -h (data file) to find out.
>>>
>>> Jeff Duda
>>>
>>> On Mon, Jan 14, 2013 at 9:47 PM, Sagar P Parajuli <psagar at utexas.edu>wrote:
>>>
>>>> Hi all,
>>>> I need to extract wind speed data at a particular time (12:00 pm only)
>>>> everyday from the 6 hourly data of one year. So I need to set time as,
>>>> t = 1, 1460, 2 (start, end, interval). How is the time interval
>>>> specified in grads?
>>>>
>>>> Thank you very much for your help.
>>>>
>>>>
>>>> **
>>>>
>>>>
>>>> * *
>>>>
>>>> *Sagar P. Parajuli*
>>>>
>>>> **Graduate Research Assistant
>>>>
>>>> The University of Texas at Austin
>>>> Jackson School of Geosciences
>>>> e-mail: psagar at utexas.edu
>>>> Contact: +1 512 965 4093
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>>
>>> --
>>> Jeff Duda
>>> Graduate research assistant
>>> University of Oklahoma School of Meteorology
>>> Center for Analysis and Prediction of Storms
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>>
>> --
>>
>> **
>> Best regards,
>>
>>
>> * *
>>
>> *Sagar P. Parajuli*
>>
>> **Graduate Research Assistant
>>
>> The University of Texas at Austin
>> Jackson School of Geosciences
>> e-mail: psagar at utexas.edu
>> Contact: +1 512 965 4093
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Jeff Duda
> Graduate research assistant
> University of Oklahoma School of Meteorology
> Center for Analysis and Prediction of Storms
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 

**
Best regards,

* *

*Sagar P. Parajuli*

**Graduate Research Assistant

The University of Texas at Austin
Jackson School of Geosciences
e-mail: psagar at utexas.edu
Contact: +1 512 965 4093
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130115/de02359c/attachment-0003.html 


More information about the gradsusr mailing list