[gradsusr] Plot first variable in ctl file when name is unknown
Brian Gaze
brianw.gaze at googlemail.com
Wed Jan 17 06:12:52 EST 2018
Thanks for that.
Using g2ctl (rather than alt_g2ctl) the variable names are predictable.
However when the grib2 file contains multiple elements the .ctl file gives
all the variables the same name (var000l150_150 in the example below).
The problem is I don't know how to reference the different variables in
GrADS. Any suggestions? The ctl is being generated from a DWD ICON grib2
file which should contain temperature forecasts at different atmospheric
levels (e.g. 850hPa).
dtype grib2
ydef 657 linear 29.500000 0.0625
xdef 1097 linear -23.5 0.062500
tdef 1 linear 06Z17jan2018 1mo
zdef 1 linear 1 1
vars 16
var000l150_150 0,150,45,46 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,46,47 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,47,48 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,48,49 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,49,50 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,50,51 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,51,52 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,52,53 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,53,54 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,54,55 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,55,56 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,56,57 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,57,58 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,58,59 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,59,60 0,0,0 ** reserved - reserved desc [unit]
var000l150_150 0,150,60,61 0,0,0 ** reserved - reserved desc [unit]
Thanks
Brian
On 15 January 2018 at 17:00, <gradsusr-request at gradsusr.org> wrote:
> Send gradsusr mailing list submissions to
> gradsusr at gradsusr.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://gradsusr.org/mailman/listinfo/gradsusr
> or, via email, send a message with subject or body 'help' to
> gradsusr-request at gradsusr.org
>
> You can reach the person managing the list at
> gradsusr-owner at gradsusr.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gradsusr digest..."
>
>
> Today's Topics:
>
> 1. Re: Plot first variable in ctl file when name is unknown
> (Davide Sacchetti)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Jan 2018 11:51:52 +0100
> From: Davide Sacchetti <davide.sacchetti at arpal.gov.it>
> To: gradsusr at gradsusr.org
> Subject: Re: [gradsusr] Plot first variable in ctl file when name is
> unknown
> Message-ID: <1516013512.29931.0.camel at arpal.gov.it>
> Content-Type: text/plain; charset="UTF-8"
>
> if you don't mind the variable try: display lon
> otherwise you have to read file ctl ...
> Davide
>
> On Fri, 2018-01-12 at 21:02 +0000, Brian Gaze wrote:
> > Hi,
> >
> > Is there a way of plotting the first (or only) variable in a ctl file
> > using a .gs if you don't know its name?
> >
> > For example, if the ctl contains one variable called var0_0_qqqccc is
> > there a wildcard option like..
> >
> > d *
> >
> > Alternatively can the variable be renamed when the .ctl is created
> > using alt_g2ctl.pl?
> >
> > I know there is alt_g2ctl.pl -sub "A" "B" but I haven't been able to
> > work out a regex which would do something like...
> >
> > alt_g2ctl.pl -sub "*.*" "Variable1"
> >
> >
> > Thanks
> >
> > Brian
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> ------------------------------
>
> End of gradsusr Digest, Vol 95, Issue 8
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180117/f651c639/attachment.html>
More information about the gradsusr
mailing list