[gradsusr] setting time with intervals

Sagar Parajuli psagar at utexas.edu
Tue Jan 15 15:05:57 EST 2013


Hi Jeff,

Attached is my ctl file. 

 

Sincerely,

 

Sagar Prasad Parajuli

Graduate Student/Research Assistant

University of Texas at Austin

Jackson School of Geosciences

1 University Station C1100, JGB 5.322
Austin, TX 78712

Contact:  <mailto:psagar at utexas.edu> psagar at utexas.edu

Cell: 512 965 4093

texas-longhorn-logo

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Jeff Duda
Sent: Tuesday, January 15, 2013 1:06 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] setting time with intervals

 

Sagar,
What does your control file look like?  Can you send it to me please?

Jeff

On Tue, Jan 15, 2013 at 12:23 PM, Sagar P Parajuli <psagar at utexas.edu>
wrote:

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 <tel:%2B1%20512%20965%204093>  

_______________________________________________
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 <tel:%2B1%20512%20965%204093>  


_______________________________________________
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130115/28c8353a/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1251 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130115/28c8353a/attachment-0003.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ERA.INTERIM.SFC.ctl
Type: application/octet-stream
Size: 5501 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130115/28c8353a/attachment-0003.obj 


More information about the gradsusr mailing list