[gradsusr] spatial and time series plot

Jeff Duda jeffduda319 at gmail.com
Mon Nov 2 23:19:38 EST 2020


Absolutely. However, the dimension environment will be initially set to
that from the first control file you open. So to plot data from the other
data file, you will have to change the dimension environment before
plotting (or as part of the display command).

You can modify the valid dimension on which to plot any field in the
display command using arguments such as...

'd temp(time=12Z01JAN2001)'

even if the current valid time in the dimension environment is, say, 00Z 01
NOV 2020. Same with vertical level:

'd height(lev=500)'

to plot 500-hPa heights when the current vertical level setting is, say,
1000 hPa.

Also, don't forget to either switch the active file using 'set dfile n' or
indicate that the fields for the second plot are coming from the second
open file, e.g.:

'd height.2(lev=500)'

would plot 500-hPa heights from a second opened control file even if the
vertical level setting is 1000 hPa.
Jeff

On Mon, Nov 2, 2020 at 9:13 PM Li, Guilong (EC) <guilong.li at canada.ca>
wrote:

> Hi Jeff,
>
>
>
> Thanks. The question is if two control files have different data
> structure, can I open these two control files under the same script?
>
>
>
> Guilong
>
>
>
> *From:* gradsusr <gradsusr-bounces at gradsusr.org> *On Behalf Of *Jeff Duda
> *Sent:* Monday, November 2, 2020 11:45 AM
> *To:* GrADS Users Forum <gradsusr at gradsusr.org>
> *Subject:* Re: [gradsusr] spatial and time series plot
>
>
>
> A control file can only open a single type of data files (if they have
> templatable names and the same data structure). If you need to process two
> data sets that do not have the same data structure, then you will need to
> write separate control files for each file and open both control files in
> your script.
>
>
>
> Jeff Duda
>
>
>
> On Mon, Nov 2, 2020 at 8:59 AM Li, Guilong (EC) <guilong.li at canada.ca>
> wrote:
>
> Hi,
>
>
>
> I want to plot a figure with left panel showing spatial plot and right
> panel showing a time series. These two plots should be on same page, but
> they are from different data. How to setup control file in order that I can
> do this plot.
>
>
>
> Thanks,
>
>
>
> Guilong
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> --
>
> Jeff Duda, Research Scientist
>
> University of Colorado Boulder
>
> Cooperative Institute for Research in Environmental Sciences
>
> NOAA/OAR/ESRL/Global Systems Laboratory
> Boulder, CO
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Laboratory
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20201102/7d69fee0/attachment.html>


More information about the gradsusr mailing list