[gradsusr] plotting time in hovmoller pictures
Charles Seman
Charles.Seman at noaa.gov
Wed May 12 18:10:26 EDT 2010
Liping Liu,
You might also be able to use GrADS templates to "concatenate" the "olr"
fields from file 1 and file 2 into a single time series within GrADS as
follows:
'open olr_template.ctl'
'set yflip on'
'set lev 1000'
'set tlsupp year'
'set t 2 80'
'set lat 15'
'set gxout shaded'
'set grads off'
'd ave(olr,lat=5,lat=25)'
where "olr" is the name of the variable in the "vars" section of the
GrADS template data descriptor file "olr_template.ctl" (please see the
examples at http://grads.iges.org/grads/gadoc/templates.html which can
give you some ideas for what your "olr_template.ctl" might need)...
briefly, a template data descriptor file for time differs from a single
dataset data descriptor file in the "dset" record, a required "options
template" record, and in the "tdef" record (in which the number of time
levels in the template data descriptor file is the sum of the time
levels for each of the component datasets).
I hope this helps,
Chuck
Liping Liu wrote:
> Hi, (I am a new user of GrADs)
>
> I am trying to plot two hovmollers into one figure. The problem is the
> time.
> First I plot the hovmollers using data from file 1 for Aug10 to Aug15,
> with the following commands:
>
> 'set yflip on'
> 'set lev 1000'
> 'set tlsupp year'
> 'set t 2 48'
> 'set lat 15'
> 'set gxout shaded'
> 'set grads off'
> 'd ave(olr.1,lat=5,lat=25)'
>
> So it gives me a figure for Aug10--Aug15. But, when I repeat the
> plotting for another period of time Aug15-Aug20:
>
> 'set t 49 80'
> 'd ave(olr.2,lat=5,lat=25)'
>
> It will simply overlap the whole figure, the time is not sequenced.
>
> Question: what do I do to get the pictures of Aug10-15 and Aug15-20
> laid out vertically (not overlapping each other)?
>
> An alternative way is to write the two sets of data into one data
> file. But I don't know how to do that either.
>
> Thanks for your help. Suggestions to either of the approaches are
> greatly appreciated!
>
> Liping
>
>
> ------------------------------------------------------------------------
> Hotmail has tools for the New Busy. Search, chat and e-mail from your
> inbox. Learn more.
> <http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
--
Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.
********************************************************************
Charles Seman Charles.Seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect any
official or unofficial position of the United States Federal Government,
the United States Department of Commerce, or NOAA."
More information about the gradsusr
mailing list