hi Dipak,<div> I think with the fprintf function u will have to set y values also. From the script u sent</div><div><br>> set x 1 54 (since the .dat file has 54 longitude and 36 latitude points)<br>> set t 25<br>> fprintf t2-273.15 T2-24hr.csv %g, 54</div>
<div>u are varying x dimension at some constant time, what about y?? But then also your output file should contain only one row of 54 values since by default grads must have set latitude to the first value in the domain. Try by giving some value to y dimension.</div>
<div><br></div><div>Bye</div><div>Roopa</div><div><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 10:49 AM, <span dir="ltr"><<a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send gradsusr mailing list submissions to<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gradsusr-owner@gradsusr.org">gradsusr-owner@gradsusr.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gradsusr digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Missing variables in 3-d fwrite binary file (Kevin Huyck)<br>
2. error with fprintf command (dipak sahu)<br>
3. Re: Grads 2.0.9 error (chinh ta huu)<br>
4. Variable 'HFX' from ctl file (Salvador Salazar)<br>
5. time format (Simon Kiertscher)<br>
6. Re: time format (Yaqiang Wang)<br>
7. Re: time format (Simon Kiertscher)<br>
8. Re: time format (Yaqiang Wang)<br>
9. Re: say to stderr (Davide Sacchetti)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 25 Jul 2011 14:26:52 -0500<br>
From: Kevin Huyck <<a href="mailto:klhuyck@meridian-enviro.com">klhuyck@meridian-enviro.com</a>><br>
Subject: Re: [gradsusr] Missing variables in 3-d fwrite binary file<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID: <<a href="mailto:4E2DC37C.3000703@meridian-enviro.com">4E2DC37C.3000703@meridian-enviro.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Jim,<br>
<br>
I thought those values represented the time step. After changing them to<br>
"1" as you suggested, the data are what I was expecting. My next step is<br>
creating multiple levels corresponding to numerous isentropic levels.<br>
For each level I add, I'll increment the "1"s to the number of vertical<br>
levels.<br>
<br>
Many, many thanks for you suggestion.<br>
<br>
Kevin L. Huyck<br>
Forecaster, Meridian Environmental Technology, Inc.<br>
<a href="mailto:klhuyck@meridian-enviro.com">klhuyck@meridian-enviro.com</a> <mailto:<a href="mailto:klhuyck@meridian-enviro.com">klhuyck@meridian-enviro.com</a>><br>
<br>
Composed using Mozilla Thunderbird!<br>
<br>
On 07/22/11 11:48, James T. Potemra wrote:<br>
> Hi Kevin:<br>
><br>
> It looks like in your NAM-2011072200.ctl file you are defining one<br>
> vertical level:<br>
><br>
> zdef 1 levels 315<br>
><br>
> but you then assign two levels to each variable:<br>
><br>
> cpd 2 99 Condensation Pressure Deficit (mb)<br>
> isenps 2 99 Pressure (mb)<br>
> u 2 99 Zonal component of wind (ms^-1)<br>
> v 2 99 Meridional component of wind (ms^-1)<br>
><br>
> I think if you change the "2's" above with "1", or for surface you can<br>
> have "0",<br>
> it should work ok.<br>
><br>
> Jim<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110725/933b4073/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110725/933b4073/attachment-0001.html</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: klhuyck.vcf<br>
Type: text/x-vcard<br>
Size: 307 bytes<br>
Desc: not available<br>
Url : <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110725/933b4073/attachment-0001.vcf" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110725/933b4073/attachment-0001.vcf</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 26 Jul 2011 10:18:45 +0530<br>
From: dipak sahu <<a href="mailto:dipakmath@gmail.com">dipakmath@gmail.com</a>><br>
Subject: [gradsusr] error with fprintf command<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Message-ID:<br>
<CAE1_8Lbco=bBx9rcWNU-fb0d8HP=Z=<a href="mailto:E-_yT-DDabmnuWDhwO9w@mail.gmail.com">E-_yT-DDabmnuWDhwO9w@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Dear all<br>
I tried to write the grads out put values into a ascii file by using<br>
the <a href="http://fprintf.gs" target="_blank">fprintf.gs</a> script. I tried the following command<br>
<br>
> set x 1 54 (since the .dat file has 54 longitude and 36 latitude points)<br>
> set t 25<br>
> fprintf t2-273.15 T2-24hr.csv %g, 54<br>
<br>
but the file T2-24hr.csv has only two rows of data instead of 36 rows of<br>
data. What may be the error with this script or command.<br>
<br>
waiting for your kind reply<br>
<br>
thanking you<br>
with regards<br>
Dipak Sahu<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110726/09c72c64/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110726/09c72c64/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 26 Jul 2011 17:50:18 -0700<br>
From: chinh ta huu <<a href="mailto:chinhth2010@gmail.com">chinhth2010@gmail.com</a>><br>
Subject: Re: [gradsusr] Grads 2.0.9 error<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<CAHiZ=QPdOkgoRAO2Mg9FVCqWFBw-7-ApCno1j0gNbAr=<a href="mailto:QvE5%2Bg@mail.gmail.com">QvE5+g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Dear Guilherme<br>
For this software, not make install. You only copy to<br>
/opt/opengrads/opengrads/<br>
And then set envir variable in bashfile. It is ok<br>
Best regards<br>
Chinh<br>
<br>
<br>
On Thu, Jul 7, 2011 at 1:09 PM, Guilherme Martins <<a href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a>>wrote:<br>
<br>
> Hi users,<br>
><br>
> I need help. I'm trying to install grads2.0.9, but I receive the message<br>
> below when I type make:<br>
><br>
> gagx.o: In function `gakml':<br>
> /home/gui/grads-2.0.a9/src/gagx.c:3986: undefined reference to `gxqdrgb'<br>
> gagx.o: In function `gagtif':<br>
> /home/gui/grads-2.0.a9/src/gagx.c:4290: undefined reference to `gxqdrgb'<br>
> ../../supplibs/lib/libcurl.a(timeval.o): In function `curlx_tvnow':<br>
> timeval.c:(.text+0x89): undefined reference to `clock_gettime'<br>
> make[2]: ** [grads] Erro 1<br>
> make[2]: Saindo do diret?rio `/home/gui/grads-2.0.a9/src'<br>
> make[1]: ** [all] Erro 2<br>
> make[1]: Saindo do diret?rio `/home/gui/grads-2.0.a9/src'<br>
> make: ** [all-recursive] Erro 1<br>
> gui@curupira:~/grads-2.0.a9$<br>
><br>
> May anyone help me?<br>
><br>
> Thanks a lot,<br>
><br>
> Guilherme.<br>
><br>
> --<br>
> Guilherme Martins<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>
><br>
<br>
<br>
--<br>
(Mr.) Ta Huu Chinh<br>
National, Weather Forecasting Center, Ha Noi, Viet Nam.<br>
No: 4th, Dang Thai Than, Hoan Kiem, Ha Noi<br>
Tel: 84-903-402-181<br>
Fax: 84-43-824-4917<br>
Email: <a href="mailto:chinhth2010@gmail.com">chinhth2010@gmail.com</a><br>
Website: <a href="http://vn.myblog.yahoo.com/chinhth2005/" target="_blank">http://vn.myblog.yahoo.com/chinhth2005/</a><br>
Website: <a href="http://bestknowledge-chinhth.blogspot.com/" target="_blank">http://bestknowledge-chinhth.blogspot.com/</a><br>
Website: <a href="http://anhcuoidep.vn" target="_blank">http://anhcuoidep.vn</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110726/6b6229ad/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110726/6b6229ad/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 27 Jul 2011 00:19:26 -0700<br>
From: Salvador Salazar <<a href="mailto:sal.salazar1@gmail.com">sal.salazar1@gmail.com</a>><br>
Subject: [gradsusr] Variable 'HFX' from ctl file<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Message-ID:<br>
<CA+_3LvrzGiTY_nsK33FKTuX==<a href="mailto:uW6o0bVGQFEqj5nHS84yv8AqQ@mail.gmail.com">uW6o0bVGQFEqj5nHS84yv8AqQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Hi guys,<br>
<br>
I have a question about the variable 'HFX' that from the ARWpost .ctl<br>
file. The description reads 'upward heat flux at the surface', and I<br>
wanted to know if this meant total heat flux or simply sensible heat<br>
flux.<br>
<br>
Any ideas are appreciated!<br>
<br>
--<br>
Sal!<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 27 Jul 2011 10:27:59 +0200<br>
From: Simon Kiertscher <<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>><br>
Subject: [gradsusr] time format<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Message-ID: <<a href="mailto:4E2FCC0F.6080607@gmx.de">4E2FCC0F.6080607@gmx.de</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Dear all,<br>
<br>
i have a problem with opening a file.<br>
I use (GrADS) Version 2.0.a9 on Suse<br>
<br>
ga-> sdfopen GKSS-2.nc<br>
Scanning self-describing file: GKSS-2.nc<br>
gadsdf: Error parsing time_units for SDF file.<br>
<br>
the format is as follows:<br>
(from ncdump)<br>
<br>
double time(time) ;<br>
time:units = "day as %Y%m%d.%f" ;<br>
time:calendar = "proleptic_gregorian" ;<br>
time:axis = "t" ;<br>
time:long_name = "time" ;<br>
<br>
So i think this is valid format? Can anyone tell my what is wrong?<br>
<br>
Best Regards,<br>
Simon<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Wed, 27 Jul 2011 16:41:49 +0800<br>
From: Yaqiang Wang <<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a>><br>
Subject: Re: [gradsusr] time format<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<<a href="mailto:CABvomDVQ8XZGPpaKnHwyn6a2t-usuxxAEKOW0JYhP6-ixTVh6g@mail.gmail.com">CABvomDVQ8XZGPpaKnHwyn6a2t-usuxxAEKOW0JYhP6-ixTVh6g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
time:units = "day as %Y%m%d.%f" It does not follow GOARDS<br>
conventions which is used in 'sdfopen' function. So you need to write<br>
a control file to tell GrADS the dimensions and variables in the data<br>
set. You have to use 'xdfopen' or 'open' commands to open the data<br>
file.<br>
<br>
On Wed, Jul 27, 2011 at 4:27 PM, Simon Kiertscher<br>
<<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>> wrote:<br>
> Dear all,<br>
><br>
> i have a problem with opening a file.<br>
> I use (GrADS) Version 2.0.a9 on Suse<br>
><br>
> ga-> sdfopen GKSS-2.nc<br>
> Scanning self-describing file: ?GKSS-2.nc<br>
> gadsdf: Error parsing time_units for SDF file.<br>
><br>
> the format is as follows:<br>
> (from ncdump)<br>
><br>
> ? ? ? ? double time(time) ;<br>
> ? ? ? ? ? ? ? ? time:units = "day as %Y%m%d.%f" ;<br>
> ? ? ? ? ? ? ? ? time:calendar = "proleptic_gregorian" ;<br>
> ? ? ? ? ? ? ? ? time:axis = "t" ;<br>
> ? ? ? ? ? ? ? ? time:long_name = "time" ;<br>
><br>
> So i think this is valid format? Can anyone tell my what is wrong?<br>
><br>
> Best Regards,<br>
> Simon<br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>
<br>
<br>
<br>
--<br>
*************************************************<br>
Dr. Yaqiang Wang<br>
Chinese Academy of Meteorological Sciences (CAMS)<br>
46, Zhong-Guan-Cun South Avenue<br>
Beijing, 100081<br>
China<br>
<br>
<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a><br>
**************************************************<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Wed, 27 Jul 2011 11:14:17 +0200<br>
From: Simon Kiertscher <<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>><br>
Subject: Re: [gradsusr] time format<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Message-ID: <<a href="mailto:4E2FD6E9.1040002@gmx.de">4E2FD6E9.1040002@gmx.de</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Dear Yaqiang,<br>
<br>
thank you for the information, where can i find the GrADS conventions to<br>
know which format is ok, and which not?<br>
I'm very new to GrADS, so can you give me a source where i can find a<br>
example of a control file? I have no idea how to do that.<br>
<br>
Best Regards,<br>
Simon<br>
> time:units = "day as %Y%m%d.%f" It does not follow GOARDS<br>
> conventions which is used in 'sdfopen' function. So you need to write<br>
> a control file to tell GrADS the dimensions and variables in the data<br>
> set. You have to use 'xdfopen' or 'open' commands to open the data<br>
> file.<br>
><br>
> On Wed, Jul 27, 2011 at 4:27 PM, Simon Kiertscher<br>
> <<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>> wrote:<br>
>> Dear all,<br>
>><br>
>> i have a problem with opening a file.<br>
>> I use (GrADS) Version 2.0.a9 on Suse<br>
>><br>
>> ga-> sdfopen GKSS-2.nc<br>
>> Scanning self-describing file: GKSS-2.nc<br>
>> gadsdf: Error parsing time_units for SDF file.<br>
>><br>
>> the format is as follows:<br>
>> (from ncdump)<br>
>><br>
>> double time(time) ;<br>
>> time:units = "day as %Y%m%d.%f" ;<br>
>> time:calendar = "proleptic_gregorian" ;<br>
>> time:axis = "t" ;<br>
>> time:long_name = "time" ;<br>
>><br>
>> So i think this is valid format? Can anyone tell my what is wrong?<br>
>><br>
>> Best Regards,<br>
>> Simon<br>
>> _______________________________________________<br>
>> gradsusr mailing list<br>
>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Wed, 27 Jul 2011 17:32:44 +0800<br>
From: Yaqiang Wang <<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a>><br>
Subject: Re: [gradsusr] time format<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<CABvomDXSwC3X=<a href="mailto:EEA7_JxvwFAZOXG6vbmntskZxsGzo_6y03CBQ@mail.gmail.com">EEA7_JxvwFAZOXG6vbmntskZxsGzo_6y03CBQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
The information could be found at<br>
<a href="http://www.iges.org/grads/gadoc/gradcomdsdfopen.html" target="_blank">http://www.iges.org/grads/gadoc/gradcomdsdfopen.html</a>.<br>
<br>
On Wed, Jul 27, 2011 at 5:14 PM, Simon Kiertscher<br>
<<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>> wrote:<br>
> Dear Yaqiang,<br>
><br>
> thank you for the information, where can i find the GrADS conventions to<br>
> know which ?format is ok, ?and which not?<br>
> I'm very new to GrADS, so can you give me a source where i can find a<br>
> example of a control file? I have no idea how to do that.<br>
><br>
> Best Regards,<br>
> Simon<br>
>> ? time:units = "day as %Y%m%d.%f" ? It does not follow GOARDS<br>
>> conventions which is used in 'sdfopen' function. So you need to write<br>
>> a control file to tell GrADS the dimensions and variables in the data<br>
>> set. You have to use 'xdfopen' or 'open' commands to open the data<br>
>> file.<br>
>><br>
>> On Wed, Jul 27, 2011 at 4:27 PM, Simon Kiertscher<br>
>> <<a href="mailto:simon.kiertscher@gmx.de">simon.kiertscher@gmx.de</a>> ?wrote:<br>
>>> Dear all,<br>
>>><br>
>>> i have a problem with opening a file.<br>
>>> I use (GrADS) Version 2.0.a9 on Suse<br>
>>><br>
>>> ga-> ?sdfopen GKSS-2.nc<br>
>>> Scanning self-describing file: ?GKSS-2.nc<br>
>>> gadsdf: Error parsing time_units for SDF file.<br>
>>><br>
>>> the format is as follows:<br>
>>> (from ncdump)<br>
>>><br>
>>> ? ? ? ? ?double time(time) ;<br>
>>> ? ? ? ? ? ? ? ? ?time:units = "day as %Y%m%d.%f" ;<br>
>>> ? ? ? ? ? ? ? ? ?time:calendar = "proleptic_gregorian" ;<br>
>>> ? ? ? ? ? ? ? ? ?time:axis = "t" ;<br>
>>> ? ? ? ? ? ? ? ? ?time:long_name = "time" ;<br>
>>><br>
>>> So i think this is valid format? Can anyone tell my what is wrong?<br>
>>><br>
>>> Best Regards,<br>
>>> Simon<br>
>>> _______________________________________________<br>
>>> gradsusr mailing list<br>
>>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
>>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>>><br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>
<br>
<br>
<br>
--<br>
*************************************************<br>
Dr. Yaqiang Wang<br>
Chinese Academy of Meteorological Sciences (CAMS)<br>
46, Zhong-Guan-Cun South Avenue<br>
Beijing, 100081<br>
China<br>
<br>
<a href="mailto:yaqiang.wang@gmail.com">yaqiang.wang@gmail.com</a><br>
**************************************************<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Wed, 27 Jul 2011 11:34:40 +0200<br>
From: Davide Sacchetti <<a href="mailto:davide.sacchetti@arpal.gov.it">davide.sacchetti@arpal.gov.it</a>><br>
Subject: Re: [gradsusr] say to stderr<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID: <1311759280.885.5.camel@davide><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
inside a script you could redirect using unix shell<br>
e.g.:<br>
'!echo ERROR ON FILE >&2'<br>
<br>
I've just tried and it seems to work<br>
<br>
bye bye<br>
Davide<br>
<br>
On Mon, 2011-07-25 at 14:27 +0200, Simon Kiertscher wrote:<br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> Hi John,<br>
><br>
> thanks you for your effort.<br>
><br>
> Best Regards,<br>
> Simon<br>
><br>
> Am 22.07.2011 16:10, schrieb Huddleston, John:<br>
> > Simon<br>
> ><br>
> > I looked through the GrADS source code, specifically gscrpt.c file and the 'printf' function is used.<br>
> ><br>
> > The 'printf' always goes to stdout. Had it been fprintf(FILE *somefp,...) then maybe it could have been.<br>
> ><br>
> > However, I don't think the original designers (aka Brian Doty) was concerned about writing to stderr.<br>
> ><br>
> > John<br>
> ><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of Simon Kiertscher<br>
> > Sent: Friday, July 22, 2011 2:25 AM<br>
> > To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> > Subject: Re: [gradsusr] say to stderr<br>
> ><br>
> > Hi John,<br>
> ><br>
> > thanks for your answer. I know how to redirect channels on the command line.<br>
> > But how to decide IN the script, what should go to stderr and what to stdout, 'say' always put the output to stdout.<br>
> > So in bash i would do echo "foobar" 1>&2 to get the foobar to the stderr, how can i do this in GrADS? Is there a way?<br>
> ><br>
> > Best Regards,<br>
> > Simon<br>
> >> Simon<br>
> >><br>
> >> If you are running GrADS in batch mode you can re-direct output as<br>
> >> follows<br>
> >><br>
> >> grads -lbc 'run <a href="http://somescript.gs" target="_blank">somescript.gs</a>' 2> say.err 1>&2<br>
> >><br>
> >> In interactive mode there is no output to the screen it simply goes to the file.<br>
> >><br>
> >> Does that answer your question?<br>
> >><br>
> >> John Huddleston<br>
> >><br>
> >> -----Original Message-----<br>
> >> From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><br>
> >> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of Simon Kiertscher<br>
> >> Sent: Wednesday, July 20, 2011 7:36 AM<br>
> >> To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> >> Subject: [gradsusr] say to stderr<br>
> >><br>
> >> Dear gradsusers<br>
> >><br>
> >> i can not find any information about sending text to the stderror channel of the shell while using the say command. Has some one an idea?<br>
> >><br>
> >> Best Regards,<br>
> >> Simon<br>
> >> _______________________________________________<br>
> >> gradsusr mailing list<br>
> >> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> >> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
> >><br>
> >> _______________________________________________<br>
> >> gradsusr mailing list<br>
> >> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> >> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
> >><br>
> ><br>
> > _______________________________________________<br>
> > gradsusr mailing list<br>
> > <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> > <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
> ><br>
> > _______________________________________________<br>
> > gradsusr mailing list<br>
> > <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> > <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
> ><br>
> -----BEGIN PGP SIGNATURE-----<br>
> Version: GnuPG v1.4.9 (MingW32)<br>
><br>
> iEYEARECAAYFAk4tYU8ACgkQG0AVdCSrH+YQTwCguP5vZwnTglV57tNoXdBLQHfr<br>
> Z8EAnizKje0vZYEoHntzY/0Omx67IPSf<br>
> =Y7CV<br>
> -----END PGP SIGNATURE-----<br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>
><br>
<br>
--<br>
--> Attenzione cambio indirizzo: <a href="mailto:davide.sacchetti@arpal.gov.it">davide.sacchetti@arpal.gov.it</a><br>
--<br>
Davide Sacchetti<br>
Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria<br>
ARPAL Unit? Tecnica Complessa di livello Regionale<br>
V.le Brigare Partigiane 2 16121 Genova (I)<br>
tel: +39 010 6437535 fax: +39 010 6437520<br>
mail: <a href="mailto:davide.sacchetti@arpal.gov.it">davide.sacchetti@arpal.gov.it</a> web: <a href="http://www.meteoliguria.it" target="_blank">www.meteoliguria.it</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
End of gradsusr Digest, Vol 17, Issue 27<br>
****************************************<br>
</blockquote></div><br></div>