<div dir="ltr">Thanks for the help!<br><br><div class="gmail_quote">On Tue, Nov 9, 2010 at 5:28 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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: netCDF control file (Heiner K?rnich)<br>
2. Cuestion (Juan Jose Amides Figueroa Urbano)<br>
3. Re: Cuestion (RafaelCB)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 9 Nov 2010 14:33:08 +0100<br>
From: Heiner K?rnich <<a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a>><br>
Subject: Re: [gradsusr] netCDF control file<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<AANLkTi=THDPRVWHVfG0Kq0nRHnC4mBigtHQqPH=<a href="mailto:uqC7W@mail.gmail.com">uqC7W@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hi Deniz,<br>
<br>
ok. When you tried to open the file with sdfopen and it failed, this means<br>
that the file is not consistent with the coards-standard. So we need a<br>
ctl-file and xdfopen.<br>
<br>
You need the name of all coordinates of the file. ncdump -h would give that.<br>
When you wrote "dimension1", this is just an example for the first<br>
dimension. Probably, this should be the name of your longitude-variable in<br>
matlab, eg. "long" or "x" or so.<br>
<br>
"fwrite" in matlab follows the logic of the programming language c. You have<br>
to open the file first with fopen. It is explained in the matlab-manual.<br>
Here is an example from me:<br>
% open the file 'ures.bin' in binary write-mode.<br>
fid=fopen('ures.bin','wb');<br>
% write binary data from the field winds to file in real*4 %precision<br>
fwrite(fid,winds,'real*4');<br>
<br>
Regards,<br>
Heiner<br>
<br>
On Tue, Nov 9, 2010 at 1:37 PM, Deniz Demirhan Bari <<a href="mailto:bari@iap-kborn.de">bari@iap-kborn.de</a>>wrote:<br>
<br>
> Dear Heiner,<br>
><br>
> Grads 2.0 in our server is now changed and it is compiled with netCDF<br>
> support.<br>
><br>
> When I tried:<br>
><br>
> >sdfopen <a href="http://ures.nc" target="_blank">ures.nc</a><br>
><br>
> it says:<br>
><br>
> >Scanning self-describing file: <a href="http://ures.nc" target="_blank">ures.nc</a><br>
><br>
> gadsdf: SDF file has no discernable X coordinate.<br>
><br>
> When I try:<br>
><br>
> >xdfopen ures.ctl<br>
><br>
> >Scanning Descriptor File: ures.ctl<br>
><br>
> gadsdf: Lon dimension dimension1 is not an SDF dimension.<br>
><br>
> SDF Descriptor file ures.ctl was not successfully opened & parsed.<br>
><br>
><br>
><br>
> ---Matlab fwrite, I tried it but couldn?t manage.<br>
><br>
> Thank you<br>
><br>
> Deniz<br>
><br>
> *Von:* <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>]<br>
> *Im Auftrag von *Heiner K?rnich<br>
> *Gesendet:* Montag, 8. November 2010 17:07<br>
><br>
> *An:* GrADS Users Forum<br>
> *Betreff:* Re: [gradsusr] netCDF control file<br>
><br>
><br>
><br>
> Hi Deniz,<br>
><br>
> when you write recognized "sdfopen" or "xdfopen", do you mean that grads<br>
> does not know the command? Is your grads-version compiled with<br>
> netcdf-support?<br>
><br>
> It is certainly a good thing to create netcdf-files, as they are<br>
> self-descriptive. But still you could write binary data from matlab with the<br>
> command fwrite:<br>
> <a href="http://www.mathworks.com/help/techdoc/ref/fwrite.html" target="_blank">http://www.mathworks.com/help/techdoc/ref/fwrite.html</a><br>
><br>
> Then you have to follow the logic of grads binary files, ie. first<br>
> longitude, then latitude, then height, then time, as described in the<br>
> manual.<br>
><br>
> So far,<br>
> Heiner<br>
><br>
> On Mon, Nov 8, 2010 at 4:25 PM, Deniz Demirhan Bari <<a href="mailto:bari@iap-kborn.de">bari@iap-kborn.de</a>><br>
> wrote:<br>
><br>
> Hello Heiner,<br>
><br>
> Thank you for your mail. I tried 'sdfopen <a href="http://ures.nc" target="_blank">ures.nc</a>' but neither grads 2.0<br>
> nor grads 1.8 recognized sdfopen. Then I prepared a control file as below,<br>
> by looking at the ?CDO sinfo <a href="http://ures.nc" target="_blank">ures.nc</a>?. Then tried ?xdfopen ures.ctl? but<br>
> none of the grads versions recognized xdfopen again.<br>
><br>
> *<br>
><br>
> DSET ^<a href="http://ures.nc" target="_blank">ures.nc</a><br>
><br>
> DTYPE netcdf<br>
><br>
> UNDEF -9e+33<br>
><br>
> XDEF dimension1 96 LINEAR 0.000000 3.750000<br>
><br>
> YDEF dimension2 48 LEVELS -87.159 -83.479 -79.777 -76.070 -72.362 -68.652<br>
><br>
> -64.942 -61.232 -57.521 -53.810 -50.099 -46.389<br>
><br>
> -42.678 -38.967 -35.256 -31.545 -27.833 -24.122<br>
><br>
> -20.411 -16.700 -12.989 -9.278 -5.567 -1.856<br>
><br>
> 1.856 5.567 9.278 12.989 16.700 20.411<br>
><br>
> 24.122 27.833 31.545 35.256 38.967 42.678<br>
><br>
> 46.389 50.099 53.810 57.521 61.232 64.942<br>
><br>
> 68.652 72.362 76.070 79.777 83.479 87.159<br>
><br>
> ZDEF dimension3 114 LINEAR 1 1<br>
><br>
> TDEF dimension4 1 LINEAR 00:00Z00jan0000 1mn<br>
><br>
> TITLE ures.grb T31 grid<br>
><br>
> VARS 1<br>
><br>
> ures 114 1,100 ures<br>
><br>
> ENDVARS<br>
><br>
> *<br>
><br>
><br>
><br>
> My data is three dimensionaI and if I try to save my data in an ASCII file<br>
> in MATLAB it gives a two dimensional output. I also couldn?t solve this<br>
> problem<br>
><br>
> Thank you<br>
><br>
> Deniz<br>
><br>
><br>
><br>
><br>
><br>
> *Von:* <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>]<br>
> *Im Auftrag von *Heiner K?rnich<br>
> *Gesendet:* Montag, 8. November 2010 14:06<br>
> *An:* GrADS Users Forum<br>
> *Betreff:* Re: [gradsusr] netCDF control file<br>
><br>
><br>
><br>
> Hi Deniz,<br>
><br>
> you don't nead a ctl-file to open a netcdf-file in grads. If your file<br>
> follows the COARDS-standard, then you can open it with 'sdfopen <a href="http://ures.nc" target="_blank">ures.nc</a>'.<br>
> If grads won't recognise it, you might want to try an older grads-version.<br>
> We had some problems here with grads 2.0 and netcdf.<br>
><br>
> If grads still won't open your file, you can write a ctl-file and try to<br>
> open that with the command 'xdfopen'. The ctl-file looks a bit different<br>
> from standard ctl-files, look here:<br>
> <a href="http://www.iges.org/grads/gadoc/gradcomdxdfopen.html" target="_blank">http://www.iges.org/grads/gadoc/gradcomdxdfopen.html</a><br>
><br>
> Then, you would need the output from ncdump in order to know what is inside<br>
> the netcdf-file. Alternatively you can use the climate data operators (CDO)<br>
> with the command "cdo sinfo <a href="http://ures.nc" target="_blank">ures.nc</a>".<br>
> Or in matlab, if you have the mexnc-package installed, you read the<br>
> information with<br>
> info=nc_info('<a href="http://ures.nc" target="_blank">ures.nc</a>')<br>
> Then you can access all details in info.<br>
><br>
> Finally, if it is only you who will use the data, it might be simpler to<br>
> write binary output in matlab and use a standard ctl.<br>
><br>
> Kind regards from Stockholm,<br>
> Heiner<br>
><br>
> On Mon, Nov 8, 2010 at 10:11 AM, Deniz Demirhan Bari <<a href="mailto:bari@iap-kborn.de">bari@iap-kborn.de</a>><br>
> wrote:<br>
><br>
> Dear Grads users,<br>
><br>
> I have calculated residual wind components in MATLAB and saved them in<br>
> netCDF file. Now I want to read them in grads but I cannot create a netcdf<br>
> control file.<br>
><br>
> I tried to get the output of ncdump but my computer doesn?t recognize ncdump although I installed it.<br>
><br>
> I am using the latest version of Grads on a Suse Linux computer.<br>
><br>
> My attempt to create a ctl file is below:<br>
><br>
> *<br>
><br>
> DSET ^<a href="http://ures.nc" target="_blank">ures.nc</a><br>
><br>
> DTYPE netCDF<br>
><br>
> XDEF 96 LINEAR 0.000000 3.750000<br>
><br>
> YDEF 48 LEVELS -87.159 -83.479 -79.777 -76.070 -72.362 -68.652<br>
><br>
> -64.942 -61.232 -57.521 -53.810 -50.099 -46.389<br>
><br>
> -42.678 -38.967 -35.256 -31.545 -27.833 -24.122<br>
><br>
> -20.411 -16.700 -12.989 -9.278 -5.567 -1.856<br>
><br>
> 1.856 5.567 9.278 12.989 16.700 20.411<br>
><br>
> 24.122 27.833 31.545 35.256 38.967 42.678<br>
><br>
> 46.389 50.099 53.810 57.521 61.232 64.942<br>
><br>
> 68.652 72.362 76.070 79.777 83.479 87.159<br>
><br>
> ZDEF 114 LINEAR 1 1<br>
><br>
> TDEF 1 LINEAR 00:00Z00jan0000 1mn<br>
><br>
> OPTIONS yrev<br>
><br>
> UNDEF -9e+33<br>
><br>
> VARS 1<br>
><br>
> ures 114 1,100 ures<br>
><br>
> ENDVARS<br>
><br>
> *<br>
><br>
> Thanks in advance<br>
><br>
> Deniz DEMIRHAN BARI<br>
><br>
> Leibniz-Institut f?r Atmosph?renphysik e.V.<br>
> an der Universit?t Rostock<br>
> Schlossstra?e 6<br>
> 18225 K?hlungsborn<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>
><br>
><br>
> --<br>
> Heiner K?rnich<br>
> Dept. of Meteorology Tel: +46 8 164333<br>
> Stockholms University, SE-106 91 Stockholm, Sweden<br>
> Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/%7Eheiner/" target="_blank">www.misu.su.se/~heiner/</a><<a href="http://www.misu.su.se/%7Eheiner/" target="_blank">http://www.misu.su.se/%7Eheiner/</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>
><br>
><br>
> --<br>
> Heiner K?rnich<br>
> Dept. of Meteorology Tel: +46 8 164333<br>
> Stockholms University, SE-106 91 Stockholm, Sweden<br>
> Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/%7Eheiner/" target="_blank">www.misu.su.se/~heiner/</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>
<br>
--<br>
Heiner K?rnich<br>
Dept. of Meteorology Tel: +46 8 164333<br>
Stockholms University, SE-106 91 Stockholm, Sweden<br>
Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/%7Eheiner/" target="_blank">www.misu.su.se/~heiner/</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20101109/ca3bf19e/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20101109/ca3bf19e/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 9 Nov 2010 09:16:11 -0600<br>
From: Juan Jose Amides Figueroa Urbano <<a href="mailto:juanjosefigueroa@gmail.com">juanjosefigueroa@gmail.com</a>><br>
Subject: [gradsusr] Cuestion<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Message-ID:<br>
<AANLkTinzWXC9M-NGiuTXZ=qg9cu2=<a href="mailto:ayukRurzhjkA_ga@mail.gmail.com">ayukRurzhjkA_ga@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello, i new in GrADS, i need a list of available diagnostics or productos<br>
to see in GrADS from WRF model, i try whit rainc for rain and pressure ("d<br>
rainc" and "d pressure") can you help me?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20101109/bf5c6f70/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20101109/bf5c6f70/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 9 Nov 2010 13:33:45 -0200<br>
From: RafaelCB <<a href="mailto:rafael.ciram@gmail.com">rafael.ciram@gmail.com</a>><br>
Subject: Re: [gradsusr] Cuestion<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<AANLkTi=<a href="mailto:nRm3XEFHb_kqMe%2Bw-KoLtYSEns5sb3b5y8v_y@mail.gmail.com">nRm3XEFHb_kqMe+w-KoLtYSEns5sb3b5y8v_y@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello<br>
In WRF has two types of precipitation<br>
rainc 0 0 TOTAL CUMULUS Accumulated Precipitation (cm)<br>
rain 0 0 TOTAL GRID SCALE Accumulated Precipitation (cm)<br>
You need to add the two variables to have the total precipitation that time.<br>
<br>
* Precipitation<br>
set gxout shaded<br>
d rain+rainc<br>
<br>
* Pressure<br>
contour set gxout<br>
d slp<br>
<br>
hug.<br>
<br>
2010/11/9 Juan Jose Amides Figueroa Urbano <<a href="mailto:juanjosefigueroa@gmail.com">juanjosefigueroa@gmail.com</a>><br>
<br>
> Hello, i new in GrADS, i need a list of available diagnostics or productos<br>
> to see in GrADS from WRF model, i try whit rainc for rain and pressure ("d<br>
> rainc" and "d pressure") can you help me?<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>
Rafael Censi Borges<br>
T?c.Meteorologia - Epagri/Ciram<br>
+55 (48)3239-8064/8066<br>
<a href="http://ciram.epagri.sc.gov.br" target="_blank">http://ciram.epagri.sc.gov.br</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20101109/f5053ea2/attachment.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20101109/f5053ea2/attachment.html</a><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 9, Issue 23<br>
***************************************<br>
</blockquote></div><br></div>