[gradsusr] I have resolved my problem with your help!
pierre.lacombe at mddep.gouv.qc.ca
pierre.lacombe at mddep.gouv.qc.ca
Mon Sep 13 15:08:46 EDT 2010
Développement durable,
Environnement et Parcs
Québec
-----Message d'origine-----
De : gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] De la part de gradsusr-request at gradsusr.org
Envoyé : 8 septembre 2010 12:15
À : gradsusr at gradsusr.org
Objet : [POLLURIEL (Bayes)] - gradsusr Digest, Vol 7, Issue 13 - Bayesian Filter detected spam
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. Problems with wgrib2.exe : No output 0k file
(pierre.lacombe at mddep.gouv.qc.ca)
2. Re: Problems with wgrib2.exe : No output 0k file
(Ling,Alister [Edm])
3. Re: Changing axis font size (Stephen McMillan)
4. Re: Problems with wgrib2.exe : No output 0k file
(Wesley Ebisuzaki)
----------------------------------------------------------------------
Message: 1
Date: Wed, 8 Sep 2010 10:17:07 -0400
From: <pierre.lacombe at mddep.gouv.qc.ca>
Subject: [gradsusr] Problems with wgrib2.exe : No output 0k file
To: <gradsusr at gradsusr.org>
Message-ID:
<9149028A458FDA48A117670F6E1F63F87129C7 at S00MSG5.prod.local>
Content-Type: text/plain; charset="us-ascii"
Developpement durable,
Environnement et Parcs
Quebec
I am a user of Windows XP.
We are currently using grib1 format and it work perfectly.
I am trying to use the grib2 format with the forcast at the site
http://nomads.ncdc.noaa.gov/data/gfs-avn-hi/
I am able to download these files with wget without difficulties.
Then I use perl with the programme file g2clt and then i am unable to
obtain a ctl files.
When i analyse the g2ctl file i find that the wgrib2.exe executable is
making an output as 0k
and i have a "Big Problem" in the output of g2ctl.
My wgrib2 is in the Path variable of the windows system.
My output file is accessible and is not read only file.
I a cygwin1.dll with wgrib2.exe in the opengrads
I don't know what to think of this exept that wgrib2 is not working
correctly.
I have the vesrion v0.178e of wgrib2
I have a version 2 of grads
My Wgrib2 went with my installation of opengrads
Why is wgrib functionning and not wgrib2?
Also i tested wgrib2 with the command -csv and then no output 0k
Do you have any ideas?
Thank you for your ideas and you time
Pierre Lacombe
Computer Analyst
pierre.lacombe at mddep.gouv.qc.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100908/15ace12c/attachment-0001.html
------------------------------
Message: 2
Date: Wed, 8 Sep 2010 08:31:00 -0600
From: "Ling,Alister [Edm]" <Alister.Ling at EC.gc.ca>
Subject: Re: [gradsusr] Problems with wgrib2.exe : No output 0k file
To: "GrADS Users Forum" <gradsusr at gradsusr.org>
Message-ID:
<4A6AB38B55B49C44A22E021A83CBEDDB085AA41B at sr-pnr-exch3.prairie.int.ec.gc.ca>
Content-Type: text/plain; charset="iso-8859-1"
Salut,
I had a similar problem, not sure if it is the same issue...
Here is what I do, based on info I dug up in the wgrib2 pages:
There is a small bug in the grib2 file system that requires a kludge so that grads can view it:
bash script segment:
wgrib2 $downloaded_grib_file -set_flag_table_3.3 48 -grib $modified_grib_file
g2ctl $modified_grib_file > $CTL_filename
gribmap -1 $CTL_filename
Of course you may need to point to the full path for the (wgrib2 g2ctl gribmap) executables.
In short, take the downloaded grib file , use wgrib2 to adjust the resolution parameter using "-set_flag_table_3.3 48" output to a new grib file.
Then use g2ctl to make the contrl file.
This is for files downloaded from NCEP, so presumably should be same as for NOAA. It has something to do with grid spacing, and my impression (which may be wrong) is it may only be necessasry for certain grids like the lambert conformal.
Bonne journ?e,
Alister.
________________________________
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of pierre.lacombe at mddep.gouv.qc.ca
Sent: Wednesday, September 08, 2010 8:17 AM
To: gradsusr at gradsusr.org
Subject: [gradsusr] Problems with wgrib2.exe : No output 0k file
<http://www.mddep.gouv.qc.ca/accueil/bannieres/menv/mddep.jpg>
I am a user of Windows XP.
We are currently using grib1 format and it work perfectly.
I am trying to use the grib2 format with the forcast at the site http://nomads.ncdc.noaa.gov/data/gfs-avn-hi/
I am able to download these files with wget without difficulties.
Then I use perl with the programme file g2clt and then i am unable to obtain a ctl files.
When i analyse the g2ctl file i find that the wgrib2.exe executable is making an output as 0k
and i have a "Big Problem" in the output of g2ctl.
My wgrib2 is in the Path variable of the windows system.
My output file is accessible and is not read only file.
I a cygwin1.dll with wgrib2.exe in the opengrads
I don't know what to think of this exept that wgrib2 is not working correctly.
I have the vesrion v0.178e of wgrib2
I have a version 2 of grads
My Wgrib2 went with my installation of opengrads
Why is wgrib functionning and not wgrib2?
Also i tested wgrib2 with the command -csv and then no output 0k
Do you have any ideas?
Thank you for your ideas and you time
Pierre Lacombe
Computer Analyst
pierre.lacombe at mddep.gouv.qc.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100908/f75e30cc/attachment-0001.html
------------------------------
Message: 3
Date: Wed, 8 Sep 2010 10:39:53 -0400
From: Stephen McMillan <smcmillan at planalytics.com>
Subject: Re: [gradsusr] Changing axis font size
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID:
<AANLkTikn5RPTcYuLNfKS_T7ynRqXSeuQgNTAu5pMYh7h at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Jo?o,
For axis labels, try using:
xlopts (see http://www.iges.org/grads/gadoc/gradcomdsetxlopts.html)
ylopts (see http://www.iges.org/grads/gadoc/gradcomdsetylopts.html)
You could change the color bar labels by editing the 'set strsiz...'
line in your copy of cbar.gs, or add a couple more lines to that
script to include font size as an argument.
Stephen McMillan
2010/9/8 Jo?o Teixeira <a38978 at ua.pt>:
> Hi there,
> I'm trying to change the font size of the label of a graphic axis, and from
> a the graphic color bar (cbar.gs).
> I've been searching the web and I found the commands set digsiz and set
> strsiz, but it doesn't seem to apply? to the axis labeling settings.
> Is there any way to do this in GrADS
>
> thank you all
> Jo?o TEixeira
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
***************************************************
The information contained in this e-mail message
is intended only for the use of the recipient(s)
named above and may contain information that is
privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not
review, copy or distribute this message. If you have
received this communication in error, please notify
the sender immediately by e-mail, and delete the original message.
***************************************************
I have resolved my problem with your help!
Thank you very much.
In fact my file was a grib1 type from th noaa site.
With the command wgrib grib1_file i was able to prove that it was a grib1 file
And the rest is more easy.
You are great to respond so quickly
Bye ...
Pierre Lacombe
Pierre.lacombe at mddep.gouv.qc.ca
------------------------------
Message: 4
Date: Wed, 08 Sep 2010 16:17:27 -0400
From: Wesley Ebisuzaki <Wesley.Ebisuzaki at noaa.gov>
Subject: Re: [gradsusr] Problems with wgrib2.exe : No output 0k file
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID: <4C87EF57.7050307 at noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Pierre,
Support of Windows is a bit weak because most of the development
takes place on unix or unix-like machines. I don't use Windows at
work and the rare times that I do try it, everything works. Of course,
I am only using cygwin software which explains why everything works.
1) To test wgrib2
wgrib2 GRIB2_FILE
If you don't see an inventory, you need to fix wgrib2
2) To test g2ctl.pl
perl g2ctl GRIB2_FILE > GRIB2.ctl
If you see "Big Problem" then,
(a) wgrib2 is not on your path or you are using a broken wgrib2.
Change the program g2ctl, so it uses a the right version.
$wgrib2='wgrib2'; <- line in g2ctl
- change to the appropriate location
(b) GRIB2_FILE is not a grib2 file.
To check: wgrib2 GRIB2_FILE
should produce a listing of the variables in the grib file
(c) g2ctl has to create a temporary file. Maybe the directory is
full, protected or the environment
variables haven't be set. To fix it, you will have to modify the
g2ctl code with a text editor.
(Maybe the perl that you are using defines the operating system
something other than MSWin32.)
> if ($^O eq 'MSWin32') {
> # $ListA="c:\\g$$.tmp";
> $ListA="$ENV{TEMP}\\g$$.tmp";
> # $TmpFile="c:\\h$$.tmp";
> $TmpFile="NUL";
> # unlink ($ListA, $TmpFile);
> unlink $ListA;
> $sys="win";
> }
> else {
> $ListA="/tmp/g$$.tmp";
> $TmpFile="/dev/null";
> unlink $ListA;
> $sys="unix";
> }
>
(d) Maybe the GRIB2 file has a funny name. For example, linux will
allow names such as
A.b.c.grb
but not all versions of Windows or windows software. Try renaming the
file to a simple name.
(e) Try using the perl that comes with cygwin.
(f) install linux
Yours,
Wesley Ebisuzaki
pierre.lacombe at mddep.gouv.qc.ca wrote:
>
> I am a user of Windows XP.
>
> We are currently using grib1 format and it work perfectly.
>
> I am trying to use the grib2 format with the forcast at the site
> http://nomads.ncdc.noaa.gov/data/gfs-avn-hi/
>
> I am able to download these files with wget without difficulties.
>
> Then I use perl with the programme file g2clt and then i am unable to
> obtain a ctl files.
>
> When i analyse the g2ctl file i find that the wgrib2.exe executable is
> making an output as 0k
>
> and i have a "Big Problem" in the output of g2ctl.
>
> My wgrib2 is in the Path variable of the windows system.
>
> My output file is accessible and is not read only file.
>
> I a cygwin1.dll with wgrib2.exe in the opengrads
>
> I don't know what to think of this exept that wgrib2 is not working
> correctly.
>
> I have the vesrion v0.178e of wgrib2
>
> I have a version 2 of grads
>
> My Wgrib2 went with my installation of opengrads
>
> Why is wgrib functionning and not wgrib2?
>
> Also i tested wgrib2 with the command -csv and then no output 0k
>
> Do you have any ideas?
>
> Thank you for your ideas and you time
>
> Pierre Lacombe
> Computer Analyst
>
> pierre.lacombe at mddep.gouv.qc.ca
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
------------------------------
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
End of gradsusr Digest, Vol 7, Issue 13
***************************************
More information about the gradsusr
mailing list