From ychen at BGC-JENA.MPG.DE Mon Nov 2 09:41:13 2009 From: ychen at BGC-JENA.MPG.DE (Youmin Chen) Date: Mon, 2 Nov 2009 15:41:13 +0100 Subject: unsubscribe In-Reply-To: <9F6B45159B88D2428A8B96142B95002F0555E6A3@EMAIL01.pnl.gov> Message-ID: Please remove my e-mail from the list. Thanks! From owenfan0715 at SINA.COM.CN Mon Nov 2 10:12:46 2009 From: owenfan0715 at SINA.COM.CN (=?ISO-8859-1?B?bGl6aGkubWlhbw==?=) Date: Mon, 2 Nov 2009 23:12:46 +0800 Subject: Which version of GrADS can be used in GDS to support NetCDF-4/HDF5 Message-ID: Hi all, I tried to use one version of GrADS in GDS to support NetCDF-4. And, I tested many versions of GrADS, but failed. Is there any one using GDS to public NetCDF-4? Which version of GrADS was used in GDS? Any suggestion will be appreciated. Thanks. Best Regards, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091102/7c8c13c3/attachment.html From jma at COLA.IGES.ORG Mon Nov 2 13:45:15 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Mon, 2 Nov 2009 13:45:15 -0500 Subject: Which version of GrADS can be used in GDS to support NetCDF-4/HDF5 In-Reply-To: Message-ID: I have not released a version of GrADS that will read netcdf-4. I am in the process of testing netcdf-4 with GrADS -- the OPeNDAP interface doesn't yet work with sdfopen, and there are are some significant performance issues when reading compressed NetCDF files that have yet to be resolved. For netcdf-3, or for uncompressed netcdf-4, the performance is fine.If you need to serve netcdf-4 with GDS, you can try Arlindo's opengrads builds. --Jennifer On Nov 2, 2009, at 10:12 AM, lizhi.miao wrote: > Hi all, > > I tried to use one version of GrADS in GDS to support NetCDF-4. And, > I tested many versions of GrADS, but failed. Is there any one using > GDS to public NetCDF-4? Which version of GrADS was used in GDS? Any > suggestion will be appreciated. Thanks. > > > Best Regards, > > Tim -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091102/a0f06657/attachment.html From owenfan0715 at SINA.COM.CN Mon Nov 2 14:31:00 2009 From: owenfan0715 at SINA.COM.CN (=?ISO-8859-1?B?bGl6aGkubWlhbw==?=) Date: Tue, 3 Nov 2009 03:31:00 +0800 Subject: Which version of GrADS can be used in GDS to support NetCDF-4/HDF5 Message-ID: Hi Jennifer, Thanks for your reply. Which verison of Arlindo's opengrads can support netcdf-4? and, where can I get it? Thanks again. Best Regards, Tim ------------------ Original ------------------ From: "Jennifer Adams"; Date: Tue, Nov 3, 2009 02:45 AM To: "GRADSUSR"; Subject: Re: Which version of GrADS can be used in GDS to support NetCDF-4/HDF5 I have not released a version of GrADS that will read netcdf-4. I am in the process of testing netcdf-4 with GrADS -- the OPeNDAP interface doesn't yet work with sdfopen, and there are are some significant performance issues when reading compressed NetCDF files that have yet to be resolved. For netcdf-3, or for uncompressed netcdf-4, the performance is fine.If you need to serve netcdf-4 with GDS, you can try Arlindo's opengrads builds.--Jennifer On Nov 2, 2009, at 10:12 AM, lizhi.miao wrote: Hi all, I tried to use one version of GrADS in GDS to support NetCDF-4. And, I tested many versions of GrADS, but failed. Is there any one using GDS to public NetCDF-4? Which version of GrADS was used in GDS? Any suggestion will be appreciated. Thanks. Best Regards, Tim -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091103/dd0ccfd1/attachment.html From arlindo.dasilva at GMAIL.COM Mon Nov 2 14:44:09 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 2 Nov 2009 14:44:09 -0500 Subject: Which version of GrADS can be used in GDS to support NetCDF-4/HDF5 In-Reply-To: <0FB4302D-E8C0-41E4-AE95-772E3BD5FFBD@cola.iges.org> Message-ID: On Mon, Nov 2, 2009 at 1:45 PM, Jennifer Adams wrote: > I have not released a version of GrADS that will read netcdf-4. I am in the > process of testing netcdf-4 with GrADS -- the OPeNDAP interface doesn't yet > work with sdfopen, and there are are some significant performance issues > when reading compressed NetCDF files that have yet to be resolved. For > netcdf-3, or for uncompressed netcdf-4, the performance is fine.If you need > to serve netcdf-4 with GDS, you can try Arlindo's opengrads builds. > We have been serving NetCDF-4 data for some time now with the OpenGrADS builds, see for example: http://opendap.nccs.nasa.gov:9090/dods/GEOS-5/yotc/0.25_deg/assim If you are using GDS-2 you want to download the OpenGrADS Bundle v2.0.a7.oga.3: http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.3/ If you are using GDS-1 you want to download v1.10.r2.oga: http://sourceforge.net/projects/opengrads/files/grads1/1.10.r2/ Both versions support NetCDF-4. A word of caution regarding NetCDF-4 compression. Make sure you specify the chuncking size, say, to be a 2D slice of data. Depending on the NetCDF-4 version, the default chunking size may lead to very poor performance during reading. The recently released LATS extension chooses the chunking size this way. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091102/bb6ff52b/attachment.html From h.meteo.shirazu at GMAIL.COM Mon Nov 2 15:45:47 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Mon, 2 Nov 2009 14:45:47 -0600 Subject: open 2 file in grads Message-ID: hi all user after open tow file in grads I can not display the variables of file2 error: ga-> d v2m Syntax Error: Invalid Operand 'v2m' not a variable or function name Error ocurred at column 1 DISPLAY error: Invalid expression Expression = v2m can anyone help me? thanks . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091102/79d23fe9/attachment.html From teddyallen at YAHOO.COM Mon Nov 2 15:58:48 2009 From: teddyallen at YAHOO.COM (Teddy Allen) Date: Mon, 2 Nov 2009 12:58:48 -0800 Subject: open 2 file in grads In-Reply-To: <5c658ce10911021245y646805b5h74f54f167e80874d@mail.gmail.com> Message-ID: Dear Hossein, GrADS can?dislay multiple files at once, but each file after the first must be stated in this fashion: d file1 d file2.2 d file3.3? and so on.... Just be sure that the display command for the second file has a .2 after it and the third file has a .3 after it etc....? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: hossein lotfi To: GRADSUSR at LIST.CINECA.IT Sent: Mon, November 2, 2009 3:45:47 PM Subject: open 2 file in grads hi all user after open tow file in grads?I can not display the variables of file2 error: ?ga-> d v2m Syntax Error:? Invalid Operand ? 'v2m' not a variable or function name ? Error ocurred at column 1 DISPLAY error:? Invalid expression ? Expression = v2m can anyone help me? thanks . __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091102/b1ea3400/attachment.html From h.meteo.shirazu at GMAIL.COM Mon Nov 2 16:14:56 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Mon, 2 Nov 2009 15:14:56 -0600 Subject: file 2 Message-ID: Hi all user I can not open the variable of file2 in grads (when I open tow files) this command can not works: d v2m.2 d file 2.2 ... can you help me? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091102/bac07d64/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Mon Nov 2 17:05:01 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Mon, 2 Nov 2009 17:05:01 -0500 Subject: Manage lat-lon thinned grid In-Reply-To: <2DE59EDD7E9F46599A91135E469DD96A@trsspa.it> Message-ID: Diego, File #1: I was able to plot the thinned grid using grads 2a05. File #2: This file is hopeless. It is using complex packing of a grid which is legal grib1 but never used (AFAIK) until people started converting to grib2. Wesley Ebisuzaki Diego Morelli wrote: > > * Problems * > > * * > > 1) I need to read with grads also the grib files with lat-long > ?thinned? grids, I just know, by documentation, that my version > (1.8SL11) isn?t able to manage this kind of grib files. I put in the > attachment an example of this kind of file s (LFPW?.) > > 2) I have some files that are managed by grads without error (version > 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put > in the attachment an example of this kind of file s (YMID?.) > > * My questions * > > How can I view, on a picture, information contained in files like > those in the attachment? > > Is there any version of GrADS that manage them? > > Is there some work-around that I can follow to satisfy my need? > > If no, do you know any other software that I can be used? > > We are willing to pay for any new SW developments or your advice. Can > you help us? > > Best regards, > > Diego > > ------------------------------------- > > Diego Morelli > > T.R.S. S.p.A. > > Via della Bufalotta, 378 - 00139 Roma > > Tel. 06.87281.301 > > Fax 06.87281.550 > > diego.morelli at trs.it > From james.aaron.reynolds at US.ARMY.MIL Mon Nov 2 17:50:46 2009 From: james.aaron.reynolds at US.ARMY.MIL (James Aaron Reynolds) Date: Mon, 2 Nov 2009 23:50:46 +0100 Subject: Display Geopotential Height? Message-ID: I've built a meteogram, I want to display Geopotential Height on the right hand side vertically of the Y-axis but not on the Meteogram image itself. How might I do this? From nieves at LTP.UPR.CLU.EDU Mon Nov 2 21:23:04 2009 From: nieves at LTP.UPR.CLU.EDU (Jose F Nieves) Date: Mon, 2 Nov 2009 22:23:04 -0400 Subject: freebsd bundles Message-ID: Hello The bundles grads-2.0.a7.oga.3-bundle-i386-unknown-freebsd7.2.tar.gz grads-2.0.a7.oga.3-bundle-i386-unknown-freebsd7.2.tar.gz are ready in the source forge repository. Feel free to write if something does not work or, better, if everything looks ok. Jose From eliavs at GMAIL.COM Tue Nov 3 01:22:17 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Tue, 3 Nov 2009 08:22:17 +0200 Subject: file 2 In-Reply-To: <5c658ce10911021314tef24d9dj4aa1419edfccf7f4@mail.gmail.com> Message-ID: did you try 'set dfile 2'? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091103/e7c5b46f/attachment.html From naishi at METEO.MCGILL.CA Mon Nov 2 21:50:39 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Mon, 2 Nov 2009 21:50:39 -0500 Subject: how to calculate the difference between the two latitudes Message-ID: Hi everyone, I need to solve a problem: namely get the difference between the two latitudes at which the mass stream function equals zero, between these two zero values there is a maximum value usually. And the grid values about the mass stream function phim (lat,pressure) are from a netCDF data file. So how can I get the difference between these two latitudes with zero stream function? Do I need to convert netCDF to the other .dat file by using ncdump tool , and then use F90 to do the simple calculation to solve my problem, or am I able to only use GrADS scripting language to do the simple calculation? Or any other way to solve this? I will appreciate any help ! Phillip From naishi at METEO.MCGILL.CA Mon Nov 2 21:53:53 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Mon, 2 Nov 2009 21:53:53 -0500 Subject: Display Geopotential Height? In-Reply-To: <20091102225205.4BDA320446@mx2.cineca.it> Message-ID: Hi James, COULD you send me all the script and .ctl and data file to me to have a test, and then I try to fix that problem for you, okay? I am looking forward to hearing from you again! Phil > I've built a meteogram, I want to display Geopotential Height on the right > hand side vertically of the Y-axis but not on the Meteogram image itself. > How might I do this? > From diego.morelli at TRS.IT Tue Nov 3 04:48:03 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Tue, 3 Nov 2009 10:48:03 +0100 Subject: R: Manage lat-lon thinned grid In-Reply-To: <4AEF578D.2080206@noaa.gov> Message-ID: Hello Wesley. I'm very glad to receive your help. I just tried to use grads 2, convgrib and wgrib2 and the result is success for the "file #1". Ok for the file #2. Yours is a confirm that reinforce my opinion about its handling. Regards, Diego -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: luned? 2 novembre 2009 23.05 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: Manage lat-lon thinned grid Diego, File #1: I was able to plot the thinned grid using grads 2a05. File #2: This file is hopeless. It is using complex packing of a grid which is legal grib1 but never used (AFAIK) until people started converting to grib2. Wesley Ebisuzaki Diego Morelli wrote: > > * Problems * > > * * > > 1) I need to read with grads also the grib files with lat-long > ?thinned? grids, I just know, by documentation, that my version > (1.8SL11) isn?t able to manage this kind of grib files. I put in the > attachment an example of this kind of file s (LFPW .) > > 2) I have some files that are managed by grads without error (version > 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put > in the attachment an example of this kind of file s (YMID .) > > * My questions * > > How can I view, on a picture, information contained in files like > those in the attachment? > > Is there any version of GrADS that manage them? > > Is there some work-around that I can follow to satisfy my need? > > If no, do you know any other software that I can be used? > > We are willing to pay for any new SW developments or your advice. Can > you help us? > > Best regards, > > Diego > > ------------------------------------- > > Diego Morelli > > T.R.S. S.p.A. > > Via della Bufalotta, 378 - 00139 Roma > > Tel. 06.87281.301 > > Fax 06.87281.550 > > diego.morelli at trs.it > From davide.sacchetti at ARPAL.ORG Tue Nov 3 07:59:31 2009 From: davide.sacchetti at ARPAL.ORG (Davide Sacchetti) Date: Tue, 3 Nov 2009 13:59:31 +0100 Subject: how to calculate the difference between the two latitudes In-Reply-To: <51404.209.90.130.128.1257216639.squirrel@www.meteo.mcgill.ca> Message-ID: the best solution would be to create a function (in a different language) doing this, anyway: suppose your variable is named "stream" and suppose you are interested to a latitude interval of 40N - 60N if you want to see latitude where stream is positive: d maskout(lat,stream) if you want to see at which inferior latitude stream becomes positive: d min(maskout(lat,stream),lat=40,lat=60)) if you want to have the la difference (sup-inf) where stream = 0: display max(maskout(lat,stream),lat=40,lat=60))-min(maskout(lat,stream),lat=40,lat=60)) Hoping it could help ... bye bye Davide On Mon, 2009-11-02 at 21:50 -0500, Phillip Lin wrote: > Hi everyone, > > I need to solve a problem: namely get the difference between the two > latitudes at which the mass stream function equals zero, between these two > zero values there is a maximum value usually. And the grid values about > the mass stream function phim (lat,pressure) are from a netCDF data file. > So how can I get the difference between these two latitudes with zero > stream function? Do I need to convert netCDF to the other .dat file by > using ncdump tool , and then use F90 to do the simple calculation to solve > my problem, or am I able to only use GrADS scripting language to do the > simple calculation? Or any other way to solve this? > > I will appreciate any help ! > > Phillip > -- Sacchetti Davide Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria ARPAL Unit? Tecnica Complessa di livello Regionale V.le Brigare Partigiane 2 16121 Genova (I) tel: +39 010 6437535 fax: +39 010 6437520 mail: davide.sacchetti at arpal.org web: www.meteoliguria.it From nathan at NATHANCOOL.COM Tue Nov 3 11:15:02 2009 From: nathan at NATHANCOOL.COM (Nathan Cool) Date: Tue, 3 Nov 2009 08:15:02 -0800 Subject: Vector arrows for primary wave direction Message-ID: Good morning everyone, I'm generating wave analysis models, but I'm having a tough time showing the mean-wave (or primary) wave direction arrows. The vars in the Grib are: ------------------------------------------------- DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] UGRDsfc 0 33,1,1 ** surface u wind [m/s] VGRDsfc 0 34,1,1 ** surface v wind [m/s] WDIRsfc 0 31,1,1 ** surface Wind direction [deg] WINDsfc 0 32,1,1 ** surface Wind speed [m/s] WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] For displaying wind vector arrows it's straightforward as there are U and V variables (UGRDsfc and VGRDsfc) for the zonal and meridional components. Displaying primary wave direction though seems more elusive, yet I see it done on many models such as the following: https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif ...which was generated using GrADS by FNMOC. Any help you can provide would be greatly appreciated, and thank you for your time. -- Nathan Cool nathan at nathancool.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091103/d88ce755/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Tue Nov 3 11:37:12 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Tue, 3 Nov 2009 11:37:12 -0500 Subject: R: Manage lat-lon thinned grid In-Reply-To: <70C42370512B4056A732BF4492B86B3F@trsspa.it> Message-ID: Diego, For file #1, I was able to plot it in the original grib1 format. No need to convert it into grib2. Wesley Diego Morelli wrote: > Hello Wesley. > > I'm very glad to receive your help. > > I just tried to use grads 2, convgrib and wgrib2 and the result is success > for the "file #1". > > Ok for the file #2. Yours is a confirm that reinforce my opinion about its > handling. > > Regards, > > Diego > > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: luned? 2 novembre 2009 23.05 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: Manage lat-lon thinned grid > > Diego, > > File #1: I was able to plot the thinned grid using grads 2a05. > File #2: This file is hopeless. It is using complex packing of a grid > which is legal grib1 but > never used (AFAIK) until people started converting to grib2. > > Wesley Ebisuzaki > > > Diego Morelli wrote: > >> * Problems * >> >> * * >> >> 1) I need to read with grads also the grib files with lat-long >> ?thinned? grids, I just know, by documentation, that my version >> (1.8SL11) isn?t able to manage this kind of grib files. I put in the >> attachment an example of this kind of file s (LFPW?.) >> >> 2) I have some files that are managed by grads without error (version >> 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put >> in the attachment an example of this kind of file s (YMID?.) >> >> * My questions * >> >> How can I view, on a picture, information contained in files like >> those in the attachment? >> >> Is there any version of GrADS that manage them? >> >> Is there some work-around that I can follow to satisfy my need? >> >> If no, do you know any other software that I can be used? >> >> We are willing to pay for any new SW developments or your advice. Can >> you help us? >> >> Best regards, >> >> Diego >> >> ------------------------------------- >> >> Diego Morelli >> >> T.R.S. S.p.A. >> >> Via della Bufalotta, 378 - 00139 Roma >> >> Tel. 06.87281.301 >> >> Fax 06.87281.550 >> >> diego.morelli at trs.it >> >> From diego.morelli at TRS.IT Tue Nov 3 13:21:16 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Tue, 3 Nov 2009 19:21:16 +0100 Subject: R: R: Manage lat-lon thinned grid In-Reply-To: <4AF05C38.4050900@noaa.gov> Message-ID: Really?? Did you use grib2ctl (then wgrib), gribmap (contained in the grads 2 packet) and grads 2? Here, under grads 2.0.a7, the command perl grib2ctl.pl .b > .ctl, issue this error: missing end section 37 37 30 30 ***script needs to be modified Unknown user-defined grid Infact the ctl file miss the xdef, ydef information. After, the command gribmap -I .ctl -0, goes in segmentation fault. How did you do to manage this kind of file without the need to convert it in grib2?? It will be very interesting for me... Diego -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: marted? 3 novembre 2009 17.37 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: R: Manage lat-lon thinned grid Diego, For file #1, I was able to plot it in the original grib1 format. No need to convert it into grib2. Wesley Diego Morelli wrote: > Hello Wesley. > > I'm very glad to receive your help. > > I just tried to use grads 2, convgrib and wgrib2 and the result is success > for the "file #1". > > Ok for the file #2. Yours is a confirm that reinforce my opinion about its > handling. > > Regards, > > Diego > > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: luned? 2 novembre 2009 23.05 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: Manage lat-lon thinned grid > > Diego, > > File #1: I was able to plot the thinned grid using grads 2a05. > File #2: This file is hopeless. It is using complex packing of a grid > which is legal grib1 but > never used (AFAIK) until people started converting to grib2. > > Wesley Ebisuzaki > > > Diego Morelli wrote: > >> * Problems * >> >> * * >> >> 1) I need to read with grads also the grib files with lat-long >> ?thinned? grids, I just know, by documentation, that my version >> (1.8SL11) isn?t able to manage this kind of grib files. I put in the >> attachment an example of this kind of file s (LFPW .) >> >> 2) I have some files that are managed by grads without error (version >> 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put >> in the attachment an example of this kind of file s (YMID .) >> >> * My questions * >> >> How can I view, on a picture, information contained in files like >> those in the attachment? >> >> Is there any version of GrADS that manage them? >> >> Is there some work-around that I can follow to satisfy my need? >> >> If no, do you know any other software that I can be used? >> >> We are willing to pay for any new SW developments or your advice. Can >> you help us? >> >> Best regards, >> >> Diego >> >> ------------------------------------- >> >> Diego Morelli >> >> T.R.S. S.p.A. >> >> Via della Bufalotta, 378 - 00139 Roma >> >> Tel. 06.87281.301 >> >> Fax 06.87281.550 >> >> diego.morelli at trs.it >> >> From liuzf406 at 126.COM Tue Nov 3 13:11:48 2009 From: liuzf406 at 126.COM (liuzf406) Date: Wed, 4 Nov 2009 02:11:48 +0800 Subject: Ask for help Message-ID: Good afternoon everyone, I need to calculate the moisture flux and the moisture divergence of 1992 summer over the continental United States. The gs file I wrote is as following, but I am not sure if it is right, so anyone can look at this file and give me some comments? In addition, attached are the calculated result using this file. The gs file are: ------------------------------------------------- 'reinit' 'set grid off' 'set grads off' 'set poli on' 'set parea 1 10 1 8' 'sdfopen shum.mon.mean.nc' 'sdfopen uwnd.mon.mean.nc' 'sdfopen vwnd.mon.mean.nc' 'sdfopen pres.mon.mean.nc' 'enable print sum_1992.gmf' 'set lat 24.99 50.1' 'set xlint 10' 'set lon -130.01 -69.99' 'set ylint 10' 'set cint 20' 'set t 1 600' 'set font 0' 'set ccols 9 14 4 11 5 13 3 10 7 12 8 2 6' 'set mpdset cnworld mres' 'set map 1 1 1' 'draw map' 'set gxout shaded' 'set ylopts 1 4 0.18' 'set xlopts 1 4 0.18' 'set cthick 5' 'define m=shum.1*uwnd.2' 'define n=shum.1*vwnd.3' 'define qu=vint(pres.4(z=1),m,700)/1000' 'define qusum=ave(qu,t=534,t=536)' 'define qv=vint(pres.4(z=1),n,700)/1000' 'define qvsum=ave(qv,t=534,t=536)' 'set t 6' 'set gxout shaded' 'd qusum;qvsum' 'd hdivg(qusum,qvsum)' 'set gxout vector' 'set ccolor 1' 'run cbar' 'd qusum;qvsum' *'set cint 20' 'draw string 1.9 7 Moisture transport' 'draw string 9.5 7 JJA-1992' 'print' 'disable print' ------------------------------------------------- Any help you can provide would be greatly appreciated, and thank you for your time. 09???3D?????????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/23d953b4/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: flux_92sum.wmf Type: application/octet-stream Size: 967850 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091104/23d953b4/attachment.obj From hhe at ATMOS.UMD.EDU Tue Nov 3 14:55:55 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Tue, 3 Nov 2009 14:55:55 -0500 Subject: missing data in .ctl file Message-ID: Hi, I want to write a .ctl file to read HDF file, but I found in different variables the definition if missing data is different. For example, I have -9999 for Var A, and -999 for Var B. Can I put two value in undef like: undef -9999 undef -999 Thanks! Hao From sushantpuranik at GMAIL.COM Wed Nov 4 00:58:03 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Wed, 4 Nov 2009 11:28:03 +0530 Subject: Vector arrows for primary wave direction In-Reply-To: <817a77c90911030815u14d4dae8lcbd3675f55489b8e@mail.gmail.com> Message-ID: Hi I am able to generate wind direction. try his 'set arrscl 1 30' 'set cthick 5' 'set arrowhead 0.10' 'set clevs 3 5 10 15 20 25' 'set ccols 0 4 1 2 3 5 12' 'set gxout vector' 'd skip(UGRDsfc,2,2);skip(VGRDsfc,2,2);skip(sqrt(UGRDsfc*UGRDsfc+VGRDsfc*VGRDsfc),2,2)' 'run cbar.gs' 'printim wind(m/s)' with the help of such script i am able to generate output which is attached with this mail. all the best. On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool wrote: > Good morning everyone, > > I'm generating wave analysis models, but I'm having a tough time showing > the mean-wave (or primary) wave direction arrows. > > The vars in the Grib are: > ------------------------------------------------- > DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] > DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] > HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] > PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] > PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] > UGRDsfc 0 33,1,1 ** surface u wind [m/s] > VGRDsfc 0 34,1,1 ** surface v wind [m/s] > WDIRsfc 0 31,1,1 ** surface Wind direction [deg] > WINDsfc 0 32,1,1 ** surface Wind speed [m/s] > WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] > WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] > > For displaying wind vector arrows it's straightforward as there are U and V > variables (UGRDsfc and VGRDsfc) for the zonal and meridional components. > Displaying primary wave direction though seems more elusive, yet I see it > done on many models such as the following: > https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif > > ...which was generated using GrADS by FNMOC. > > Any help you can provide would be greatly appreciated, and thank you for > your time. > > -- > Nathan Cool > nathan at nathancool.com > -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/1b08cabb/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: wind00Z_1989_JUN_01.png Type: image/png Size: 17309 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091104/1b08cabb/attachment.png From fdaryabor at GOOGLEMAIL.COM Wed Nov 4 04:12:42 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Wed, 4 Nov 2009 17:12:42 +0800 Subject: file 2 In-Reply-To: <5c658ce10911021314tef24d9dj4aa1419edfccf7f4@mail.gmail.com> Message-ID: Dear If you have 2 file, for display first file (var) you must use 'd var', for second file (data) use 'd data 2'. Best Regards F.Daryabor F.Daryabor Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia BANGI 43600 Selangor, Malaysia On Tue, Nov 3, 2009 at 5:14 AM, hossein lotfi wrote: > Hi all user > I can not open the variable of file2 in grads (when I open tow files) > this command can not works: > d v2m.2 > d file 2.2 > ... > can you help me? > thanks. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/4d3e5a81/attachment.html From diego.morelli at TRS.IT Wed Nov 4 07:04:07 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Wed, 4 Nov 2009 13:04:07 +0100 Subject: R: R: Manage lat-lon thinned grid In-Reply-To: <4AF05C38.4050900@noaa.gov> Message-ID: Hello Wesley. I seen that the conversion from grib1 file to grib2 file and, after, the use of g2ctl.pl (using wgrib2) command to create the descriptor file, give different information about variable names, levels, format of variable rows, and in certain cases an information loss. Your last news opened me a new road, and a new hope. I tried to copy the two rows about xdef and ydef of descriptor file created with g2ctl.pl into the descriptor file created with grib2ctl.pl (using wgrib). Then I built the idx file with the gribmap command without problem, and grads 2 is able to plot the maps. My next step is to find a more elegant/correct method to built the descriptor file. Can you explain me what procedure and commands did you follow? Diego -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: marted? 3 novembre 2009 17.37 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: R: Manage lat-lon thinned grid Diego, For file #1, I was able to plot it in the original grib1 format. No need to convert it into grib2. Wesley Diego Morelli wrote: > Hello Wesley. > > I'm very glad to receive your help. > > I just tried to use grads 2, convgrib and wgrib2 and the result is success > for the "file #1". > > Ok for the file #2. Yours is a confirm that reinforce my opinion about its > handling. > > Regards, > > Diego > > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: luned? 2 novembre 2009 23.05 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: Manage lat-lon thinned grid > > Diego, > > File #1: I was able to plot the thinned grid using grads 2a05. > File #2: This file is hopeless. It is using complex packing of a grid > which is legal grib1 but > never used (AFAIK) until people started converting to grib2. > > Wesley Ebisuzaki > > > Diego Morelli wrote: > >> * Problems * >> >> * * >> >> 1) I need to read with grads also the grib files with lat-long >> ?thinned? grids, I just know, by documentation, that my version >> (1.8SL11) isn?t able to manage this kind of grib files. I put in the >> attachment an example of this kind of file s (LFPW .) >> >> 2) I have some files that are managed by grads without error (version >> 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put >> in the attachment an example of this kind of file s (YMID .) >> >> * My questions * >> >> How can I view, on a picture, information contained in files like >> those in the attachment? >> >> Is there any version of GrADS that manage them? >> >> Is there some work-around that I can follow to satisfy my need? >> >> If no, do you know any other software that I can be used? >> >> We are willing to pay for any new SW developments or your advice. Can >> you help us? >> >> Best regards, >> >> Diego >> >> ------------------------------------- >> >> Diego Morelli >> >> T.R.S. S.p.A. >> >> Via della Bufalotta, 378 - 00139 Roma >> >> Tel. 06.87281.301 >> >> Fax 06.87281.550 >> >> diego.morelli at trs.it >> >> From diego.morelli at TRS.IT Wed Nov 4 08:34:23 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Wed, 4 Nov 2009 14:34:23 +0100 Subject: I: R: Manage lat-lon thinned grid Message-ID: If I repeat the procedure explained in my last mail, I found that I have the same result also in grads ver 1.8SL-11. Then, if you doesn't get me another news, I will finalize that the solution is to use g2ctl in order to know the geographic area range and the grid (i.e. xdef and ydef). Diego -----Messaggio originale----- Da: Diego Morelli [mailto:diego.morelli at trs.it] Inviato: mercoled? 4 novembre 2009 13.04 A: 'GRADSUSR at LIST.CINECA.IT' Oggetto: R: R: Manage lat-lon thinned grid Hello Wesley. I seen that the conversion from grib1 file to grib2 file and, after, the use of g2ctl.pl (using wgrib2) command to create the descriptor file, give different information about variable names, levels, format of variable rows, and in certain cases an information loss. Your last news opened me a new road, and a new hope. I tried to copy the two rows about xdef and ydef of descriptor file created with g2ctl.pl into the descriptor file created with grib2ctl.pl (using wgrib). Then I built the idx file with the gribmap command without problem, and grads 2 is able to plot the maps. My next step is to find a more elegant/correct method to built the descriptor file. Can you explain me what procedure and commands did you follow? Diego -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: marted? 3 novembre 2009 17.37 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: R: Manage lat-lon thinned grid Diego, For file #1, I was able to plot it in the original grib1 format. No need to convert it into grib2. Wesley Diego Morelli wrote: > Hello Wesley. > > I'm very glad to receive your help. > > I just tried to use grads 2, convgrib and wgrib2 and the result is success > for the "file #1". > > Ok for the file #2. Yours is a confirm that reinforce my opinion about its > handling. > > Regards, > > Diego > > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: luned? 2 novembre 2009 23.05 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: Manage lat-lon thinned grid > > Diego, > > File #1: I was able to plot the thinned grid using grads 2a05. > File #2: This file is hopeless. It is using complex packing of a grid > which is legal grib1 but > never used (AFAIK) until people started converting to grib2. > > Wesley Ebisuzaki > > > Diego Morelli wrote: > >> * Problems * >> >> * * >> >> 1) I need to read with grads also the grib files with lat-long >> ?thinned? grids, I just know, by documentation, that my version >> (1.8SL11) isn?t able to manage this kind of grib files. I put in the >> attachment an example of this kind of file s (LFPW .) >> >> 2) I have some files that are managed by grads without error (version >> 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put >> in the attachment an example of this kind of file s (YMID .) >> >> * My questions * >> >> How can I view, on a picture, information contained in files like >> those in the attachment? >> >> Is there any version of GrADS that manage them? >> >> Is there some work-around that I can follow to satisfy my need? >> >> If no, do you know any other software that I can be used? >> >> We are willing to pay for any new SW developments or your advice. Can >> you help us? >> >> Best regards, >> >> Diego >> >> ------------------------------------- >> >> Diego Morelli >> >> T.R.S. S.p.A. >> >> Via della Bufalotta, 378 - 00139 Roma >> >> Tel. 06.87281.301 >> >> Fax 06.87281.550 >> >> diego.morelli at trs.it >> >> From sh.maeam at GMAIL.COM Wed Nov 4 09:18:29 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Wed, 4 Nov 2009 22:18:29 +0800 Subject: missing values in wrf_output Message-ID: Hi All, when I display "relative humidity" from wrf_output, I found some values missing ( please check the attachment), does it mean something wrong when generate those values? or I made some mistakes when converted wrf_output into Grads data format?( I use "ARWpost" to convert data), can you tell me how to fix it? Thank you. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/99fd0ef2/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: relative_humidity_value_missing.gif Type: image/gif Size: 26095 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091104/99fd0ef2/attachment.gif From Wesley.Ebisuzaki at NOAA.GOV Wed Nov 4 09:36:28 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Wed, 4 Nov 2009 09:36:28 -0500 Subject: R: R: Manage lat-lon thinned grid In-Reply-To: <08254260B1EF444FBC3D0CD57A1F083B@trsspa.it> Message-ID: Diego, I am running on a linux box and had no problem. > -sh-3.00$ grib2ctl.pl -verf > LFPW00190347.20090718153354_P4410PT779A_BPMG12.100964.b >junk.ctl > -sh-3.00$ gribmap2 -i junk.ctl : I renamed gribmap version 2 as gribmap2 > grib1map: opening GRIB file: > LFPW00190347.20090718153354_P4410PT779A_BPMG12.100964.b > grib1map: reached end of files > grib1map: writing the map... > versions: grib2ctl.pl 0.9.12.5p45 wgrib v1.8.0.13e gribmap 2.0.a3a > missing end section > > 37 37 30 30 This suggests a problem with your input grib file. You may have downloaded the file as a text rather than a binary file. Yours, Wesley Diego Morelli wrote: > Really?? > Did you use grib2ctl (then wgrib), gribmap (contained in the grads 2 packet) > and grads 2? > > Here, under grads 2.0.a7, the command perl grib2ctl.pl .b > > .ctl, issue this error: > > missing end section > > 37 37 30 30 > ***script needs to be modified > Unknown user-defined grid > > Infact the ctl file miss the xdef, ydef information. > > After, the command gribmap -I .ctl -0, goes in segmentation > fault. > > How did you do to manage this kind of file without the need to convert it in > grib2?? It will be very interesting for me... > > Diego > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: marted? 3 novembre 2009 17.37 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: R: Manage lat-lon thinned grid > > Diego, > > For file #1, I was able to plot it in the original grib1 format. No need > to convert it into grib2. > > Wesley > > Diego Morelli wrote: > >> Hello Wesley. >> >> I'm very glad to receive your help. >> >> I just tried to use grads 2, convgrib and wgrib2 and the result is success >> for the "file #1". >> >> Ok for the file #2. Yours is a confirm that reinforce my opinion about its >> handling. >> >> Regards, >> >> Diego >> >> >> -----Messaggio originale----- >> Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di >> Wesley Ebisuzaki >> Inviato: luned? 2 novembre 2009 23.05 >> A: GRADSUSR at LIST.CINECA.IT >> Oggetto: Re: Manage lat-lon thinned grid >> >> Diego, >> >> File #1: I was able to plot the thinned grid using grads 2a05. >> File #2: This file is hopeless. It is using complex packing of a grid >> which is legal grib1 but >> never used (AFAIK) until people started converting to grib2. >> >> Wesley Ebisuzaki >> >> >> Diego Morelli wrote: >> >> >>> * Problems * >>> >>> * * >>> >>> 1) I need to read with grads also the grib files with lat-long >>> ?thinned? grids, I just know, by documentation, that my version >>> (1.8SL11) isn?t able to manage this kind of grib files. I put in the >>> attachment an example of this kind of file s (LFPW?.) >>> >>> 2) I have some files that are managed by grads without error (version >>> 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put >>> in the attachment an example of this kind of file s (YMID?.) >>> >>> * My questions * >>> >>> How can I view, on a picture, information contained in files like >>> those in the attachment? >>> >>> Is there any version of GrADS that manage them? >>> >>> Is there some work-around that I can follow to satisfy my need? >>> >>> If no, do you know any other software that I can be used? >>> >>> We are willing to pay for any new SW developments or your advice. Can >>> you help us? >>> >>> Best regards, >>> >>> Diego >>> >>> ------------------------------------- >>> >>> Diego Morelli >>> >>> T.R.S. S.p.A. >>> >>> Via della Bufalotta, 378 - 00139 Roma >>> >>> Tel. 06.87281.301 >>> >>> Fax 06.87281.550 >>> >>> diego.morelli at trs.it >>> >>> >>> From nathan at NATHANCOOL.COM Wed Nov 4 09:38:03 2009 From: nathan at NATHANCOOL.COM (Nathan Cool) Date: Wed, 4 Nov 2009 06:38:03 -0800 Subject: Vector arrows for primary wave direction In-Reply-To: <72e8bd3d0911032158j572b89bgb4ffccfd2b26bccf@mail.gmail.com> Message-ID: Thanks, but I'm not trying to display "wind" vector arrows; instead, I'm trying to display the primary wave direction. The vars in the Grib are: ------------------------ DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] UGRDsfc 0 33,1,1 ** surface u wind [m/s] VGRDsfc 0 34,1,1 ** surface v wind [m/s] WDIRsfc 0 31,1,1 ** surface Wind direction [deg] WINDsfc 0 32,1,1 ** surface Wind speed [m/s] WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] ...and I can see that others have been able to show the primary wave direction (DIRPWsfc) using vector arrows, as is the case on the FNMOC models like this one: https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif Do you know how this can be done? Thanks, -Nathan On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik wrote: > Hi > I am able to generate wind direction. try his > 'set arrscl 1 30' > 'set cthick 5' > 'set arrowhead 0.10' > 'set clevs 3 5 10 15 20 25' > 'set ccols 0 4 1 2 3 5 12' > 'set gxout vector' > 'd > skip(UGRDsfc,2,2);skip(VGRDsfc,2,2);skip(sqrt(UGRDsfc*UGRDsfc+VGRDsfc*VGRDsfc),2,2)' > 'run cbar.gs' > 'printim wind(m/s)' > > with the help of such script i am able to generate output which is attached > with this mail. > > all the best. > > > On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool wrote: > >> Good morning everyone, >> >> I'm generating wave analysis models, but I'm having a tough time showing >> the mean-wave (or primary) wave direction arrows. >> >> The vars in the Grib are: >> ------------------------------------------------- >> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] >> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >> >> For displaying wind vector arrows it's straightforward as there are U and >> V variables (UGRDsfc and VGRDsfc) for the zonal and meridional components. >> Displaying primary wave direction though seems more elusive, yet I see it >> done on many models such as the following: >> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >> >> ...which was generated using GrADS by FNMOC. >> >> Any help you can provide would be greatly appreciated, and thank you for >> your time. >> >> -- >> Nathan Cool >> nathan at nathancool.com >> > > > > -- > Sushant Puranik > Junior Research Fellow > Dept. of Atmospheric & Space Sciences, > University of Pune, > Pune-07, > India. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/ec8c6434/attachment.html From ctalbot at PRINCETON.EDU Wed Nov 4 09:43:34 2009 From: ctalbot at PRINCETON.EDU (Charles Talbot) Date: Wed, 4 Nov 2009 09:43:34 -0500 Subject: missing values in wrf_output Message-ID: BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi Shenghui, I think this has nothing to do with grads. This is probably due to a different elevation in your topography (a mountain or a hill). If I am right you should this problem for other variables as well in this area. Try to set, in ARWpost, "interp_method = 0" to have values along model levels. Best, Charles On Wed 11/04/09 09:18 , sh zhou sh.maeam at GMAIL.COM sent: Hi All, when I display "relative humidity" from wrf_output, I found some values missing ( please check the attachment), does it mean something wrong when generate those values? or I made some mistakes when converted wrf_output into Grads data format?( I use "ARWpost" to convert data), can you tell me how to fix it? Thank you. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/f8c1fd49/attachment.html From matthias.fripp at ECI.OX.AC.UK Wed Nov 4 10:53:32 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Wed, 4 Nov 2009 15:53:32 +0000 Subject: Vector arrows for primary wave direction In-Reply-To: <817a77c90911040638kf58ac1bic5f81fad439401fc@mail.gmail.com> Message-ID: How about this: set gxout vector display cos(DIRPWsfc * 3.14159/180); sin(DIRPWsfc * 3.14159/180) This converts the wave direction from degrees to radians, and then calculates its u and v components. Matthias On Nov 4, 2009, at 2:38 PM, Nathan Cool wrote: > Thanks, but I'm not trying to display "wind" vector arrows; instead, > I'm trying to display the primary wave direction. > > The vars in the Grib are: > ------------------------ > DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] > DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] > HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] > PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] > PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] > UGRDsfc 0 33,1,1 ** surface u wind [m/s] > VGRDsfc 0 34,1,1 ** surface v wind [m/s] > WDIRsfc 0 31,1,1 ** surface Wind direction [deg] > WINDsfc 0 32,1,1 ** surface Wind speed [m/s] > WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] > WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] > > ...and I can see that others have been able to show the primary wave > direction (DIRPWsfc) using vector arrows, as is the case on the > FNMOC models like this one: > https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif > > Do you know how this can be done? > > Thanks, > > -Nathan > > > On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik > wrote: > Hi > I am able to generate wind direction. try his > 'set arrscl 1 30' > 'set cthick 5' > 'set arrowhead 0.10' > 'set clevs 3 5 10 15 20 25' > 'set ccols 0 4 1 2 3 5 12' > 'set gxout vector' > 'd skip(UGRDsfc,2,2);skip(VGRDsfc,2,2);skip(sqrt(UGRDsfc*UGRDsfc > +VGRDsfc*VGRDsfc),2,2)' > 'run cbar.gs' > 'printim wind(m/s)' > > with the help of such script i am able to generate output which is > attached with this mail. > > all the best. > > > On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool > wrote: > Good morning everyone, > > I'm generating wave analysis models, but I'm having a tough time > showing the mean-wave (or primary) wave direction arrows. > > The vars in the Grib are: > ------------------------------------------------- > DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] > DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] > HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] > PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] > PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] > UGRDsfc 0 33,1,1 ** surface u wind [m/s] > VGRDsfc 0 34,1,1 ** surface v wind [m/s] > WDIRsfc 0 31,1,1 ** surface Wind direction [deg] > WINDsfc 0 32,1,1 ** surface Wind speed [m/s] > WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] > WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] > > For displaying wind vector arrows it's straightforward as there are > U and V variables (UGRDsfc and VGRDsfc) for the zonal and meridional > components. Displaying primary wave direction though seems more > elusive, yet I see it done on many models such as the following: > https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif > > ...which was generated using GrADS by FNMOC. > > Any help you can provide would be greatly appreciated, and thank you > for your time. > > -- > Nathan Cool > nathan at nathancool.com > > > > -- > Sushant Puranik > Junior Research Fellow > Dept. of Atmospheric & Space Sciences, > University of Pune, > Pune-07, > India. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/53dd506a/attachment.html From diego.morelli at TRS.IT Wed Nov 4 11:06:28 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Wed, 4 Nov 2009 17:06:28 +0100 Subject: R: R: R: Manage lat-lon thinned grid In-Reply-To: <4AF1916C.7060703@noaa.gov> Message-ID: Wesley, thank you for your valid support: I found that the trouble was in grib2ctl version: my version was 0.9.12.5p34c. Now I will continue to do my tests. If you do not get bored too, let me get you two more questions: Premise: Its important for me to continue to work under Linux RH3 (It seem that the new software doesn't work on this platform). I can abandon this platform only if there isn't another solution for read my grib files. The questions: I have seen that if I use the last version of grib2ctl it generates a pdef file and a descriptor file with some different format referring to the 0.9.12.5p34c version. I think that this fact obligates me to use gribmap2 then grads 2. Do you confirm? I have seen also that if I continue to use the old softwares and insert by hand the xdef, ydef information in the descriptor file issued by the old grib2ctl ver 0.9.12.5p34c, I can continue to plot the meteo map with grads 1. Do you think this map information isn't correct? What is the difference between the meteo map plot obtained with grads 1 and that obtained with grads 2? Do you think that in one case there is a lost of information? Diego -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: mercoled? 4 novembre 2009 15.36 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: R: R: Manage lat-lon thinned grid Diego, I am running on a linux box and had no problem. > -sh-3.00$ grib2ctl.pl -verf > LFPW00190347.20090718153354_P4410PT779A_BPMG12.100964.b >junk.ctl > -sh-3.00$ gribmap2 -i junk.ctl : I renamed gribmap version 2 as gribmap2 > grib1map: opening GRIB file: > LFPW00190347.20090718153354_P4410PT779A_BPMG12.100964.b > grib1map: reached end of files > grib1map: writing the map... > versions: grib2ctl.pl 0.9.12.5p45 wgrib v1.8.0.13e gribmap 2.0.a3a > missing end section > > 37 37 30 30 This suggests a problem with your input grib file. You may have downloaded the file as a text rather than a binary file. Yours, Wesley Diego Morelli wrote: > Really?? > Did you use grib2ctl (then wgrib), gribmap (contained in the grads 2 packet) > and grads 2? > > Here, under grads 2.0.a7, the command perl grib2ctl.pl .b > > .ctl, issue this error: > > missing end section > > 37 37 30 30 > ***script needs to be modified > Unknown user-defined grid > > Infact the ctl file miss the xdef, ydef information. > > After, the command gribmap -I .ctl -0, goes in segmentation > fault. > > How did you do to manage this kind of file without the need to convert it in > grib2?? It will be very interesting for me... > > Diego > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: marted? 3 novembre 2009 17.37 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: R: Manage lat-lon thinned grid > > Diego, > > For file #1, I was able to plot it in the original grib1 format. No need > to convert it into grib2. > > Wesley > > Diego Morelli wrote: > >> Hello Wesley. >> >> I'm very glad to receive your help. >> >> I just tried to use grads 2, convgrib and wgrib2 and the result is success >> for the "file #1". >> >> Ok for the file #2. Yours is a confirm that reinforce my opinion about its >> handling. >> >> Regards, >> >> Diego >> >> >> -----Messaggio originale----- >> Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di >> Wesley Ebisuzaki >> Inviato: luned? 2 novembre 2009 23.05 >> A: GRADSUSR at LIST.CINECA.IT >> Oggetto: Re: Manage lat-lon thinned grid >> >> Diego, >> >> File #1: I was able to plot the thinned grid using grads 2a05. >> File #2: This file is hopeless. It is using complex packing of a grid >> which is legal grib1 but >> never used (AFAIK) until people started converting to grib2. >> >> Wesley Ebisuzaki >> >> >> Diego Morelli wrote: >> >> >>> * Problems * >>> >>> * * >>> >>> 1) I need to read with grads also the grib files with lat-long >>> ?thinned? grids, I just know, by documentation, that my version >>> (1.8SL11) isn?t able to manage this kind of grib files. I put in the >>> attachment an example of this kind of file s (LFPW .) >>> >>> 2) I have some files that are managed by grads without error (version >>> 1.8SL11), but the display command says: ?Entire Grid Undefined?. I put >>> in the attachment an example of this kind of file s (YMID .) >>> >>> * My questions * >>> >>> How can I view, on a picture, information contained in files like >>> those in the attachment? >>> >>> Is there any version of GrADS that manage them? >>> >>> Is there some work-around that I can follow to satisfy my need? >>> >>> If no, do you know any other software that I can be used? >>> >>> We are willing to pay for any new SW developments or your advice. Can >>> you help us? >>> >>> Best regards, >>> >>> Diego >>> >>> ------------------------------------- >>> >>> Diego Morelli >>> >>> T.R.S. S.p.A. >>> >>> Via della Bufalotta, 378 - 00139 Roma >>> >>> Tel. 06.87281.301 >>> >>> Fax 06.87281.550 >>> >>> diego.morelli at trs.it >>> >>> >>> From javier.p at EREDA.COM Wed Nov 4 11:12:05 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Wed, 4 Nov 2009 17:12:05 +0100 Subject: =?ISO-8859-1?Q?Obtenci=F3n_de_varias_variables_de_un_=2Egrib?= Message-ID: Hola a todos: Estoy trabajando con Pcgrads en el sistema operativo windows xp. Tengo un archivo .grib que contiene varias variables en un cierto rango de latitud, longitud para un periodo de tiempo de 20 a?os, con datos cada 6 horas. Mi pregunta es la siguiente ?como puedo leer este archivo con Pcgrads? Un saludo: Javier Pe?a -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/141f2c4f/attachment.html From javier.p at EREDA.COM Wed Nov 4 11:21:47 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Wed, 4 Nov 2009 17:21:47 +0100 Subject: =?ISO-8859-1?Q?Obtenci=F3n_de_la_fecha_de_las_variables_de_un_archiv?= =?ISO-8859-1?Q?o_netcdf?= Message-ID: Hola a todos: Tengo una archivo NetCdf del cual puedo obtener cualquiera de las variables con el siguiente script: *saca los valores de la componente u en una columna 'reinit' 'sdfopen prueba.nc' 'set lat 41' 'set lon 359' 'set lev 1' to = 1 * Write the variable to a file *'set gxout vector' *'set fwrite z:\dummy.dat' while (to<5) 'set t 'to tmp='' tmp=subwrd(rerult,4) 'd u';tmp=tmp%''subwrd(result,4) rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\new_u.txt',tmp) to = to + 1 endwhile set lev 1 pero mi pregunta es: ?puedo obtener la fecha a la que pertenece cada valor de la variable? Es decir, si tengo valores para la componente u de la velocidad: 2.3, 3.4, 5.6, 3.9 ?puedo obtener en un .txt lo siguiente? Fecha U (m/s) 2009/12/06 00:00 2.3 2009/12/06 06:00 3.4 2009/12/06 18:00 5.6 2009/12/07 00:00 3.9 Muchas gracias. Un saludo: -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/a74247df/attachment.html From javier.p at EREDA.COM Wed Nov 4 11:26:56 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Wed, 4 Nov 2009 17:26:56 +0100 Subject: how obtain the date from a NetCdf file Message-ID: Hello everyone, I have a netcdf file from which I can obtain any of the variables with the following script (for example to get u wind component): * takes the values of the component or in a column 'reinit' 'sdfopen prueba.nc' 'set lat 41' 'set lon 359' 'set lev 1' to = 1 * Write the variable to a file * 'set gxout vector' * 'set fwrite z: \ dummy.dat' while (to <5) 'set t' to tmp ='' tmp = subwrd (rerult, 4) 'd u', tmp = tmp%''subwrd (result, 4) rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', tmp) to = to + 1 endwhile but my question is, can I get the date which belongs each variable value? That is, if I have values for the velocity component u: 2.3, 3.4, 5.6, 3.9, can I get a. txt what next? Date U (m / s) 2009/12/06 00:00 2.3 2009/12/06 06:00 3.4 2009/12/06 18:00 5.6 2009/12/07 00:00 3.9 Thank you very much. Best regards. Javier Pe?a -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/dbeb856c/attachment.html From javier.p at EREDA.COM Wed Nov 4 11:52:44 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Wed, 4 Nov 2009 17:52:44 +0100 Subject: how read grib files with PcGrads Message-ID: Hello everyone, I'm working with Pcgrads in the operating system Windows XP. I have a. Grib that contains multiple variables in a certain range of latitude, longitude for a period of 20 years with data every 6 hours. My question is, how can I read this file with Pcgrads? Thank you very much: Javier Pe?a -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/99223dee/attachment.html From matthias.fripp at ECI.OX.AC.UK Wed Nov 4 12:08:52 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Wed, 4 Nov 2009 17:08:52 +0000 Subject: how obtain the date from a NetCdf file In-Reply-To: <607bb2140911040826q3be360d6g4b2ef889f4ff46b1@mail.gmail.com> Message-ID: you could use something like this: 'q time' datetime = subwrd(result, 3) That will give you the date and time in grads format, e.g., "00Z01JAN1979". If you want, you could go further, with something like this: formatted_time = substr(datetime, 9, 4) '/' substr(datetime, 6, 3) '/' substr(datetime, 4, 2) ' ' substr(datetime, 1, 2) ':00' say "formatted time: " formatted_time Unfortunately, I don't know any way to convert "JAN" to "01" within grads. So you may need to use awk (or similar) to convert the dates after-the-fact, in which case you might as well just write the datetime directly to the file, and then convert that later. Matthias On Nov 4, 2009, at 4:26 PM, Javier Pe?a wrote: > Hello everyone, > > I have a netcdf file from which I can obtain any of the variables > with the following script (for example to get u wind component): > > * takes the values of the component or in a column > 'reinit' > 'sdfopen prueba.nc' > 'set lat 41' > 'set lon 359' > 'set lev 1' > to = 1 > * Write the variable to a file > * 'set gxout vector' > * 'set fwrite z: \ dummy.dat' > while (to <5) > 'set t' to > tmp ='' > tmp = subwrd (rerult, 4) > 'd u', tmp = tmp%''subwrd (result, 4) > rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', > tmp) > to = to + 1 > endwhile > > but my question is, can I get the date which belongs each variable > value? That is, if I have values for the velocity component u: 2.3, > 3.4, 5.6, 3.9, can I get a. txt what next? > > Date U (m / s) > 2009/12/06 00:00 2.3 > 2009/12/06 06:00 3.4 > 2009/12/06 18:00 5.6 > 2009/12/07 00:00 3.9 > > Thank you very much. Best regards. > > Javier Pe?a -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/4233bd61/attachment.html From owenfan0715 at SINA.COM.CN Wed Nov 4 12:05:17 2009 From: owenfan0715 at SINA.COM.CN (=?ISO-8859-1?B?bGl6aGkubWlhbw==?=) Date: Thu, 5 Nov 2009 01:05:17 +0800 Subject: Why did the OpenGrADS Bundle v2.0.a7.oga.3 fail to publish netCDF-4 datasets? Message-ID: Hi all, I installed the OpenGrADS Bundle v2.0.a7.oga.3 (http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7..oga.3/) and set . Then, I tried to restart my gds to publish the netcdf 3 and netcdf-4 files. The server was restarted, but only netcdf 3 files were published. The error was occured in gds.log as below: error: can't import /LPRM AMSR_E_soil_moisture/2008/AMSR__OPER_R_LPRMSMA_L3A_20080510T000000_20080510T235959_0003; dummy CTL feature not supported by GrADS executable If needed, I could attach the two netcdf files (one is netcdf 3, another is netcdf-4) . Any suggestion will be appreciated! Thanks. Best Regards, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/a30a8b19/attachment.html From nathan at NATHANCOOL.COM Wed Nov 4 12:12:00 2009 From: nathan at NATHANCOOL.COM (Nathan Cool) Date: Wed, 4 Nov 2009 09:12:00 -0800 Subject: Vector arrows for primary wave direction In-Reply-To: Message-ID: Thanks Matthias. I sure do appreciate the help. That produced some interesting results, but it didn't seem accurate (arrows pointing in some rather bizarre directions). Perhaps though this is a data problem, and I need to grab different GRIB files? Currently, I'm using GRIBs from the NCEP server: ftp://polar.ncep.noaa.gov/pub/waves/latest_run/ -Nathan On Wed, Nov 4, 2009 at 7:53 AM, Matthias Fripp wrote: > How about this: > > set gxout vector > display cos(DIRPWsfc * 3.14159/180); sin(DIRPWsfc * 3.14159/180) > > This converts the wave direction from degrees to radians, and then > calculates its u and v components. > > Matthias > > On Nov 4, 2009, at 2:38 PM, Nathan Cool wrote: > > Thanks, but I'm not trying to display "wind" vector arrows; instead, I'm > trying to display the primary wave direction. > > The vars in the Grib are: > ------------------------ > DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] > DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] > HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] > PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] > PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] > UGRDsfc 0 33,1,1 ** surface u wind [m/s] > VGRDsfc 0 34,1,1 ** surface v wind [m/s] > WDIRsfc 0 31,1,1 ** surface Wind direction [deg] > WINDsfc 0 32,1,1 ** surface Wind speed [m/s] > WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] > WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] > > ...and I can see that others have been able to show the primary wave > direction (DIRPWsfc) using vector arrows, as is the case on the FNMOC models > like this one: > https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif > > Do you know how this can be done? > > Thanks, > > -Nathan > > > On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik wrote: > >> Hi >> I am able to generate wind direction. try his >> 'set arrscl 1 30' >> 'set cthick 5' >> 'set arrowhead 0.10' >> 'set clevs 3 5 10 15 20 25' >> 'set ccols 0 4 1 2 3 5 12' >> 'set gxout vector' >> 'd >> skip(UGRDsfc,2,2);skip(VGRDsfc,2,2);skip(sqrt(UGRDsfc*UGRDsfc+VGRDsfc*VGRDsfc),2,2)' >> 'run cbar.gs' >> 'printim wind(m/s)' >> >> with the help of such script i am able to generate output which is >> attached with this mail. >> >> all the best. >> >> >> On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool wrote: >> >>> Good morning everyone, >>> >>> I'm generating wave analysis models, but I'm having a tough time showing >>> the mean-wave (or primary) wave direction arrows. >>> >>> The vars in the Grib are: >>> ------------------------------------------------- >>> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >>> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >>> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] >>> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >>> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >>> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >>> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >>> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >>> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >>> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >>> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >>> >>> For displaying wind vector arrows it's straightforward as there are U and >>> V variables (UGRDsfc and VGRDsfc) for the zonal and meridional components. >>> Displaying primary wave direction though seems more elusive, yet I see it >>> done on many models such as the following: >>> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >>> >>> ...which was generated using GrADS by FNMOC. >>> >>> Any help you can provide would be greatly appreciated, and thank you for >>> your time. >>> >>> -- >>> Nathan Cool >>> nathan at nathancool.com >>> >> >> >> >> -- >> Sushant Puranik >> Junior Research Fellow >> Dept. of Atmospheric & Space Sciences, >> University of Pune, >> Pune-07, >> India. >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/89958daf/attachment.html From jma at COLA.IGES.ORG Wed Nov 4 12:47:17 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Wed, 4 Nov 2009 12:47:17 -0500 Subject: Why did the OpenGrADS Bundle v2.0.a7.oga.3 fail to publish netCDF-4 datasets? In-Reply-To: Message-ID: That 'dummy CTL' message means that GrADS was unable to open your file with sdfopen, xdfopen, or open. Try writing a descriptor file and re- configuring your GDS to serve that instead. While you're at it, take pity on your potential users and rename your data set from "AMSR__OPER_R_LPRMSMA_L3A_20080510T000000_20080510T235959_0003" to something short and meaningful. --Jennifer On Nov 4, 2009, at 12:05 PM, lizhi.miao wrote: > Hi all, > > I installed the OpenGrADS Bundle v2.0.a7.oga.3 (http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7..oga.3/ > ) and set . Then, I tried to restart my gds to publish the netcdf 3 and > netcdf-4 files. The server was restarted, but only netcdf 3 files > were published. The error was occured in gds.log as below: > > error: can't import /LPRM AMSR_E_soil_moisture/2008/ > AMSR__OPER_R_LPRMSMA_L3A_20080510T000000_20080510T235959_0003; dummy > CTL feature not supported by GrADS executable > > If needed, I could attach the two netcdf files (one is netcdf 3, > another is netcdf-4) . > Any suggestion will be appreciated! Thanks. > > Best Regards, > > Tim -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/3cb6bfb4/attachment.html From diego.morelli at TRS.IT Wed Nov 4 13:00:39 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Wed, 4 Nov 2009 19:00:39 +0100 Subject: Manage lat-lon thinned grid: Conclusion Message-ID: From jimp at HAWAII.EDU Wed Nov 4 13:10:37 2009 From: jimp at HAWAII.EDU (James T. Potemra) Date: Wed, 4 Nov 2009 08:10:37 -1000 Subject: Vector arrows for primary wave direction In-Reply-To: <817a77c90911040912sdc57013y276c9a71a2af9c4a@mail.gmail.com> Message-ID: Hi Nathan: Matthias suggestion is correct, but I think you need to be careful with the direction. His calculation presumes that the direction is measured counterclockwise from the east (so a direction of zero would be a wave headed due east, direction 90 would be headed north, and so on). The direction from the model is probably compass heading (0 is north). So, you might have to add an extra step to convert the direction angle. Jim Nathan Cool wrote: > Thanks Matthias. I sure do appreciate the help. That produced some > interesting results, but it didn't seem accurate (arrows pointing in > some rather bizarre directions). Perhaps though this is a data > problem, and I need to grab different GRIB files? Currently, I'm using > GRIBs from the NCEP server: > ftp://polar.ncep.noaa.gov/pub/waves/latest_run/ > > -Nathan > > > On Wed, Nov 4, 2009 at 7:53 AM, Matthias Fripp > > wrote: > > How about this: > > set gxout vector > display cos(DIRPWsfc * 3.14159/180); sin(DIRPWsfc * 3.14159/180) > > This converts the wave direction from degrees to radians, and then > calculates its u and v components. > > Matthias > > On Nov 4, 2009, at 2:38 PM, Nathan Cool wrote: > >> Thanks, but I'm not trying to display "wind" vector arrows; >> instead, I'm trying to display the primary wave direction. >> >> The vars in the Grib are: >> ------------------------ >> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and >> swell [m] >> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >> >> ...and I can see that others have been able to show the primary >> wave direction (DIRPWsfc) using vector arrows, as is the case on >> the FNMOC models like this one: >> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >> >> Do you know how this can be done? >> >> Thanks, >> >> -Nathan >> >> >> On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik >> > wrote: >> >> Hi >> I am able to generate wind direction. try his >> 'set arrscl 1 30' >> 'set cthick 5' >> 'set arrowhead 0.10' >> 'set clevs 3 5 10 15 20 25' >> 'set ccols 0 4 1 2 3 5 12' >> 'set gxout vector' >> 'd >> skip(UGRDsfc,2,2);skip(VGRDsfc,2,2);skip(sqrt(UGRDsfc*UGRDsfc+VGRDsfc*VGRDsfc),2,2)' >> 'run cbar.gs ' >> 'printim wind(m/s)' >> >> with the help of such script i am able to generate output >> which is attached with this mail. >> >> all the best. >> >> >> On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool >> > wrote: >> >> Good morning everyone, >> >> I'm generating wave analysis models, but I'm having a >> tough time showing the mean-wave (or primary) wave >> direction arrows. >> >> The vars in the Grib are: >> ------------------------------------------------- >> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction >> [deg] >> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves >> and swell [m] >> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >> PERSWsfc 0 110,1,1 ** surface Secondary wave mean >> period [s] >> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >> >> For displaying wind vector arrows it's straightforward as >> there are U and V variables (UGRDsfc and VGRDsfc) for the >> zonal and meridional components. Displaying primary wave >> direction though seems more elusive, yet I see it done on >> many models such as the following: >> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >> >> ...which was generated using GrADS by FNMOC. >> >> Any help you can provide would be greatly appreciated, >> and thank you for your time. >> >> -- >> Nathan Cool >> nathan at nathancool.com >> >> >> >> >> -- >> Sushant Puranik >> Junior Research Fellow >> Dept. of Atmospheric & Space Sciences, >> University of Pune, >> Pune-07, >> India. >> >> > > From matthias.fripp at ECI.OX.AC.UK Wed Nov 4 13:12:48 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Wed, 4 Nov 2009 18:12:48 +0000 Subject: Vector arrows for primary wave direction In-Reply-To: <817a77c90911040912sdc57013y276c9a71a2af9c4a@mail.gmail.com> Message-ID: Hi Nathan, The equations I gave you assume that "0 degrees" corresponds to due east, and that the angle counts up as you go counterclockwise. You would need different equations if these assumptions are not true. e.g., if the angle shows the number of degrees clockwise from north, you would need something like this: display cos((90-DIRPWsfc) * 3.14159/180); sin((90-DIRPWsfc) * 3.14159/180) If that's not the problem, then it could indeed be a data error. Best, Matthias It sounds like it could be a data problem (I don't know the On Nov 4, 2009, at 5:12 PM, Nathan Cool wrote: > Thanks Matthias. I sure do appreciate the help. That produced some > interesting results, but it didn't seem accurate (arrows pointing in > some rather bizarre directions). Perhaps though this is a data > problem, and I need to grab different GRIB files? Currently, I'm > using GRIBs from the NCEP server: > ftp://polar.ncep.noaa.gov/pub/waves/latest_run/ > > -Nathan > > > On Wed, Nov 4, 2009 at 7:53 AM, Matthias Fripp > wrote: > How about this: > > set gxout vector > display cos(DIRPWsfc * 3.14159/180); sin(DIRPWsfc * 3.14159/180) > > This converts the wave direction from degrees to radians, and then > calculates its u and v components. > > Matthias > > On Nov 4, 2009, at 2:38 PM, Nathan Cool wrote: > >> Thanks, but I'm not trying to display "wind" vector arrows; >> instead, I'm trying to display the primary wave direction. >> >> The vars in the Grib are: >> ------------------------ >> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell >> [m] >> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >> >> ...and I can see that others have been able to show the primary >> wave direction (DIRPWsfc) using vector arrows, as is the case on >> the FNMOC models like this one: >> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >> >> Do you know how this can be done? >> >> Thanks, >> >> -Nathan >> >> >> On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik > > wrote: >> Hi >> I am able to generate wind direction. try his >> 'set arrscl 1 30' >> 'set cthick 5' >> 'set arrowhead 0.10' >> 'set clevs 3 5 10 15 20 25' >> 'set ccols 0 4 1 2 3 5 12' >> 'set gxout vector' >> 'd skip(UGRDsfc,2,2);skip(VGRDsfc,2,2);skip(sqrt(UGRDsfc*UGRDsfc >> +VGRDsfc*VGRDsfc),2,2)' >> 'run cbar.gs' >> 'printim wind(m/s)' >> >> with the help of such script i am able to generate output which is >> attached with this mail. >> >> all the best. >> >> >> On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool >> wrote: >> Good morning everyone, >> >> I'm generating wave analysis models, but I'm having a tough time >> showing the mean-wave (or primary) wave direction arrows. >> >> The vars in the Grib are: >> ------------------------------------------------- >> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell >> [m] >> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >> >> For displaying wind vector arrows it's straightforward as there are >> U and V variables (UGRDsfc and VGRDsfc) for the zonal and >> meridional components. Displaying primary wave direction though >> seems more elusive, yet I see it done on many models such as the >> following: >> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >> >> ...which was generated using GrADS by FNMOC. >> >> Any help you can provide would be greatly appreciated, and thank >> you for your time. >> >> -- >> Nathan Cool >> nathan at nathancool.com >> >> >> >> -- >> Sushant Puranik >> Junior Research Fellow >> Dept. of Atmospheric & Space Sciences, >> University of Pune, >> Pune-07, >> India. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/43fade7e/attachment.html From matthias.fripp at ECI.OX.AC.UK Wed Nov 4 13:18:49 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Wed, 4 Nov 2009 18:18:49 +0000 Subject: Vector arrows for primary wave direction In-Reply-To: <4AF1C39D.5090803@hawaii.edu> Message-ID: That's right -- I just checked this page ( http://polar.ncep.noaa.gov/waves/products.html ), which reports that the datasets use the "oceanographical convention", and this page ( http://www.aims.gov.au/pages/facilities/oceanographic-buoys/ob-1.html ), which says that the oceanographic convention is to show "the direction the current is flowing towards, measured in degrees clockwise from North". If you replace DIRPWsfc with (90 - DIRPWsfc), you can convert between the two conventions. So that would give you set gxout vector display cos((90-DIRPWsfc) * 3.14159/180); sin((90-DIRPWsfc) * 3.14159/180) Sorry about that -- I'm so used to the physicists' approach to angles that I forgot about the real world! Matthias On Nov 4, 2009, at 6:10 PM, James T. Potemra wrote: > Hi Nathan: > > Matthias suggestion is correct, but I think you need to be careful > with > the direction. His calculation > presumes that the direction is measured counterclockwise from the east > (so a direction of zero would > be a wave headed due east, direction 90 would be headed north, and so > on). The direction from the > model is probably compass heading (0 is north). So, you might have to > add an extra step to convert > the direction angle. > > Jim > > Nathan Cool wrote: >> Thanks Matthias. I sure do appreciate the help. That produced some >> interesting results, but it didn't seem accurate (arrows pointing in >> some rather bizarre directions). Perhaps though this is a data >> problem, and I need to grab different GRIB files? Currently, I'm >> using >> GRIBs from the NCEP server: >> ftp://polar.ncep.noaa.gov/pub/waves/latest_run/ >> >> -Nathan >> >> >> On Wed, Nov 4, 2009 at 7:53 AM, Matthias Fripp >> > >> wrote: >> >> How about this: >> >> set gxout vector >> display cos(DIRPWsfc * 3.14159/180); sin(DIRPWsfc * 3.14159/180) >> >> This converts the wave direction from degrees to radians, and then >> calculates its u and v components. >> >> Matthias >> >> On Nov 4, 2009, at 2:38 PM, Nathan Cool wrote: >> >>> Thanks, but I'm not trying to display "wind" vector arrows; >>> instead, I'm trying to display the primary wave direction. >>> >>> The vars in the Grib are: >>> ------------------------ >>> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >>> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >>> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and >>> swell [m] >>> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >>> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >>> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >>> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >>> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >>> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >>> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >>> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >>> >>> ...and I can see that others have been able to show the primary >>> wave direction (DIRPWsfc) using vector arrows, as is the case on >>> the FNMOC models like this one: >>> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >>> >>> Do you know how this can be done? >>> >>> Thanks, >>> >>> -Nathan >>> >>> >>> On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik >>> > >>> wrote: >>> >>> Hi >>> I am able to generate wind direction. try his >>> 'set arrscl 1 30' >>> 'set cthick 5' >>> 'set arrowhead 0.10' >>> 'set clevs 3 5 10 15 20 25' >>> 'set ccols 0 4 1 2 3 5 12' >>> 'set gxout vector' >>> 'd >>> skip(UGRDsfc,2,2);skip(VGRDsfc, >>> 2,2);skip(sqrt(UGRDsfc*UGRDsfc+VGRDsfc*VGRDsfc),2,2)' >>> 'run cbar.gs ' >>> 'printim wind(m/s)' >>> >>> with the help of such script i am able to generate output >>> which is attached with this mail. >>> >>> all the best. >>> >>> >>> On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool >>> > wrote: >>> >>> Good morning everyone, >>> >>> I'm generating wave analysis models, but I'm having a >>> tough time showing the mean-wave (or primary) wave >>> direction arrows. >>> >>> The vars in the Grib are: >>> ------------------------------------------------- >>> DIRPWsfc 0 107,1,1 ** surface Primary wave direction >>> [deg] >>> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction >>> [deg] >>> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves >>> and swell [m] >>> PERPWsfc 0 108,1,1 ** surface Primary wave mean >>> period [s] >>> PERSWsfc 0 110,1,1 ** surface Secondary wave mean >>> period [s] >>> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >>> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >>> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >>> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >>> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves >>> [deg] >>> WVPERsfc 0 103,1,1 ** surface Mean period of wind >>> waves [s] >>> >>> For displaying wind vector arrows it's straightforward as >>> there are U and V variables (UGRDsfc and VGRDsfc) for the >>> zonal and meridional components. Displaying primary wave >>> direction though seems more elusive, yet I see it done on >>> many models such as the following: >>> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >>> >>> ...which was generated using GrADS by FNMOC. >>> >>> Any help you can provide would be greatly appreciated, >>> and thank you for your time. >>> >>> -- >>> Nathan Cool >>> nathan at nathancool.com >>> >>> >>> >>> >>> -- >>> Sushant Puranik >>> Junior Research Fellow >>> Dept. of Atmospheric & Space Sciences, >>> University of Pune, >>> Pune-07, >>> India. >>> >>> >> >> From dasilva at OPENGRADS.ORG Wed Nov 4 14:16:48 2009 From: dasilva at OPENGRADS.ORG (Arlindo da Silva) Date: Wed, 4 Nov 2009 14:16:48 -0500 Subject: Opengrads for AIX Server supported by Grads1.8 In-Reply-To: <20091104065835.0000356B.0005@hydra.t.u-tokyo.ac.jp> Message-ID: On Wed, Nov 4, 2009 at 1:58 AM, Shakil AHMAD wrote: > Dear Sir/Madam, > > I am PhD student at The university of Tokyo. I am using Opengrads > extensions for my analysis on Linux Server. > > Please do not write to me directly with questions like this. Instead, aski these questions on the gradsusr mailing list for the benefit of others. > No I have been shifted to AIX server, but Opengrads can support Grads1.9 > or above version, and for AIX server Grads1.8 (old version) is available, > which cannot support Opengrads and its extensions. > > Is available where? I have made 2 releases of the OpenGrADS bundle for AIX, see https://sourceforge.net/projects/opengrads/files/ https://sourceforge.net/projects/opengrads/files/ > Could you suggest me how to resolve the issue or any other version of > Opengrads for Grads1.8 version. > > Why do you need to use GrADS v1.8? Have you tried the OpenGrADS Bundle builds for AIX? I have not yet released the last 2.0.a7.oga.3 for AIX, but I should be able to do so in the near future. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/16062088/attachment.html From arlindo.dasilva at GMAIL.COM Wed Nov 4 14:20:55 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 4 Nov 2009 14:20:55 -0500 Subject: how read grib files with PcGrads In-Reply-To: <607bb2140911040852i44ef88b5ra8c017194b0507bd@mail.gmail.com> Message-ID: On Wed, Nov 4, 2009 at 11:52 AM, Javier Pe?a wrote: > Hello everyone, > > I'm working with Pcgrads in the operating system Windows XP. I have a. Grib > that contains multiple variables in a certain range of latitude, longitude > for a period of 20 years with data every 6 hours. > My question is, how can I read this file with Pcgrads? > What have you tried? Have you read the on-line GrADS documentation? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/07fb946e/attachment.html From cmunozc at UDEC.CL Wed Nov 4 14:43:08 2009 From: cmunozc at UDEC.CL (Cristian Gonzal =?iso-8859-1?Q?Mu=F1oz_Castillo?=) Date: Wed, 4 Nov 2009 16:43:08 -0300 Subject: =?iso-8859-1?Q?Obtenci=F3n_de_varias_variables_de_un_.grib?= In-Reply-To: <607bb2140911040812l1d37140cy38c546462482c3a5@mail.gmail.com> Message-ID: Hola Javier, Generalmente los archivos debes leerlos a traves de un archivo de control (uno con extension .ctl) que haga referencia al archivo .grib que utilizas. Googlea "grads control file" y de seguro encontraras lo que andas buscando. Saludos > Hola a todos: > > Estoy trabajando con Pcgrads en el sistema operativo windows xp. Tengo un > archivo .grib que contiene varias variables en un cierto rango de latitud, > longitud para un periodo de tiempo de 20 a?os, con datos cada 6 horas. > Mi pregunta es la siguiente ?como puedo leer este archivo con Pcgrads? > Un saludo: > Javier Pe?a > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com > -- Cristian G. Mu?oz Castillo Geof?sico Licenciado en Ciencias F?sicas Oficina 442 Depto. Geof?sica (DGEO) Fono (41) 2203155 Facultad Ciencias F?sicas y Matem?ticas Universidad de Concepci?n Concepci?n Chile From nathan at NATHANCOOL.COM Wed Nov 4 14:59:31 2009 From: nathan at NATHANCOOL.COM (Nathan Cool) Date: Wed, 4 Nov 2009 11:59:31 -0800 Subject: Vector arrows for primary wave direction In-Reply-To: Message-ID: Thanks Matthias and James! That did the trick. I sure do appreciate all the help on this. btw: I ended up having to use 270 to convert to the proper angle: d skip(cos((270-DIRPWsfc) * 3.14159/180),3,3); skip(sin((270-DIRPWsfc) * 3.14159/180),3,3) Thanks again, -Nathan On Wed, Nov 4, 2009 at 10:18 AM, Matthias Fripp wrote: > That's right -- I just checked this page ( > http://polar.ncep.noaa.gov/waves/products.html > ), which reports that the datasets use the "oceanographical > convention", and this page ( > http://www.aims.gov.au/pages/facilities/oceanographic-buoys/ob-1.html > ), which says that the oceanographic convention is to show "the > direction the current is flowing towards, measured in degrees > clockwise from North". > > If you replace DIRPWsfc with (90 - DIRPWsfc), you can convert between > the two conventions. So that would give you > > set gxout vector > display cos((90-DIRPWsfc) * 3.14159/180); sin((90-DIRPWsfc) * > 3.14159/180) > > Sorry about that -- I'm so used to the physicists' approach to angles > that I forgot about the real world! > > Matthias > > > On Nov 4, 2009, at 6:10 PM, James T. Potemra wrote: > > Hi Nathan: >> >> Matthias suggestion is correct, but I think you need to be careful >> with >> the direction. His calculation >> presumes that the direction is measured counterclockwise from the east >> (so a direction of zero would >> be a wave headed due east, direction 90 would be headed north, and so >> on). The direction from the >> model is probably compass heading (0 is north). So, you might have to >> add an extra step to convert >> the direction angle. >> >> Jim >> >> Nathan Cool wrote: >> >>> Thanks Matthias. I sure do appreciate the help. That produced some >>> interesting results, but it didn't seem accurate (arrows pointing in >>> some rather bizarre directions). Perhaps though this is a data >>> problem, and I need to grab different GRIB files? Currently, I'm >>> using >>> GRIBs from the NCEP server: >>> ftp://polar.ncep.noaa.gov/pub/waves/latest_run/ >>> >>> -Nathan >>> >>> >>> On Wed, Nov 4, 2009 at 7:53 AM, Matthias Fripp >>> > >>> wrote: >>> >>> How about this: >>> >>> set gxout vector >>> display cos(DIRPWsfc * 3.14159/180); sin(DIRPWsfc * 3.14159/180) >>> >>> This converts the wave direction from degrees to radians, and then >>> calculates its u and v components. >>> >>> Matthias >>> >>> On Nov 4, 2009, at 2:38 PM, Nathan Cool wrote: >>> >>> Thanks, but I'm not trying to display "wind" vector arrows; >>>> instead, I'm trying to display the primary wave direction. >>>> >>>> The vars in the Grib are: >>>> ------------------------ >>>> DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] >>>> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] >>>> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and >>>> swell [m] >>>> PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] >>>> PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] >>>> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >>>> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >>>> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >>>> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >>>> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] >>>> WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] >>>> >>>> ...and I can see that others have been able to show the primary >>>> wave direction (DIRPWsfc) using vector arrows, as is the case on >>>> the FNMOC models like this one: >>>> >>>> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >>>> >>>> Do you know how this can be done? >>>> >>>> Thanks, >>>> >>>> -Nathan >>>> >>>> >>>> On Tue, Nov 3, 2009 at 9:58 PM, sushant puranik >>>> > >>>> wrote: >>>> >>>> Hi >>>> I am able to generate wind direction. try his >>>> 'set arrscl 1 30' >>>> 'set cthick 5' >>>> 'set arrowhead 0.10' >>>> 'set clevs 3 5 10 15 20 25' >>>> 'set ccols 0 4 1 2 3 5 12' >>>> 'set gxout vector' >>>> 'd >>>> skip(UGRDsfc,2,2);skip(VGRDsfc, >>>> 2,2);skip(sqrt(UGRDsfc*UGRDsfc+VGRDsfc*VGRDsfc),2,2)' >>>> 'run cbar.gs ' >>>> 'printim wind(m/s)' >>>> >>>> with the help of such script i am able to generate output >>>> which is attached with this mail. >>>> >>>> all the best. >>>> >>>> >>>> On Tue, Nov 3, 2009 at 9:45 PM, Nathan Cool >>>> > wrote: >>>> >>>> Good morning everyone, >>>> >>>> I'm generating wave analysis models, but I'm having a >>>> tough time showing the mean-wave (or primary) wave >>>> direction arrows. >>>> >>>> The vars in the Grib are: >>>> ------------------------------------------------- >>>> DIRPWsfc 0 107,1,1 ** surface Primary wave direction >>>> [deg] >>>> DIRSWsfc 0 109,1,1 ** surface Secondary wave direction >>>> [deg] >>>> HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves >>>> and swell [m] >>>> PERPWsfc 0 108,1,1 ** surface Primary wave mean >>>> period [s] >>>> PERSWsfc 0 110,1,1 ** surface Secondary wave mean >>>> period [s] >>>> UGRDsfc 0 33,1,1 ** surface u wind [m/s] >>>> VGRDsfc 0 34,1,1 ** surface v wind [m/s] >>>> WDIRsfc 0 31,1,1 ** surface Wind direction [deg] >>>> WINDsfc 0 32,1,1 ** surface Wind speed [m/s] >>>> WVDIRsfc 0 101,1,1 ** surface Direction of wind waves >>>> [deg] >>>> WVPERsfc 0 103,1,1 ** surface Mean period of wind >>>> waves [s] >>>> >>>> For displaying wind vector arrows it's straightforward as >>>> there are U and V variables (UGRDsfc and VGRDsfc) for the >>>> zonal and meridional components. Displaying primary wave >>>> direction though seems more elusive, yet I see it done on >>>> many models such as the following: >>>> >>>> https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif >>>> >>>> ...which was generated using GrADS by FNMOC. >>>> >>>> Any help you can provide would be greatly appreciated, >>>> and thank you for your time. >>>> >>>> -- >>>> Nathan Cool >>>> nathan at nathancool.com >>>> >>>> >>>> >>>> >>>> -- >>>> Sushant Puranik >>>> Junior Research Fellow >>>> Dept. of Atmospheric & Space Sciences, >>>> University of Pune, >>>> Pune-07, >>>> India. >>>> >>>> >>>> >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/c1b35183/attachment.html From dasilva at ALUM.MIT.EDU Wed Nov 4 15:46:32 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Wed, 4 Nov 2009 15:46:32 -0500 Subject: OpenGrADS Bundle binaries for AIX Message-ID: Hi, I just posted AIX binaries for the OpenGrADS Bundle v2.0.a7.oga.3. If you download these, I'd appreciate feedback as to whether these binaries are working or not for you. http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.3/ Thank you, Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/71f58d5a/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Nov 4 16:09:40 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 4 Nov 2009 15:09:40 -0600 Subject: export data to a txt file Message-ID: Hi All grads user I have a file contain vorticity variable,I want save It's data to a txt file I have fprintf.gs script file to do this,but it can't save vorticity, latitude,longitude to one txt file. Any suggestion will be appreciated, thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/04c690ec/attachment.html -------------- next part -------------- function fprintf(args) * Command line argumets * --------------------- expr = subwrd(args,1) file = subwrd(args,2) format = subwrd(args,3) numl = subwrd(args,4) numb = subwrd(args,5) u = subwrd(args,6) if ( file='' ) say '' say 'NAME' say ' fprintf - print GrADS variables to a text file' say '' say 'SYNOPSIS' say ' fprintf expr txtFile [format numl numb [u]]' say '' say 'DESCRIPTION' say ' Evaluates the contents of the GrADS expression *expr* writing' say ' its values to a formatted text file *txtFile*. On output, the' say ' number of values and the undef values are returned; a negative' say ' number of values signals an error condition.' say '' say ' Unlike the output of *set gxout print*, the resulting ASCII' say ' file has only the data values and *no header*.' say '' say 'OPTIONS' say ' The optional parameters are the same as the ones required by' say ' the GrADS command *set prnopts*, namely' say ' format a C language template for formatting ASCII output.' say ' Default is %g.' say ' numl number of values to print per record. Default is 8.' say ' numb number of blanks to insert between values. Default is 1.' say ' u print "Undef" instead of the numerical value for' say ' missing data.' say 'BUGS' say ' The GrADS expression cannot have spaces in it.' say '' say 'COPYRIGHT' say ' This script has been placed in the public domain' say '' return endif * Set the display environment and produce buffered ASCII output * ------------------------------------------------------------- 'set gxout print' if ( format != '' ) 'set prnopts ' format ' ' numl ' ' numb ' ' u ' ' endif 'display ' expr if ( rc!=0 ); return -1; endif * Get rid of header line: Printing Grid -- 3358 Values -- Undef = 1e+20 * but record number of values and undef values for later reference * --------------------------------------------------------------------- buffer = result i = 1; line = sublin(buffer,i) n = subwrd(line,4) undef = subwrd(line,9) * Now write the data values to text file: first line... * ----------------------------------------------------- i = 2; line = sublin(buffer,i) if ( write_(file,line) > 0 ); return -2; endif * Append subsequent lines * ----------------------- i = i + 1; line = sublin(buffer,i) while ( line != '' ) if ( write_(file,line,append) != 0 ); return -3; endif i = i + 1; line = sublin(buffer,i) endwhile if ( close(file) != 0 ); return -4; endif * All done * -------- say 'wrote ' n ' values to file "' file '"' return n ' ' undef ' ' function write_(file,line) rc = write(file,line) return subwrd(rc,1) From arlindo.dasilva at GMAIL.COM Wed Nov 4 16:11:45 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 4 Nov 2009 16:11:45 -0500 Subject: Vector arrows for primary wave direction In-Reply-To: <817a77c90911030815u14d4dae8lcbd3675f55489b8e@mail.gmail.com> Message-ID: On Tue, Nov 3, 2009 at 11:15 AM, Nathan Cool wrote: > Good morning everyone, > > I'm generating wave analysis models, but I'm having a tough time showing > the mean-wave (or primary) wave direction arrows. > > The vars in the Grib are: > ------------------------------------------------- > DIRPWsfc 0 107,1,1 ** surface Primary wave direction [deg] > DIRSWsfc 0 109,1,1 ** surface Secondary wave direction [deg] > HTSGWsfc 0 100,1,1 ** surface Sig height of wind waves and swell [m] > PERPWsfc 0 108,1,1 ** surface Primary wave mean period [s] > PERSWsfc 0 110,1,1 ** surface Secondary wave mean period [s] > UGRDsfc 0 33,1,1 ** surface u wind [m/s] > VGRDsfc 0 34,1,1 ** surface v wind [m/s] > WDIRsfc 0 31,1,1 ** surface Wind direction [deg] > WINDsfc 0 32,1,1 ** surface Wind speed [m/s] > WVDIRsfc 0 101,1,1 ** surface Direction of wind waves [deg] > WVPERsfc 0 103,1,1 ** surface Mean period of wind waves [s] > > For displaying wind vector arrows it's straightforward as there are U and V > variables (UGRDsfc and VGRDsfc) for the zonal and meridional components. > Displaying primary wave direction though seems more elusive, yet I see it > done on many models such as the following: > https://www.fnmoc.navy.mil/ww3_cgi/dynamic/ww3.w.npac.sig_wav_ht.000.gif > > ...which was generated using GrADS by FNMOC. > > Any help you can provide would be greatly appreciated, and thank you for > your time. > > Given the direction you should be able to construct a vector of magnitude 1 pointing the direction of the wave, say ga-> display cos(0.01745*WVDIRsfc);sin(0.01745*WVDIRsfc) The factor 0.01745 is the conversion of deg to radians. (This assumes that when the wave direction is 90 deg, the wave is going north). Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/44d4746b/attachment.html From bruyerec at UCAR.EDU Wed Nov 4 16:35:08 2009 From: bruyerec at UCAR.EDU (Cindy Bruyere) Date: Wed, 4 Nov 2009 14:35:08 -0700 Subject: missing values in wrf_output In-Reply-To: <94ce49550911040618x290941bah877bcaeae755e57a@mail.gmail.com> Message-ID: It is because these area are under ground for the pressure level you are interpolating too. In the latest version of ARWpost, there is a new option - extrapolate - if set to true the code will extrapolate below ground, and these blank spots in your plot will be filled in. Cindy On Nov 4, 2009, at 7:18 AM, sh zhou wrote: > Hi All, > > when I display "relative humidity" from wrf_output, I found some > values missing ( please check the attachment), does it mean > something wrong when generate those values? or I made some mistakes > when converted wrf_output into Grads data format?( I use "ARWpost" > to convert data), can you tell me how to fix it? > > Thank you. > > -- > Shenghui Student > Major: Physics > HuNan University China > From shi at AGNES.GSFC.NASA.GOV Wed Nov 4 17:06:39 2009 From: shi at AGNES.GSFC.NASA.GOV (Roger Shi) Date: Wed, 4 Nov 2009 17:06:39 -0500 Subject: find the location of the max value over a lat-long domain Message-ID: Hi, I am having problems to find the location of the max value over a lat-long domain. GrADS only provides the "maxloc" function which only loop through one dimension, e.g. maxloc(expr, dim1, dim2 <,tinc>) expr - any valid GrADS expression dim1 - the starting dimension expression dim2 - the ending dimension expression tinc - optional time increment Is there any way to loop through both x and y dimensions at the same time? Best regards, Roger Shi From Charles.Seman at NOAA.GOV Wed Nov 4 17:37:03 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Wed, 4 Nov 2009 17:37:03 -0500 Subject: find the location of the max value over a lat-long domain In-Reply-To: <4AF1FAEF.6050705@agnes.gsfc.nasa.gov> Message-ID: Roger, Here's a copy of part of an email reply posted to the Listserv by Jennifer Adams (COLA) from Aug 2002 (which was saved to a local file for reference): --- Try this little bit of script code -- modify to suit your data. This example draws a mark where the maximum of a global variable called "air" is located in the xy plane. 'set warn off' 'd maxloc(max(air,lon=0,lon=360),lat=-90,lat=90)' ygrd = subwrd(result,4) 'd maxloc(max(air,lat=-90,lat=90),lon=0,lon=360)' xgrd = subwrd(result,4) 'set x 'xgrd lonval = subwrd(result,4) 'set y 'ygrd latval = subwrd(result,4) 'q w2xy 'lonval' 'latval xpos = subwrd(result,3) ypos = subwrd(result,6) 'draw mark 1 'xpos' 'ypos' .2' --- Hope it helps, Chuck Roger Shi wrote: > Hi, > > I am having problems to find the location of the max value over a > lat-long domain. GrADS only provides the "maxloc" function which only > loop through one dimension, e.g. > > maxloc(expr, dim1, dim2 <,tinc>) > > expr - any valid GrADS expression > dim1 - the starting dimension expression > dim2 - the ending dimension expression > tinc - optional time increment > > Is there any way to loop through both x and y dimensions at the same > time? > > Best regards, > Roger Shi -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." From h.meteo.shirazu at GMAIL.COM Wed Nov 4 18:00:59 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 4 Nov 2009 17:00:59 -0600 Subject: open 2 files in grads Message-ID: Hi all user I want to open 2 files in grads and display variables can any one help me for errors shown below; ga-> 'set dfile 2' Default file set to: model_25.grb2 ga-> 'define r=rhprs' Warning issued for variable = rhprs Define memory allocation size = 84680 bytes Cannot contour grid - all undefined values and; 'set dfile 2' 'Default file set to: model_25.grb2' 'ga-> 'd rhprs' Data Request Error: Invalid grid coordinates World coordinates convert to non-integer grid coordinates Variable = rhprs Dimension = 2 Error ocurred at column 1 DISPLAY error: Invalid expression Expression = rhprs thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/ef4c3c4a/attachment.html From taranaphy at YAHOO.COM Wed Nov 4 18:08:09 2009 From: taranaphy at YAHOO.COM (tarana mahzabin) Date: Wed, 4 Nov 2009 15:08:09 -0800 Subject: find the location of the max value over a lat-long domain In-Reply-To: <4AF1FAEF.6050705@agnes.gsfc.nasa.gov> Message-ID: Hi Roger, I have attached a file which will provide you 3 text file for Max value of the variable,corresponding position of lat / lon for a time varying loop. May be this will help you. Tarana Mahzabin Graduate Student, Dept. of Earth and Atmospheric Science, U of A, Edmonton, Canada. ________________________________ From: Roger Shi To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, November 4, 2009 15:06:39 Subject: find the location of the max value over a lat-long domain Hi, I am having problems to find the location of the max value over a lat-long domain. GrADS only provides the "maxloc" function which only loop through one dimension, e.g. maxloc(expr, dim1, dim2 <,tinc>) expr - any valid GrADS expression dim1 - the starting dimension expression dim2 - the ending dimension expression tinc - optional time increment Is there any way to loop through both x and y dimensions at the same time? Best regards, Roger Shi New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/e0bca52c/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: 94_track_ps.gs Type: application/octet-stream Size: 5744 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091104/e0bca52c/attachment.obj From Charles.Seman at NOAA.GOV Wed Nov 4 18:15:07 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Wed, 4 Nov 2009 18:15:07 -0500 Subject: export data to a txt file In-Reply-To: <5c658ce10911041309l789caebo547b6fd4ada3e85@mail.gmail.com> Message-ID: Hossein, Please find attached a "printascii.gs" script from Prince K. Xavier Hope it helps, Chuck hossein lotfi wrote: > Hi All grads user > I have a file contain vorticity variable,I want save It's data to > a txt file > I have fprintf.gs script file to do this,but it > can't save vorticity, latitude,longitude to one txt file. > Any suggestion will be appreciated, > thanks -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: printascii.gs Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/8f217191/attachment.pl From daxiawj at GMAIL.COM Wed Nov 4 18:35:42 2009 From: daxiawj at GMAIL.COM (Daxiawj J) Date: Wed, 4 Nov 2009 17:35:42 -0600 Subject: missing values in wrf_output In-Reply-To: <94ce49550911040618x290941bah877bcaeae755e57a@mail.gmail.com> Message-ID: Have you checked the original data, or have you plotted the data using other method? From: sh zhou Sent: Wednesday, November 04, 2009 8:18 AM To: GRADSUSR at LIST.CINECA.IT Subject: missing values in wrf_output Hi All, when I display "relative humidity" from wrf_output, I found some values missing ( please check the attachment), does it mean something wrong when generate those values? or I made some mistakes when converted wrf_output into Grads data format?( I use "ARWpost" to convert data), can you tell me how to fix it? Thank you. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/ba8108d3/attachment.html From eric at OFFSHOREWEATHER.COM.AU Wed Nov 4 18:43:44 2009 From: eric at OFFSHOREWEATHER.COM.AU (Eric Tiong) Date: Thu, 5 Nov 2009 09:43:44 +1000 Subject: Reading binary files Message-ID: Hi, How can I read binary files exported using wgrib (-binary switch) using gfortran? Any specific compile switch/option required? Thank you in advance. Warm regards, Eric Tiong -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/651dd34c/attachment.html From shi at AGNES.GSFC.NASA.GOV Wed Nov 4 19:21:35 2009 From: shi at AGNES.GSFC.NASA.GOV (Jainn J. Shi (aka Roger)) Date: Wed, 4 Nov 2009 19:21:35 -0500 Subject: find the location of the max value over a lat-long domain In-Reply-To: <4AF2020F.7090900@noaa.gov> Message-ID: Chuck, Thanks a lot. This is exactly what I was looking for. Roger Charles Seman wrote: > Roger, > > Here's a copy of part of an email reply posted to the Listserv by > Jennifer Adams (COLA) from Aug 2002 (which was saved to a local file for > reference): > > --- > Try this little bit of script code -- modify to suit your > data. This example draws a mark where the maximum of a > global variable called "air" is located in the xy plane. > > 'set warn off' > 'd maxloc(max(air,lon=0,lon=360),lat=-90,lat=90)' > ygrd = subwrd(result,4) > 'd maxloc(max(air,lat=-90,lat=90),lon=0,lon=360)' > xgrd = subwrd(result,4) > 'set x 'xgrd > lonval = subwrd(result,4) > 'set y 'ygrd > latval = subwrd(result,4) > 'q w2xy 'lonval' 'latval > xpos = subwrd(result,3) > ypos = subwrd(result,6) > 'draw mark 1 'xpos' 'ypos' .2' > --- > > Hope it helps, > Chuck > > Roger Shi wrote: >> Hi, >> >> I am having problems to find the location of the max value over a >> lat-long domain. GrADS only provides the "maxloc" function which only >> loop through one dimension, e.g. >> >> maxloc(expr, dim1, dim2 <,tinc>) >> >> expr - any valid GrADS expression >> dim1 - the starting dimension expression >> dim2 - the ending dimension expression >> tinc - optional time increment >> >> Is there any way to loop through both x and y dimensions at the same >> time? >> >> Best regards, >> Roger Shi > > -- > > Please note that Charles.Seman at noaa.gov should be considered my NOAA > email address, not cjs at gfdl.noaa.gov. > > ******************************************************************** > Charles Seman Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not necessarily > reflect any position of the Government or NOAA." -- ================================================ Dr. Jainn Jong Shi (aka Roger) Bldg 33 Rm C425 Code 613.1 NASA/Goddard Space Flight Center Greenbelt, MD 20771 301-614-6078 (office) 301-614-5492 (fax) email: shi at agnes.gsfc.nasa.gov http://atmospheres.gsfc.nasa.gov/cloud_modeling From h.meteo.shirazu at GMAIL.COM Wed Nov 4 21:12:41 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 4 Nov 2009 20:12:41 -0600 Subject: export data to a txt file In-Reply-To: <4AF20AFB.5010702@noaa.gov> Message-ID: On Wed, Nov 4, 2009 at 5:15 PM, Charles Seman wrote: > Hossein, > > Please find attached a "printascii.gs" script from Prince K. Xavier > > > Hope it helps, > Chuck > > hossein lotfi wrote: > >> Hi All grads user >> I have a file contain vorticity variable,I want save It's data to >> a txt file >> I have fprintf.gs script file to do this,but it >> can't save vorticity, latitude,longitude to one txt file. >> Any suggestion will be appreciated, >> thanks >> > > -- > > Please note that Charles.Seman at noaa.gov should be considered my NOAA > email address, not cjs at gfdl.noaa.gov. > > ******************************************************************** > Charles Seman Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not necessarily > reflect any position of the Government or NOAA." > > > * To generate ascii data from grads to use in applications like IGOR PRO > * > * Prince XAVIER (17 Nov 2004, LMD, Paris) > * > function printascii(args) > > if(args='') > say '' > say 'No arguments found.' > say '' > say 'Syntax is ' > say '----------------------------------' > say 'printascii filename variable [z t]' > say '----------------------------------' > say '' > say 'z(or Z) and t(or T) may be switched on in case of 3 or 4 dimension > data.' > say 'If not switched on, no information on level and time will be printed.' > say '' > say 'Examples:' > say 'ga-> printascii rain.ascii rain' > say 'ga-> printascii rain.ascii rain z' > say 'ga-> printascii rain.ascii rain t' > say 'ga-> printascii rain.ascii rain z t' > say '' > say '' > return > endif > > _fname = subwrd(args,1) > _var = subwrd(args,2) > arg3 = subwrd(args,3) > arg4 = subwrd(args,4) > > say '' > > zflag = 0 > tflag = 0 > if(arg3=z|arg3=Z) > say 'Level information requested.' > zflag = 1 > endif > if(arg3=t|arg3=T) > say 'Time information requested.' > tflag = 1 > endif > > if(arg4=z|arg4=Z) > say 'Level information requested.' > zflag = 1 > endif > if(arg4=t|arg4=T) > say 'Time information requested.' > tflag = 1 > endif > > > gxstat() > *say _xs' '_xe' '_ys' '_ye' '_zs' '_ze' '_ts' '_te > 'set x ' _xs' '_xe > 'set y ' _ys' '_ye > gxstat() > if((_xe-_xs)=0) > _lonint = 1 > else > _lonint = (_lone-_lons)/(_xe-_xs) > endif > if((_ye-_ys)=0) > _latint = 1 > else > _latint = (_late-_lats)/(_ye-_ys) > endif > *say _lonint' '_latint > > _tint = 1 > _zint = 1 > _yint = 1 > _xint = 1 > > _tt = 1 > while(_tt<=_te) > 'set t '_tt > > _zz = 1 > while(_zz<=_ze) > 'set z '_zz > > _yy = 1 > while(_yy<=_ye) > 'set y '_yy > > _xx = 1 > while(_xx<=_xe) > 'set x ' _xx > 'd '_var > val = subwrd(result,4) > * say val > 'query dims' > dum = sublin(result,2) > alon = subwrd(dum,6) > dum = sublin(result,3) > alat = subwrd(dum,6) > dum = sublin(result,4) > alev = subwrd(dum,6) > dum = sublin(result,5) > atim = subwrd(dum,6) > > > > if (zflag = 1 & tflag = 1) > rc = write(_fname, atim' 'alev' 'alon' 'alat' 'val) > * say atim' 'alev' 'alon' 'alat' 'val > endif > if (zflag = 0 & tflag = 1) > rc = write(_fname, atim' 'alon' 'alat' 'val) > * say atim' 'alon' 'alat' 'val > endif > if (zflag = 1 & tflag = 0) > rc = write(_fname, alev' 'alon' 'alat' 'val) > * say alev' 'alon' 'alat' 'val > endif > if (zflag = 0 & tflag = 0) > rc = write(_fname, alon' 'alat' 'val) > * say alon' 'alat' 'val > endif > > _xx = _xx + _xint > endwhile > > _yy = _yy + _yint > endwhile > > _zz = _zz + _zint > endwhile > > _tt = _tt + _tint > endwhile > > say 'ASCII output written to '_fname'.' > say ' ' > rc = close(_fname) > > > > return > > > function gxstat() > 'q dims' > dinf = result > lx = sublin(dinf,2) > ly = sublin(dinf,3) > lz = sublin(dinf,4) > lt = sublin(dinf,5) > if ( subwrd(lx,7) = 'to') > _lons = subwrd(lx,6) > _lone = subwrd(lx,8) > _xs = subwrd(lx,11) > _xe = subwrd(lx,13) > _xs = math_int(_xs) > _xe = math_int(_xe) > else > _lons = subwrd(lx,6) > _lone = subwrd(lx,6) > _xs = subwrd(lx,9) > _xe = subwrd(lx,9) > _xs = math_int(_xs) > _xe = math_int(_xe) > endif > if ( subwrd(ly,7) = 'to') > _lats = subwrd(ly,6) > _late = subwrd(ly,8) > _ys = subwrd(ly,11) > _ye = subwrd(ly,13) > _ys = math_int(_ys) > _ye = math_int(_ye) > else > _lats = subwrd(ly,6) > _late = subwrd(ly,6) > _ys = subwrd(ly,9) > _ye = subwrd(ly,9) > _ys = math_int(_ys) > _ye = math_int(_ye) > endif > if ( subwrd(lz,7) = 'to') > _levs = subwrd(lz,6) > _leve = subwrd(lz,8) > _zs = subwrd(lz,11) > _ze = subwrd(lz,13) > else > _levs = subwrd(lz,6) > _leve = subwrd(lz,6) > _zs = subwrd(lz,9) > _ze = subwrd(lz,9) > endif > if ( subwrd(lt,7) = 'to') > _tims = subwrd(lt,6) > _time = subwrd(lt,8) > _ts = subwrd(lt,11) > _te = subwrd(lt,13) > else > _tims = subwrd(lt,6) > _time = subwrd(lt,6) > _ts = subwrd(lt,9) > _te = subwrd(lt,9) > endif > return > > Hi thank you for your help but can we change the command of printascii.gs file to write the latitude, longitude and other variable such below? lon lon lon lon lon lon lat ps ps ps ps ps ps lat ps ps ps . . . . . . . lat . . . . . . . . . . . . lat thanks alot [?] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091104/ee4c686f/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 892 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091104/ee4c686f/attachment.gif From javier.p at EREDA.COM Thu Nov 5 04:13:36 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Thu, 5 Nov 2009 10:13:36 +0100 Subject: how obtain the date from a NetCdf file In-Reply-To: Message-ID: Thank you very much Matthias: It works! I have another question . I wish if I get several variables, these appear in columns in the text file. Is this possible? I mean, I'd like a file.txt in which appears something similar to: Fecha u v temp hgt 00Z01JUN2009 -1.9065 0.225504 288.06 9385.06 12Z01JUN2009 1.02317 -1.33784 295.778 9385.06 00Z02JUN2009 -1.15094 -3.90728 290.077 9385.06 12Z02JUN2009 -0.65753 -1.19813 295.153 9385.06 Thanks. Best Regards: Javier Pe?a 2009/11/4 Matthias Fripp > you could use something like this: > > 'q time' > datetime = subwrd(result, 3) > > That will give you the date and time in grads format, e.g., > "00Z01JAN1979". If you want, you could go further, with something like this: > > formatted_time = substr(datetime, 9, 4) '/' substr(datetime, 6, 3) '/' > substr(datetime, 4, 2) ' ' substr(datetime, 1, 2) ':00' > say "formatted time: " formatted_time > > Unfortunately, I don't know any way to convert "JAN" to "01" within grads. > So you may need to use awk (or similar) to convert the dates after-the-fact, > in which case you might as well just write the datetime directly to the > file, and then convert that later. > > Matthias > > On Nov 4, 2009, at 4:26 PM, Javier Pe?a wrote: > > Hello everyone, > > I have a netcdf file from which I can obtain any of the variables with the > following script (for example to get u wind component): > > * takes the values of the component or in a column > 'reinit' > 'sdfopen prueba.nc' > 'set lat 41' > 'set lon 359' > 'set lev 1' > to = 1 > * Write the variable to a file > * 'set gxout vector' > * 'set fwrite z: \ dummy.dat' > while (to <5) > 'set t' to > tmp ='' > tmp = subwrd (rerult, 4) > 'd u', tmp = tmp%''subwrd (result, 4) > rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', tmp) > to = to + 1 > endwhile > > but my question is, can I get the date which belongs each variable value? > That is, if I have values for the velocity component u: 2.3, 3.4, 5.6, 3.9, > can I get a. txt what next? > > Date U (m / s) > 2009/12/06 00:00 2.3 > 2009/12/06 06:00 3.4 > 2009/12/06 18:00 5.6 > 2009/12/07 00:00 3.9 > > Thank you very much. Best regards. > > Javier Pe?a > > > -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/7b7e2712/attachment.html From javier.p at EREDA.COM Thu Nov 5 04:19:40 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Thu, 5 Nov 2009 10:19:40 +0100 Subject: =?ISO-8859-1?Q?Re=3A_Obtenci=F3n_de_varias_variables_de_un_=2Egrib?= In-Reply-To: <90b4c41ee4e465f544f78f1ac928872f.squirrel@webmail.udec.cl> Message-ID: Hola Cristian: Gracias por la informaci?n. Efectivamente buscando en google lo que me has mencionado, encuentro la funci?n grib2ctl.pl con la que puedo crear un archivo .ctl que ya grad puede leer. El problema es que en la p?gina comenta que esta funci?n grib2ctl.pl s?lamente funciona bajo unix/linux y, yo estoy trabajando con windows XP. ?Existe alguna manera sencilla de poder leer los grib trabajando con el sistema operativo windows XP? Un saludo: Javier Pe?a. El 4 de noviembre de 2009 20:43, Cristian Gonzal Mu?oz Castillo < cmunozc at udec.cl> escribi?: > Hola Javier, > > Generalmente los archivos debes leerlos a traves de un archivo de control > (uno con extension .ctl) que haga referencia al archivo .grib que > utilizas. Googlea "grads control file" y de seguro encontraras lo que > andas buscando. > > Saludos > > > Hola a todos: > > > > Estoy trabajando con Pcgrads en el sistema operativo windows xp. Tengo un > > archivo .grib que contiene varias variables en un cierto rango de > latitud, > > longitud para un periodo de tiempo de 20 a?os, con datos cada 6 horas. > > Mi pregunta es la siguiente ?como puedo leer este archivo con Pcgrads? > > Un saludo: > > Javier Pe?a > > > > -- > > Javier Pe?a ?lvarez > > Energ?as Renovables > > javier.p at ereda.com > > EREDA > > > > Tel: +34 91 5014755 > > Fax: +34 91 5014756 > > c/ T?llez 26, 28007 MADRID > > www.ereda.com > > > > > -- > Cristian G. Mu?oz Castillo > Geof?sico > Licenciado en Ciencias F?sicas > Oficina 442 > Depto. Geof?sica (DGEO) > Fono (41) 2203155 > Facultad Ciencias F?sicas y Matem?ticas > Universidad de Concepci?n > Concepci?n > Chile > -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/f5bdd12e/attachment.html From matthias.fripp at ECI.OX.AC.UK Thu Nov 5 06:55:13 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Thu, 5 Nov 2009 11:55:13 +0000 Subject: how obtain the date from a NetCdf file In-Reply-To: <607bb2140911050113s36d8ccb7tf6b49f07dc58f082@mail.gmail.com> Message-ID: Hi Javier, To write out multiple columns of data, you would use something like this: *write a header in the file fname="output_file.csv" rc = write(fname,"date,u,v,temp,hgt") if (rc != 0) say "Error writing to file " fname return endif *find the time range set by the user *you may need to adjust this depending on your version of grads 'query dims' tmin = subwrd(result, 51) tmax = subwrd(result, 53) *loop through all times, writing out data timestep = tmin while timestep <= tmax 'set t ' timestep 'q time' datetime = subwrd(result, 3) * get the data for this time step * note: change all the "?_var" variables to match whatever is in your grib file 'd u_var' u = subwrd(result,4) u = math_format('%6.6f',val) 'd v_var' v = subwrd(result,4) v = math_format('%6.6f',val) 'd temp_var' temp = subwrd(result,4) temp = math_format('%6.6f',val) 'd hgt_var' hgt = subwrd(result,4) hgt = math_format('%6.6f',val) * compose a line of text and write it to the output file outstr = datetime ',' u ',' v ',' temp ',' hgt rc = write(fname,outstr,append) if (rc != 0) say "Error writing to file " fname break endif timestep = timestep + 1 endwhile close(fname) 'set t ' tmin ' ' tmax This script assumes you have previously selected a range of times with "set time" or "set t", and a single point with set lat, set lon, set x, set y, set z, etc. It can be extended pretty easily to loop across a range of x-y-z values if you want to do that instead. If you are working with remote data (e.g., in gradsdods), it will probably be much faster if you use the "define" statement to read in large chunks of data at once, and then loop through them locally. This creates a text file with commas between the values. I'm sure there's some way to specify tabs instead, but I'm not sure how. I hope that helps. Matthias On Nov 5, 2009, at 9:13 AM, Javier Pe?a wrote: > Thank you very much Matthias: > > It works! > I have another question . I wish if I get several variables, these > appear in columns in the text file. Is this possible? > I mean, I'd like a file.txt in which appears something similar to: > > Fecha u v temp > hgt > 00Z01JUN2009 -1.9065 0.225504 288.06 9385.06 > 12Z01JUN2009 1.02317 -1.33784 295.778 9385.06 > 00Z02JUN2009 -1.15094 -3.90728 290.077 9385.06 > 12Z02JUN2009 -0.65753 -1.19813 295.153 9385.06 > Thanks. Best Regards: > > Javier Pe?a > > 2009/11/4 Matthias Fripp > you could use something like this: > > 'q time' > datetime = subwrd(result, 3) > > That will give you the date and time in grads format, e.g., > "00Z01JAN1979". If you want, you could go further, with something > like this: > > formatted_time = substr(datetime, 9, 4) '/' substr(datetime, 6, 3) > '/' substr(datetime, 4, 2) ' ' substr(datetime, 1, 2) ':00' > say "formatted time: " formatted_time > > Unfortunately, I don't know any way to convert "JAN" to "01" within > grads. So you may need to use awk (or similar) to convert the dates > after-the-fact, in which case you might as well just write the > datetime directly to the file, and then convert that later. > > Matthias > > On Nov 4, 2009, at 4:26 PM, Javier Pe?a wrote: > >> Hello everyone, >> >> I have a netcdf file from which I can obtain any of the variables >> with the following script (for example to get u wind component): >> >> * takes the values of the component or in a column >> 'reinit' >> 'sdfopen prueba.nc' >> 'set lat 41' >> 'set lon 359' >> 'set lev 1' >> to = 1 >> * Write the variable to a file >> * 'set gxout vector' >> * 'set fwrite z: \ dummy.dat' >> while (to <5) >> 'set t' to >> tmp ='' >> tmp = subwrd (rerult, 4) >> 'd u', tmp = tmp%''subwrd (result, 4) >> rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', >> tmp) >> to = to + 1 >> endwhile >> >> but my question is, can I get the date which belongs each variable >> value? That is, if I have values for the velocity component u: 2.3, >> 3.4, 5.6, 3.9, can I get a. txt what next? >> >> Date U (m / s) >> 2009/12/06 00:00 2.3 >> 2009/12/06 06:00 3.4 >> 2009/12/06 18:00 5.6 >> 2009/12/07 00:00 3.9 >> >> Thank you very much. Best regards. >> >> Javier Pe?a > > > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/c3cc8c44/attachment.html From matthias.fripp at ECI.OX.AC.UK Thu Nov 5 07:09:01 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Thu, 5 Nov 2009 12:09:01 +0000 Subject: how obtain the date from a NetCdf file In-Reply-To: <607bb2140911050113s36d8ccb7tf6b49f07dc58f082@mail.gmail.com> Message-ID: Sorry, I just noticed an error in how I formatted the numbers in my earlier reply. A corrected version of the script is below... -Matthias ====== revised message =========== To write out multiple columns of data, you would use something like this: *write a header in the file fname="output_file.csv" rc = write(fname,"date,u,v,temp,hgt") if (rc != 0) say "Error writing to file " fname return endif *find the time range set by the user *you may need to adjust this depending on your version of grads 'query dims' tmin = subwrd(result, 51) tmax = subwrd(result, 53) *loop through all times, writing out data timestep = tmin while timestep <= tmax 'set t ' timestep 'q time' datetime = subwrd(result, 3) * get the data for this time step * note: change all the "?_var" variables to match whatever is in your grib file 'd u_var' u = subwrd(result,4) 'd v_var' v = subwrd(result,4) 'd temp_var' temp = subwrd(result,4) 'd hgt_var' hgt = subwrd(result,4) * compose a line of text and write it to the output file outstr = datetime ',' u ',' v ',' temp ',' hgt rc = write(fname,outstr,append) if (rc != 0) say "Error writing to file " fname break endif timestep = timestep + 1 endwhile close(fname) 'set t ' tmin ' ' tmax This script assumes you have previously selected a range of times with "set time" or "set t", and a single point with set lat, set lon, set x, set y, set z, etc. It can be extended pretty easily to loop across a range of x-y-z values if you want to do that instead. If you are working with remote data (e.g., in gradsdods), it will probably be much faster if you use the "define" statement to read in large chunks of data at once, and then loop through them locally. In that case, you may also want to use 'q defval' to read numeric values directly from the defined variable into your script variables, and then use math_format() to convert the numeric values to text before composing the output string. This creates a text file with commas between the values. I'm sure there's some way to specify tabs instead, but I'm not sure how. I hope that helps. Matthias On Nov 5, 2009, at 9:13 AM, Javier Pe?a wrote: > Thank you very much Matthias: > > It works! > I have another question . I wish if I get several variables, these > appear in columns in the text file. Is this possible? > I mean, I'd like a file.txt in which appears something similar to: > > Fecha u v temp > hgt > 00Z01JUN2009 -1.9065 0.225504 288.06 9385.06 > 12Z01JUN2009 1.02317 -1.33784 295.778 9385.06 > 00Z02JUN2009 -1.15094 -3.90728 290.077 9385.06 > 12Z02JUN2009 -0.65753 -1.19813 295.153 9385.06 > Thanks. Best Regards: > > Javier Pe?a > > 2009/11/4 Matthias Fripp > you could use something like this: > > 'q time' > datetime = subwrd(result, 3) > > That will give you the date and time in grads format, e.g., > "00Z01JAN1979". If you want, you could go further, with something > like this: > > formatted_time = substr(datetime, 9, 4) '/' substr(datetime, 6, 3) > '/' substr(datetime, 4, 2) ' ' substr(datetime, 1, 2) ':00' > say "formatted time: " formatted_time > > Unfortunately, I don't know any way to convert "JAN" to "01" within > grads. So you may need to use awk (or similar) to convert the dates > after-the-fact, in which case you might as well just write the > datetime directly to the file, and then convert that later. > > Matthias > > On Nov 4, 2009, at 4:26 PM, Javier Pe?a wrote: > >> Hello everyone, >> >> I have a netcdf file from which I can obtain any of the variables >> with the following script (for example to get u wind component): >> >> * takes the values of the component or in a column >> 'reinit' >> 'sdfopen prueba.nc' >> 'set lat 41' >> 'set lon 359' >> 'set lev 1' >> to = 1 >> * Write the variable to a file >> * 'set gxout vector' >> * 'set fwrite z: \ dummy.dat' >> while (to <5) >> 'set t' to >> tmp ='' >> tmp = subwrd (rerult, 4) >> 'd u', tmp = tmp%''subwrd (result, 4) >> rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', >> tmp) >> to = to + 1 >> endwhile >> >> but my question is, can I get the date which belongs each variable >> value? That is, if I have values for the velocity component u: 2.3, >> 3.4, 5.6, 3.9, can I get a. txt what next? >> >> Date U (m / s) >> 2009/12/06 00:00 2.3 >> 2009/12/06 06:00 3.4 >> 2009/12/06 18:00 5.6 >> 2009/12/07 00:00 3.9 >> >> Thank you very much. Best regards. >> >> Javier Pe?a > > > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/d113456d/attachment.html From elisasiq at USP.BR Thu Nov 5 13:54:46 2009 From: elisasiq at USP.BR (MARIA ELISA SIQUEIRA SILVA) Date: Thu, 5 Nov 2009 16:54:46 -0200 Subject: time axis label Message-ID: Dear ones, does anybody know how can I put labels on the x-axis according to sequential month and years, like OCT2001 NOV2001 ..., until, MAR2002 ? thanks Elisa -- Maria Elisa Siqueira Silva Laborat?rio de Climatologia e Biogeografia - LCB Depto Geografia - FFLCH - USP Av. Prof. Lineu Prestes, 338 - Cidade Universit?ria S?o Paulo - SP 05508-900 (11) 3091-3769 From Charles.Seman at NOAA.GOV Thu Nov 5 13:55:10 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Thu, 5 Nov 2009 13:55:10 -0500 Subject: export data to a txt file In-Reply-To: <5c658ce10911041812rae4150bjd939d5e8f1af8493@mail.gmail.com> Message-ID: Hossein, Please find attached "printasciigrid.gs" from Stefan Fronzek ... don't know if this will help... and I'll also forward an email of his containing a newer version (look for an email "Re: GrADS to Ascii with header" on the Listserv)... Hope this helps, Chuck hossein lotfi wrote: > > > On Wed, Nov 4, 2009 at 5:15 PM, Charles Seman > wrote: > > Hossein, > > Please find attached a "printascii.gs " > script from Prince K. Xavier > > > > Hope it helps, > Chuck > > hossein lotfi wrote: > > Hi All grads user > I have a file contain vorticity variable,I want save It's data to > a txt file > I have fprintf.gs > script file to do this,but it > can't save vorticity, latitude,longitude to one txt file. > Any suggestion will be appreciated, > thanks > > > -- > > Please note that Charles.Seman at noaa.gov > should be considered my NOAA > email address, not cjs at gfdl.noaa.gov . > > ******************************************************************** > Charles Seman > Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 > http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not > necessarily > reflect any position of the Government or NOAA." > > > * To generate ascii data from grads to use in applications like > IGOR PRO > * > * Prince XAVIER (17 Nov 2004, LMD, Paris) > * > function printascii(args) > > if(args='') > say '' > say 'No arguments found.' > say '' > say 'Syntax is ' > say '----------------------------------' > say 'printascii filename variable [z t]' > say '----------------------------------' > say '' > say 'z(or Z) and t(or T) may be switched on in case of 3 or 4 > dimension data.' > say 'If not switched on, no information on level and time will be > printed.' > say '' > say 'Examples:' > say 'ga-> printascii rain.ascii rain' > say 'ga-> printascii rain.ascii rain z' > say 'ga-> printascii rain.ascii rain t' > say 'ga-> printascii rain.ascii rain z t' > say '' > say '' > return > endif > > _fname = subwrd(args,1) > _var = subwrd(args,2) > arg3 = subwrd(args,3) > arg4 = subwrd(args,4) > > say '' > > zflag = 0 > tflag = 0 > if(arg3=z|arg3=Z) > say 'Level information requested.' > zflag = 1 > endif > if(arg3=t|arg3=T) > say 'Time information requested.' > tflag = 1 > endif > > if(arg4=z|arg4=Z) > say 'Level information requested.' > zflag = 1 > endif > if(arg4=t|arg4=T) > say 'Time information requested.' > tflag = 1 > endif > > > gxstat() > *say _xs' '_xe' '_ys' '_ye' '_zs' '_ze' '_ts' '_te > 'set x ' _xs' '_xe > 'set y ' _ys' '_ye > gxstat() > if((_xe-_xs)=0) > _lonint = 1 > else > _lonint = (_lone-_lons)/(_xe-_xs) > endif > if((_ye-_ys)=0) > _latint = 1 > else > _latint = (_late-_lats)/(_ye-_ys) > endif > *say _lonint' '_latint > > _tint = 1 > _zint = 1 > _yint = 1 > _xint = 1 > > _tt = 1 > while(_tt<=_te) > 'set t '_tt > > _zz = 1 > while(_zz<=_ze) > 'set z '_zz > > _yy = 1 > while(_yy<=_ye) > 'set y '_yy > > _xx = 1 > while(_xx<=_xe) > 'set x ' _xx > 'd '_var > val = subwrd(result,4) > * say val > 'query dims' > dum = sublin(result,2) > alon = subwrd(dum,6) > dum = sublin(result,3) > alat = subwrd(dum,6) > dum = sublin(result,4) > alev = subwrd(dum,6) > dum = sublin(result,5) > atim = subwrd(dum,6) > > > > if (zflag = 1 & tflag = 1) > rc = write(_fname, atim' 'alev' 'alon' 'alat' 'val) > * say atim' 'alev' 'alon' 'alat' 'val > endif > if (zflag = 0 & tflag = 1) > rc = write(_fname, atim' 'alon' 'alat' 'val) > * say atim' 'alon' 'alat' 'val > endif > if (zflag = 1 & tflag = 0) > rc = write(_fname, alev' 'alon' 'alat' 'val) > * say alev' 'alon' 'alat' 'val > endif > if (zflag = 0 & tflag = 0) > rc = write(_fname, alon' 'alat' 'val) > * say alon' 'alat' 'val > endif > > _xx = _xx + _xint > endwhile > > _yy = _yy + _yint > endwhile > > _zz = _zz + _zint > endwhile > > _tt = _tt + _tint > endwhile > > say 'ASCII output written to '_fname'.' > say ' ' > rc = close(_fname) > > > > return > > > function gxstat() > 'q dims' > dinf = result > lx = sublin(dinf,2) > ly = sublin(dinf,3) > lz = sublin(dinf,4) > lt = sublin(dinf,5) > if ( subwrd(lx,7) = 'to') > _lons = subwrd(lx,6) > _lone = subwrd(lx,8) > _xs = subwrd(lx,11) > _xe = subwrd(lx,13) > _xs = math_int(_xs) > _xe = math_int(_xe) > else > _lons = subwrd(lx,6) > _lone = subwrd(lx,6) > _xs = subwrd(lx,9) > _xe = subwrd(lx,9) > _xs = math_int(_xs) > _xe = math_int(_xe) > endif > if ( subwrd(ly,7) = 'to') > _lats = subwrd(ly,6) > _late = subwrd(ly,8) > _ys = subwrd(ly,11) > _ye = subwrd(ly,13) > _ys = math_int(_ys) > _ye = math_int(_ye) > else > _lats = subwrd(ly,6) > _late = subwrd(ly,6) > _ys = subwrd(ly,9) > _ye = subwrd(ly,9) > _ys = math_int(_ys) > _ye = math_int(_ye) > endif > if ( subwrd(lz,7) = 'to') > _levs = subwrd(lz,6) > _leve = subwrd(lz,8) > _zs = subwrd(lz,11) > _ze = subwrd(lz,13) > else > _levs = subwrd(lz,6) > _leve = subwrd(lz,6) > _zs = subwrd(lz,9) > _ze = subwrd(lz,9) > endif > if ( subwrd(lt,7) = 'to') > _tims = subwrd(lt,6) > _time = subwrd(lt,8) > _ts = subwrd(lt,11) > _te = subwrd(lt,13) > else > _tims = subwrd(lt,6) > _time = subwrd(lt,6) > _ts = subwrd(lt,9) > _te = subwrd(lt,9) > endif > return > > > Hi > thank you for your help > but can we change the command of printascii.gs > file to write the latitude, longitude > and other variable such below? > lon lon lon lon lon lon > lat ps ps ps ps ps ps > lat ps ps ps . . . . . . . > lat . . . . . . . . . . . . > lat > thanks alot > > > -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: print.asciigrid.gs Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/7368300a/attachment.pl From liuzf406 at 126.COM Thu Nov 5 13:55:07 2009 From: liuzf406 at 126.COM (liuzf406) Date: Fri, 6 Nov 2009 02:55:07 +0800 Subject: Ask for help Message-ID: Good afternoon everyone, I need to calculate the moisture flux and the moisture divergence of 1992 summer over the continental United States. The gs file I wrote is as following, but I am not sure if it is right, so anyone can look at this file and give me some comments? In addition, attached are the calculated result using this file. Best, Zhongfang The gs file are: ------------------------------------------------- 'reinit' 'set grid off' 'set grads off' 'set poli on' 'set parea 1 10 1 8' 'sdfopen shum.mon.mean.nc' 'sdfopen uwnd.mon.mean.nc' 'sdfopen vwnd.mon.mean.nc' 'sdfopen pres.mon.mean.nc' 'enable print sum_1992.gmf' 'set lat 24.99 50.1' 'set xlint 10' 'set lon -130.01 -69.99' 'set ylint 10' 'set cint 20' 'set t 1 600' 'set font 0' 'set ccols 9 14 4 11 5 13 3 10 7 12 8 2 6' 'set mpdset cnworld mres' 'set map 1 1 1' 'draw map' 'set gxout shaded' 'set ylopts 1 4 0.18' 'set xlopts 1 4 0.18' 'set cthick 5' 'define m=shum.1*uwnd.2' 'define n=shum.1*vwnd.3' 'define qu=vint(pres.4(z=1),m,700)/1000' 'define qusum=ave(qu,t=534,t=536)' 'define qv=vint(pres.4(z=1),n,700)/1000' 'define qvsum=ave(qv,t=534,t=536)' 'set t 6' 'set gxout shaded' 'd qusum;qvsum' 'd hdivg(qusum,qvsum)' 'set gxout vector' 'set ccolor 1' 'run cbar' 'd qusum;qvsum' *'set cint 20' 'draw string 1.9 7 Moisture transport' 'draw string 9.5 7 JJA-1992' 'print' 'disable print' ------------------------------------------------- Any help you can provide would be greatly appreciated, and thank you for your time. 09???3D?????????????????? "??"??????3D??????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/2b883fb7/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: flux_92sum.wmf Type: application/octet-stream Size: 967850 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091106/2b883fb7/attachment.obj From arlindo.dasilva at GMAIL.COM Thu Nov 5 14:39:21 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 5 Nov 2009 14:39:21 -0500 Subject: starting pygrads In-Reply-To: <1FA9A5649C33644B85AE596DBAF16D7C01AB64BC@scomp0040.wurnet.nl> Message-ID: On Wed, Nov 4, 2009 at 11:52 PM, Maat, Herbert ter wrote: > Hello, > > I was wondering if a solution has been found for the problem stated in the > attached e-mail. Today I have tried to play around with PyGrADS and GrADS > (2.0 a5 oga 5) on Windows, but while I tried to run the examples it appears > that the program freezes. > > In principle it all should work, but I have not tried it myself recently on Windows. I run it all the time on my Mac. I'll have to give it a try myself. However, I need more details: 1) Which version of python for windows? Did you install my pygrads superpack or you installed python by yourself? If so, which version? 2) Which version of pygrads? 3) When you open a DOS windows (cmd.exe) and you type C:\> grads does it start? You must have grads on your path for pygrads to work. 4) Start python and type import grads import grads.gacore import grads.ganum import grads.galab Any error? 5) Instantiate a grads object by hand ga = grads.GrADS(Bin='/path/to/grads') Does it work? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/207b7c5d/attachment.html From azarzarrin at YAHOO.COM Thu Nov 5 14:46:53 2009 From: azarzarrin at YAHOO.COM (Azar Zarrin) Date: Thu, 5 Nov 2009 11:46:53 -0800 Subject: time axis label In-Reply-To: <20091105165446.cdrjnqeg3wokwggs@webmail.usp.br> Message-ID: Hi set xlab option gives a C-language template for conversion of the label value to a string Azar --- On Thu, 11/5/09, MARIA ELISA SIQUEIRA SILVA wrote: From: MARIA ELISA SIQUEIRA SILVA Subject: time axis label To: GRADSUSR at LIST.CINECA.IT Date: Thursday, November 5, 2009, 9:54 PM Dear ones, does anybody know how can I put labels on the x-axis according to sequential month and years, like OCT2001 NOV2001 ..., until, MAR2002 ? thanks Elisa -- Maria Elisa Siqueira Silva Laborat?rio de Climatologia e Biogeografia - LCB Depto Geografia - FFLCH - USP Av. Prof. Lineu Prestes, 338 - Cidade Universit?ria S?o Paulo - SP 05508-900 (11) 3091-3769 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/f1092613/attachment.html From greg at GREGPERKINS.COM Thu Nov 5 19:09:28 2009 From: greg at GREGPERKINS.COM (Greg Perkins) Date: Thu, 5 Nov 2009 18:09:28 -0600 Subject: unsubscribe In-Reply-To: <607bb2140911050113s36d8ccb7tf6b49f07dc58f082@mail.gmail.com> Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091105/f6514f0d/attachment.html From hhe at ATMOS.UMD.EDU Thu Nov 5 21:03:10 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Thu, 5 Nov 2009 21:03:10 -0500 Subject: how to write a ASCII file by GrADS Message-ID: Hi, I used GrADS to read the GRIB file and wanted to selected some variables, which can be write to an ASCII (.txt or .dat) file. I read the manual and found I should use 'gxout fwrite'. But I still could not figure out how to write the script. Does anyone have an idea? Thanks! Hao From zjuyanlibin at 163.COM Thu Nov 5 21:19:55 2009 From: zjuyanlibin at 163.COM (Yan Libin) Date: Fri, 6 Nov 2009 10:19:55 +0800 Subject: how to write a ASCII file by GrADS Message-ID: 'set gxout fwrite' is used to output binary files, not for ascii files. so you can use 'set gxout print' or 1 set gxout fwrite 2 use fortran to read this binary file 2009-11-06 Yan Libin ???? Hao He ????? 2009-11-06 10:04:01 ???? GRADSUSR ??? ??? how to write a ASCII file by GrADS Hi, I used GrADS to read the GRIB file and wanted to selected some variables, which can be write to an ASCII (.txt or .dat) file. I read the manual and found I should use 'gxout fwrite'. But I still could not figure out how to write the script. Does anyone have an idea? Thanks! Hao -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/cd114924/attachment.html From eric192 at 163.COM Thu Nov 5 22:29:33 2009 From: eric192 at 163.COM (lifei) Date: Fri, 6 Nov 2009 11:29:33 +0800 Subject: unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/22a447a0/attachment.html From javier.p at EREDA.COM Fri Nov 6 03:06:23 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Fri, 6 Nov 2009 09:06:23 +0100 Subject: how obtain the date from a NetCdf file In-Reply-To: <70CA6D44-CE88-4595-BCCD-4DB4BA70B47B@eci.ox.ac.uk> Message-ID: Hi Matthias: Thank you very much for your help ! I've gotten it Best Regards: Javier Pe?a 2009/11/5 Matthias Fripp > Sorry, I just noticed an error in how I formatted the numbers in my > earlier reply. A corrected version of the script is below... > > -Matthias > > ====== revised message =========== > > To write out multiple columns of data, you would use something like this: > > *write a header in the file > fname="output_file.csv" > rc = write(fname,"date,u,v,temp,hgt") > if (rc != 0) > say "Error writing to file " fname > return > endif > > *find the time range set by the user > *you may need to adjust this depending on your version of grads > 'query dims' > tmin = subwrd(result, 51) > tmax = subwrd(result, 53) > > *loop through all times, writing out data > timestep = tmin > while timestep <= tmax > 'set t ' timestep > 'q time' > datetime = subwrd(result, 3) > > * get the data for this time step > * note: change all the "?_var" variables to match whatever is in your > grib file > > 'd u_var' > u = subwrd(result,4) > > 'd v_var' > v = subwrd(result,4) > > 'd temp_var' > temp = subwrd(result,4) > > 'd hgt_var' > hgt = subwrd(result,4) > > * compose a line of text and write it to the output file > outstr = datetime ',' u ',' v ',' temp ',' hgt > rc = write(fname,outstr,append) > if (rc != 0) > say "Error writing to file " fname > break > endif > timestep = timestep + 1 > endwhile > close(fname) > 'set t ' tmin ' ' tmax > > This script assumes you have previously selected a range of times with > "set time" or "set t", and a single point with set lat, set lon, set x, set > y, set z, etc. It can be extended pretty easily to loop across a range of > x-y-z values if you want to do that instead. > > If you are working with remote data (e.g., in gradsdods), it will probably > be much faster if you use the "define" statement to read in large chunks of > data at once, and then loop through them locally. In that case, you may also > want to use 'q defval' to read numeric values directly from the defined > variable into your script variables, and then use math_format() to convert > the numeric values to text before composing the output string. > > This creates a text file with commas between the values. I'm sure there's > some way to specify tabs instead, but I'm not sure how. > > I hope that helps. > > Matthias > > On Nov 5, 2009, at 9:13 AM, Javier Pe?a wrote: > > Thank you very much Matthias: > > It works! > I have another question . I wish if I get several variables, these appear > in columns in the text file. Is this possible? > I mean, I'd like a file.txt in which appears something similar to: > > Fecha u v temp hgt > 00Z01JUN2009 -1.9065 0.225504 288.06 9385.06 > 12Z01JUN2009 1.02317 -1.33784 295.778 9385.06 > 00Z02JUN2009 -1.15094 -3.90728 290.077 9385.06 > 12Z02JUN2009 -0.65753 -1.19813 295.153 9385.06 > Thanks. Best Regards: > > Javier Pe?a > > 2009/11/4 Matthias Fripp > >> you could use something like this: >> >> 'q time' >> datetime = subwrd(result, 3) >> >> That will give you the date and time in grads format, e.g., >> "00Z01JAN1979". If you want, you could go further, with something like this: >> >> formatted_time = substr(datetime, 9, 4) '/' substr(datetime, 6, 3) '/' >> substr(datetime, 4, 2) ' ' substr(datetime, 1, 2) ':00' >> say "formatted time: " formatted_time >> >> Unfortunately, I don't know any way to convert "JAN" to "01" within grads. >> So you may need to use awk (or similar) to convert the dates after-the-fact, >> in which case you might as well just write the datetime directly to the >> file, and then convert that later. >> >> Matthias >> >> On Nov 4, 2009, at 4:26 PM, Javier Pe?a wrote: >> >> Hello everyone, >> >> I have a netcdf file from which I can obtain any of the variables with the >> following script (for example to get u wind component): >> >> * takes the values of the component or in a column >> 'reinit' >> 'sdfopen prueba.nc' >> 'set lat 41' >> 'set lon 359' >> 'set lev 1' >> to = 1 >> * Write the variable to a file >> * 'set gxout vector' >> * 'set fwrite z: \ dummy.dat' >> while (to <5) >> 'set t' to >> tmp ='' >> tmp = subwrd (rerult, 4) >> 'd u', tmp = tmp%''subwrd (result, 4) >> rrc = write ( 'c: \ prueba_c \ pruebas_archivo_ecmwf \ new_u.txt', tmp) >> to = to + 1 >> endwhile >> >> but my question is, can I get the date which belongs each variable value? >> That is, if I have values for the velocity component u: 2.3, 3.4, 5.6, 3.9, >> can I get a. txt what next? >> >> Date U (m / s) >> 2009/12/06 00:00 2.3 >> 2009/12/06 06:00 3.4 >> 2009/12/06 18:00 5.6 >> 2009/12/07 00:00 3.9 >> >> Thank you very much. Best regards. >> >> Javier Pe?a >> >> >> > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com > > > -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/55ba1689/attachment.html From glaubermariano at YAHOO.COM.BR Fri Nov 6 04:52:28 2009 From: glaubermariano at YAHOO.COM.BR (Glauber Mariano) Date: Fri, 6 Nov 2009 01:52:28 -0800 Subject: Unsubscribe Message-ID: Unsubscribe --------------------------------------------------------------------------------------------------------------------------------------------------------- Glauber Lopes Mariano Doutorando em Meteorologia Divis?o de Meteorologia e Meio Ambiente - DMA Centro de Previs?o do Tempo e Estudos Clim?ticos - CPTEC Instituto Nacional de Pesquisas Espaciais - INPE Av. dos Astronautas, 1.758, Jardim da Granja Sao Jos? dos Campos - SP Tel: +55 (12) 3945-6184 / +55 (12) 9135-4449 Fax: +55 (12) 39456817 E-mails: glaubermariano at yahoo.com.br / glaubermariano at hotmail.com (MSN) / glauber.mariano at cptec.inpe.br ---------------------------------------------------------------------------------------------------------------------------------------------------------- ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/1a9ed9ca/attachment.html From sabrina.gentile at AQUILA.INFN.IT Fri Nov 6 05:11:44 2009 From: sabrina.gentile at AQUILA.INFN.IT (Sabrina Gentile) Date: Fri, 6 Nov 2009 11:11:44 +0100 Subject: Unsubscribe Message-ID: unsuscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/a3ed5b81/attachment.html From mdeastin at UNCC.EDU Fri Nov 6 05:49:10 2009 From: mdeastin at UNCC.EDU (Eastin, Matthew) Date: Fri, 6 Nov 2009 05:49:10 -0500 Subject: unsubscribe Message-ID: ===================================================== Dr. Matthew D. Eastin Assistant Professor of Meteorology Department of Geography and Earth Sciences University of North Carolina at Charlotte 9201 University City Blvd Charlotte, NC 28223 704-687-5914 (office) 704-687-5966 (fax) mdeastin at uncc.edu http://www.geoearth.uncc.edu/ ===================================================== If you are not the intended recipient of this transmission or a person responsible for delivering it to the intended recipient, any disclosure, copying, distribution, or other use of any of the information in this transmission is strictly prohibited. If you have received this transmission in error, please notify me immediately by reply e-mail or by telephone at 704-687-5914. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/d03151ca/attachment.html From h.meteo.shirazu at GMAIL.COM Fri Nov 6 07:21:04 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Fri, 6 Nov 2009 06:21:04 -0600 Subject: hdf open Message-ID: Hi I upload a hdf file to this link; http://www.mediafire.com/download.php?mydvzqtzytm that's a pice of terra satellite image with 5.8Mb size I want to open it with grads, I read the manual and found I should use 'xdfopen' to read it by grads. But I still could not figure out how to write the descriptor file for this file Can any one help me? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/8acc6d60/attachment.html From sushantpuranik at GMAIL.COM Fri Nov 6 07:40:25 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Fri, 6 Nov 2009 18:10:25 +0530 Subject: How to make composite plot Message-ID: Hello everyone I wish to make daily composite plot for 20 years data. I want to know how to make a daily composite plot. Since i have daily as well as monthly data. Thank you -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/11fa9055/attachment.html From sd19surf at GMAIL.COM Fri Nov 6 07:51:16 2009 From: sd19surf at GMAIL.COM (Shawn Delaney) Date: Fri, 6 Nov 2009 07:51:16 -0500 Subject: how to write a ASCII file by GrADS In-Reply-To: Message-ID: Hao, I use this line and it writes to a text file. var = write('','') Below is an example w/variables mixed in. icao = user input fhght = calculated from model over user selected time res = write (icao'_MEF.txt','Lowest Freezing Level:' fhght'FT') Hope this helps you, Shawn Delaney expweather.com On Thu, Nov 5, 2009 at 9:03 PM, Hao He wrote: > Hi, > I used GrADS to read the GRIB file and wanted to selected some > variables, which can be write to an ASCII (.txt or .dat) file. I read the > manual and found I should use 'gxout fwrite'. But I still could not > figure out how to write the script. Does anyone have an idea? > > Thanks! > > Hao > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/7105942e/attachment.html From h.meteo.shirazu at GMAIL.COM Fri Nov 6 08:07:03 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Fri, 6 Nov 2009 07:07:03 -0600 Subject: How to make composite plot In-Reply-To: <72e8bd3d0911060440p3a79dc8j9fb53a763b4c18b@mail.gmail.com> Message-ID: On Fri, Nov 6, 2009 at 6:40 AM, sushant puranik wrote: > Hello everyone > I wish to make daily composite plot for 20 years data. I want to know how > to make a daily composite plot. Since i have daily as well as monthly data. > > Thank you > > -- > Sushant Puranik > Junior Research Fellow > Dept. of Atmospheric & Space Sciences, > University of Pune, > Pune-07, > India. > hi 1-if your data is grads's data? ( I mean is your data format support by grads? such az *.nc) 2- if yes, you should set time for periods you want ( e.g. 'set t 1 30') 3-set your other variable such az: latitude and longitude and ,,, 4- display variable -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/eb4d4feb/attachment.html From hersala at GMAIL.COM Fri Nov 6 08:10:28 2009 From: hersala at GMAIL.COM (hersala) Date: Fri, 6 Nov 2009 10:10:28 -0300 Subject: how to write a ASCII file by GrADS In-Reply-To: Message-ID: Hi Hao: I have solved this difficulty using this grads script that is already posted in: http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file It works really fine. Best regards Hern?n 2009/11/5 Hao He > Hi, > I used GrADS to read the GRIB file and wanted to selected some > variables, which can be write to an ASCII (.txt or .dat) file. I read the > manual and found I should use 'gxout fwrite'. But I still could not > figure out how to write the script. Does anyone have an idea? > > Thanks! > > Hao > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/156932ff/attachment.html From h.meteo.shirazu at GMAIL.COM Fri Nov 6 08:26:02 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Fri, 6 Nov 2009 07:26:02 -0600 Subject: write to text file Message-ID: Hi I attached a file for you can you write it's data to a text file I wish you set lat. and lon and then write it to text file set lat 20 50 set lon 10 40 and in your text file I wish you export u;v such below; lon=10 lon=20 lon=30 lat=20 u;v u;v u;v lat=30 u;v u;v u;v lat=40 u;v u;v u;v thank you very much good luck -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/59e4a733/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: wind_comps.nc Type: application/x-netcdf Size: 86464 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091106/59e4a733/attachment.nc From h.meteo.shirazu at GMAIL.COM Fri Nov 6 08:45:47 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Fri, 6 Nov 2009 07:45:47 -0600 Subject: how to write a ASCII file by GrADS In-Reply-To: <5b40c90911060510l1a59c49i736aeb5444212fc9@mail.gmail.com> Message-ID: On Fri, Nov 6, 2009 at 7:10 AM, hersala wrote: > Hi Hao: > I have solved this difficulty using this grads script that is already > posted in: > > > http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file > > It works really fine. > Best regards > Hern?n > > > > > 2009/11/5 Hao He > > Hi, >> I used GrADS to read the GRIB file and wanted to selected some >> variables, which can be write to an ASCII (.txt or .dat) file. I read the >> manual and found I should use 'gxout fwrite'. But I still could not >> figure out how to write the script. Does anyone have an idea? >> >> Thanks! >> >> Hao >> > hi > thank you for your help (fprintf.gs) but it can not save the latitude and longitude in the output file that save variables such as below matrix; lat lat lat lat lat lon var var var var var lon . . . . . lon . . . . . can you cahnge the command in the fprintf.gs file to do this? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/eb28f35c/attachment.html From hersala at GMAIL.COM Fri Nov 6 09:03:09 2009 From: hersala at GMAIL.COM (hersala) Date: Fri, 6 Nov 2009 11:03:09 -0300 Subject: how to write a ASCII file by GrADS In-Reply-To: <5c658ce10911060545w181852c9v33bb015dba11ba6e@mail.gmail.com> Message-ID: I am almost sure that this is is possible but I do not have enough experience to do it. Sorry. 2009/11/6 hossein lotfi > > > On Fri, Nov 6, 2009 at 7:10 AM, hersala wrote: > >> Hi Hao: >> I have solved this difficulty using this grads script that is already >> posted in: >> >> >> http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file >> >> It works really fine. >> Best regards >> Hern?n >> >> >> >> >> 2009/11/5 Hao He >> >> Hi, >>> I used GrADS to read the GRIB file and wanted to selected some >>> variables, which can be write to an ASCII (.txt or .dat) file. I read the >>> manual and found I should use 'gxout fwrite'. But I still could not >>> figure out how to write the script. Does anyone have an idea? >>> >>> Thanks! >>> >>> Hao >>> >> hi >> > thank you for your help (fprintf.gs) > but it can not save the latitude and longitude in the output file that save > variables > such as below matrix; > lat lat lat lat lat > lon var var var var var > lon . . . . . > lon . . . . . > can you cahnge the command in the fprintf.gs file to do this? > thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/7e194d0d/attachment.html From jships at BELLSOUTH.NET Fri Nov 6 09:09:01 2009 From: jships at BELLSOUTH.NET (Joseph Ships) Date: Fri, 6 Nov 2009 06:09:01 -0800 Subject: UNSUBSCRIBE Message-ID: UNSUBSCRIBE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/d08f1b52/attachment.html From matthias.fripp at ECI.OX.AC.UK Fri Nov 6 10:25:17 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Fri, 6 Nov 2009 15:25:17 +0000 Subject: how to write a ASCII file by GrADS In-Reply-To: <5c658ce10911060545w181852c9v33bb015dba11ba6e@mail.gmail.com> Message-ID: You can do this using techniques that have been shown on this list recently, and a little creativity. All you really need are a couple of loops and a "write()" command. I have attached a script that does this. This script writes data for each longitude in one column of the output file, and each latitude in one row. The longitude or latitude is shown at the start of each column or row (respectively). All values are separated with single spaces. If you want latitudes in columns and longitudes in rows (as shown in your example file), you will need to change x, y, lat and lon where needed in the script. If you want more spaces or other characters between the values, you can also revise the script to do that. Matthias On Nov 6, 2009, at 1:45 PM, hossein lotfi wrote: > > > On Fri, Nov 6, 2009 at 7:10 AM, hersala wrote: > Hi Hao: > I have solved this difficulty using this grads script that is > already posted in: > > http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file > > It works really fine. > Best regards > Hern?n > > > > > 2009/11/5 Hao He > > Hi, > I used GrADS to read the GRIB file and wanted to selected some > variables, which can be write to an ASCII (.txt or .dat) file. I > read the > manual and found I should use 'gxout fwrite'. But I still could not > figure out how to write the script. Does anyone have an idea? > > Thanks! > > Hao > hi > thank you for your help (fprintf.gs) > but it can not save the latitude and longitude in the output file > that save variables > such as below matrix; > lat lat lat lat lat > lon var var var var var > lon . . . . . > lon . . . . . > can you cahnge the command in the fprintf.gs file to do this? > thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/2f42d23d/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: write_ascii_data_table.gs Type: application/octet-stream Size: 3103 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091106/2f42d23d/attachment.obj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/2f42d23d/attachment-0001.html From kamil at UALBERTA.CA Fri Nov 6 11:11:14 2009 From: kamil at UALBERTA.CA (kamil Marcinkowski) Date: Fri, 6 Nov 2009 09:11:14 -0700 Subject: Unsubscribe Message-ID: Unsubscribe Kamil Marcinkowski Westgrid System Administrator kamil at ualberta.ca University of Alberta site Tel.780 492-0354 Research Computing Support Fax.780 492-1729 Academic ICT Edmonton, Alberta, CANADA University of Alberta "This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal, and/or privileged information. Please contact us immediately if you are not the intended recipient of this communication. If you are not the intended recipient of this communication, do not copy, distribute, or take action on it. Any communication received in error, or subsequent reply, should be deleted or destroyed." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/5b8ca10f/attachment.html From claudiomet at GMAIL.COM Fri Nov 6 11:59:10 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Fri, 6 Nov 2009 13:59:10 -0300 Subject: cloud cover historical data Message-ID: greetings when I need historical data for climatological studies, I download datasetes from this ftp: ftp://ftp.cdc.noaa.gov/pub/Datasets/ncep.reanalysis/pressure/ where can I find historical values of temperature, geotential heights, humidity and wind and this information I can extract it using grads but at this moment, I need cloud cover historial data and where can I find cloud cover historical datasets ? thaks ! -- Claudio Cortes +56 (2) 2994121 Meteorologo Laboratorio de Meteorologia y Calidad de Aire Centro Nacional del Medio Ambiente (CENMA) -------------------------------------------------------------------------------------- Claudio Cortes +56 (2) 2994121 Meteorologist Meteorology and Air Quality Labs National Enviroment Center, Chile (CENMA) From jdduda at IASTATE.EDU Fri Nov 6 12:06:42 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Fri, 6 Nov 2009 11:06:42 -0600 Subject: cloud cover historical data In-Reply-To: <5f3ba4e00911060859r6e1c2946sf7bed2c13377902d@mail.gmail.com> Message-ID: Claudio, Try the NOMDADS site from NCDC: http://nomads.ncdc.noaa.gov/data/ There are a ton of archived analyses and model output, and you can check them to see if any of them have cloud cover data. I know in particular that eta data (first directory on the site in that link) has total atmospheric cloud cover in % as a variable. Hopefully this site has what you are looking for. Jeff Duda On Fri, Nov 6, 2009 at 10:59 AM, claudio cortes wrote: > greetings > > when I need historical data for climatological studies, I download > datasetes from this ftp: > ftp://ftp.cdc.noaa.gov/pub/Datasets/ncep.reanalysis/pressure/ > where can I find historical values of temperature, geotential heights, > humidity and wind > and this information I can extract it using grads > > but at this moment, I need cloud cover historial data and > where can I find cloud cover historical datasets ? > > thaks ! > > -- > Claudio Cortes > +56 (2) 2994121 > > Meteorologo > Laboratorio de Meteorologia y Calidad de Aire > Centro Nacional del Medio Ambiente (CENMA) > > -------------------------------------------------------------------------------------- > > Claudio Cortes > +56 (2) 2994121 > > Meteorologist > Meteorology and Air Quality Labs > National Enviroment Center, Chile (CENMA) > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/ffba5036/attachment.html From mike.bosilovich at GMAIL.COM Fri Nov 6 12:53:35 2009 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Fri, 6 Nov 2009 12:53:35 -0500 Subject: cloud cover historical data In-Reply-To: <5f3ba4e00911060859r6e1c2946sf7bed2c13377902d@mail.gmail.com> Message-ID: Hi Claudio, Just a word of caution. Any reanalysis data is not actually observations, and each reanalysis has it's own bias and uncertainty, NCEP or otherwise. One reanalysis is not necessarily representative of reality, especially in the physics output. Clouds and precipitation can be much more related to the model part of the data assimilation system. Temperature and heights less so, until you move toward data sparse regions. That said MERRA produces reanalysis cloud fields (1/2 degree resolution, global). The following links can be opened in gradsdap or opengrads sessions (sdfopen) to get the MERRA cloud fields: 1 hourly frequency: http://goldsmr2.sci.gsfc.nasa.gov:80/dods/MAT1NXRAD Monthly: http://goldsmr2.sci.gsfc.nasa.gov:80/dods/MATMNXRAD The main data page is at: http://disc.sci.gsfc.nasa.gov/daac-bin/DataHoldings.pl with a variety of download options. Also, you may be interested in installing opengrads on your computer. It has command lines built in for "merra" and "nomads", and these open gui interfaces to each reanalyses Grads Data Servers. Good Luck and have a great weekend!! Mike On Fri, Nov 6, 2009 at 11:59 AM, claudio cortes wrote: > greetings > > when I need historical data for climatological studies, I download > datasetes from this ftp: > ftp://ftp.cdc.noaa.gov/pub/Datasets/ncep.reanalysis/pressure/ > where can I find historical values of temperature, geotential heights, > humidity and wind > and this information I can extract it using grads > > but at this moment, I need cloud cover historial data and > where can I find cloud cover historical datasets ? > > thaks ! > > -- > Claudio Cortes > +56 (2) 2994121 > > Meteorologo > Laboratorio de Meteorologia y Calidad de Aire > Centro Nacional del Medio Ambiente (CENMA) > -------------------------------------------------------------------------------------- > > Claudio Cortes > +56 (2) 2994121 > > Meteorologist > Meteorology and Air Quality Labs > National Enviroment Center, Chile (CENMA) > From mitchell at ATMOS.WASHINGTON.EDU Fri Nov 6 13:44:58 2009 From: mitchell at ATMOS.WASHINGTON.EDU (Todd MItchell) Date: Fri, 6 Nov 2009 10:44:58 -0800 Subject: cloud cover historical data In-Reply-To: <5f3ba4e00911060859r6e1c2946sf7bed2c13377902d@mail.gmail.com> Message-ID: Claudio, Friday 6 November 2009 You should go to the NCAR "Computational and Information Systems Laboratory" (CISL) --- this used to be called the NCAR data activity ---- and look there. http://search.dss.ucar.edu/cgi-bin/dssearch?words=cloud ICOADS has marine cloudiness There is the Warren and collaborators cloud climatology (land and sea) Todd Mitchell claudio cortes wrote: > greetings > > when I need historical data for climatological studies, I download > datasetes from this ftp: > ftp://ftp.cdc.noaa.gov/pub/Datasets/ncep.reanalysis/pressure/ > where can I find historical values of temperature, geotential heights, > humidity and wind > and this information I can extract it using grads > > but at this moment, I need cloud cover historial data and > where can I find cloud cover historical datasets ? > > thaks ! > > -- > Claudio Cortes > +56 (2) 2994121 > > Meteorologo > Laboratorio de Meteorologia y Calidad de Aire > Centro Nacional del Medio Ambiente (CENMA) > -------------------------------------------------------------------------------------- > > Claudio Cortes > +56 (2) 2994121 > > Meteorologist > Meteorology and Air Quality Labs > National Enviroment Center, Chile (CENMA) > -- Joint Institute for the Study of the Atmosphere and Ocean (JISAO) University of Washington; Box 355672, Seattle WA 98195-5672 Phone: 206 685 3786; Fax: 206 685 3397; jisao.washington.edu Street Address: 3737 Brooklyn Ave. NE, Seattle WA 98105 From h.meteo.shirazu at GMAIL.COM Fri Nov 6 16:25:53 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Fri, 6 Nov 2009 15:25:53 -0600 Subject: cloud cover historical data In-Reply-To: <79aecae70911060953i7e65329fp7cd1c7edc363e85b@mail.gmail.com> Message-ID: On Fri, Nov 6, 2009 at 11:53 AM, Mike Bosilovich wrote: > Hi Claudio, > > Just a word of caution. Any reanalysis data is not actually > observations, and each reanalysis has it's own bias and uncertainty, > NCEP or otherwise. One reanalysis is not necessarily representative of > reality, especially in the physics output. Clouds and precipitation > can be much more related to the model part of the data assimilation > system. Temperature and heights less so, until you move toward data > sparse regions. > > That said MERRA produces reanalysis cloud fields (1/2 degree > resolution, global). The following links can be opened in gradsdap or > opengrads sessions (sdfopen) to get the MERRA cloud fields: > > 1 hourly frequency: http://goldsmr2.sci.gsfc.nasa.gov:80/dods/MAT1NXRAD > Monthly: http://goldsmr2.sci.gsfc.nasa.gov:80/dods/MATMNXRAD > > The main data page is at: > http://disc.sci.gsfc.nasa.gov/daac-bin/DataHoldings.pl with a variety > of download options. > > Also, you may be interested in installing opengrads on your computer. > It has command lines built in for "merra" and "nomads", and these open > gui interfaces to each reanalyses Grads Data Servers. > > Good Luck and have a great weekend!! > > Mike > > On Fri, Nov 6, 2009 at 11:59 AM, claudio cortes > wrote: > > greetings > > > > when I need historical data for climatological studies, I download > > datasetes from this ftp: > > ftp://ftp.cdc.noaa.gov/pub/Datasets/ncep.reanalysis/pressure/ > > where can I find historical values of temperature, geotential heights, > > humidity and wind > > and this information I can extract it using grads > > > > but at this moment, I need cloud cover historial data and > > where can I find cloud cover historical datasets ? > > > > thaks ! > > > > -- > > Claudio Cortes > > +56 (2) 2994121 > > > > Meteorologo > > Laboratorio de Meteorologia y Calidad de Aire > > Centro Nacional del Medio Ambiente (CENMA) > > > -------------------------------------------------------------------------------------- > > > > Claudio Cortes > > +56 (2) 2994121 > > > > Meteorologist > > Meteorology and Air Quality Labs > > National Enviroment Center, Chile (CENMA) > > > Hi Thank you very very much for your email and links it's has very good data Thank you [?] [?] [?] [?] [?] [?] [?] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/b007b0f8/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 892 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091106/b007b0f8/attachment.gif From huidu at UCDAVIS.EDU Fri Nov 6 20:29:06 2009 From: huidu at UCDAVIS.EDU (Hui Du) Date: Fri, 6 Nov 2009 17:29:06 -0800 Subject: unsubscribe Message-ID: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091106/192cf914/attachment.html From naishi at METEO.MCGILL.CA Sat Nov 7 00:44:24 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Sat, 7 Nov 2009 00:44:24 -0500 Subject: ask for help Message-ID: Hi everyone, Does anyone know how to convert a text file to thye binary file, and then I am able to use GrADS to display(plot) the data? Thanks so much! Phil From andy at F5DATA.COM Sat Nov 7 07:16:48 2009 From: andy at F5DATA.COM (Andrew Revering) Date: Sat, 7 Nov 2009 06:16:48 -0600 Subject: Newbie Questions Message-ID: Attached is my code and the output images. 1) The fonts for contours are pretty rough. Is it possible to use custom anti-aliased fonts for a much more crisp/smooth look? Or perhaps replace the labels on contours with images pre-defined displaying the proper value IE... if its a 30 degree line, put 30.png image in place where the text would have been. 2) I can't seem to figure out how to center and make the map 'full image' when its set to Lambert. By default it works great with LatLon. How do I rotate, center, and fill the image size if set to Lambert? 3) I have the projection currently set as latlon, I was able to remove the grid, but the Lat/Lon coordinate ticks on the left and bottom part of the map are still there. How do I shut those off, so I just have a border around the map without coordinates displayed? I appreciate the help. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091107/21ab5487/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: drawtest.gs Type: application/octet-stream Size: 1935 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091107/21ab5487/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: out.png Type: image/png Size: 25758 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091107/21ab5487/attachment.png From arlindo.dasilva at GMAIL.COM Sat Nov 7 08:26:53 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 7 Nov 2009 08:26:53 -0500 Subject: Newbie Questions In-Reply-To: <200911071216.nA7CGtfX033809@mail.authsmtp.com> Message-ID: On Sat, Nov 7, 2009 at 7:16 AM, Andrew Revering wrote: > Attached is my code and the output images? > > > > 1) The fonts for contours are pretty rough. Is it possible to use custom > anti-aliased fonts for a much more crisp/smooth look? Or perhaps replace the > labels on contours with images pre-defined displaying the proper value IE... > if its a 30 degree line, put 30.png image in place where the text would have > been. > > > The gxyat extension included in the OpenGrADS bundle is a replacement for printim that produces anti-aliased fonts. Here is an example image: http://portal.nccs.nasa.gov/cgi-d520_fp/geos5_wx.cgi (With printim the small blue title at the top of the image would not have been very legible.) Usage is pretty simple: ga-> gxyat myimage.png Gxyat works also as a metafile translator, so you can use it with COLA releases, say ga-> enable print myfle.gmf ga-> d something ga-> print ga-> disable print ga-> ! gxyat -i myfile.gmf (You can put these lines on a gxyat.gs script.) This will create "myfile.png". You can find more about gxyat options here: http://opengrads.org/wiki/index.php?title=Gxyat More information on the OpenGrADS bundle here: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091107/2ecce35b/attachment.html From arlindo.dasilva at GMAIL.COM Sat Nov 7 08:32:50 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 7 Nov 2009 08:32:50 -0500 Subject: ask for help In-Reply-To: <53416.207.112.103.186.1257572664.squirrel@www.meteo.mcgill.ca> Message-ID: On Sat, Nov 7, 2009 at 12:44 AM, Phillip Lin wrote: > Hi everyone, > Does anyone know how to convert a text file to thye binary file, and then > I am able to use GrADS to display(plot) the data? > Thanks so much! > Phil > This recipe shows how to use Fortran to write GrADS binary files: http://cookbooks.opengrads.org/index.php?title=Recipe-004:_Creating_GrADS_binary_gridded_files_using_FORTRAN -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091107/2f3b3649/attachment.html From thi_veloso at YAHOO.COM.BR Sat Nov 7 12:24:55 2009 From: thi_veloso at YAHOO.COM.BR (Thiago Veloso) Date: Sat, 7 Nov 2009 09:24:55 -0800 Subject: Dealing with missing data Message-ID: ?Greetings everybody, ?Currently I'm working on a 7-year long, sattelite precipitation estimates dataset. The data's temporal resolution is hourly. So, for each year of data, I should have 8760 binary files. Considering the files are named sequentially (year-month-day-hour), I've created a .ctl template GrADS file which intends to open the entire sequence at once and after that convert them from binary data to ascii (I wrote a script which is functional to this task). ??My problem is: Instead the hourly output, I need daily means, but some years present missing data. Instead of 8760 files, they have only 8733, or 8747, and so on.?This is critical because if the series were complete, a simple "ave" function (starting from the first date and ending in the final date, incremented by 24) would produce the daily means of precipitation. But I'm sure that if I apply this function to a incomplete series, the results won't be reliable... ?So, I would like to listen your advices on how to deal with these missing files. What's the solution?? ?Thanks in advance and best regards, ?Thiago Veloso. Plants Disease LaboratoryDepartment of Phytopathology, Agronomy FacultyFederal University at Rio Grande do Sul, Brazil. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091107/2674ae01/attachment.html From Matthew.Livermore at UEA.AC.UK Sat Nov 7 17:00:17 2009 From: Matthew.Livermore at UEA.AC.UK (Collins Chris Mr (ITCS)) Date: Sat, 7 Nov 2009 22:00:17 +0000 Subject: No subject Message-ID: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091107/e1f0722b/attachment.html From hhe at ATMOS.UMD.EDU Sat Nov 7 18:41:37 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Sat, 7 Nov 2009 18:41:37 -0500 Subject: Lats4d problem In-Reply-To: Message-ID: Hi, I want to convert GRIB data to either netCDF or HDF format. Attached are my GRIB data .ctl file. In gradshdf, I tried: lats4d -i 08.....ctl -format coards, but the code fails. Does anyone have the experience with this topic? Thanks! GrADS version: 1.9 Lats4d version: 1.9.4 warning: duplicate grib name: grib -1 Hao -------------- next part -------------- dset ^0804031200_arw_d02.grb1f150000 index ^0804031200_arw_d02.grb1f150000.idx undef 9.999E+20 title 0804031200_arw_d02.grb1f150000 * produced by grib2ctl v0.9.12.5p33e dtype grib 255 pdef 126 90 lcc 30.720000 107.436000 1 1 34.750000 34.750000 113.650000 10000 10000 xdef 126 linear 107.436000 0.105748330490347 ydef 90 linear 30.720000 0.0909090909090909 tdef 1 linear 12Z03apr2008 1mo zdef 39 levels 1013 1000 975 950 925 900 875 850 825 800 775 750 725 700 675 650 625 600 575 550 525 500 475 450 425 400 375 350 325 300 275 250 225 200 150 100 50 25 10 vars 116 no4LFTX180_0mb 0 132,116,46080 ** 180-0 mb above gnd Best (4-layer) lifted index [K] ACPCPsfc 0 63,1,0 ** surface Convective precipitation [kg/m^2] APCPsfc 0 61,1,0 ** surface Total precipitation [kg/m^2] BRTMPtoa 0 118,8,0 ** top of atmos Brightness temperature [K] BVF2clm 0 138,200,0 ** atmos column Brunt-Vaisala frequency^2 [1/s^2] CAPEsfc 0 157,1,0 ** surface Convective Avail. Pot. Energy [J/kg] CAPE180_0mb 0 157,116,46080 ** 180-0 mb above gnd Convective Avail. Pot. Energy [J/kg] CAPEplg 2 157,116,0 ** Convective Avail. Pot. Energy [J/kg] CDCONclm 0 72,200,0 ** atmos column Convective cloud cover [%] CFRZRsfc 0 141,1,0 ** surface Categorical freezing rain [yes=1;no=0] CICEPsfc 0 142,1,0 ** surface Categorical ice pellets [yes=1;no=0] CINsfc 0 156,1,0 ** surface Convective inhibition [J/kg] CIN180_0mb 0 156,116,46080 ** 180-0 mb above gnd Convective inhibition [J/kg] CINplg 2 156,116,0 ** Convective inhibition [J/kg] CPRATsfc 0 214,1,0 ** surface Convective precip. rate [kg/m^2/s] CRAINsfc 0 140,1,0 ** surface Categorical rain [yes=1;no=0] CRAINclm 0 140,200,0 ** atmos column Categorical rain [yes=1;no=0] CSNOWsfc 0 143,1,0 ** surface Categorical snow [yes=1;no=0] CSUSFSoilT 0 160,112,10 ** 0-10cm undergnd Clear sky upward solar flux [W/m^2] CSUSFdlr 3 160,112,0 ** Clear sky upward solar flux [W/m^2] DLWRFsfc 0 205,1,0 ** surface Downward long wave flux [W/m^2] DPT2m 0 17,105,2 ** 2 m Dew point temp. [K] DPThbl 2 17,109,0 ** Dew point temp. [K] DPT30_0mb 0 17,116,7680 ** 30-0 mb above gnd Dew point temp. [K] DSWRFsfc 0 204,1,0 ** surface Downward short wave flux [W/m^2] ELONsfc 0 177,1,0 ** surface East longitude (0-360) [deg] EVPsfc 0 57,1,0 ** surface Evaporation [kg/m^2] GFLUXsfc 0 155,1,0 ** surface Ground heat flux [W/m^2] HCDChcl 0 75,234,0 ** high cloud level High level cloud cover [%] HGTsfc 0 7,1,0 ** surface Geopotential height [gpm] HGTprs 39 7,100,0 ** Geopotential height [gpm] HGThbl 2 7,109,0 ** Geopotential height [gpm] HGTclb 0 7,2,0 ** cloud base Geopotential height [gpm] HGThtfl 0 7,204,0 ** highest trop freezing level Geopotential height [gpm] HGTl215 0 7,215,0 ** Geopotential height [gpm] HGTclt 0 7,3,0 ** cloud top Geopotential height [gpm] HGT0deg 0 7,4,0 ** 0C isotherm level Geopotential height [gpm] HLCY0_3000m 0 190,106,7680 ** 3000-0 m above ground Storm relative helicity [m^2/s^2] HLCYhlr 0 190,106,2560 ** Storm relative helicity [m^2/s^2] HPBLsfc 0 221,1,0 ** surface Planetary boundary layer height [m] ICECsfc 0 91,1,0 ** surface Ice concentration (ice=1;no ice=0) [fraction] LANDsfc 0 81,1,0 ** surface Land cover (land=1;sea=0) [fraction] LCDClcl 0 73,214,0 ** low cloud level Low level cloud cover [%] LFTX500_1000mb 0 131,101,12900 ** 500-1000 mb Surface lifted index [K] LHTFLsfc 0 121,1,0 ** surface Latent heat flux [W/m^2] MCDCmcl 0 74,224,0 ** mid-cloud level Mid level cloud cover [%] MSLETmsl 0 130,102,0 ** Mean sea level pressure (ETA model) [Pa] MSTAVdlr 0 207,112,100 ** Moisture availability [%] NCPCPsfc 0 62,1,0 ** surface Large scale precipitation [kg/m^2] NLATsfc 0 176,1,0 ** surface Latitude (-90 to +90) [deg] O3MRsfc 0 154,1,0 ** surface Ozone mixing ratio [kg/kg] PEVAPsfc 0 228,1,0 ** surface Pot. evaporation [kg/m^2] PLI30_0mb 0 24,116,7680 ** 30-0 mb above gnd Parcel lifted index (to 500 hPa) [K] PRATEsfc 0 59,1,0 ** surface Precipitation rate [kg/m^2/s] PRESsfc 0 1,1,0 ** surface Pressure [Pa] PREShbl 2 1,109,0 ** Pressure [Pa] PRESclb 0 1,2,0 ** cloud base Pressure [Pa] PRESclt 0 1,3,0 ** cloud top Pressure [Pa] PRMSLmsl 0 2,102,0 ** Pressure reduced to MSL [Pa] PVMWclm 0 139,200,0 ** atmos column Potential vorticity (mass-weighted) [1/s/m] PWAT30_0mb 0 54,116,7680 ** 30-0 mb above gnd Precipitable water [kg/m^2] PWATclm 0 54,200,0 ** atmos column Precipitable water [kg/m^2] RHprs 39 52,100,0 ** Relative humidity [%] RH2m 0 52,105,2 ** 2 m Relative humidity [%] RH30_0mb 0 52,116,7680 ** 30-0 mb above gnd Relative humidity [%] SFCRsfc 0 83,1,0 ** surface Surface roughness [m] SHTFLsfc 0 122,1,0 ** surface Sensible heat flux [W/m^2] SNODsfc 0 66,1,0 ** surface Snow depth [m] SNOMsfc 0 99,1,0 ** surface Snow melt [kg/m^2] SNOWCsfc 0 238,1,0 ** surface Snow cover [%] SOILMdlr 0 86,112,200 ** Soil moisture content [kg/m^2] SOILWSoilT 0 144,112,10 ** 0-10cm undergnd Volumetric soil moisture [fraction] SOILWdlr 3 144,112,0 ** Volumetric soil moisture [fraction] SOTYPsfc 0 224,1,0 ** surface Soil type (Zobler) [0..9] SPFHprs 39 51,100,0 ** Specific humidity [kg/kg] SPFH2m 0 51,105,2 ** 2 m Specific humidity [kg/kg] SPFHhbl 2 51,109,0 ** Specific humidity [kg/kg] SPFH30_0mb 0 51,116,7680 ** 30-0 mb above gnd Specific humidity [kg/kg] SSRUNsfc 0 235,1,0 ** surface Storm surface runoff [kg/m^2] TCDCprs 34 71,100,0 ** Total cloud cover [%] TCDCclm 0 71,200,0 ** atmos column Total cloud cover [%] TMPsfc 0 11,1,0 ** surface Temp. [K] TMPprs 39 11,100,0 ** Temp. [K] TMP2m 0 11,105,2 ** 2 m Temp. [K] TMPhbl 2 11,109,0 ** Temp. [K] TMP30_0mb 0 11,116,7680 ** 30-0 mb above gnd Temp. [K] TMPclt 0 11,3,0 ** cloud top Temp. [K] TSLSAclm 0 137,200,0 ** atmos column 3-hr pressure tendency (Std Atmos Red) [Pa/s] TSOILSoilB 0 85,111,300 ** 300 cm underground Soil temp. [K] TSOILSoilT 0 85,112,10 ** 0-10cm undergnd Soil temp. [K] TSOILdlr 3 85,112,0 ** Soil temp. [K] UGRDprs 39 33,100,0 ** u wind [m/s] UGRD10m 0 33,105,10 ** 10 m u wind [m/s] UGRDhbl 2 33,109,0 ** u wind [m/s] UGRD30_0mb 0 33,116,7680 ** 30-0 mb above gnd u wind [m/s] ULWRFsfc 0 212,1,0 ** surface Upward long wave flux [W/m^2] ULWRFclm 0 212,200,0 ** atmos column Upward long wave flux [W/m^2] USTM0_6000m 0 196,106,15360 ** 6000-0 m above ground u-component of storm motion [m/s] USWRFsfc 0 211,1,0 ** surface Upward short wave flux [W/m^2] USWRFprs 34 211,100,0 ** Upward short wave flux [W/m^2] USWRFhag 2 211,105,0 ** Upward short wave flux [W/m^2] VEGsfc 0 87,1,0 ** surface Vegetation [%] VGRDprs 39 34,100,0 ** v wind [m/s] VGRD10m 0 34,105,10 ** 10 m v wind [m/s] VGRDhbl 2 34,109,0 ** v wind [m/s] VGRD30_0mb 0 34,116,7680 ** 30-0 mb above gnd v wind [m/s] VGTYPsfc 0 225,1,0 ** surface Vegetation type (as in SiB) [0..13] VISsfc 0 20,1,0 ** surface Visibility [m] VISclb 0 20,2,0 ** cloud base Visibility [m] VSTM0_6000m 0 197,106,15360 ** 6000-0 m above ground v-component of storm motion [m/s] VVELprs 39 39,100,0 ** Pressure vertical velocity [Pa/s] VWSHhlr 0 136,106,25088 ** Vertical speed shear [1/s] VWSHclm 0 136,200,0 ** atmos column Vertical speed shear [1/s] WEASDsfc 0 65,1,0 ** surface Accum. snow [kg/m^2] WTMPsfc 0 80,1,0 ** surface Water temp. [K] var180sfc 0 180,1,0 ** surface undefined ENDVARS From arlindo.dasilva at GMAIL.COM Sat Nov 7 21:27:21 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 7 Nov 2009 21:27:21 -0500 Subject: Lats4d problem In-Reply-To: Message-ID: On Sat, Nov 7, 2009 at 6:41 PM, Hao He wrote: > Hi, > I want to convert GRIB data to either netCDF or HDF format. Attached are > my > GRIB data .ctl file. In gradshdf, I tried: > lats4d -i 08.....ctl -format coards, but the code fails. Does anyone have > the > experience with this topic? Thanks! > > GrADS version: 1.9 > Lats4d version: 1.9.4 > warning: duplicate grib name: grib -1 > > In grads 1.9 there was a bug that prevented you to use lats4d twice in a row without exiting grads and restarting; the error message you are getting are typical of this problem. For this reason, it was more practical to use the lats4d.sh shell script. (Earlier on this script was simply called "lats4d", without the .sh extension.) Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091107/ee4770a8/attachment.html From fdaryabor at GOOGLEMAIL.COM Sun Nov 8 09:22:37 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Sun, 8 Nov 2009 22:22:37 +0800 Subject: ask for help In-Reply-To: <53416.207.112.103.186.1257572664.squirrel@www.meteo.mcgill.ca> Message-ID: Dear Phil You have to load variable by using matlab and then you write following script In order to variable dimension that should be 2D fid=fopen( 'var.dat', 'wb'); for i=1 : 92 for i=1 : 90 if isnan(var(i,j))==0 fwrite(fid, var(i,j), 'float'); else fwrite(fid, -9999, 'float'); end end end fclose(fid); Best Regards F.Daryabor On Sat, Nov 7, 2009 at 1:44 PM, Phillip Lin wrote: > Hi everyone, > Does anyone know how to convert a text file to thye binary file, and then > I am able to use GrADS to display(plot) the data? > Thanks so much! > Phil > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091108/9859947a/attachment.html From fernandez1 at CANTV.NET Sun Nov 8 10:22:00 2009 From: fernandez1 at CANTV.NET (Luis Alfonso Fernández H.) Date: Sun, 8 Nov 2009 10:52:00 -0430 Subject: unsubscribe Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091108/ce8708cb/attachment.html From hhe at ATMOS.UMD.EDU Sun Nov 8 21:54:53 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Sun, 8 Nov 2009 21:54:53 -0500 Subject: Lats4d problem In-Reply-To: <77fcd6b20911071827q3893097et457ee819a5c78cea@mail.gmail.com> Message-ID: Arlindo, I found the lats4d.sh and put it under my current path. But when I use ./lats4d.sh, it says ' command not found'. Hao | Hao He | | Graduate Assistant | | CSS bldg 4365 | | Jull Hall lab (301)405-7625 | | Cellphone (240)672-7912 | | Department of Atmospheric & Oceanic Science | | University of Maryland | | College Park, MD 20742 | On Sat, 7 Nov 2009, Arlindo da Silva wrote: > On Sat, Nov 7, 2009 at 6:41 PM, Hao He wrote: > >> Hi, >> I want to convert GRIB data to either netCDF or HDF format. Attached are >> my >> GRIB data .ctl file. In gradshdf, I tried: >> lats4d -i 08.....ctl -format coards, but the code fails. Does anyone have >> the >> experience with this topic? Thanks! >> >> GrADS version: 1.9 >> Lats4d version: 1.9.4 >> warning: duplicate grib name: grib -1 >> >> > In grads 1.9 there was a bug that prevented you to use lats4d twice in a row > without exiting grads and restarting; the error message you are getting are > typical of this problem. For this reason, it was more practical to use the > lats4d.sh shell script. (Earlier on this script was simply called "lats4d", > without the .sh extension.) > > Arlindo > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > From c.hayes at WEERONLINE.NL Mon Nov 9 06:19:28 2009 From: c.hayes at WEERONLINE.NL (Chris Hayes) Date: Mon, 9 Nov 2009 12:19:28 +0100 Subject: Windvectormap Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091109/63323014/attachment.html From sachinghude at TROPMET.RES.IN Mon Nov 9 07:55:58 2009 From: sachinghude at TROPMET.RES.IN (Sachin Ghude) Date: Mon, 9 Nov 2009 18:25:58 +0530 Subject: Plotting values between to counter levels Message-ID: Hi! Is there any utility in GRADS to plot values only between two contour levels? For example, I want to display ozone data over Indian region between the contour levels 180 - 200 DU? Is it possible to mask values above 200 and below 100? Thanks in Advance. Sachin From zjuyanlibin at 163.COM Mon Nov 9 08:35:02 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Mon, 9 Nov 2009 21:35:02 +0800 Subject: =?utf-8?B?UmU6IFBsb3R0aW5nIHZhbHVlcyBiZXR3ZWVuIHRvIGNvdW50ZXIgbGV2ZWxz?= Message-ID: black or plot twice set cmax d * set cmin d * 2009-11-09 Yan Libin ???? Sachin Ghude ????? 2009-11-09 20:43:40 ???? GRADSUSR ??? ??? Plotting values between to counter levels Hi! Is there any utility in GRADS to plot values only between two contour levels? For example, I want to display ozone data over Indian region between the contour levels 180 - 200 DU? Is it possible to mask values above 200 and below 100? Thanks in Advance. Sachin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091109/19edf93a/attachment.html From paul.wittmann at NAVY.MIL Mon Nov 9 10:14:38 2009 From: paul.wittmann at NAVY.MIL (Wittmann, Paul A CIV 63134) Date: Mon, 9 Nov 2009 07:14:38 -0800 Subject: UNSUBSCIBE Message-ID: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091109/d0d38645/attachment.html From jma at COLA.IGES.ORG Mon Nov 9 10:24:17 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Mon, 9 Nov 2009 10:24:17 -0500 Subject: INSTRUCTIONS FOR UNSUBSCRIBING Message-ID: To unsubscribe, DO NOT send a request to gradsusr at list.cineca.it, please do the following: Send an email containing the message "SIGNOFF GRADSUSR" to listserv at list.cineca.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091109/2b4043c1/attachment.html From jmssnyder at UCDAVIS.EDU Mon Nov 9 11:57:34 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Mon, 9 Nov 2009 17:57:34 +0100 Subject: Compositing wind and pressure data based on certain OLR values Message-ID: I am trying to make a script that composites pressure values from dates when OLR values over a certain area (latitude range: 15S to 15N and longitude: 120E and 120W) are below a certain value. I tried using this script and it did not seem to work properly. What should I do to make this script so that I can make this script work properly? Also how can I composite wind data at specific pressure levels such as 850 mb and 500 mb based on this script? 'sdfopen olr.day.mean.nc' 'sdfopen pres.sfc.1993.nc' 'set t 6790' 'define presa = 0' count = 6790 while (count < 12267) 'set t 'count 'define olra = aave(olr,lon=120,lon=240,lat=-15,lat=15)' 'd count' if (olra < 230) 'define presb = pres.2' else 'define presb = 0' endif 'define presa = presa + presb' count = count + 1 endwhile 'define presavg=presa' -Jason From David.Mocko at NASA.GOV Mon Nov 9 14:55:59 2009 From: David.Mocko at NASA.GOV (David Mocko) Date: Mon, 9 Nov 2009 14:55:59 -0500 Subject: NLDAS-2 release announcement Message-ID: North America Land Data Assimilation System Phase 2 (NLDAS-2) hourly products released to the public. The NASA GSFC Hydrological Sciences Branch and Goddard Earth Sciences Data and Information Service Center (GES DISC) are pleased to announce the release of North America Land Data Assimilation System Phase 2 (NLDAS-2) data products in the Hydrology DISC. NLDAS-2 products are a 30-year data set (1979-present, in near real-time) of hourly 1/8th-degree surface meteorology and hydrology data over the continuous United States and parts of Canada and Mexico. NLDAS combines observations from many different sources (rain gauges, radar, satellite, model reanalysis) to generate a surface forcing dataset, which is used to drive several different land-surface models. The current data hosted at the GES DISC include both primary and secondary forcing data and Mosaic model outputs. Users can access the data by searching and downloading via anonymous ftp or through the GES DISC search interface Mirador (http://mirador.gsfc.nasa.gov). Mirador, is an innovative data search engine that makes use of keywords to find data quickly in a Google-like interface. NLDAS data are also provided through a GrADS Data Server (GDS) at http://hydro1.gsfc.nasa.gov/dods/. GDS users can access the data and perform subsetting and analysis operations online. More advanced tools will be provided in later releases, such as spatial and parameter subsetting, data format transformation, and access through the GES DISC online visualization and analysis system *Giovanni*. Data access link: http://disc.sci.gsfc.nasa.gov/hydrology/data-holdings -- -------------------------------------------------------------------------- David M. Mocko, Building 33, Room C315 David.Mocko at nasa.gov SAIC & Climate and Radiation Branch Voice: (301)-614-6222 NASA Goddard Space Flight Center Fax: (301)-614-6307 Code 613.2, Greenbelt MD 20771 http://climate.gsfc.nasa.gov/~mocko/ -------------------------------------------------------------------------- From dasilva at ALUM.MIT.EDU Mon Nov 9 21:52:30 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Mon, 9 Nov 2009 21:52:30 -0500 Subject: Newbie Questions In-Reply-To: Message-ID: On Mon, Nov 9, 2009 at 8:26 PM, Fil wrote: > The first with printim and the second with gxyat: > > http://img254.imageshack.us/img254/6131/tmp1.png > http://img36.imageshack.us/img36/3447/tmp2.png > > I think map lines gets a bit too thick. It appears that your plotting script is changing the thickness of the contour lines, check your script. You are better off taking the default line thickness rather then correcting it at the image creation step. > Yours seems ok. I take the default thickness for the contour lines. > Also, label's color changes from black to gray, wind arrows has a brighter > gray and a strange white dotted line shows at 0? longitude. I believe these are a consequence of the way anti-aliasing is implemented. Anti-aliasing is a perceptual approximation which plays with the transparency of adjacent pixels to give the illusion of smoothness. Try playing with the font sizes, the colorbar fonts look "black" on my screen. As for the dashed line at the prime meridian, I haven't seen it before. It is something to be looked at. > But overall it's a much better looking map :) > > You may be able to tweak your plot for optimal results. Good Luck, Arlindo > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091109/87a19aeb/attachment.html From sachinghude at TROPMET.RES.IN Mon Nov 9 23:30:02 2009 From: sachinghude at TROPMET.RES.IN (Sachin Ghude) Date: Tue, 10 Nov 2009 10:00:02 +0530 Subject: Plotting values between counter levels In-Reply-To: <200911092135013433278@163.com> Message-ID: Thanks Libin! As per your suggestion it will only display the values between two contour level 180 - 200. Actually, I want something else. First,I want to mask all the values below 180 and above 200. Then multiply it (values in between 180-200) by some constant factor (eg. say 22) and then display the final result. Sachin ---------- Original Message ----------- From: Yan Libin To: GRADSUSR at list.cineca.it Sent: Mon, 9 Nov 2009 21:35:02 0800 Subject: Re: Plotting values between to counter levels > [UTF-8?] > black > ? > or > ? > plot twice > ? > set cmax > d * > set cmin > d * > ? > ? > 2009-11-09 ----------------------------------------------------------------------- > Yan Libin ----------------------------------------------------------------------- > 发件人: Sachin Ghude > 发送时间: 2009-11-09? 20:43:40 > 收件人: GRADSUSR > 抄送: > 主题: Plotting values between to counter levels > > > Hi! > > Is?there?any?utility?in?GRADS?to? plot?values?only?between?two?contour? levels? > > For?example,?I?want?to?display? ozone?data?over?Indian?region?between?the? contour? levels > 180?-?200?DU??Is?it?possible?to? mask?values?above?200?and?below? 100? > > Thanks?in? Advance. > > Sachin ------- End of Original Message ------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091110/48b64d0c/attachment.html From andy at F5DATA.COM Tue Nov 10 05:13:47 2009 From: andy at F5DATA.COM (Andrew Revering) Date: Tue, 10 Nov 2009 04:13:47 -0600 Subject: CPU Performance Message-ID: I'm curious if anyone has any performance information with GrADS on a 64 bit OS vs 32 bit OS, and if GrADS is capable of using a multi-core processor? Is it best to get a fast single core machine, or does it actually utilize all the cores of a multi-core processor? This may be a stupid question, but I'm fairly new to Linux so I'm not sure if the individual programs need to be programmed to utilize the processor like they do under Windows. Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091110/295ad011/attachment.html From jma at COLA.IGES.ORG Tue Nov 10 11:35:10 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 10 Nov 2009 11:35:10 -0500 Subject: CPU Performance In-Reply-To: <200911101013.nAAADwoW090161@mail.authsmtp.com> Message-ID: GrADS runs as a single process on a single core. There is no multi- anything in GrADS at this point. I have never done any benchmarking for 32-bit vs. 64-bit operating systems. John Huddleston (who is mysteriously unable to reply to gradsusr posts) has this to offer: > I am forwarding our analysis of creating GrADS images of NASA > satellite data using a 32 bit Ubuntu 8.04 server. > The I/O performance for hdf5 data sets is extremely dependent on whether/how the data are chunked, and also on the cache size settings in the hdf5 library. I am doing some testing to see how to improve the hdf5 performance in GrADS for the next release. --Jennifer On Nov 10, 2009, at 5:13 AM, Andrew Revering wrote: > I?m curious if anyone has any performance information with GrADS on > a 64 bit OS vs 32 bit OS, and if GrADS is capable of using a multi- > core processor? > > Is it best to get a fast single core machine, or does it actually > utilize all the cores of a multi-core processor? > > This may be a stupid question, but I?m fairly new to Linux so I?m > not sure if the individual programs need to be programmed to utilize > the processor like they do under Windows. > > Andy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091110/1098db30/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Images_Table.pdf Type: application/pdf Size: 71901 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091110/1098db30/attachment.pdf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091110/1098db30/attachment-0001.html From jmssnyder at UCDAVIS.EDU Tue Nov 10 15:05:24 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Tue, 10 Nov 2009 21:05:24 +0100 Subject: compositing wind and pressure data based on certain OLR values Message-ID: I am trying to make a script that composites pressure values from dates when OLR values over a certain area (latitude range: 5S to 5N and longitude: 120E and 120W) are below a certain value. I tried using this script and it did not seem to work properly. What should I do to make this script so that I can make this script work properly? Also how can I composite wind data at specific pressure levels such as 850 mb and 500 mb based on this script? 'sdfopen olr.day.mean.nc' 'sdfopen pres.sfc.1993.nc' 'set t 6790' 'define presa = 0' 'define number = 0' count = 6790 while (count < 12267) 'set t 'count 'define olra = aave(olr,lon=120,lon=240,lat=-5,lat=5)' if (olra < 230) 'define presb = pres.2' 'define n=1' else 'define presb = 0' 'define n = 0' endif 'define presa = presa + presb' 'define number = number + n' count = count + 1 endwhile 'define presavg=presa' If someone has any suggestions on what to do with this script to make it composite wind/pressure data for days where the average OLR values within the area 120 W to 120 E and 15S to 15N, is less than 234, that would be greatly appreciated. Thanks, Jason -Jason From dasilva at ALUM.MIT.EDU Tue Nov 10 16:29:26 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 10 Nov 2009 16:29:26 -0500 Subject: Another free shapefile for world maps Message-ID: All, For those working with shapefiles: Fil just brought to my attention this free shapefile with world map boundaries: http://aprsworld.net/gisdata/world/ You can use this shapefile with the OpenGrADS shape extension: http://opengrads.org/doc/udxt/shape/ Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091110/98dafb03/attachment.html From arlindo.dasilva at GMAIL.COM Tue Nov 10 17:16:57 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 10 Nov 2009 17:16:57 -0500 Subject: gxyat In-Reply-To: <5973FF702D942347837871E2BA794C810242509775@zeus.sws.uiuc.edu> Message-ID: On Tue, Nov 10, 2009 at 10:05 AM, Timlin, Michael wrote: > Arlindo, > > > > We are running grads 2.0a3 (but not opengrads) and I would love to be able > to use gxyat. The improved fonts would be great. > > > > Is there anyway to use it in grads as a direct replacement for printim? > Yes, you may be able to write a "printim.gs" script which saves a metafile and uses gxyat with a "!". Gxyat syntax is similar but not identical to printim. Performance. of course, is much better with the "gxyat" extension which does not involve writing any metafile. Can I use the stand alone gxyat with regular grads meta files? > Yes. > Where can I download the stand alone version? > Unfortunately, you need to download the full opengrads bundle and grab the "gxyat" executable from the bin/ directory. We do not provide a separate download at this time. (If it complains about missing .so libraries, see the troubleshooting section of the INSTALL file for a simple fix. ) What all is involved with opengrads installation? > It is trivial. Untar it, and set your path. That is it, nothing else to set, or extra files to download. More info here: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle > Would it break anything that is currently working in grads or is it a > superset of grads? > It is a superset. As a rule, if you do not invoke the extensions, you get the regular GrADS from COLA. The main philosophy of the OpenGrADS project is to complement the work of Jennifer and Brian at COLA . There is no incompatibility that I am aware of. Having said that, I need to mention that we have different builds, based on slightly different baselibs. There is only OpenGrADS executable (called "grads") which can read all the regular GrADS formats, including OPeNDAP URLs; there is no separate "gradsdap". It can also read NetCDF-4/HDF-5 datasets, a feature that will be available in an upcoming COLA release as Jennifer mentioned recently. All OpenGrADS builds also enable the Athena GUI and ships with sample GUI scripts. If you type "nomads" from the Contents/ directory you a browser for real time GFS, NAM, RUC and Wave forecasts from NCEP, give it a try. > Does it keep up with the grads releases in a timely manner? > On a best effort basis, we try to closely follow COLA releases. The latest version (v2.0.a7.oga.3) is caught up with COLA. However, OpenGrADS is carried out by volunteers, and sometimes other pressing deadlines may cause a new release to lag COLA's release by a few weeks. But usually we try to get it out in a week or two. > I don?t want to be a bother to the sys admin who will have to do these > updates if it will be more complicated or if he?ll have to keep two versions > of grads up and running. > You can always download a bundle tarball and test drive it from your home directory. Cheers! Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091110/73fbfe48/attachment.html From andy at F5DATA.COM Wed Nov 11 12:03:56 2009 From: andy at F5DATA.COM (Andrew Revering) Date: Wed, 11 Nov 2009 11:03:56 -0600 Subject: Shading Message-ID: In this example: http://portal.nccs.nasa.gov/cgi-d520_fp/geos5_wx.cgi The number of shade levels is 'a lot'. So you get this look of something very fluid, and hard to see one color to the next. I tried to set cint to 1 in my map, and it does not seem to be contouring every 1 degree. Is this a limitation due to the number of defined colors (16) ? and when its set to 1 there are too many levels and not enough colors? Or is there something else I need to do so that I'm able to contour at a very frequent interval? Is there a way to have the default colors just circulate automatically. IE, when you go through all the colors have it just start over again, or is this done by default? Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091111/f4f764b7/attachment.html From klevey at CUSTOMWEATHER.COM Wed Nov 11 13:45:20 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Wed, 11 Nov 2009 10:45:20 -0800 Subject: Shading In-Reply-To: <200911111704.nABH48io030908@mail.authsmtp.com> Message-ID: Hi Andy cint (contour interval) only applies to contour lines, i.e. when you set gxout contour Shading intervals are set with set clevs see my example below: Shading interval is determined by whatever you set up in your legend, i.e. (this is an example gs file : my_legend.gs) *light blue to dark blue 'set rgb 41 200 255 255' 'set rgb 42 175 240 255' 'set rgb 43 130 210 255' 'set rgb 44 95 190 250' 'set rgb 45 75 180 240' 'set rgb 46 60 170 230' 'set rgb 47 40 150 210' 'set rgb 48 30 140 200' 'set rgb 49 20 130 190' 'set rgb 50 20 120 180' 'set rgb 51 20 110 170' *light pink to dark rose 'set rgb 61 255 230 230' 'set rgb 62 255 200 200' 'set rgb 63 248 160 160' 'set rgb 64 230 140 140' 'set rgb 65 230 112 112' 'set rgb 66 230 80 80' 'set rgb 67 200 60 60' 'set rgb 68 180 40 40' 'set rgb 69 164 32 32' 'set rgb 70 134 32 32' 'set rgb 71 104 32 32' 'set rgb 72 74 32 32' 'set grads off' 'set timelab on' 'set clevs -25 -22.5 -20 -17.5 -15 -12.5 -10 -7.5 -5 -2.5 0 2.5 5 7.5 10 12.5 15 17.5 20 22.5 25 ' 'set ccols 51 50 49 48 47 46 45 44 43 42 41 62 63 64 65 66 67 68 69 70 71 72' Here my shading interval is 2.5. If you wanted to plot contours + shading then you'd simply make cint 2.5 as well. set gxout shaded d variable set gxout contour set cint 2.5 d variable run my_legend.gs You can define your own colors as I have above - you just need to know what the rgb values are. the limitations usually come If you don't "run my_legend.gs" or if you don't specify set clevs and set ccols in your script, GRADS will use default colors and intervals and it will change from plot to plot depending on what the max/min values are. Using your own set colors and intervals will ensure the same legend range is used for all plots. Hope this helps. Regards, Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) Director of Meteorological Operations CustomWeather, Inc. San Francisco, California, USA "Taking the World by Storm!" http://www.customweather.com http://www.myforecast.com http://www.1stweather.com cell: 415-794-0411 work: 415-777-3566 email: klevey at customweather.com On Nov 11, 2009, at 11/11/09 - 9:03 AM, Andrew Revering wrote: > In this example: > http://portal.nccs.nasa.gov/cgi-d520_fp/geos5_wx.cgi > > The number of shade levels is ?a lot?. So you get this look of > something very fluid, and hard to see one color to the next. > > I tried to set cint to 1 in my map, and it does not seem to be > contouring every 1 degree. > > Is this a limitation due to the number of defined colors (16) ? and > when its set to 1 there are too many levels and not enough colors? > > Or is there something else I need to do so that I?m able to contour > at a very frequent interval? > > Is there a way to have the default colors just circulate > automatically? IE, when you go through all the colors have it just > start over again, or is this done by default? > > Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091111/cc5e5ff0/attachment.html From dasilva at ALUM.MIT.EDU Wed Nov 11 17:35:00 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Wed, 11 Nov 2009 17:35:00 -0500 Subject: GrADS Platform Survey Message-ID: Dear GrADS Users, As we try to prioritize development at the OpenGrADS project, it becomes important for us to understand the particular platforms and operating systems folks are running GrADS on. Although, some of this information can be gathered from download statistics, some other information (such as the particular flavor of Linux) cannot. Therefore we designed a very quick survey to collect this information. I'd be very appreciative if you could spare 5 minutes of your time and complete this short survey: https://spreadsheets.google.com/viewform?hl=en&formkey=dGctYWhkdTQyenZGSW40SjVOTGZWOUE6MA In a couple of weeks I'll post the results of the survey on this list. Thank you very much for your time. Arlindo -- Arlindo da Silva dasilva at opengrads.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091111/77d05e76/attachment.html From mhess at OCEANI.COM Wed Nov 11 19:25:52 2009 From: mhess at OCEANI.COM (Mark Hess) Date: Wed, 11 Nov 2009 17:25:52 -0700 Subject: OpenDAP GRIB Retrieval from Nomads In-Reply-To: <4AEB3C24.60707@noaa.gov> Message-ID: All, I tried to search the GRADSUSR archives for the answer to this question, but it gives me the error errno=146 "unable to initiate communication...". Perhaps you all can offer an answer. Does anyone have any sample strings for use with gradsdods to retreive a GFS grib file from the NWS NCEP MOMANDS OpenDAP server? (http://nomads.ncep.noaa.gov:9090/dods/gfs) I'm especially interested in how to extract data for a specified geographical region. If anyone can get me started with this, I should be able to take an example and work from there. Thank you. Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091111/1caf819b/attachment.html From dgunawa at GWDG.DE Thu Nov 12 06:56:31 2009 From: dgunawa at GWDG.DE (Dodo Gunawan) Date: Thu, 12 Nov 2009 12:56:31 +0100 Subject: UNSUBSCIBE Message-ID: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/e4a9bcc3/attachment.html From diego.morelli at TRS.IT Thu Nov 12 06:26:47 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Thu, 12 Nov 2009 12:26:47 +0100 Subject: Meaning of descriptor file (*.ctl) variable names In-Reply-To: <77fcd6b20911111435l4bfc293dn6127e9963b04b8d2@mail.gmail.com> Message-ID: When I use grib2ctl (v0.9.12.5p45) it issues a ctl file with some variables having the suffix "mb". These variables are relative to an isobaric level type (value 100 in the PDS grib section, octet number 10), with a value expressed in hPa. I see that the variables with suffix prs are relative also to an isobaric level type. My questions is to know what is the difference between the variable with suffix mb and those with suffix prs. Here there is an example of a descriptor file: ---------------------------------------------------------------------------- ---------------------------------------------- dset ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b index ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b.idx undef 9.999E+20 title LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b * produced by grib2ctl v0.9.12.5p45 dtype grib 255 options yrev ydef 66 linear 10.000000 1 xdef 126 linear -60.000000 1.000000 tdef 1 linear 12Z18jul2009 1mo * z has 6 levels, for prs zdef 6 levels 925 850 700 500 400 300 vars 2 GPprs 6 6,100,0 ** (profile) Geopotential [m^2/s^2] VGRD925mb 0 34,100,925 ** 925 mb v wind [m/s] ENDVARS ---------------------------------------------------------------------------- ---------------------------------------------- Regards, Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/f7c0d2cd/attachment.html From amjadozi at GMAIL.COM Thu Nov 12 07:16:54 2009 From: amjadozi at GMAIL.COM (Muhammad Amjad) Date: Thu, 12 Nov 2009 12:16:54 +0000 Subject: Windvectormap In-Reply-To: <4AF7FAC0.5000400@weeronline.nl> Message-ID: Dear Chris, Could you please check with the following formula: wdir=atan2(u,v)/0.01745329 +180 The size of wind represents the wind speed. So, I don't think the dispariy among the vectors can be removed. Cheers, Amjad. On 11/9/09, Chris Hayes wrote: > > dear group, > > I need to plot the wind directions for stations with equally sized arrows. > > My dataset contains the direction in degrees (0-360). > > I use the gxout=vector map which requires a u and a v vector component > (i.e. the vertical and horizontal vector component). > > u > | /winddir > | / > | / > |/___ v > > > I calculate u as -sin(winddir * pi/180) > I calculate v as -cos(winddir * pi/180) > > resulting in the display-command ' -8*(sin(winddir * 0.0175)) ; -8*(cos( > winddir * 0.0175)) ' > (where 8 makes the size of the arrow, which usually represents windspeed > but here is desired to be constant) > > > The direction of the arrows looks fine. > But some maps have only tiny arrows and some maps have only longtailed > arrows. > I cannot see a pattern. I have no mixed maps with tiny and large arrows. > > Should I change my formula, or the way I give the display command? > > thanks, > Chris > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/2f35897a/attachment.html From bernd.becker at METOFFICE.GOV.UK Thu Nov 12 07:37:16 2009 From: bernd.becker at METOFFICE.GOV.UK (Becker, Bernd) Date: Thu, 12 Nov 2009 12:37:16 -0000 Subject: Scalar Vector Graphics Message-ID: Hello, What is the easiest way to produce SVG from grads? Thanks, Bernd. -- Bernd Becker Climate Impacts Product Development Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB United Kingdom Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050 E-mail:bernd.becker at metoffice.gov.uk - http://www.metoffice.gov.uk From matthew.thompson at NASA.GOV Thu Nov 12 07:47:50 2009 From: matthew.thompson at NASA.GOV (Thompson, Matthew A. (GSFC-610.1)[SCIENCE APPLICATIONS INTL CORP]) Date: Thu, 12 Nov 2009 07:47:50 -0500 Subject: Scalar Vector Graphics In-Reply-To: Message-ID: Becker, Bernd wrote: > Hello, > > What is the easiest way to produce SVG from grads? > Thanks, > Bernd. If you are using OpenGrADS, GxYat is best: http://opengrads.org/wiki/index.php?title=Gxyat With it, SVG is simple to make within grads: ga> gxyat image.svg gxyat will likewise produce PNG, PDF, and PS output with nicely antialiased fonts. If you don't have OpenGrADS, you can find out more about installing it here: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle Matt -- Matthew Thompson, SAIC, Sr Scientific Software Engr NASA GSFC, Global Modeling and Assimilation Office Code 610.1, 8800 Greenbelt Rd, Greenbelt, MD 20771 Phone: 301-614-6712 Fax: 301-614-6246 From Wesley.Ebisuzaki at NOAA.GOV Thu Nov 12 10:01:36 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Thu, 12 Nov 2009 10:01:36 -0500 Subject: Meaning of descriptor file (*.ctl) variable names In-Reply-To: <5ECF940F4DDB46B69118AD847D06778B@trsspa.it> Message-ID: Diego, Sometimes a variable may be available as a vertical profile. Sometimes a variable may only be available on one or two levels. When a variable is available as a vertical profile on pressure surfaces, the suffix "prs" is used. If the variable is not available on a vertical profile, the suffix is the level descriptor. Wesley Ebisuzaki Diego Morelli wrote: > > When I use grib2ctl (v0.9.12.5p45) it issues a ctl file with some > variables having the suffix ?mb?. These variables are relative to an > isobaric level type (value 100 in the PDS grib section, octet number > 10), with a value expressed in hPa. > > I see that the variables with suffix prs are relative also to an > isobaric level type. > > My questions is to know what is the difference between the variable > with suffix mb and those with suffix prs. > > Here there is an example of a descriptor file: > > -------------------------------------------------------------------------------------------------------------------------- > > > dset ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > index ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b.idx > > undef 9.999E+20 > > title LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > * produced by grib2ctl v0.9.12.5p45 > > dtype grib 255 > > options yrev > > ydef 66 linear 10.000000 1 > > xdef 126 linear -60.000000 1.000000 > > tdef 1 linear 12Z18jul2009 1mo > > * z has 6 levels, for prs > > zdef 6 levels > > 925 850 700 500 400 300 > > vars 2 > > * GPprs * 6 6,*100*,0 ** (profile) Geopotential [m^2/s^2] > > * VGRD925mb * 0 34,*100*,925 ** 925 mb v wind [m/s] > > ENDVARS > > -------------------------------------------------------------------------------------------------------------------------- > > > Regards, > > Diego > From wlz at TEA.AC.CN Thu Nov 12 10:33:56 2009 From: wlz at TEA.AC.CN (Wang Lizhi) Date: Thu, 12 Nov 2009 23:33:56 +0800 Subject: How to use aave with time-interval Message-ID: Hi, everyone, I get the ncep2 data set(example flx.ft06.200909), and I can plot a region's average temperature curve use following: open flx.ft06.200909.ctl set t 1 120 define v=aave( tmp2m, lon=110,lon=120,lat=20,lat=30) set x 1 set y 1 set z 1 d v But the curve is plotted at interval 6hour. Now I want to plot the mean daily temperature curve, How can I do ? thanks From dasilva at ALUM.MIT.EDU Thu Nov 12 10:36:20 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Thu, 12 Nov 2009 10:36:20 -0500 Subject: Another free shapefile for world maps In-Reply-To: Message-ID: On Thu, Nov 12, 2009 at 9:05 AM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Arlindo, > > > > Please excuse this direct email to you, the GrADS email list does not allow > me to reply or send anything to the list. > > > > I downloaded the world.tar.bz2 file and it does not contain a PRJ file. > While the three DBF, SHP, and SHX files conform exactly to the ESRI 1994 > shapefile standard; the accuracy and precision of our software has increased > significantly since the standard was propagated. > > > > As such, it is important to know the projection of the world maps. > > You may need to contact the data producers directly about this, it should be a simple matter to add a standard .prj file. However, on the website it says: The data is based upon a free map published by TerraSpace, Russia as referenced by Geocommunity. I added Antarctica after Curt Mills pointed out that there was a missing continent. Antartica's data came from the Digital Chart of the World and was reprojected into NAD27 to agree with the rest of the world. I am not sure what NAD27 is, but I was assuming it was a standard projection. Let me know if you find anything. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/63c3623e/attachment.html From diego.morelli at TRS.IT Thu Nov 12 10:48:52 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Thu, 12 Nov 2009 16:48:52 +0100 Subject: R: Meaning of descriptor file (*.ctl) variable names In-Reply-To: <4AFC2350.9030109@noaa.gov> Message-ID: Ok, thank you!!! It's clear now. Diego -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: gioved? 12 novembre 2009 16.02 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: Meaning of descriptor file (*.ctl) variable names Diego, Sometimes a variable may be available as a vertical profile. Sometimes a variable may only be available on one or two levels. When a variable is available as a vertical profile on pressure surfaces, the suffix "prs" is used. If the variable is not available on a vertical profile, the suffix is the level descriptor. Wesley Ebisuzaki Diego Morelli wrote: > > When I use grib2ctl (v0.9.12.5p45) it issues a ctl file with some > variables having the suffix ?mb?. These variables are relative to an > isobaric level type (value 100 in the PDS grib section, octet number > 10), with a value expressed in hPa. > > I see that the variables with suffix prs are relative also to an > isobaric level type. > > My questions is to know what is the difference between the variable > with suffix mb and those with suffix prs. > > Here there is an example of a descriptor file: > > ---------------------------------------------------------------------------- ---------------------------------------------- > > > dset ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > index ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b.idx > > undef 9.999E+20 > > title LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > * produced by grib2ctl v0.9.12.5p45 > > dtype grib 255 > > options yrev > > ydef 66 linear 10.000000 1 > > xdef 126 linear -60.000000 1.000000 > > tdef 1 linear 12Z18jul2009 1mo > > * z has 6 levels, for prs > > zdef 6 levels > > 925 850 700 500 400 300 > > vars 2 > > * GPprs * 6 6,*100*,0 ** (profile) Geopotential [m^2/s^2] > > * VGRD925mb * 0 34,*100*,925 ** 925 mb v wind [m/s] > > ENDVARS > > ---------------------------------------------------------------------------- ---------------------------------------------- > > > Regards, > > Diego > From jdduda at IASTATE.EDU Thu Nov 12 10:53:57 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Thu, 12 Nov 2009 09:53:57 -0600 Subject: How to use aave with time-interval In-Reply-To: <20091112153336.M3912@tea.ac.cn> Message-ID: You could try nesting the aave command inside a tmave command, but you'd have to create a mask for it. See the index page for tmave ( http://www.iges.org/grads/gadoc/gadocindex.html). Jeff Duda 2009/11/12 Wang Lizhi > Hi, everyone, > > I get the ncep2 data set(example flx.ft06.200909), and I can plot a > region's average > temperature curve use following: > > open flx.ft06.200909.ctl > set t 1 120 > define v=aave( tmp2m, lon=110,lon=120,lat=20,lat=30) > set x 1 > set y 1 > set z 1 > d v > > But the curve is plotted at interval 6hour. Now I want to plot the mean > daily > temperature curve, How can I do ? > > thanks > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/6d4bd458/attachment.html From rana.samuels at GMAIL.COM Thu Nov 12 10:58:46 2009 From: rana.samuels at GMAIL.COM (Rana Samuels) Date: Thu, 12 Nov 2009 17:58:46 +0200 Subject: UNSUBSCRIBE Message-ID: Please unsubscribe me. On Thu, Nov 12, 2009 at 5:48 PM, Diego Morelli wrote: > Ok, thank you!!! > It's clear now. > > Diego > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: gioved? 12 novembre 2009 16.02 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: Meaning of descriptor file (*.ctl) variable names > > Diego, > > Sometimes a variable may be available as a vertical profile. Sometimes a > variable may only be available on > one or two levels. When a variable is available as a vertical profile on > pressure surfaces, the suffix "prs" is > used. If the variable is not available on a vertical profile, the suffix > is the level descriptor. > > Wesley Ebisuzaki > > > Diego Morelli wrote: > > > > When I use grib2ctl (v0.9.12.5p45) it issues a ctl file with some > > variables having the suffix ?mb?. These variables are relative to an > > isobaric level type (value 100 in the PDS grib section, octet number > > 10), with a value expressed in hPa. > > > > I see that the variables with suffix prs are relative also to an > > isobaric level type. > > > > My questions is to know what is the difference between the variable > > with suffix mb and those with suffix prs. > > > > Here there is an example of a descriptor file: > > > > > > ---------------------------------------------------------------------------- > ---------------------------------------------- > > > > > > dset ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > > > index ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b.idx > > > > undef 9.999E+20 > > > > title LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > > > * produced by grib2ctl v0.9.12.5p45 > > > > dtype grib 255 > > > > options yrev > > > > ydef 66 linear 10.000000 1 > > > > xdef 126 linear -60.000000 1.000000 > > > > tdef 1 linear 12Z18jul2009 1mo > > > > * z has 6 levels, for prs > > > > zdef 6 levels > > > > 925 850 700 500 400 300 > > > > vars 2 > > > > * GPprs * 6 6,*100*,0 ** (profile) Geopotential [m^2/s^2] > > > > * VGRD925mb * 0 34,*100*,925 ** 925 mb v wind [m/s] > > > > ENDVARS > > > > > > ---------------------------------------------------------------------------- > ---------------------------------------------- > > > > > > Regards, > > > > Diego > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/0cf26cd8/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Thu Nov 12 11:00:06 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Thu, 12 Nov 2009 11:00:06 -0500 Subject: OpenDAP GRIB Retrieval from Nomads In-Reply-To: <2DEC7A7E70284A658C14AC247A5745D5@sailfish> Message-ID: Mark, http://nomads.ncep.noaa.gov is the operational NCEP nomads site. Since you want a regional subset, I am assuming that you want to minimize time/bandwidth. Downloading grib2 is good because grib-2 is compressed data. You will save time over DODS which transfers the data as a text file. You will also save time because GDS has considerable overhead on the server. Once you have obtained the grib-2 data, you can use g2ctl to create the control file. Example of grib2 compression: 1x1 degree GFS hgt 500mb: 4.6 bits per grid point text file: several characters per grid point. Two ways to download the grib data. (1) downloading the appropriate grib fields by partial http downloading. http://www.cpc.noaa.gov/products/wesley/fast_downloading_grib.html http://www.cpc.noaa.gov/products/wesley/get_gfs.html use "http" option to find the URLs. See the main page (http://nomads.ncep.noaa.gov) (2) creating regional subsets of the grib2 files, use "grib filter" (aka g2sub) from the main page. Wesley Ebisuzaki Mark Hess wrote: > All, > > I tried to search the GRADSUSR archives for the answer to this > question, but it gives me the error errno=146 "unable to initiate > communication...". Perhaps you all can offer an answer. > > Does anyone have any sample strings for use with gradsdods to retreive > a GFS grib file from the NWS NCEP MOMANDS OpenDAP server? > (http://nomads.ncep.noaa.gov:9090/dods/gfs) > > I'm especially interested in how to extract data for a specified > geographical region. > > If anyone can get me started with this, I should be able to take an > example and work from there. > > Thank you. > > Mark > From Huddleston at CIRA.COLOSTATE.EDU Thu Nov 12 10:52:45 2009 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Thu, 12 Nov 2009 07:52:45 -0800 Subject: Another free shapefile for world maps In-Reply-To: <77fcd6b20911120736r73a8669ch3c61967975859b6@mail.gmail.com> Message-ID: Arlindo, here is a list of projections for Antartica: $ ls Coordinate\ Systems/Geographic\ Coordinate\ Systems/Antarctica/ Australian Antarctic 1998.prj Deception Island.prj Pointe Geologie Perroud 1950.prj Camp Area Astro.prj Petrels 1972.prj The NAD27 is North America Datum of 1927 and is, in general, not a good choice for projections of the world. The original maps that USGS created for the United States were based on NAD27 and the CLARK1866 sphere and they have been re-projected by USGS to NAD83 and the GRS80 sphere. Projections for the world would fall into one of two categories: Geographic and Projected. $ ls Coordinate\ Systems/Geographic\ Coordinate\ Systems/World/ ITRF 1988.prj ITRF 1991.prj ITRF 1994.prj ITRF 2000.prj WGS 1966.prj ITRF 1989.prj ITRF 1992.prj ITRF 1996.prj ITRF 2005.prj WGS 1972 TBE.prj ITRF 1990.prj ITRF 1993.prj ITRF 1997.prj NSWC 9Z-2.prj WGS 1972.prj and WGS 1984.prj and $ ls Coordinate\ Systems/Projected\ Coordinate\ Systems/world Aitoff (world).prj Flat Polar Quartic (world).prj Sinusoidal (world).prj Behrmann (world).prj Fuller (world).prj Sphere-based Bonne (world).prj Gall Stereographic (world).prj The World from Space.prj Craster Parabolic (world).prj Goode Homolosine (Land).prj Times (world).prj Cube (world).prj Goode Homolosine (Ocean).prj Van der Grinten I (world).prj Cylindrical Equal Area (world).prj Hammer-Aitoff (world).prj Vertical Perspective (world).prj Eckert I (world).prj Loximuthal (world).prj WGS 1984 PDC Mercator.prj Eckert II (world).prj Mercator (world).prj WGS 1984 Web Mercator (Auxiliary Sphere).prj Eckert III (world).prj Miller Cylindrical (world).prj WGS 1984 Web Mercator.prj Eckert IV (world).prj Mollweide (world).prj Winkel I (world).prj Eckert V (world).prj Plate Carree (world).prj Winkel II (world).prj Eckert VI (world).prj Polyconic (world).prj Winkel Tripel (NGS - world).prj Equidistant Conic (world).prj Quartic Authalic (world).prj Equidistant Cylindrical (world).prj Robinson (world).prj John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: arlindo.dasilva at gmail.com [mailto:arlindo.dasilva at gmail.com] On Behalf Of Arlindo da Silva Sent: Thursday, November 12, 2009 8:36 AM To: Huddleston, John Cc: gradsusr Subject: Re: Another free shapefile for world maps On Thu, Nov 12, 2009 at 9:05 AM, Huddleston, John > wrote: Arlindo, Please excuse this direct email to you, the GrADS email list does not allow me to reply or send anything to the list. I downloaded the world.tar.bz2 file and it does not contain a PRJ file. While the three DBF, SHP, and SHX files conform exactly to the ESRI 1994 shapefile standard; the accuracy and precision of our software has increased significantly since the standard was propagated. As such, it is important to know the projection of the world maps. You may need to contact the data producers directly about this, it should be a simple matter to add a standard .prj file. However, on the website it says: The data is based upon a free map published by TerraSpace, Russia as referenced by Geocommunity. I added Antarctica after Curt Mills pointed out that there was a missing continent. Antartica's data came from the Digital Chart of the World and was reprojected into NAD27 to agree with the rest of the world. I am not sure what NAD27 is, but I was assuming it was a standard projection. Let me know if you find anything. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/e71eed9a/attachment.html From jmssnyder at UCDAVIS.EDU Thu Nov 12 11:18:17 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Thu, 12 Nov 2009 08:18:17 -0800 Subject: How to use aave with time-interval In-Reply-To: <20091112153336.M3912@tea.ac.cn> Message-ID: I think for 6 hour day, I would try define v=ave(aave(tmp2m,lon=110,lon=120,lat=20,lat=30),t+0,t=4). Look at this website for more information. http://www.iges.org/grads/gadoc/variable.html#new -Jason 2009/11/12 Wang Lizhi > Hi, everyone, > > I get the ncep2 data set(example flx.ft06.200909), and I can plot a > region's average > temperature curve use following: > > open flx.ft06.200909.ctl > set t 1 120 > define v=aave( tmp2m, lon=110,lon=120,lat=20,lat=30) > set x 1 > set y 1 > set z 1 > d v > > But the curve is plotted at interval 6hour. Now I want to plot the mean > daily > temperature curve, How can I do ? > > thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/f8c8e39f/attachment.html From mike.bosilovich at GMAIL.COM Thu Nov 12 11:25:06 2009 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Thu, 12 Nov 2009 11:25:06 -0500 Subject: OpenDAP GRIB Retrieval from Nomads In-Reply-To: <2DEC7A7E70284A658C14AC247A5745D5@sailfish> Message-ID: Hi Mark, Your question reminded me of some new regridding functionality that Arlindo told me about that I've been meaning to test drive. Looks like you want grib files, but this can also do netcdf (and there maybe some compressed netcdf too). I run the following command line on my linux workstation with the latest OpenGrads build installed lats4d.sh -i http://nomad3.ncep.noaa.gov:9090/dods/reanalyses/reanalysis-2/6hr/flx/flx -o testout2 -format grads_grib -time 00Z01OCT2009 00Z02OCT2009 -vars cpratsfc pratesfc -merra0.5 This produces a grib file on my workstation for the convective and total precip from R2 (I'll assume GFS's GDS will behave similarly). for 5 6-hourly intervals for the time specified. the -merra0.5 flag regrids the output to the MERRA reanalysis 1/2 degree native grid. (this was just a test, I wouldn't regularly upscale coarser resolution data that way) This could be build into a csh script for looping. more variables can be added, -lat and -lon can subset the domain, and -func could make means or apply other grads functions. It slices, it dices..... I hope this helps Mike On 11/11/09, Mark Hess wrote: > All, > > I tried to search the GRADSUSR archives for the answer to this question, but > it gives me the error errno=146 "unable to initiate communication...". > Perhaps you all can offer an answer. > > Does anyone have any sample strings for use with gradsdods to retreive a GFS > grib file from the NWS NCEP MOMANDS OpenDAP server? > (http://nomads.ncep.noaa.gov:9090/dods/gfs) > > I'm especially interested in how to extract data for a specified > geographical region. > > If anyone can get me started with this, I should be able to take an example > and work from there. > > Thank you. > > Mark > From jmssnyder at UCDAVIS.EDU Thu Nov 12 11:32:53 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Thu, 12 Nov 2009 17:32:53 +0100 Subject: Making composites of data for specific OLR values within an certain area Message-ID: I am trying to make a script that composites pressure values from dates when OLR values over a certain area (latitude range: 5S to 5N and longitude: 120E and 120W) are below a certain value. I tried using this script and it did not seem to work properly. What should I do to make this script so that I can make this script work properly? Also how can I composite wind data at specific pressure levels such as 850 mb and 500 mb based on this script? 'sdfopen olr.day.mean.nc' 'sdfopen pres.sfc.1993.nc' 'set t 6790' 'define presa = 0' 'define number = 0' count = 6790 while (count < 12267) 'set t 'count 'define olra = aave(olr,lon=120,lon=240,lat=-5,lat=5)' if (olra < 230) 'define presb = pres.2' 'define n=1' else 'define presb = 0' 'define n = 0' endif 'define presa = presa + presb' 'define number = number + n' count = count + 1 endwhile 'define presavg=presa' If someone has any suggestions on what to do with this script to make it composite wind/pressure data for days where the average OLR values within the area 120 W to 120 E and 15S to 15N, is less than 234, that would be greatly appreciated. Thanks, Jason From robert.mulloy at SHELL.COM Thu Nov 12 11:21:35 2009 From: robert.mulloy at SHELL.COM (Robert Mulloy) Date: Thu, 12 Nov 2009 10:21:35 -0600 Subject: unsubscribe In-Reply-To: Message-ID: unsubscribe please -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/03137282/attachment.html From matt.alonso at GMAIL.COM Thu Nov 12 12:00:24 2009 From: matt.alonso at GMAIL.COM (Matt Alonso) Date: Thu, 12 Nov 2009 12:00:24 -0500 Subject: INSTRUCTIONS FOR UNSUBSCRIBING...AGAIN Message-ID: How hard is it to read the instructions for subscribing/unsubscribing - which you must have read at some point or you wouldn't be on this list to begin with - or to read the instructions Jennifer sent out to the entire list 3 days ago? Here they are again. To unsubscribe, DO NOT send a request to gradsusr at list.cineca.it, please do the following: Send an email containing the message "SIGNOFF GRADSUSR" to listserv at list.cineca.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/f505592f/attachment.html From rana.samuels at GMAIL.COM Thu Nov 12 12:06:26 2009 From: rana.samuels at GMAIL.COM (Rana Samuels) Date: Thu, 12 Nov 2009 19:06:26 +0200 Subject: INSTRUCTIONS FOR UNSUBSCRIBING...AGAIN In-Reply-To: <6cc1fd310911120900u767f48adnf7ad7e7b41ffa5cf@mail.gmail.com> Message-ID: That's what I did. It doesnt work!!!! On Thu, Nov 12, 2009 at 7:00 PM, Matt Alonso wrote: > How hard is it to read the instructions for subscribing/unsubscribing - > which you must have read at some point or you wouldn't be on this list to > begin with - or to read the instructions Jennifer sent out to the entire > list 3 days ago? Here they are again. > > To unsubscribe, DO NOT send a request to gradsusr at list.cineca.it, please > do the following: > > Send an email containing the message "SIGNOFF GRADSUSR" to > listserv at list.cineca.it > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/98dfa930/attachment.html From matt.alonso at GMAIL.COM Thu Nov 12 12:14:18 2009 From: matt.alonso at GMAIL.COM (Matt Alonso) Date: Thu, 12 Nov 2009 12:14:18 -0500 Subject: INSTRUCTIONS FOR UNSUBSCRIBING...AGAIN In-Reply-To: <9ac5681b0911120906qbae76fevd6de6abd907f8abe@mail.gmail.com> Message-ID: Haha, well that certainly sucks. My apologies, I've never had to do that. Jennifer, any ideas? On Thu, Nov 12, 2009 at 12:06 PM, Rana Samuels wrote: > That's what I did. It doesnt work!!!! > > > On Thu, Nov 12, 2009 at 7:00 PM, Matt Alonso wrote: > >> How hard is it to read the instructions for subscribing/unsubscribing - >> which you must have read at some point or you wouldn't be on this list to >> begin with - or to read the instructions Jennifer sent out to the entire >> list 3 days ago? Here they are again. >> >> To unsubscribe, DO NOT send a request to gradsusr at list.cineca.it, please >> do the following: >> >> Send an email containing the message "SIGNOFF GRADSUSR" to >> listserv at list.cineca.it >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/619c1923/attachment.html From jma at COLA.IGES.ORG Thu Nov 12 12:18:02 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 12 Nov 2009 12:18:02 -0500 Subject: INSTRUCTIONS FOR UNSUBSCRIBING...AGAIN In-Reply-To: <9ac5681b0911120906qbae76fevd6de6abd907f8abe@mail.gmail.com> Message-ID: If 'signoff gradsusr' to listserve at list.cineca.it doesn't work, then send your unsubscribe request to gradsusr-request at list.cineca.it instead. The list owners can help you, the list subscribers cannot. -- Jennifer On Nov 12, 2009, at 12:06 PM, Rana Samuels wrote: > That's what I did. It doesnt work!!!! > > On Thu, Nov 12, 2009 at 7:00 PM, Matt Alonso > wrote: > How hard is it to read the instructions for subscribing/ > unsubscribing - which you must have read at some point or you > wouldn't be on this list to begin with - or to read the instructions > Jennifer sent out to the entire list 3 days ago? Here they are again. > > To unsubscribe, DO NOT send a request to gradsusr at list.cineca.it, > please do the following: > > Send an email containing the message "SIGNOFF GRADSUSR" to listserv at list.cineca.it > > > -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/00311635/attachment.html From Charles.Seman at NOAA.GOV Thu Nov 12 13:05:10 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Thu, 12 Nov 2009 13:05:10 -0500 Subject: compositing wind and pressure data based on certain OLR values In-Reply-To: <20091110200646.340F120036@mx2.cineca.it> Message-ID: Jason, Perhaps the "fndlvl" function may be helpful to define a "mask" which then could be used with "maskout"? The maskout web site has an example of averaging only over land using a "mask"... http://grads.iges.org/grads/gadoc/gradfuncfndlvl.html http://grads.iges.org/grads/gadoc/gradfuncmaskout.html Chuck Jason Snyder wrote: > I am trying to make a script that composites pressure values from dates > when OLR values over a certain area (latitude range: 5S to 5N and > longitude: 120E and 120W) are below a certain value. I tried using this > script and it did not seem to work properly. What should I do to make > this script so that I can make this script work properly? Also how can I > composite wind data at specific pressure levels such as 850 mb and 500 mb > based on this script? > 'sdfopen olr.day.mean.nc' > 'sdfopen pres.sfc.1993.nc' > 'set t 6790' > 'define presa = 0' > 'define number = 0' > count = 6790 > while (count < 12267) > 'set t 'count > 'define olra = aave(olr,lon=120,lon=240,lat=-5,lat=5)' > if (olra < 230) > 'define presb = pres.2' > 'define n=1' > else > 'define presb = 0' > 'define n = 0' > endif > 'define presa = presa + presb' > 'define number = number + n' > count = count + 1 > endwhile > 'define presavg=presa' > > > If someone has any suggestions on what to do with this script to make it > composite wind/pressure data for days where the average OLR values within > the area 120 W to 120 E and 15S to 15N, is less than 234, that would be > greatly appreciated. > > Thanks, > > Jason > -Jason > -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." From jimp at HAWAII.EDU Thu Nov 12 13:05:18 2009 From: jimp at HAWAII.EDU (James T. Potemra) Date: Thu, 12 Nov 2009 08:05:18 -1000 Subject: OpenDAP GRIB Retrieval from Nomads In-Reply-To: <2DEC7A7E70284A658C14AC247A5745D5@sailfish> Message-ID: Hi Mark: Should be pretty straightforward. Just follow the link you give below and you should see a list of the GDS catalog at nomads (the listing has names like gfs20091101). Select whichever date in which you are interested, and you should see a page with the data set catalog. For example, I just clicked on the top one gfs20091014 and got a list with gfs_00z, gfs_00z_anl, etc. Again, pick the one of interest and click on the "info" link. E.g., I clicked on the "info" link next to gfs_00z (the direct URL is http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z.info). All you need is the "OPeNDAP/DODS Data URL" listed at the top, again in this case it is http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z (Note here that you can't always assume the syntax of the DODS Data URL will be similar to the catalog URL, but in this case it happens to be). So, now all you need to do is fire up GrADS (or gradsdods depending on your binary version), then type in "sdfopen xxx" where "xxx" is the DODS data URL from above. You should then have total access to the data set, at which point you'll first be amazed at the simplicity with which you can access data without actually having to transfer/reformat/etc., and then you'll be looking for a way to thank all the brilliant minds that provide us with this capability. The final step, if you really want to download, is just "set lat ...", "set lon...", "set lev...", "set time..", "set gxout fwrite" and "d variable". Jim PS. Here's what it looks like for the sample file: grads -l Welcome to the OpenGrADS Bundle Distribution -------------------------------------------- For additional information enter "grads -h". Starting "/usr/local/grads-2.0.a7.oga.2/Contents/Linux/Versions/2.0.a7.oga.2/x86_64/grads -l " ... Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.2 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v2.0.a7.oga.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff Issue 'q config' command for more information. Loading User Defined Extensions table ... ok. GX Package Initialization: Size = 11 8.5 ga-> sdfopen http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z Scanning self-describing file: http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z SDF file http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 1000 1000 Time values set: 2009:10:14:0 2009:10:14:0 E set to 1 1 ga-> q file File 1 : GFS fcst starting from 00Z14oct2009, downloaded Oct 14 04:24 UTC Descriptor: http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z Binary: http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z Type = Gridded Xsize = 360 Ysize = 181 Zsize = 26 Tsize = 61 Esize = 1 Number of Variables = 139 absvprs 26 t,z,y,x ** (1000 975 950 925 900.. 70 50 30 20 10) none absolute vorticity [1/s] no4lftxsfc 0 t,y,x ** surface none best (4 layer) lifted index [k] no5wava500mb 0 t,y,x ** 500 mb none 5-wave geopotential height anomaly [gpm] no5wavh500mb 0 t,y,x ** 500 mb none 5-wave geopotential height [gpm] .... ga-> set lat -90 90 LAT set to -90 90 ga-> set lon 130 150 LON set to 130 150 ga-> set t 1 Time values set: 2009:10:14:0 2009:10:14:0 ga-> set z 1 LEV set to 1000 1000 ga-> set gxout fwrite ga-> d ugrdprs Wrote 3801 of 3801 elements to grads.fwrite as Stream Little_Endian Mark Hess wrote: > All, > > I tried to search the GRADSUSR archives for the answer to this > question, but it gives me the error errno=146 "unable to initiate > communication...". Perhaps you all can offer an answer. > > Does anyone have any sample strings for use with gradsdods to retreive > a GFS grib file from the NWS NCEP MOMANDS OpenDAP server? > (http://nomads.ncep.noaa.gov:9090/dods/gfs) > > I'm especially interested in how to extract data for a specified > geographical region. > > If anyone can get me started with this, I should be able to take an > example and work from there. > > Thank you. > > Mark > From mhess at OCEANI.COM Thu Nov 12 13:15:01 2009 From: mhess at OCEANI.COM (Mark Hess) Date: Thu, 12 Nov 2009 11:15:01 -0700 Subject: OpenDAP GRIB Retrieval from Nomads In-Reply-To: <4AFC4E5E.3060204@hawaii.edu> Message-ID: Jim, Excellent! That is more than enough to get me started. Thanks very much for the detailed explanation and sample - very helpful for a GrADS/OpenDAP rookie like myself! Mark ----- Original Message ----- From: James T. Potemra To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, November 12, 2009 11:05 AM Subject: Re: OpenDAP GRIB Retrieval from Nomads Hi Mark: Should be pretty straightforward. Just follow the link you give below and you should see a list of the GDS catalog at nomads (the listing has names like gfs20091101). Select whichever date in which you are interested, and you should see a page with the data set catalog. For example, I just clicked on the top one gfs20091014 and got a list with gfs_00z, gfs_00z_anl, etc. Again, pick the one of interest and click on the "info" link. E.g., I clicked on the "info" link next to gfs_00z (the direct URL is http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z.info). All you need is the "OPeNDAP/DODS Data URL" listed at the top, again in this case it is http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z (Note here that you can't always assume the syntax of the DODS Data URL will be similar to the catalog URL, but in this case it happens to be). So, now all you need to do is fire up GrADS (or gradsdods depending on your binary version), then type in "sdfopen xxx" where "xxx" is the DODS data URL from above. You should then have total access to the data set, at which point you'll first be amazed at the simplicity with which you can access data without actually having to transfer/reformat/etc., and then you'll be looking for a way to thank all the brilliant minds that provide us with this capability. The final step, if you really want to download, is just "set lat ...", "set lon...", "set lev...", "set time..", "set gxout fwrite" and "d variable". Jim PS. Here's what it looks like for the sample file: grads -l Welcome to the OpenGrADS Bundle Distribution -------------------------------------------- For additional information enter "grads -h". Starting "/usr/local/grads-2.0.a7.oga.2/Contents/Linux/Versions/2.0.a7.oga.2/x86_64/grads -l " ... Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.2 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v2.0.a7.oga.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff Issue 'q config' command for more information. Loading User Defined Extensions table ... ok. GX Package Initialization: Size = 11 8.5 ga-> sdfopen http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z Scanning self-describing file: http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z SDF file http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 1000 1000 Time values set: 2009:10:14:0 2009:10:14:0 E set to 1 1 ga-> q file File 1 : GFS fcst starting from 00Z14oct2009, downloaded Oct 14 04:24 UTC Descriptor: http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z Binary: http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20091014/gfs_00z Type = Gridded Xsize = 360 Ysize = 181 Zsize = 26 Tsize = 61 Esize = 1 Number of Variables = 139 absvprs 26 t,z,y,x ** (1000 975 950 925 900.. 70 50 30 20 10) none absolute vorticity [1/s] no4lftxsfc 0 t,y,x ** surface none best (4 layer) lifted index [k] no5wava500mb 0 t,y,x ** 500 mb none 5-wave geopotential height anomaly [gpm] no5wavh500mb 0 t,y,x ** 500 mb none 5-wave geopotential height [gpm] .... ga-> set lat -90 90 LAT set to -90 90 ga-> set lon 130 150 LON set to 130 150 ga-> set t 1 Time values set: 2009:10:14:0 2009:10:14:0 ga-> set z 1 LEV set to 1000 1000 ga-> set gxout fwrite ga-> d ugrdprs Wrote 3801 of 3801 elements to grads.fwrite as Stream Little_Endian Mark Hess wrote: > All, > > I tried to search the GRADSUSR archives for the answer to this > question, but it gives me the error errno=146 "unable to initiate > communication...". Perhaps you all can offer an answer. > > Does anyone have any sample strings for use with gradsdods to retreive > a GFS grib file from the NWS NCEP MOMANDS OpenDAP server? > (http://nomads.ncep.noaa.gov:9090/dods/gfs) > > I'm especially interested in how to extract data for a specified > geographical region. > > If anyone can get me started with this, I should be able to take an > example and work from there. > > Thank you. > > Mark > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/bf06d42a/attachment.html From fernandez1 at CANTV.NET Thu Nov 12 13:24:22 2009 From: fernandez1 at CANTV.NET (Luis Alfonso Fernández H.) Date: Thu, 12 Nov 2009 13:54:22 -0430 Subject: IT DOESN´T WORK "AGAIN" Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/b958ea71/attachment.html From dasilva at ALUM.MIT.EDU Thu Nov 12 14:56:12 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Thu, 12 Nov 2009 14:56:12 -0500 Subject: Another free shapefile for world maps In-Reply-To: Message-ID: John, What is your recommendation? Should we reproject that free dataset for general grads use? Are you setup for producing such a re-projected shapefile with the corresponding .prj metadata? Thanks, Arlindo On Thu, Nov 12, 2009 at 10:52 AM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Arlindo, here is a list of projections for Antartica: > > > > $ ls Coordinate\ Systems/Geographic\ Coordinate\ Systems/Antarctica/ > > Australian Antarctic 1998.prj Deception Island.prj Pointe Geologie > Perroud 1950.prj > > Camp Area Astro.prj Petrels 1972.prj > > > > The NAD27 is North America Datum of 1927 and is, in general, not a good > choice for projections of the world. The original maps that USGS created for > the United States were based on NAD27 and the CLARK1866 sphere and they have > been re-projected by USGS to NAD83 and the GRS80 sphere. > > > > Projections for the world would fall into one of two categories: Geographic > and Projected. > > > > $ ls Coordinate\ Systems/Geographic\ Coordinate\ Systems/World/ > > ITRF 1988.prj ITRF 1991.prj ITRF 1994.prj ITRF 2000.prj WGS > 1966.prj > > ITRF 1989.prj ITRF 1992.prj ITRF 1996.prj ITRF 2005.prj WGS 1972 > TBE.prj > > ITRF 1990.prj ITRF 1993.prj ITRF 1997.prj NSWC 9Z-2.prj WGS 1972.prj > and WGS 1984.prj > > > > and > > > > $ ls Coordinate\ Systems/Projected\ Coordinate\ Systems/world > > Aitoff (world).prj Flat Polar Quartic (world).prj > Sinusoidal (world).prj > > Behrmann (world).prj Fuller (world).prj > Sphere-based > > Bonne (world).prj Gall Stereographic (world).prj The > World from Space.prj > > Craster Parabolic (world).prj Goode Homolosine (Land).prj Times > (world).prj > > Cube (world).prj Goode Homolosine (Ocean).prj Van > der Grinten I (world).prj > > Cylindrical Equal Area (world).prj Hammer-Aitoff (world).prj > Vertical Perspective (world).prj > > Eckert I (world).prj Loximuthal (world).prj WGS > 1984 PDC Mercator.prj > > Eckert II (world).prj Mercator (world).prj WGS > 1984 Web Mercator (Auxiliary Sphere).prj > > Eckert III (world).prj Miller Cylindrical (world).prj WGS > 1984 Web Mercator.prj > > Eckert IV (world).prj Mollweide (world).prj Winkel > I (world).prj > > Eckert V (world).prj Plate Carree (world).prj Winkel > II (world).prj > > Eckert VI (world).prj Polyconic (world).prj Winkel > Tripel (NGS - world).prj > > Equidistant Conic (world).prj Quartic Authalic (world).prj > > Equidistant Cylindrical (world).prj Robinson (world).prj > > > > John > > > > John Huddleston, PhD > > Research Associate > > Cooperative Institute for Research in the Atmosphere > > Mail Stop 1375 @ CIRA > > Colorado State University > > Fort Collins, CO 80521 > > 970-491-8602 > > > > *From:* arlindo.dasilva at gmail.com [mailto:arlindo.dasilva at gmail.com] *On > Behalf Of *Arlindo da Silva > *Sent:* Thursday, November 12, 2009 8:36 AM > *To:* Huddleston, John > *Cc:* gradsusr > *Subject:* Re: Another free shapefile for world maps > > > > On Thu, Nov 12, 2009 at 9:05 AM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > > Arlindo, > > > > Please excuse this direct email to you, the GrADS email list does not allow > me to reply or send anything to the list. > > > > I downloaded the world.tar.bz2 file and it does not contain a PRJ file. > While the three DBF, SHP, and SHX files conform exactly to the ESRI 1994 > shapefile standard; the accuracy and precision of our software has increased > significantly since the standard was propagated. > > > > As such, it is important to know the projection of the world maps. > > > > You may need to contact the data producers directly about this, it should > be a simple matter to add a standard .prj file. However, on the website it > says: > > > > The data is based upon a free map published by TerraSpace, Russia as > referenced by Geocommunity. > I added Antarctica after Curt Mills pointed out that there was a missing > continent. Antartica's data came from the Digital Chart of the World and was > reprojected into NAD27 to agree with the rest of the world. > > > > I am not sure what NAD27 is, but I was assuming it was a standard > projection. Let me know if you find anything. > > > > Arlindo > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/3afb50af/attachment.html From arlindo.dasilva at GMAIL.COM Thu Nov 12 15:05:28 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 12 Nov 2009 15:05:28 -0500 Subject: Making composites of data for specific OLR values within an certain area In-Reply-To: <20091112163414.7D0DC1FDEE@mx2.cineca.it> Message-ID: On Thu, Nov 12, 2009 at 11:32 AM, Jason Snyder wrote: > I am trying to make a script that composites pressure values from dates > when OLR values over a certain area (latitude range: 5S to 5N and > longitude: 120E and 120W) are below a certain value. I tried using this > script and it did not seem to work properly. What should I do to make > this script so that I can make this script work properly? Also how can I > composite wind data at specific pressure levels such as 850 mb and 500 mb > based on this script? > 'sdfopen olr.day.mean.nc' > 'sdfopen pres.sfc.1993.nc' > 'set t 6790' > 'define presa = 0' > 'define number = 0' > count = 6790 > while (count < 12267) > 'set t 'count > 'define olra = aave(olr,lon=120,lon=240,lat=-5,lat=5)' > if (olra < 230) > This is not valid. Grads scripting does not have access to defined variables, grads scripts operate on a separate namespace from the expression parser. However, the bjt extensions have a if() function that could be used to implement this: ga-> define presb = if(olra<230,pres.2,0.0) Function maskout() can accomplished much of the same, but I find the if() syntax easier to read. More information on the bjt extensions here: http://opengrads.org/doc/udxt/libbjt/ Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/89b669bb/attachment.html From Huddleston at CIRA.COLOSTATE.EDU Thu Nov 12 15:11:53 2009 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Thu, 12 Nov 2009 12:11:53 -0800 Subject: Another free shapefile for world maps In-Reply-To: <77fcd6b20911121156x65f0a5c0wa1511100b282bb2@mail.gmail.com> Message-ID: Arlindo Here is a projection for WGS84. GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] Save this line in a file called world.prj in the same directory was the world.dbf, world.shp, and world.shx files. It appears to match the outlines of the continents with other maps. John From: arlindo.dasilva at gmail.com [mailto:arlindo.dasilva at gmail.com] On Behalf Of Arlindo da Silva Sent: Thursday, November 12, 2009 12:56 PM To: Huddleston, John Cc: gradsusr Subject: Re: Another free shapefile for world maps John, What is your recommendation? Should we reproject that free dataset for general grads use? Are you setup for producing such a re-projected shapefile with the corresponding .prj metadata? Thanks, Arlindo On Thu, Nov 12, 2009 at 10:52 AM, Huddleston, John > wrote: Arlindo, here is a list of projections for Antartica: $ ls Coordinate\ Systems/Geographic\ Coordinate\ Systems/Antarctica/ Australian Antarctic 1998.prj Deception Island.prj Pointe Geologie Perroud 1950.prj Camp Area Astro.prj Petrels 1972.prj The NAD27 is North America Datum of 1927 and is, in general, not a good choice for projections of the world. The original maps that USGS created for the United States were based on NAD27 and the CLARK1866 sphere and they have been re-projected by USGS to NAD83 and the GRS80 sphere. Projections for the world would fall into one of two categories: Geographic and Projected. $ ls Coordinate\ Systems/Geographic\ Coordinate\ Systems/World/ ITRF 1988.prj ITRF 1991.prj ITRF 1994.prj ITRF 2000.prj WGS 1966.prj ITRF 1989.prj ITRF 1992.prj ITRF 1996.prj ITRF 2005.prj WGS 1972 TBE.prj ITRF 1990.prj ITRF 1993.prj ITRF 1997.prj NSWC 9Z-2.prj WGS 1972.prj and WGS 1984.prj and $ ls Coordinate\ Systems/Projected\ Coordinate\ Systems/world Aitoff (world).prj Flat Polar Quartic (world).prj Sinusoidal (world).prj Behrmann (world).prj Fuller (world).prj Sphere-based Bonne (world).prj Gall Stereographic (world).prj The World from Space.prj Craster Parabolic (world).prj Goode Homolosine (Land).prj Times (world).prj Cube (world).prj Goode Homolosine (Ocean).prj Van der Grinten I (world).prj Cylindrical Equal Area (world).prj Hammer-Aitoff (world).prj Vertical Perspective (world).prj Eckert I (world).prj Loximuthal (world).prj WGS 1984 PDC Mercator.prj Eckert II (world).prj Mercator (world).prj WGS 1984 Web Mercator (Auxiliary Sphere).prj Eckert III (world).prj Miller Cylindrical (world).prj WGS 1984 Web Mercator.prj Eckert IV (world).prj Mollweide (world).prj Winkel I (world).prj Eckert V (world).prj Plate Carree (world).prj Winkel II (world).prj Eckert VI (world).prj Polyconic (world).prj Winkel Tripel (NGS - world).prj Equidistant Conic (world).prj Quartic Authalic (world).prj Equidistant Cylindrical (world).prj Robinson (world).prj John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: arlindo.dasilva at gmail.com [mailto:arlindo.dasilva at gmail.com] On Behalf Of Arlindo da Silva Sent: Thursday, November 12, 2009 8:36 AM To: Huddleston, John Cc: gradsusr Subject: Re: Another free shapefile for world maps On Thu, Nov 12, 2009 at 9:05 AM, Huddleston, John > wrote: Arlindo, Please excuse this direct email to you, the GrADS email list does not allow me to reply or send anything to the list. I downloaded the world.tar.bz2 file and it does not contain a PRJ file. While the three DBF, SHP, and SHX files conform exactly to the ESRI 1994 shapefile standard; the accuracy and precision of our software has increased significantly since the standard was propagated. As such, it is important to know the projection of the world maps. You may need to contact the data producers directly about this, it should be a simple matter to add a standard .prj file. However, on the website it says: The data is based upon a free map published by TerraSpace, Russia as referenced by Geocommunity. I added Antarctica after Curt Mills pointed out that there was a missing continent. Antartica's data came from the Digital Chart of the World and was reprojected into NAD27 to agree with the rest of the world. I am not sure what NAD27 is, but I was assuming it was a standard projection. Let me know if you find anything. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091112/3b885752/attachment.html From jmssnyder at UCDAVIS.EDU Thu Nov 12 23:15:21 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Fri, 13 Nov 2009 05:15:21 +0100 Subject: Grads for Windows version 2 installation problems Message-ID: I am having some problems with installing and running GrADS version 2 for windows. I downloading both the following zip files cygwin.zip cygwin-dlls.zip and unzipped them. What goes next? When I open Grads version 2 I get the following message: "This applicaiton has failed to start because cygX11-6.dll was not found" I saw this in the folder cygwin-dlls, which is from the cygwin.zip. How can I get this problem to function properly? Thanks, Jason From gpmenon009 at GMAIL.COM Fri Nov 13 01:35:42 2009 From: gpmenon009 at GMAIL.COM (Gopal Menon) Date: Fri, 13 Nov 2009 12:05:42 +0530 Subject: Regridding in grads Message-ID: I am using the latest version of grads (grads 2.0) . I just wanted to know whether the regridding function is included in grads 2.0 version. If it is included can you just kindly enlighten me how to use it? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/1558d7f7/attachment.html From zmumba at YAHOO.COM Fri Nov 13 04:11:50 2009 From: zmumba at YAHOO.COM (zilore mumba) Date: Fri, 13 Nov 2009 01:11:50 -0800 Subject: writing grib2 to NetCDF Message-ID: Dear Grads users, Help sought if possible. I have data in GRIB2 format from ECMWF. Because of the double headers in the data (complex packing), wgrib is not able to decode it propoerly hence not possible to make a ctl with grib2ctl.pl. What I do is to decode the data with the ECMWF GRIB_API decoder and rewrite it in binary for grads with fortran. This works fine. I thought another alternative would be to convert the GRIB2 to NetCDF. I have checked the listserver but did not find anything. Is such a conversion possible? Thanks for assistance Zilore -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/905e1df2/attachment.html From diego.morelli at TRS.IT Fri Nov 13 05:44:34 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Fri, 13 Nov 2009 11:44:34 +0100 Subject: R: Meaning of descriptor file (*.ctl) variable names In-Reply-To: <4AFC2350.9030109@noaa.gov> Message-ID: Hello Wesley, Can I say that the rule is: If, about a certain variable relative to an isobaric level, it's available only one level, then the variable get the suffix +, otherwise it get the suffix "prs" ?? In the attachment there is a file in which there is 2 variables available on 2 levels, and they are declared of the kind "prs". Here bottom is its ctl file. dset /home/cyprus/grads/compiled_env/grads-2.0.a7.1/bin/cyprus.b index /home/cyprus/grads/compiled_env/grads-2.0.a7.1/bin/cyprus.b.idx undef 9.999E+20 title /home/cyprus/grads/compiled_env/grads-2.0.a7.1/bin/cyprus.b * produced by grib2ctl v0.9.12.5p45 dtype grib 11 options yrev ydef 37 linear -90.000000 2.5 xdef 37 linear 90.000000 2.500000 tdef 1 linear 00Z28apr2005 1mo * z has 2 levels, for prs zdef 2 levels 850 500 vars 4 HGT500mb 0 7,100,500 ** 500 mb Geopotential height [gpm] PRMSLsfc 0 2,1,0 ** surface Pressure reduced to MSL [Pa] UGRDprs 2 33,100,0 ** (profile) u wind [m/s] VGRDprs 2 34,100,0 ** (profile) v wind [m/s] ENDVARS -----Messaggio originale----- Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di Wesley Ebisuzaki Inviato: gioved? 12 novembre 2009 16.02 A: GRADSUSR at LIST.CINECA.IT Oggetto: Re: Meaning of descriptor file (*.ctl) variable names Diego, Sometimes a variable may be available as a vertical profile. Sometimes a variable may only be available on one or two levels. When a variable is available as a vertical profile on pressure surfaces, the suffix "prs" is used. If the variable is not available on a vertical profile, the suffix is the level descriptor. Wesley Ebisuzaki Diego Morelli wrote: > > When I use grib2ctl (v0.9.12.5p45) it issues a ctl file with some > variables having the suffix ?mb?. These variables are relative to an > isobaric level type (value 100 in the PDS grib section, octet number > 10), with a value expressed in hPa. > > I see that the variables with suffix prs are relative also to an > isobaric level type. > > My questions is to know what is the difference between the variable > with suffix mb and those with suffix prs. > > Here there is an example of a descriptor file: > > ---------------------------------------------------------------------------- ---------------------------------------------- > > > dset ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > index ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b.idx > > undef 9.999E+20 > > title LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b > > * produced by grib2ctl v0.9.12.5p45 > > dtype grib 255 > > options yrev > > ydef 66 linear 10.000000 1 > > xdef 126 linear -60.000000 1.000000 > > tdef 1 linear 12Z18jul2009 1mo > > * z has 6 levels, for prs > > zdef 6 levels > > 925 850 700 500 400 300 > > vars 2 > > * GPprs * 6 6,*100*,0 ** (profile) Geopotential [m^2/s^2] > > * VGRD925mb * 0 34,*100*,925 ** 925 mb v wind [m/s] > > ENDVARS > > ---------------------------------------------------------------------------- ---------------------------------------------- > > > Regards, > > Diego > -------------- next part -------------- A non-text attachment was scrubbed... Name: cyprus.b Type: application/octet-stream Size: 102824 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091113/072be088/attachment.obj From leonardo.silva at CPTEC.INPE.BR Fri Nov 13 06:20:51 2009 From: leonardo.silva at CPTEC.INPE.BR (Leonardo Diogo) Date: Fri, 13 Nov 2009 09:20:51 -0200 Subject: writing grib2 to NetCDF In-Reply-To: <380950.87978.qm@web57002.mail.re3.yahoo.com> Message-ID: Dear friend, You can try cdo (climate data operators) which convert .grib2 files to .nc and .ctl too. You can get it in http://www.mpimet.mpg.de/fileadmin/software/cdo/#Download. That program is useful to make some statistics calculus too. You can get a cdo reference card in http://www.mpimet.mpg.de/fileadmin/software/cdo/cdo_refcard.pdf. I hope so you have your asks solved. Regards Leonardo = = = = = = = = Quoting zilore mumba : > Dear Grads users, > Help sought if possible. > I have data in GRIB2 format from ECMWF. Because of the double > headers in the data (complex packing), wgrib is not able to decode > it propoerly hence not possible to make a ctl with grib2ctl.pl. > What I do is to decode the data with the ECMWF GRIB_API decoder and > rewrite it in binary for grads with fortran. This works fine. I > thought another alternative would be to convert the GRIB2 to NetCDF. > I have checked the listserver but did not find anything. > Is such a conversion possible? > Thanks for assistance > Zilore > > > > > From leonardo.silva at CPTEC.INPE.BR Fri Nov 13 06:56:50 2009 From: leonardo.silva at CPTEC.INPE.BR (Leonardo Diogo) Date: Fri, 13 Nov 2009 09:56:50 -0200 Subject: Singular Value Decomposition (SVD) Message-ID: Hi friends, I would like to know if someone have a Grads Script to calculate a SVD of two different fields. I'm trying to construct a Atlantic Meridional Mode index based on method used by Chiang and Vimont (2004) (http://www.esrl.noaa.gov/psd/data/timeseries/monthly/AMM/) but I don't have any script to do it here. Best regards Leonardo From zhuangsy at CMA.GOV.CN Fri Nov 13 07:39:13 2009 From: zhuangsy at CMA.GOV.CN (Zhuang Shiyu) Date: Fri, 13 Nov 2009 20:39:13 +0800 Subject: No subject Message-ID: Hi, Can Anybody provide high resolution land mask data lpoly over North sea/Baltic sea? The range could be from 5W-40E, 30S-75N. Thanks. Shiyu From arlindo.dasilva at GMAIL.COM Fri Nov 13 08:32:50 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 13 Nov 2009 08:32:50 -0500 Subject: No subject In-Reply-To: <20091113203913.APX61720@rays.cma.gov.cn> Message-ID: On Fri, Nov 13, 2009 at 7:39 AM, Zhuang Shiyu wrote: > Hi, > Can Anybody provide high resolution land mask data lpoly over North > sea/Baltic sea? The range could be from 5W-40E, 30S-75N. Thanks. > > Is the attached plot high enough resolution for your purpose? It was produced with the shapefile extension: open something set lon -5 40 set lat 30 75 set mpdraw off shp_polyf admin98 This requires the opengrads bundle. More info on the shape extension here: http://opengrads.org/doc/udxt/shape/ This page has a list of other shapefiles that may give you higher resolution. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/0fdb0450/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: baltic.png Type: image/png Size: 4272 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091113/0fdb0450/attachment.png From jma at COLA.IGES.ORG Fri Nov 13 08:40:46 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 13 Nov 2009 08:40:46 -0500 Subject: Grads:PDEF for tranverse Mercator (native grids) In-Reply-To: <20091112152732.POF58217@punts4.cc.uga.edu> Message-ID: Hi, Willis -- You should subscribe to the gradsusr list and post this request there -- that way you have 1800 other users who might be able to help you. I have no experience dealing with files on a transverse mercator projection, but I can tell you that you have two options with pdef: 1. Create a pdef file for use with the PDEF BILIN option. You need to be able to calculate the i,j values (in the native transverse mercator grid) of a given lat/lon pair (which are the coordinates of the destination grid). Then GrADS does bilinear interpolation from the four grid points surrounding the i,j values. 2. Create a pdef file for use with the PDEF GENERAL option to create your own mapping of interpolation values and weights to use. --Jennifer On Nov 12, 2009, at 3:27 PM, wrote: > > From: > Date: November 9, 2009 4:36:08 PM EST > To: jma at COLA.IGES.ORG > Subject: Grads:PDEF for tranverse Mercator (native grids) > > > Hi! Jennifer Adams > > My name is Willis Shem. I am a post-doctoral research associate at > the University of Georgia in Athens (USA) > > I have been trying to display (in a grads map) some model output > data which is pre-projected (mapped on a transverse mercator > projection). I am having trouble making up the right PDEF format to > interpolate the data to either rectilinear grids or any other > projection. I would greatly appreciate your help with this. Thanks > in advance. > > Dr. Willis Shem > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/90c992ca/attachment.html From arlindo.dasilva at GMAIL.COM Fri Nov 13 08:40:34 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 13 Nov 2009 08:40:34 -0500 Subject: Singular Value Decomposition (SVD) In-Reply-To: <20091113095650.fx0erfy08okck048@webmail2.cptec.inpe.br> Message-ID: On Fri, Nov 13, 2009 at 6:56 AM, Leonardo Diogo < leonardo.silva at cptec.inpe.br> wrote: > Hi friends, > > > I would like to know if someone have a Grads Script to calculate a SVD > of two different fields. I'm trying to construct a Atlantic Meridional > Mode index based on method used by Chiang and Vimont (2004) > (http://www.esrl.noaa.gov/psd/data/timeseries/monthly/AMM/) but I > don't have any script to do it here. > > If python is an option, you should be able to do this easily with pygrads: http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS The current EOF functionality in pygrads uses a SVD decomposition. Computing the SVD of 2 fields would be a trivial generalization. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/7dda4da2/attachment.html From arlindo.dasilva at GMAIL.COM Fri Nov 13 08:45:02 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 13 Nov 2009 08:45:02 -0500 Subject: Grads for Windows version 2 installation problems In-Reply-To: <20091113041643.344D4206CC@mx2.cineca.it> Message-ID: On Thu, Nov 12, 2009 at 11:15 PM, Jason Snyder wrote: > I am having some problems with installing and running GrADS version 2 for > windows. I downloading both the following zip files cygwin.zip > cygwin-dlls.zip > and unzipped them. What goes next? When I open Grads version 2 I get the > following message: > > "This applicaiton has failed to start because cygX11-6.dll was not found" > > I saw this in the folder cygwin-dlls, which is from the cygwin.zip. How > can I get this problem to function properly? > > You may find simpler installing the OpenGrADS automatic installer: http://opengrads.org/wiki/index.php?title=Installing_GrADS_v2.0_on_Microsoft_Windows You should be able to get going in less than 5 minutes. As a bonus, you get the opengrads extensions which you could ignore if you do not need them. -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/c0c113fb/attachment.html From arlindo.dasilva at GMAIL.COM Fri Nov 13 08:47:43 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 13 Nov 2009 08:47:43 -0500 Subject: Regridding in grads In-Reply-To: Message-ID: On Fri, Nov 13, 2009 at 1:35 AM, Gopal Menon wrote: > I am using the latest version of grads (grads 2.0) . I just wanted to know > whether the regridding function is included in grads 2.0 version. If it is > included can you just kindly enlighten me how to use it? The OpenGrADS Bundle distribution includes the re() function as an extension: http://opengrads.org/doc/udxt/re/ You can find more info on installing the opengrads bundle here: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/69b67f79/attachment.html From arlindo.dasilva at GMAIL.COM Fri Nov 13 08:50:27 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 13 Nov 2009 08:50:27 -0500 Subject: Regridding in grads In-Reply-To: <77fcd6b20911130547p1e491aecqbcbdfb2e0a2ab88b@mail.gmail.com> Message-ID: On Fri, Nov 13, 2009 at 8:47 AM, Arlindo da Silva wrote: > On Fri, Nov 13, 2009 at 1:35 AM, Gopal Menon wrote: > >> I am using the latest version of grads (grads 2.0) . I just wanted to know >> whether the regridding function is included in grads 2.0 version. If it is >> included can you just kindly enlighten me how to use it? > > > The OpenGrADS Bundle distribution includes the re() function as an > extension: > > http://opengrads.org/doc/udxt/re/ > > You can find more info on installing the opengrads bundle here: > > > http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle > > BTW, this recipe has a complete example of how to use re() http://cookbooks.opengrads.org/index.php?title=Recipe-019:_Comparing_Reanalyses_with_interpolation_from_MERRA_to_NCEP_Grid -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/1c704588/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Fri Nov 13 10:12:18 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Fri, 13 Nov 2009 10:12:18 -0500 Subject: R: Meaning of descriptor file (*.ctl) variable names In-Reply-To: <18BAEC28A3E9421582F8E78FA28461E9@trsspa.it> Message-ID: Diego, The rule that generates the variable suffix has changed over time and will change if I think it needs updating. Here is what happens (1) look for vertical coordinate (not layer) that has the most levels (grib2ctl >= 2, g2ctl >= 3) and make that the vertical coordinate. The vertical coordinate could be pressure levels, vertical height, sigma, potential temperature, etc. (There are options that affect the selection of the vertical coordinate) (2) variables that use a different vertical coordinate or only 1 level will have suffixes with their level information. (3) variables with > 1 level and using the selected vertical coordinate use prs for pressure level, something else for sigma, etc. Wesley Diego Morelli wrote: > Hello Wesley, > > Can I say that the rule is: > > If, about a certain variable relative to an isobaric level, it's available > only one level, then the variable get the suffix +, otherwise it > get the suffix "prs" ?? > > In the attachment there is a file in which there is 2 variables available on > 2 levels, and they are declared of the kind "prs". Here bottom is its ctl > file. > > dset /home/cyprus/grads/compiled_env/grads-2.0.a7.1/bin/cyprus.b > index /home/cyprus/grads/compiled_env/grads-2.0.a7.1/bin/cyprus.b.idx > undef 9.999E+20 > title /home/cyprus/grads/compiled_env/grads-2.0.a7.1/bin/cyprus.b > * produced by grib2ctl v0.9.12.5p45 > dtype grib 11 > options yrev > ydef 37 linear -90.000000 2.5 > xdef 37 linear 90.000000 2.500000 > tdef 1 linear 00Z28apr2005 1mo > * z has 2 levels, for prs > zdef 2 levels > 850 500 > vars 4 > HGT500mb 0 7,100,500 ** 500 mb Geopotential height [gpm] > PRMSLsfc 0 2,1,0 ** surface Pressure reduced to MSL [Pa] > UGRDprs 2 33,100,0 ** (profile) u wind [m/s] > VGRDprs 2 34,100,0 ** (profile) v wind [m/s] > ENDVARS > > -----Messaggio originale----- > Da: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] Per conto di > Wesley Ebisuzaki > Inviato: gioved? 12 novembre 2009 16.02 > A: GRADSUSR at LIST.CINECA.IT > Oggetto: Re: Meaning of descriptor file (*.ctl) variable names > > Diego, > > Sometimes a variable may be available as a vertical profile. Sometimes a > variable may only be available on > one or two levels. When a variable is available as a vertical profile on > pressure surfaces, the suffix "prs" is > used. If the variable is not available on a vertical profile, the suffix > is the level descriptor. > > Wesley Ebisuzaki > > > Diego Morelli wrote: > >> When I use grib2ctl (v0.9.12.5p45) it issues a ctl file with some >> variables having the suffix ?mb?. These variables are relative to an >> isobaric level type (value 100 in the PDS grib section, octet number >> 10), with a value expressed in hPa. >> >> I see that the variables with suffix prs are relative also to an >> isobaric level type. >> >> My questions is to know what is the difference between the variable >> with suffix mb and those with suffix prs. >> >> Here there is an example of a descriptor file: >> >> >> > ---------------------------------------------------------------------------- > ---------------------------------------------- > >> dset ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b >> >> index ^LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b.idx >> >> undef 9.999E+20 >> >> title LFPW00190127.20090718144212_P4320PT76BE_BPMG12.86093.b >> >> * produced by grib2ctl v0.9.12.5p45 >> >> dtype grib 255 >> >> options yrev >> >> ydef 66 linear 10.000000 1 >> >> xdef 126 linear -60.000000 1.000000 >> >> tdef 1 linear 12Z18jul2009 1mo >> >> * z has 6 levels, for prs >> >> zdef 6 levels >> >> 925 850 700 500 400 300 >> >> vars 2 >> >> * GPprs * 6 6,*100*,0 ** (profile) Geopotential [m^2/s^2] >> >> * VGRD925mb * 0 34,*100*,925 ** 925 mb v wind [m/s] >> >> ENDVARS >> >> >> > ---------------------------------------------------------------------------- > ---------------------------------------------- > >> Regards, >> >> Diego >> > > From heiner at MISU.SU.SE Fri Nov 13 10:26:20 2009 From: heiner at MISU.SU.SE (=?ISO-8859-1?Q?Heiner_K=F6rnich?=) Date: Fri, 13 Nov 2009 16:26:20 +0100 Subject: writing grib2 to NetCDF In-Reply-To: <380950.87978.qm@web57002.mail.re3.yahoo.com> Message-ID: Hi Zilore, on the MARS server at ECMWF you can convert the data directly to NetCDF. But you need access to the ECMWF computer for this. Then: mars << EOF retrieve, time=00:00:00/06:00:00/12:00:00/18:00:00, date=$iyear-$longmonth-01/to/$iyear-$longmonth-$lastday[$imonth], stream=oper, levtype=pl, expver=1, type=an, class=ei, param=130.128, levelist=1/2/3/5/7/10/20/30/50/70/100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000, grid = 1.0/1.0, target="output.grib" EOF mars -N <<@@ mars2netcdf, source = output.grib, target = $outname ignore = TYPE/STEP @@ Regards, Heiner On Fri, Nov 13, 2009 at 10:11 AM, zilore mumba wrote: > Dear Grads users, > Help sought if possible. > I have data in GRIB2 format from ECMWF. Because of the double headers in > the data (complex packing), wgrib is not able to decode it propoerly hence > not possible to make a ctl with grib2ctl.pl. > What I do is to decode the data with the ECMWF GRIB_API decoder and rewrite > it in binary for grads with fortran. This works fine. I thought another > alternative would be to convert the GRIB2 to NetCDF. > I have checked the listserver but did not find anything. > Is such a conversion possible? > Thanks for assistance > Zilore > > > -- Heiner K?rnich Dept. of Meteorology Tel: +46 8 164333 Stockholms University, SE-106 91 Stockholm, Sweden Email: heiner at misu.su.se www.misu.su.se/~heiner/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/d0ac2276/attachment.html From jma at COLA.IGES.ORG Fri Nov 13 10:42:00 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 13 Nov 2009 10:42:00 -0500 Subject: Fwd: Grads for Windows version 2 installation problems Message-ID: Begin forwarded message: > From: "Huddleston, John" > Date: November 13, 2009 10:35:59 AM EST > To: "jma at cola.iges.org" > Subject: FW: Grads for Windows version 2 installation problems > > Jennifer, this is one of two emails that the GrADS list did not send > out this morning. John > > ________________________________________ > From: Huddleston, John > Sent: Friday, November 13, 2009 7:27 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: RE: Grads for Windows version 2 installation problems > > Jason > > Arlindo's suggestion to use the installer is best if you are not > "systems" oriented with Windows. > > The binaries you are trying to use are based on the pure UNIX code; > so, there is no mounting and unmounting of a "C:\Cygwin" directory. > For production work on a windows system, these binaries are better > qualified. > > In order to use these, create a directory, much like GrADS > installation does automatically, and put that directory in your > PATH. See Start-Settings-Control Panel-System. Go to the Advanced > TAB, select Environmental Variable and edit the PATH to include the > new directory where you have deposited the .EXE and .DLL files. Open > a CMD window. You must have a XWIN server running locally. This > comes with the GrADS installation; however, if you use grads with > the -lbc options (production) no XWIN server is required and grads > will produce your images with the printim command. > > See http://views.cira.colostate.edu/nasa for thousands of satellite > images created with GrADS. An example control script is shown below > which creates the Aura OMNO2G.003 NO2 images. > > John Huddleston > > 'open no2g.ctl' > 'c' > 'set font 0' > 'set strsiz 0.12 0.12' > 'set display color white' > 'set gxout grfill' > 'set parea 0.5 9.5 0.1 8.5' > 'set csmooth on' > 'set cint 15' > 'set clevs 0.0e+15 1.0e+15 2.0e+15 3.0e+15 4.0e+15 5.0e+15 6.0e+15 > 7.0e+15 8.0e+15 9.0e+15.0e+15 11.0e+15 12.0e+15 13 > .0e+15 14.0e+15' > 'set ccols 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30' > 'set rgb 16 0 0 165' > 'set rgb 17 0 0 255' > 'set rgb 18 0 65 255' > 'set rgb 19 0 125 255' > 'set rgb 20 0 190 255' > 'set rgb 21 0 255 255' > 'set rgb 22 66 255 189' > 'set rgb 23 132 255 123' > 'set rgb 24 205 255 50' > 'set rgb 25 255 239 0' > 'set rgb 26 255 175 0' > 'set rgb 27 255 110 0' > 'set rgb 28 255 46 0' > 'set rgb 29 239 0 0' > 'set rgb 30 165 0 0' > 'set cmin 0.0e+15' > 'set cmax 14.0e+15' > 'set lon -180 180' > 'set grads off' > 'draw string 1.0 0.60 OMI-Aura_L2G- > OMNO2G_2006m1231_v003-2008m0105t001916' > 'draw string 8.0 0.60 CIRA/NASA' > 'd maskout(no2,no2-0.0001)' > 'draw title \ColumnAmountNO2_ColumnAmountNO2_20061231\' > 'cbarn2 .90 1 9.8 4.3' > 'printim ColumnAmountNO2_ColumnAmountNO2_20061231_World.gif gif x832 > y624' > 'quit' > ________________________________________ > From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of > Jason Snyder [jmssnyder at UCDAVIS.EDU] > Sent: Thursday, November 12, 2009 9:15 PM > To: GRADSUSR at LIST.CINECA.IT > Subject: Grads for Windows version 2 installation problems > > I am having some problems with installing and running GrADS version > 2 for > windows. I downloading both the following zip files cygwin.zip > cygwin-dlls.zip > and unzipped them. What goes next? When I open Grads version 2 I > get the > following message: > > "This applicaiton has failed to start because cygX11-6.dll was not > found" > > I saw this in the folder cygwin-dlls, which is from the cygwin.zip. > How > can I get this problem to function properly? > > Thanks, > > Jason -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/8da80ad0/attachment.html From willshem at UGA.EDU Fri Nov 13 12:05:50 2009 From: willshem at UGA.EDU (Willis Shem) Date: Fri, 13 Nov 2009 12:05:50 -0500 Subject: Transverse Mercator Projection Message-ID: Dear all I have been trying to display (in a grads map) some model output data which is pre-projected (mapped on a transverse mercator projection). I am having trouble making up the right PDEF format to interpolate the data to either rectilinear grids or any other projection. I would greatly appreciate your help with this. Thanks in advance. Willis From arlindo.dasilva at GMAIL.COM Fri Nov 13 13:27:55 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 13 Nov 2009 13:27:55 -0500 Subject: Grads for Windows version 2 installation problems In-Reply-To: <64B63BF9-4D0D-46F1-8477-488288ADD043@cola.iges.org> Message-ID: On Fri, Nov 13, 2009 at 10:42 AM, Jennifer Adams wrote: > > ________________________________________ > From: Huddleston, John > Sent: Friday, November 13, 2009 7:27 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: RE: Grads for Windows version 2 installation problems > > Jason > > Arlindo's suggestion to use the installer is best if you are not "systems" > oriented with Windows. > > The binaries you are trying to use are based on the pure UNIX code; so, > there is no mounting and unmounting of a "C:\Cygwin" directory. For > production work on a windows system, these binaries are better qualified. > > Well, this mounting/unmounting only takes place if there is no cygwin installed and it was introduced for a good reason. Without it you will have problems with the "!" shell-escape command when cygwin is not installed, and "/tmp" may not be found which may cause opendap to misbehave. Have you tested your binaries on a machine without a cygwin installation? Your point is well taken, for a production environment the superpack is a bit of an overkill, although I am not sure it has any major performance drawback. This is the reason why I also include a bin and gex tarballs for those users having a cygwin installation already. The superpack is intended for those who do not want to bother with it. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091113/b37a2eaf/attachment.html From liuzf406 at 126.COM Fri Nov 13 15:21:50 2009 From: liuzf406 at 126.COM (liuzf406) Date: Sat, 14 Nov 2009 04:21:50 +0800 Subject: how to define projection Message-ID: Hello everyone, I plot climate feilds using Grads, but i want to convert the projection to NAD_1983_Albers. How can i do this? Any help you can provide would be greatly appreciated, and thank you for your time. Best, Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091114/410ab6f5/attachment.html From axl419 at YAHOO.COM Sat Nov 14 01:59:52 2009 From: axl419 at YAHOO.COM (See Hai Ooi) Date: Fri, 13 Nov 2009 22:59:52 -0800 Subject: Hourly gridded satellite data set of TBB for the tropical region In-Reply-To: <77fcd6b20911131027w6321a379lb167483d9015b6d5@mail.gmail.com> Message-ID: Dear all, Does anyone know where to download the above-mentioned dataset at 0.25 x 0.25 deg resolution in netcdf format ? Regards. Ooi Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From h.meteo.shirazu at GMAIL.COM Sat Nov 14 14:46:00 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Sat, 14 Nov 2009 13:46:00 -0600 Subject: gridding data Message-ID: Hi all user I have a text data, (1500*1500 matrix) I want to gridd it and convert them to *.dat file I want do this with matlab or other program can nay one help me for this fortran program in this link? http://cookbooks.opengrads.org/index.php?title=Recipe-004:_Creating_GrADS_binary_gridded_files_using_FORTRAN have you a simple program to do this? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091114/cc957c1f/attachment.html From andy at F5DATA.COM Sat Nov 14 17:01:50 2009 From: andy at F5DATA.COM (Andrew Revering) Date: Sat, 14 Nov 2009 16:01:50 -0600 Subject: Nexrad Message-ID: GrADS users, I tried to do a search in the archives, but I keep getting an error message saying the server isn't on or something like that. I'm trying to use the Java Nexrad Exporter to export nexrad radar files into GrADS binary format http://lwf.ncdc.noaa.gov/oa/wct/batch.php Every time I do it, it fails saying something about not being able to determine the output format. Has anyone used this and if so, what am I doing wrong? From alessandro.raolil at CMCC.IT Mon Nov 16 06:38:50 2009 From: alessandro.raolil at CMCC.IT (Sandro Raolil) Date: Mon, 16 Nov 2009 12:38:50 +0100 Subject: McGraG version 1.1.0 based on OpenGrADS now available! Message-ID: Dear GrADS Users, I am happy to inform you that is now available McGraG version 1.1.0 based on OpenGrADS 2.0.a7.oga.3! McGraG is the new GUI, based on OpenGrADS, developed by CMCC to provide a more powerful and user-friendly access to GrADS functionalities. You can download software here: http://www.cmcc.it/data-models/software/mcgrag and read news section for further details Thanks in advance for your attention Regards Alessandro Raolil -- Ing. Alessandro Raolil Euromediterranean Center for Climate Changes - https://www.cmcc.it SPACI Consortium - www.spaci.it National Nanotechnology Laboratory (NNL/CNR-INFM) - www.nnl.it Via per Monteroni - 73100 Lecce (Italy) email: alessandro.raolil at unile.it From eliavs at GMAIL.COM Sun Nov 15 04:54:49 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Sun, 15 Nov 2009 11:54:49 +0200 Subject: eror notice Message-ID: Hallo grads users! i am using grads v2.0a7.oga.1 on an xp OS and i am running a script that works on other computers after the loop runs for three times i get an error notice can anyone help? thank you eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091115/c89f70f3/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: grads_eror.bmp Type: image/bmp Size: 1481086 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091115/c89f70f3/attachment.bmp From dgejaci at FURG.BR Sat Nov 14 17:42:42 2009 From: dgejaci at FURG.BR (Jaci Saraiva) Date: Sat, 14 Nov 2009 19:42:42 -0300 Subject: Sinalizar esta mensagem EXTREME STORM SURGES IN THE SOUTH OF BRAZIL: ATMOSPHERIC CONDITIONS AND SHORE EROSION In-Reply-To: <310538.87590.qm@web36203.mail.mud.yahoo.com> Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091114/64d5bca2/attachment.html From bak41 at STUDENT.CANTERBURY.AC.NZ Sat Nov 14 17:51:27 2009 From: bak41 at STUDENT.CANTERBURY.AC.NZ (Basit Khan) Date: Sun, 15 Nov 2009 11:51:27 +1300 Subject: Isotachs in GrADS Message-ID: Hi friends, I am new to GrADS. Just wondering does anybody know how to plot isotachs inGrADS. Cheers, -- --- Basit A. Khan PhD Candidate Centre for Atmospheric Research Department of Geography University of Canterbury Te Whare Wananga o Waitaha Private Bag 4800 Christchurch 8020, New Zealand Tel: (643) 364 2987 Ext. 3088 Fax: (643) 364 2907 bak41 at student.canterbury.ac.nz From dipakmath at GMAIL.COM Sun Nov 15 11:40:48 2009 From: dipakmath at GMAIL.COM (dipak sahu) Date: Sun, 15 Nov 2009 22:10:48 +0530 Subject: Windvectormap In-Reply-To: <6142b78e0911120416o6af88114k789e01a117067c02@mail.gmail.com> Message-ID: Dear Amjad Is it atan2(u,v).........or atan2(v,u).............. I hope it's atan2(v,u)........ regards dipak On Thu, Nov 12, 2009 at 5:46 PM, Muhammad Amjad wrote: > Dear Chris, > > Could you please check with the following formula: > wdir=atan2(u,v)/0.01745329 +180 > The size of wind represents the wind speed. So, I don't think the dispariy > among the vectors can be removed. > > Cheers, > Amjad. > > > > On 11/9/09, Chris Hayes wrote: >> >> dear group, >> >> I need to plot the wind directions for stations with equally sized arrows. >> >> My dataset contains the direction in degrees (0-360). >> >> I use the gxout=vector map which requires a u and a v vector component >> (i.e. the vertical and horizontal vector component). >> >> u >> | /winddir >> | / >> | / >> |/___ v >> >> >> I calculate u as -sin(winddir * pi/180) >> I calculate v as -cos(winddir * pi/180) >> >> resulting in the display-command ' -8*(sin(winddir * 0.0175)) ; >> -8*(cos(winddir * 0.0175)) ' >> (where 8 makes the size of the arrow, which usually represents windspeed >> but here is desired to be constant) >> >> >> The direction of the arrows looks fine. >> But some maps have only tiny arrows and some maps have only longtailed >> arrows. >> I cannot see a pattern. I have no mixed maps with tiny and large arrows. >> >> Should I change my formula, or the way I give the display command? >> >> thanks, >> Chris >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091115/b261de75/attachment.html From dasilva at ALUM.MIT.EDU Sun Nov 15 12:02:09 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Sun, 15 Nov 2009 12:02:09 -0500 Subject: Installing grads-2.0.a7.1 In-Reply-To: Message-ID: On Sun, Nov 15, 2009 at 4:06 AM, I Ketut Swardika Swardika < swardika at gmail.com> wrote: > Dear openGrADS user > > I trying to setup grads-2.0.a7.oga.3-bundle-x86_64-unknown-linux-gnu.tar.gz > on RHEL 4 x86_64bit. > After copy some share library from libs folder to gex folder, opengrads > would not start, just close without error. > Am I miss something?. I plan to setup tiny data center and publish is it > correct to use php interface is easy way, is there any example for it's > implementation?. Thank you. > > Please send questions like this to gradsusr. Do not write directly to me. For one, other people may have already experienced this problem and found a solution. Make sure you only copied to gex/ those .so that were missing. Do not copy the ones that you do not need. I'll need more detailed information about your system in order to debug this. Can you tell me which .so you copied? Can you send me the output of % uname -a % gcc --version % g++ --version % ldd Contents/Linux/Versions/2.0.a7.oga.3/x86_64/grads Anybody out there running grads-2.0.a7.oga.3 under RHEL 4 x86_64bit? Also, you can try the i686 linux binaries, they generally work under x86_64. You probably get slightly better performance with the x86_64 binaries, but the i686 binaries work quite well. How comfortable are you building software? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091115/4cde8bdb/attachment.html From arlindo.dasilva at GMAIL.COM Mon Nov 16 08:19:14 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 16 Nov 2009 08:19:14 -0500 Subject: eror notice In-Reply-To: <128fb9ed0911150154v7ffbf800v61e9498d68fe2164@mail.gmail.com> Message-ID: On Sun, Nov 15, 2009 at 4:54 AM, eliav schmulewitz wrote: > Hallo grads users! > i am using grads v2.0a7.oga.1 on an xp OS > and i am running a script that works on other computers > after the loop runs for three times i get an error notice > can anyone help? > Please upgraded to the latest 2.0.a7.oga.3; we have fixed bugs in 2.0.a7.oga.1. Also look a the trobleshootinh section in the Getting Started documet. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091116/2d66043b/attachment.html From dasilva at ALUM.MIT.EDU Mon Nov 16 10:11:25 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Mon, 16 Nov 2009 10:11:25 -0500 Subject: memory limit opengrads windows XP In-Reply-To: <47E99BCEDBF9334C96B6466807BD2981F931FF@scomp0039.wurnet.nl> Message-ID: On Mon, Nov 16, 2009 at 8:32 AM, Elbers, Jan wrote: > Dear Mr. Da Silva, > > Please send messages to the gradsusr list... > When defining large arrays i seem to run into a memory limitation of > Opengrads 2.0.a7.oga.3. > Could you please let me know if there is a limit on one individial array or > on all defined arrays together? > > I am using ECWMF re-analisis data for the northern hemispere resulting in > arrays of 181 x 720 x 488 grid cells (X x Y x T). At the point where it goes > wrong opengrads.exe has allocated about 1 Gb of memory on my PC which has 2 > Gb of RAM. > > One 3D array of this size consumes around 500Mb of memory as GrADS v2 uses double precision (8 bytes) to store each gridcell. Depending on your format, it could be caching some of the I/O, which results in even more memory usage. Your may stretching the limits of your hardware. Now, GrADS v1.x uses 4 bytes to store each grid cell resulting in about half the memory usage of GrADS v2. Unless you need GrADS v2 specific features, the Win32 Superpack v1.9-rc1 is probably the best option for dealing with such large arrays on your hardware: https://sourceforge.net/projects/opengrads/files/grads1-windows/1.9.0-2/ (I just realized that we never released v1.10.r2.oga for Windows...) Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091116/22096950/attachment.html From zmumba at YAHOO.COM Mon Nov 16 10:16:24 2009 From: zmumba at YAHOO.COM (zilore mumba) Date: Mon, 16 Nov 2009 07:16:24 -0800 Subject: writing NetCDF from GRIB2 Message-ID: Thanks Leonardo and Heiner for the information. I am in touch with ECMWF and am sure they will assist me. I also downloaded the CDO software, but since it apparently works on UNIX I still have to see how to use it. Incidentally I found the NCL software has an ncl_convert2nc tool which also does the job, but the explanation of the syntax is not very clear in their documentation. When I convert, when I display winds the chart does not change whether I change time or level. Thanks very much, eventually I will be there. Zilore -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091116/01c5845d/attachment.html From jma at COLA.IGES.ORG Mon Nov 16 10:27:00 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Mon, 16 Nov 2009 10:27:00 -0500 Subject: writing grib2 to NetCDF In-Reply-To: <380950.87978.qm@web57002.mail.re3.yahoo.com> Message-ID: Dear Zilore -- wgrib and grib2ctl are not designed for use with GRIB2. Try wgrib2 and g2ctl instead. Alternatively, you can use the output from grib2scan (a utility in the GrADS distribution) that will tell you the grib2 codes that are required for a GrADS descriptor file. If the data are on a thinned grid, you'll definitely need g2ctl to create the pdef file for you. You should be able to read this file with GrADS in its native format. --Jennifer On Nov 13, 2009, at 4:11 AM, zilore mumba wrote: > Dear Grads users, > Help sought if possible. > I have data in GRIB2 format from ECMWF. Because of the double > headers in the data (complex packing), wgrib is not able to decode > it propoerly hence not possible to make a ctl with grib2ctl.pl. > What I do is to decode the data with the ECMWF GRIB_API decoder and > rewrite it in binary for grads with fortran. This works fine. I > thought another alternative would be to convert the GRIB2 to NetCDF. > I have checked the listserver but did not find anything. > Is such a conversion possible? > Thanks for assistance > Zilore > > -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091116/a4041719/attachment.html From jdduda at IASTATE.EDU Mon Nov 16 11:12:20 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Mon, 16 Nov 2009 10:12:20 -0600 Subject: Isotachs in GrADS In-Reply-To: <4AFF346F.3000002@student.canterbury.ac.nz> Message-ID: If you have u and v wind components in your binary files, then all you need to do is type "d mag(u,v)" (assuming u and v are the names of your zonal and meridional wind components). Make sure gxout is set to contour or shaded. You can simply plot isotachs for just one or the other of the wind components by just typing in "d u" or "d v" also. Hope this helps. Jeff Duda On Sat, Nov 14, 2009 at 4:51 PM, Basit Khan wrote: > Hi friends, > I am new to GrADS. Just wondering does anybody know how to plot isotachs > inGrADS. > Cheers, > > -- > --- > Basit A. Khan > PhD Candidate > Centre for Atmospheric Research > Department of Geography > University of Canterbury Te Whare Wananga o Waitaha Private Bag 4800 > Christchurch 8020, New Zealand > Tel: (643) 364 2987 Ext. 3088 > Fax: (643) 364 2907 > bak41 at student.canterbury.ac.nz > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091116/64440847/attachment.html From leonardo.silva at CPTEC.INPE.BR Mon Nov 16 11:59:11 2009 From: leonardo.silva at CPTEC.INPE.BR (Leonardo Diogo) Date: Mon, 16 Nov 2009 14:59:11 -0200 Subject: writing NetCDF from GRIB2 In-Reply-To: <519232.48014.qm@web57001.mail.re3.yahoo.com> Message-ID: Zilore You're welcome. If you need help in installing the cdo in a Linux platform I can help you. Is not so difficult to do that. Leonardo = = = = = = = = = = Quoting zilore mumba : > Thanks Leonardo and Heiner for the information. I am in touch with > ECMWF and am sure they will assist me. I also downloaded the CDO > software, but since it apparently works on UNIX I still have to see > how to use it. > Incidentally I found the NCL software has an ncl_convert2nc tool > which also does the job, but the explanation of the syntax is not > very clear in their documentation. When I convert, when I display > winds the chart does not change whether I change time or level. > Thanks very much, eventually I will be there. > Zilore > > > > > From antoyc at YAHOO.COM Tue Nov 17 03:09:30 2009 From: antoyc at YAHOO.COM (Antoy Chang) Date: Tue, 17 Nov 2009 00:09:30 -0800 Subject: my script error Message-ID: Dear All, Can someone here help me this script error, my script is as below : 'd wdr' wind_dirn.incr=subwrd result,4) if wind_dirn.incr=9.999e+20 wind_dirn.incr="undefined" else 'define wind_dirn.incr = math_nint(wind_dirn.incr)' endif * * *determine the resultant wind for three output times pi = 3.1415926 d2r = pi/180 r2d = 1/d2r fmt = '%-6.4f' wamv=cos(0.0174532*wdr)*w10 -----> Line 454 wamu=sin(0.0174532*wdr)*w10 'd sum(wamu,t= 'y',t= 'y+2')' udirs=sublin(result,2) udir=subwrd(udirs,4)/3 ?The error message : ? DEFINE error: Name too long; missing '=' Non numeric args to numeric operation Error occurred processing function arguments ????? Error occurred on line 454 ????? In file E\KC\WORK\Adhoc_~1\Langkawi.gs ga-> ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/bf195039/attachment.html From zmumba at YAHOO.COM Tue Nov 17 06:22:02 2009 From: zmumba at YAHOO.COM (zilore mumba) Date: Tue, 17 Nov 2009 03:22:02 -0800 Subject: writing grib2 to NetCDF In-Reply-To: <91BE0A4F-60AC-444D-BCCB-773DA8F10739@cola.iges.org> Message-ID: Thank you Jennifer for the precision. In fact the data is actually in Grib1 because WGRIB2 does not work on it but wgrib does, though with an error due to double headers. --- On Mon, 11/16/09, Jennifer Adams wrote: From: Jennifer Adams Subject: Re: writing grib2 to NetCDF To: GRADSUSR at LIST.CINECA.IT Date: Monday, November 16, 2009, 5:27 PM Dear Zilore --?wgrib and grib2ctl are not designed for use with GRIB2. Try wgrib2 and g2ctl instead. Alternatively, you can use the output from grib2scan (a utility in the GrADS distribution) that will tell you the grib2 codes that are required for a GrADS descriptor file. If the data are on a thinned grid, you'll definitely need g2ctl to create the pdef file for you. You should be able to read this file with GrADS in its native format.?--Jennifer On Nov 13, 2009, at 4:11 AM, zilore mumba wrote: Dear Grads users, Help sought if possible. I have data in GRIB2 format from ECMWF. Because of the double headers in the data (complex packing), wgrib is not able to decode it propoerly hence not possible to make a ctl with grib2ctl.pl. What I do is to decode the data with the ECMWF GRIB_API decoder and rewrite it in binary for grads with fortran. This works fine. I thought another alternative would be to convert the GRIB2 to NetCDF. I have checked the listserver but did not find anything. Is such a conversion possible? Thanks for assistance Zilore --Jennifer M. AdamsIGES/COLA4041 Powder Mill Road, Suite 302Calverton, MD 20705jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/2d224717/attachment.html From sushantpuranik at GMAIL.COM Tue Nov 17 06:53:28 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Tue, 17 Nov 2009 17:23:28 +0530 Subject: How to make plot of maximum wind Message-ID: Hello I wants to make plot of maximum wind with the help of ECMWF data. Is there anyone who knows how to make such plots? -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/15c4bce6/attachment.html From jmssnyder at UCDAVIS.EDU Tue Nov 17 15:31:44 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Tue, 17 Nov 2009 21:31:44 +0100 Subject: Making Trajectories with data composites Message-ID: I have a *.nc data set that is a composite of wind data based on certain phases of the Madden Julian Oscillation and I was interesting in looking at the backwards trajectories of air parcels coming from Lake Tahoe in such a scenario. I have been trying to work with the script traj.gs, but GrADS said that TDEF is undefined. How do I fix this and make a trajectory? Thanks, Jason From bcodina at UB.EDU Tue Nov 17 16:45:13 2009 From: bcodina at UB.EDU (Bernat Codina) Date: Tue, 17 Nov 2009 22:45:13 +0100 Subject: Making Trajectories with data composites In-Reply-To: <20091117203305.2D7E320188@mx2.cineca.it> Message-ID: 2009/11/17 Jason Snyder : > I have a *.nc data set that is a composite of wind data based on certain > phases of the Madden Julian Oscillation and I was interesting in looking at > the backwards trajectories of air parcels coming from Lake Tahoe in such a > scenario. ? I have been trying to work with the script traj.gs, but GrADS > said that TDEF is undefined. ? How do I fix this and make a trajectory? Data needs to be arranged in time steps, otherwise there is no way to calculate trajectories. Therefore, a TDEF field has to be defined in your ctl file. Once you have fixed this, set the variable time to the instant at which you want to compute the backwards trajectory (e.g. SET T 27), run "traj.gs lon_ini lat_ini" and you'll get the path of the parcel that was at point (lon_ini, lat_ini) at time t=27, defined as a set of points from t=27 to t=1. Bernat Codina Dept. d'Astronomia i Meteorologia Universitat de Barcelona From luis.blacutt at GMAIL.COM Tue Nov 17 17:07:28 2009 From: luis.blacutt at GMAIL.COM (luis blacutt) Date: Tue, 17 Nov 2009 18:07:28 -0400 Subject: error in xdef ctl file Message-ID: Dear Grads users I'm doing my first ctl file, it will have two variables, so far I have the following commands: dset /home/lucho/Desktop/GlueNC/bolbia.pag%x1%mc.%.nc options template undef 9.999E+20 title baseline 60-90 *produced by LFA dtype netcdf options yrev ydef 82 linear -33.640000 2.0000 xdef 97 linear -84.120000 -41.880000 tdef 1 linear 00Z01jul1961 1mo zdef 1 linear 1 1 vars 2 total_precipita 0 216,1,0 ** temperature_at_ 0 216,1,0 ** ENDVARS When I try to run it, it gives me the following error message Scanning description file: baseline.ctl Open Error: Missing or invalid dimension increment value --> The invalid description file record is: --> xdef 97 linear -84.120000 -41.880000 The data file was not opened. MyI checked by creating a grib file and those are the right numbers, the domain is for Southamerica. What am I missing? Regards Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/94648e4c/attachment.html From klevey at CUSTOMWEATHER.COM Tue Nov 17 17:27:53 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Tue, 17 Nov 2009 14:27:53 -0800 Subject: error in xdef ctl file In-Reply-To: <5825ce3f0911171407h4c22c886ybc8cb020c4682ab8@mail.gmail.com> Message-ID: Luis, the 5th argument is the data resolution, i.e. the incremental value, so if your x grid is 2 degrees, then your line should look like this > xdef 97 linear -84.120000 2.00 Your y increment is set to 2 degrees, so I am assuming your data resolution is 2x2 degrees. Here is the documentation: XDEF xnum mapping back to top This entry defines the grid point values for the X dimension, or longitude. The first argument, xnum, specifies the number of grid points in the X direction. xnum must be an integer >= 1. mapping defines the method by which longitudes are assigned to X grid points. There are two options for mapping: LINEAR Linear mapping LEVELS Longitudes specified individually The LINEAR mapping method requires two additional arguments: start and increment. start is a floating point value that indicates the longitude at grid point X=1. Negative values indicate western longitudes. increment is the spacing between grid point values, given as a positive floating point value. The LEVELS mapping method requires one additional argument, value-list, which explicitly specifies the longitude value for each grid point. value-list should contain xnum floating point values. It may continue into the next record in the descriptor file, but note that records may not have more than 255 characters. There must be at least 2 levels in value-list; otherwise use the LINEAR method. Here are some examples: XDEF 144 LINEAR 0.0 2.5 XDEF 72 LINEAR 0.0 5.0 XDEF 12 LEVELS 0 30 60 90 120 150 180 210 240 270 300 330 XDEF 12 LEVELS 15 45 75 105 135 165 195 225 255 285 315 345 Regards, Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) Director of Meteorological Operations CustomWeather, Inc. San Francisco, California, USA "Taking the World by Storm!" http://www.customweather.com http://www.myforecast.com http://www.1stweather.com cell: 415-794-0411 work: 415-777-3566 email: klevey at customweather.com On Nov 17, 2009, at 11/17/09 - 2:07 PM, luis blacutt wrote: > Dear Grads users > I'm doing my first ctl file, it will have two variables, so far I have the following commands: > > dset /home/lucho/Desktop/GlueNC/bolbia.pag%x1%mc.%.nc > options template > undef 9.999E+20 > title baseline 60-90 > *produced by LFA > dtype netcdf > options yrev > ydef 82 linear -33.640000 2.0000 > xdef 97 linear -84.120000 -41.880000 > tdef 1 linear 00Z01jul1961 1mo > zdef 1 linear 1 1 > vars 2 > total_precipita 0 216,1,0 ** > temperature_at_ 0 216,1,0 ** > ENDVARS > > When I try to run it, it gives me the following error message > > Scanning description file: baseline.ctl > Open Error: Missing or invalid dimension increment value > --> The invalid description file record is: > --> xdef 97 linear -84.120000 -41.880000 > The data file was not opened. > > MyI checked by creating a grib file and those are the right numbers, the domain is for Southamerica. What am I missing? > Regards > Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/17b8717d/attachment.html From antoyc at YAHOO.COM Tue Nov 17 22:11:17 2009 From: antoyc at YAHOO.COM (Antoy Chang) Date: Tue, 17 Nov 2009 19:11:17 -0800 Subject: my script error Message-ID: Dear Jeff, ? I manage to solve the error but another error is encountered : ? in my script ; ? 'd ave(wht,t='y',t='y+2')'????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? sigwa=sublin(result,2)??? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? sig_waves=subwrd(sigwa,4)??? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? if sig_waves=9.999e+20??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? SIG.incr="undefined"????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? else????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? fmt = '%4.1f'???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? *SIG.incr=math_format(fmt,sig_waves) SIG.incr=math_nint(sig_waves*10.0)? --------> line 543 if SIG.incr<3 SIG.incr=3 endif? SIG.incr=math_format(fmt,SIG.incr/10) endif???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? SIG=SIG%","%SIG.incr??? ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 'd ave(mpr,t='y',t='y+2')' wavper=sublin(result,2)?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? wave_per.incr=subwrd(wavper,4)??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? if wave_per.incr=9.999e+20??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? PER.incr="undefined"????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? else????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? *???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? PER.incr = math_nint(wave_per.incr) endif???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? PER=PER%","%PER.incr??????? ? ? ? with same?error message as previous one. ? Thank you very much. Best Regards, Antoy????? --- On Wed, 11/18/09, Jeffrey Duda wrote: From: Jeffrey Duda Subject: Re: my script error To: antoyc at yahoo.com Date: Wednesday, November 18, 2009, 12:25 AM Try putting line 454 and the one after it in single quotes.? Since you're using these variables in a display command, they need to be defined outside the script. Jeff Duda On Tue, Nov 17, 2009 at 2:09 AM, Antoy Chang wrote: Dear All, Can someone here help me this script error, my script is as below : 'd wdr' wind_dirn.incr=subwrd result,4) if wind_dirn.incr=9.999e+20 wind_dirn.incr="undefined" else 'define wind_dirn.incr = math_nint(wind_dirn.incr)' endif * * *determine the resultant wind for three output times pi = 3.1415926 d2r = pi/180 r2d = 1/d2r fmt = '%-6.4f' wamv=cos(0.0174532*wdr)*w10 -----> Line 454 wamu=sin(0.0174532*wdr)*w10 'd sum(wamu,t= 'y',t= 'y+2')' udirs=sublin(result,2) udir=subwrd(udirs,4)/3 ?The error message : ? DEFINE error: Name too long; missing '=' Non numeric args to numeric operation Error occurred processing function arguments ????? Error occurred on line 454 ????? In file E\KC\WORK\Adhoc_~1\Langkawi.gs ga-> ? -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/6ac3d4c1/attachment.html From jdduda at IASTATE.EDU Tue Nov 17 22:40:21 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Tue, 17 Nov 2009 21:40:21 -0600 Subject: my script error In-Reply-To: <232731.48362.qm@web33108.mail.mud.yahoo.com> Message-ID: Antoy, In your bold line (543), the variable "sig_waves" appears to have been obtained using the subwrd statement from a line of text output from another command. Thus, the variable sig_waves is being stored as a string (character/text) and not a number. To get around this, simply put sig_waves in single quotes in line 543. See if that works. Note also that if you do this anywhere else in the script, you'll need to surround those variables with single quotes as well to avoid this same problem. Jeff On Tue, Nov 17, 2009 at 9:11 PM, Antoy Chang wrote: > Dear Jeff, > > I manage to solve the error but another error is encountered : > > in my script ; > > 'd > ave(wht,t='y',t='y+2')' > > > > > > sigwa=sublin(result,2) > > > sig_waves=subwrd(sigwa,4) > > > if > sig_waves=9.999e+20 > > SIG.incr="undefined" > > else > > fmt = > '%4.1f' > > *SIG.incr=math_format(fmt,sig_waves) > *SIG.incr=math_nint(sig_waves*10.0) --------> line 543 > * > if SIG.incr<3 > SIG.incr=3 > endif > SIG.incr=math_format(fmt,SIG.incr/10) > endif > > SIG=SIG%","%SIG.incr > > > > 'd ave(mpr,t='y',t='y+2')' > > wavper=sublin(result,2) > > wave_per.incr=subwrd(wavper,4) > > if > wave_per.incr=9.999e+20 > > PER.incr="undefined" > > else > > * > > PER.incr = math_nint(wave_per.incr) > endif > > PER=PER%","%PER.incr > > > > with same error message as previous one. > > Thank you very much. > Best Regards, > Antoy > > --- On Wed, 11/18/09, Jeffrey Duda wrote: > > > From: Jeffrey Duda > Subject: Re: my script error > To: antoyc at yahoo.com > Date: Wednesday, November 18, 2009, 12:25 AM > > > > Try putting line 454 and the one after it in single quotes. Since you're > using these variables in a display command, they need to be defined outside > the script. > > Jeff Duda > > > On Tue, Nov 17, 2009 at 2:09 AM, Antoy Chang wrote: > > > > > > > Dear All, > Can someone here help me this script error, my script is as below : > > 'd wdr' > wind_dirn.incr=subwrd result,4) > if wind_dirn.incr=9.999e+20 > wind_dirn.incr="undefined" > else > 'define wind_dirn.incr = math_nint(wind_dirn.incr)' > endif > * > > * > *determine the resultant wind for three output times > pi = 3.1415926 > d2r = pi/180 > r2d = 1/d2r > fmt = '%-6.4f' > > wamv=cos(0.0174532*wdr)*w10 -----> Line 454 > wamu=sin(0.0174532*wdr)*w10 > > 'd sum(wamu,t= 'y',t= 'y+2')' > udirs=sublin(result,2) > udir=subwrd(udirs,4)/3 > > The error message : > > DEFINE error: Name too long; missing '=' > Non numeric args to numeric operation > Error occurred processing function arguments > Error occurred on line 454 > In file E\KC\WORK\Adhoc_~1\Langkawi.gs > ga-> > > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda > > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/37961cfb/attachment.html From klevey at CUSTOMWEATHER.COM Tue Nov 17 22:52:20 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Tue, 17 Nov 2009 19:52:20 -0800 Subject: NETCDF descriptor file problem: gadsdf: SDF file does not have any non-coordinate variables. Message-ID: TUE 17NOV09: 1945PST I am having problems opening trying to open a netcdf file of elevation data created by GMT. I am getting an error I've never seen before and don't understand. The output from ncdump -h is: netcdf topo2 { dimensions: lat = 101 ; lon = 151 ; variables: double lat(lat) ; lat:long_name = "latitude" ; lat:units = "degrees_north" ; lat:actual_range = 36.9, 37. ; double lon(lon) ; lon:long_name = "longitude" ; lon:units = "degrees_north" ; lon:actual_range = -120.18, -120.03 ; float elevation(lat, lon) ; elevation:long_name = "elevation" ; elevation:units = "meters" ; elevation:_FillValue = -999.f ; elevation:actual_range = 57.8879890441895, 96.9689636230469 ; // global attributes: :Conventions = "COARDS/CF-1.0" ; :title = "../grids/madera/mapdata/topo/topo.grd" ; :history = "grdsample -R-120.18/-120.03/36.90/37 -I0.06m ../grids/DATA/tmp/madera_topo250.grd -G../grids/madera/mapdata/topo/topo.grd" ; :GMT_version = "4.5.0 [64-bit]" ; } My CTL file is as follows: DSET /prod/custom/Input/modelplots/GRADS/reference/topo2.grd TITLE This is a sample USL grid box for Central California UNDEF -9999 XDEF lon 151 LINEAR -120.18 0.001 YDEF lat 101 LINEAR 36.9 0.001 VARS 3 alt=>elevation 1 99 Altitude in meters lon=>lon 1 99 longitude lat=>lat 1 99 Latitude ENDVARS However, here is the output I get when opening the CTL file (GRADS Version 2.0.a7.oga.2) ga-> xdfopen usl_topo.ctl Scanning Descriptor File: usl_topo.ctl SDF file has no discernable time coordinate -- using default values. gadsdf: SDF file does not have any non-coordinate variables. SDF Descriptor file usl_topo.ctl was not successfully opened & parsed. Obviously I am doing something wrong here. I've had success before opening up WRF netcdf data files using this method, but if anyone has any suggestions here, I'd love to hear from you. Thanks. Regards, Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) Director of Meteorological Operations CustomWeather, Inc. San Francisco, California, USA "Taking the World by Storm!" http://www.customweather.com http://www.myforecast.com http://www.1stweather.com cell: 415-794-0411 work: 415-777-3566 email: klevey at customweather.com From arlindo.dasilva at GMAIL.COM Tue Nov 17 23:49:09 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 17 Nov 2009 23:49:09 -0500 Subject: NETCDF descriptor file problem: gadsdf: SDF file does not have any non-coordinate variables. In-Reply-To: <5D2DB2E2-6753-4DF1-8B67-A01DE868F418@customweather.com> Message-ID: On Tue, Nov 17, 2009 at 10:52 PM, Kevin M Levey wrote: > TUE 17NOV09: 1945PST > > I am having problems opening trying to open a netcdf file of elevation data > created by GMT. I am getting an error I've never seen before and don't > understand. > > The output from ncdump -h is: > > netcdf topo2 { > dimensions: > lat = 101 ; > lon = 151 ; > variables: > double lat(lat) ; > lat:long_name = "latitude" ; > lat:units = "degrees_north" ; > lat:actual_range = 36.9, 37. ; > double lon(lon) ; > lon:long_name = "longitude" ; > lon:units = "degrees_north" ; > lon:actual_range = -120.18, -120.03 ; > float elevation(lat, lon) ; > elevation:long_name = "elevation" ; > elevation:units = "meters" ; > elevation:_FillValue = -999.f ; > elevation:actual_range = 57.8879890441895, 96.9689636230469 > ; > > // global attributes: > :Conventions = "COARDS/CF-1.0" ; > :title = "../grids/madera/mapdata/topo/topo.grd" ; > :history = "grdsample -R-120.18/-120.03/36.90/37 -I0.06m > ../grids/DATA/tmp/madera_topo250.grd > -G../grids/madera/mapdata/topo/topo.grd" ; > :GMT_version = "4.5.0 [64-bit]" ; > } > > > My CTL file is as follows: > > DSET /prod/custom/Input/modelplots/GRADS/reference/topo2.grd > TITLE This is a sample USL grid box for Central California > UNDEF -9999 > XDEF lon 151 LINEAR -120.18 0.001 > YDEF lat 101 LINEAR 36.9 0.001 > VARS 3 > alt=>elevation 1 99 Altitude in meters > lon=>lon 1 99 longitude > lat=>lat 1 99 Latitude > ENDVARS > > Try eliminating lat/lon from the variable list; these are 1D coordinate variables: VARS 1 alt=>elevation 1 99 Altitude in meters ENDVARS Better yet, have you tried opening this netcdf file directly with "sdfopen"? ga-> sdfopen /prod/custom/Input/modelplots/GRADS/reference/topo2.grd Arlindo > However, here is the output I get when opening the CTL file (GRADS Version > 2.0.a7.oga.2) > > ga-> xdfopen usl_topo.ctl > Scanning Descriptor File: usl_topo.ctl > SDF file has no discernable time coordinate -- using default values. > gadsdf: SDF file does not have any non-coordinate variables. > SDF Descriptor file usl_topo.ctl was not successfully opened & parsed. > > Obviously I am doing something wrong here. I've had success before opening > up WRF netcdf data files using this method, but if anyone has any > suggestions here, I'd love to hear from you. > > Thanks. > > Regards, > > Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape > Town) > Director of Meteorological Operations > CustomWeather, Inc. > San Francisco, California, USA > > "Taking the World by Storm!" > > http://www.customweather.com > http://www.myforecast.com > http://www.1stweather.com > > cell: 415-794-0411 > work: 415-777-3566 > email: klevey at customweather.com > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/923ca401/attachment.html From antoyc at YAHOO.COM Wed Nov 18 01:16:19 2009 From: antoyc at YAHOO.COM (Antoy Chang) Date: Tue, 17 Nov 2009 22:16:19 -0800 Subject: my script error In-Reply-To: Message-ID: Thank you very much Jeff. Antoy. --- On Wed, 11/18/09, Jeffrey Duda wrote: From: Jeffrey Duda Subject: Re: my script error To: GRADSUSR at LIST.CINECA.IT Date: Wednesday, November 18, 2009, 11:40 AM Antoy, In your bold line (543), the variable "sig_waves" appears to have been obtained using the subwrd statement from a line of text output from another command. Thus, the variable sig_waves is being stored as a string (character/text) and not a number. To get around this, simply put sig_waves in single quotes in line 543. See if that works. Note also that if you do this anywhere else in the script, you'll need to surround those variables with single quotes as well to avoid this same problem. Jeff On Tue, Nov 17, 2009 at 9:11 PM, Antoy Chang wrote: Dear Jeff, I manage to solve the error but another error is encountered : in my script ; 'd ave(wht,t='y',t='y+2')' sigwa=sublin(result,2) sig_waves=subwrd(sigwa,4) if sig_waves=9.999e+20 SIG.incr="undefined" else fmt = '%4.1f' *SIG.incr=math_format(fmt,sig_waves) SIG.incr=math_nint(sig_waves*10.0) --------> line 543 if SIG.incr<3 SIG.incr=3 endif SIG.incr=math_format(fmt,SIG.incr/10) endif SIG=SIG%","%SIG.incr 'd ave(mpr,t='y',t='y+2')' wavper=sublin(result,2) wave_per.incr=subwrd(wavper,4) if wave_per.incr=9.999e+20 PER.incr="undefined" else * PER.incr = math_nint(wave_per.incr) endif PER=PER%","%PER.incr with same error message as previous one. Thank you very much. Best Regards, Antoy --- On Wed, 11/18/09, Jeffrey Duda wrote: From: Jeffrey Duda Subject: Re: my script error To: antoyc at yahoo.com Date: Wednesday, November 18, 2009, 12:25 AM Try putting line 454 and the one after it in single quotes. Since you're using these variables in a display command, they need to be defined outside the script. Jeff Duda On Tue, Nov 17, 2009 at 2:09 AM, Antoy Chang wrote: Dear All, Can someone here help me this script error, my script is as below : 'd wdr' wind_dirn.incr=subwrd result,4) if wind_dirn.incr=9.999e+20 wind_dirn.incr="undefined" else 'define wind_dirn.incr = math_nint(wind_dirn.incr)' endif * * *determine the resultant wind for three output times pi = 3.1415926 d2r = pi/180 r2d = 1/d2r fmt = '%-6.4f' wamv=cos(0.0174532*wdr)*w10 -----> Line 454 wamu=sin(0.0174532*wdr)*w10 'd sum(wamu,t= 'y',t= 'y+2')' udirs=sublin(result,2) udir=subwrd(udirs,4)/3 The error message : DEFINE error: Name too long; missing '=' Non numeric args to numeric operation Error occurred processing function arguments Error occurred on line 454 In file E\KC\WORK\Adhoc_~1\Langkawi.gs ga-> -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091117/e803b518/attachment.html From jmssnyder at UCDAVIS.EDU Wed Nov 18 01:42:15 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Wed, 18 Nov 2009 07:42:15 +0100 Subject: converting data to *.ctl format for use with traj.gs Message-ID: I have a NetCDF data set that is a composite of wind data based on certain phases of the Madden Julian Oscillation and I was interested in looking at the backwards trajectories of air parcels coming into Lake Tahoe in such a scenario. I have been trying to work with the script traj.gs, but GrADS said that TDEF is undefined. I was then told that I need to use a .ctl file, but how do I convert data in NetCDF format to that that can be used in a .ctl file which I would need to run the script traj.gs Thanks, Jason From amjadozi at GMAIL.COM Wed Nov 18 02:48:23 2009 From: amjadozi at GMAIL.COM (Muhammad Amjad) Date: Wed, 18 Nov 2009 12:48:23 +0500 Subject: Windvectormap In-Reply-To: <8562142e0911150840s5500d4e9lc7820e0cd039e967@mail.gmail.com> Message-ID: Dear dipak, I think you are right............ Amjad. On Sun, Nov 15, 2009 at 9:40 PM, dipak sahu wrote: > Dear Amjad > Is it atan2(u,v).........or atan2(v,u).............. > I hope it's atan2(v,u)........ > > regards > dipak > > On Thu, Nov 12, 2009 at 5:46 PM, Muhammad Amjad wrote: > >> Dear Chris, >> >> Could you please check with the following formula: >> wdir=atan2(u,v)/0.01745329 +180 >> The size of wind represents the wind speed. So, I don't think the dispariy >> among the vectors can be removed. >> >> Cheers, >> Amjad. >> >> >> >> On 11/9/09, Chris Hayes wrote: >>> >>> dear group, >>> >>> I need to plot the wind directions for stations with equally sized >>> arrows. >>> >>> My dataset contains the direction in degrees (0-360). >>> >>> I use the gxout=vector map which requires a u and a v vector component >>> (i.e. the vertical and horizontal vector component). >>> >>> u >>> | /winddir >>> | / >>> | / >>> |/___ v >>> >>> >>> I calculate u as -sin(winddir * pi/180) >>> I calculate v as -cos(winddir * pi/180) >>> >>> resulting in the display-command ' -8*(sin(winddir * 0.0175)) ; >>> -8*(cos(winddir * 0.0175)) ' >>> (where 8 makes the size of the arrow, which usually represents windspeed >>> but here is desired to be constant) >>> >>> >>> The direction of the arrows looks fine. >>> But some maps have only tiny arrows and some maps have only longtailed >>> arrows. >>> I cannot see a pattern. I have no mixed maps with tiny and large arrows. >>> >>> Should I change my formula, or the way I give the display command? >>> >>> thanks, >>> Chris >>> >>> >>> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/f9e7d160/attachment.html From muhammad.rahiz at OUCE.OX.AC.UK Wed Nov 18 03:11:51 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Wed, 18 Nov 2009 08:11:51 +0000 Subject: converting data to *.ctl format for use with traj.gs In-Reply-To: <20091118064336.EC87020936@mx2.cineca.it> Message-ID: Use xconv utility http://badc.nerc.ac.uk/help/software/xconv/ Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research Laboratory, School of Geography & the Environment Oxford University Centre for the Environment, University of Oxford South Parks Road, Oxford, OX1 3QY, United Kingdom Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 Email: muhammad.rahiz at ouce.ox.ac.uk Jason Snyder wrote: > I have a NetCDF data set that is a composite of wind data based on certain > phases of the Madden Julian Oscillation and I was interested in looking at > the backwards trajectories of air parcels coming into Lake Tahoe in such a > scenario. I have been trying to work with the script traj.gs, but GrADS > said that TDEF is undefined. I was then told that I need to use a .ctl > file, but how do I convert data in NetCDF format to that that can be used > in a .ctl file which I would need to run the script traj.gs > > Thanks, > > Jason > From luis.blacutt at GMAIL.COM Wed Nov 18 09:21:25 2009 From: luis.blacutt at GMAIL.COM (luis blacutt) Date: Wed, 18 Nov 2009 10:21:25 -0400 Subject: error in xdef ctl file In-Reply-To: <2CC20BEA-66FE-4824-80DE-1D1F6C54F4EF@customweather.com> Message-ID: Thanks Kevin, I changed the ctl file to: dset /home/lucho/Desktop/GlueNC/bolbia.pmg1jul.03236.rr8.reg.nc undef 9.999E+20 title baseline 60-90 *produced by LFA dtype netcdf options yrev ydef 82 linear -33.640000 0.439000 xdef 97 linear -84.120000 0.440000 tdef 1 linear 00Z01jul1961 1mo zdef 1 linear 1 1 vars 1 temperature_at_ 0 216,1,0 ** ENDVARS now I got another error message gancsetup error: Variable temperature_at_ not in netcdf file Data Request Error: Error for variable 'temperature_at_' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = temperature_at_ Luis On Tue, Nov 17, 2009 at 6:27 PM, Kevin M Levey wrote: > Luis, > > the 5th argument is the data resolution, i.e. the incremental value, so if > your x grid is 2 degrees, then your line should look like this > > xdef 97 linear -84.120000 2.00 > > > > Your y increment is set to 2 degrees, so I am assuming your data resolution > is 2x2 degrees. > > Here is the documentation: > > *XDEF* *xnum mapping * > back to top > > This entry defines the grid point values for the X dimension, or longitude. > The first argument, *xnum*, specifies the number of grid points in the X > direction. *xnum* must be an integer >= 1. *mapping* defines the method by > which longitudes are assigned to X grid points. There are two options for > *mapping*: > > LINEAR Linear mapping > LEVELS Longitudes specified individually > > The LINEAR mapping method requires two additional arguments: *start* and * > increment*. *start* is a floating point value that indicates the longitude > at grid point X=1. Negative values indicate western longitudes. *increment > * is the spacing between grid point values, given as a positive floating > point value. > > The LEVELS mapping method requires one additional argument, *value-list*, > which explicitly specifies the longitude value for each grid point. * > value-list* should contain *xnum* floating point values. It may continue > into the next record in the descriptor file, but note that records may not > have more than 255 characters. There must be at least 2 levels in * > value-list*; otherwise use the LINEAR method. > > Here are some examples: > > XDEF 144 LINEAR 0.0 2.5 XDEF 72 LINEAR 0.0 5.0 XDEF 12 LEVELS 0 30 > 60 90 120 150 180 210 240 270 300 330 XDEF 12 LEVELS 15 45 75 105 135 > 165 195 225 255 285 315 345 > > > > Regards, > > Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape > Town) > Director of Meteorological Operations > CustomWeather, Inc. > San Francisco, California, USA > > "Taking the World by Storm!" > > http://www.customweather.com > http://www.myforecast.com > http://www.1stweather.com > > cell: 415-794-0411 > work: 415-777-3566 > email: klevey at customweather.com > > On Nov 17, 2009, at 11/17/09 - 2:07 PM, luis blacutt wrote: > > Dear Grads users > I'm doing my first ctl file, it will have two variables, so far I have the > following commands: > > dset /home/lucho/Desktop/GlueNC/bolbia.pag%x1%mc.%.nc > options template > undef 9.999E+20 > title baseline 60-90 > *produced by LFA > dtype netcdf > options yrev > ydef 82 linear -33.640000 2.0000 > xdef 97 linear -84.120000 -41.880000 > tdef 1 linear 00Z01jul1961 1mo > zdef 1 linear 1 1 > vars 2 > total_precipita 0 216,1,0 ** > temperature_at_ 0 216,1,0 ** > ENDVARS > > When I try to run it, it gives me the following error message > > Scanning description file: baseline.ctl > Open Error: Missing or invalid dimension increment value > --> The invalid description file record is: > --> xdef 97 linear -84.120000 -41.880000 > The data file was not opened. > > MyI checked by creating a grib file and those are the right numbers, the > domain is for Southamerica. What am I missing? > Regards > Luis > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/130ad2a0/attachment.html From dasilva at ALUM.MIT.EDU Wed Nov 18 09:27:43 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Wed, 18 Nov 2009 09:27:43 -0500 Subject: GrADS Platform Survey In-Reply-To: <77fcd6b20911111435l4bfc293dn6127e9963b04b8d2@mail.gmail.com> Message-ID: All, For those who have already completed the survey, many thanks. I'll be posting the results early next week. For those who haven't yet responded, there is still time for you to give us your feedback; it should take less than minutes of your time: https://spreadsheets.google.com/viewform?hl=en&formkey=dGctYWhkdTQyenZGSW40SjVOTGZWOUE6MA I'd appreciate if you could forward this link to other GrADS users in your institution who do not subscribe to this mailing list. Thank you, Arlindo On Wed, Nov 11, 2009 at 5:35 PM, Arlindo da Silva wrote: > Dear GrADS Users, > > As we try to prioritize development at the OpenGrADS project, it becomes > important for us to understand the particular platforms and operating > systems folks are running GrADS on. Although, some of this information can > be gathered from download statistics, some other information (such as the > particular flavor of Linux) cannot. Therefore we designed a very quick > survey to collect this information. I'd be very appreciative if you could > spare 5 minutes of your time and complete this short survey: > > > https://spreadsheets.google.com/viewform?hl=en&formkey=dGctYWhkdTQyenZGSW40SjVOTGZWOUE6MA > > In a couple of weeks I'll post the results of the survey on this list. > > Thank you very much for your time. > > Arlindo > > -- > Arlindo da Silva > dasilva at opengrads.org > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/7fc7b533/attachment.html From klevey at CUSTOMWEATHER.COM Wed Nov 18 10:27:09 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Wed, 18 Nov 2009 07:27:09 -0800 Subject: NETCDF descriptor file problem: gadsdf: SDF file does not have any non-coordinate variables. In-Reply-To: <77fcd6b20911172049x4fd6ea9crc44cab124ce82f16@mail.gmail.com> Message-ID: Hi Arlindo, No difference (same message) without the lat/lon variables listed in the CTL file and opening up directly with sdfopen: ga-> sdfopen /prod/custom/Input/modelplots/GRADS/reference/topo2.grd Scanning self-describing file: /prod/custom/Input/modelplots/GRADS/reference/topo2.grd gadsdf: SDF file has no discernable X coordinate. Cheers Kevin On Nov 17, 2009, at 11/17/09 - 8:49 PM, Arlindo da Silva wrote: > > > On Tue, Nov 17, 2009 at 10:52 PM, Kevin M Levey wrote: > TUE 17NOV09: 1945PST > > I am having problems opening trying to open a netcdf file of elevation data created by GMT. I am getting an error I've never seen before and don't understand. > > The output from ncdump -h is: > > netcdf topo2 { > dimensions: > lat = 101 ; > lon = 151 ; > variables: > double lat(lat) ; > lat:long_name = "latitude" ; > lat:units = "degrees_north" ; > lat:actual_range = 36.9, 37. ; > double lon(lon) ; > lon:long_name = "longitude" ; > lon:units = "degrees_north" ; > lon:actual_range = -120.18, -120.03 ; > float elevation(lat, lon) ; > elevation:long_name = "elevation" ; > elevation:units = "meters" ; > elevation:_FillValue = -999.f ; > elevation:actual_range = 57.8879890441895, 96.9689636230469 ; > > // global attributes: > :Conventions = "COARDS/CF-1.0" ; > :title = "../grids/madera/mapdata/topo/topo.grd" ; > :history = "grdsample -R-120.18/-120.03/36.90/37 -I0.06m ../grids/DATA/tmp/madera_topo250.grd -G../grids/madera/mapdata/topo/topo.grd" ; > :GMT_version = "4.5.0 [64-bit]" ; > } > > > My CTL file is as follows: > > DSET /prod/custom/Input/modelplots/GRADS/reference/topo2.grd > TITLE This is a sample USL grid box for Central California > UNDEF -9999 > XDEF lon 151 LINEAR -120.18 0.001 > YDEF lat 101 LINEAR 36.9 0.001 > VARS 3 > alt=>elevation 1 99 Altitude in meters > lon=>lon 1 99 longitude > lat=>lat 1 99 Latitude > ENDVARS > > > Try eliminating lat/lon from the variable list; these are 1D coordinate variables: > > VARS 1 > alt=>elevation 1 99 Altitude in meters > ENDVARS > > Better yet, have you tried opening this netcdf file directly with "sdfopen"? > > ga-> sdfopen /prod/custom/Input/modelplots/GRADS/reference/topo2.grd > > Arlindo > > However, here is the output I get when opening the CTL file (GRADS Version 2.0.a7.oga.2) > > ga-> xdfopen usl_topo.ctl > Scanning Descriptor File: usl_topo.ctl > SDF file has no discernable time coordinate -- using default values. > gadsdf: SDF file does not have any non-coordinate variables. > SDF Descriptor file usl_topo.ctl was not successfully opened & parsed. > > Obviously I am doing something wrong here. I've had success before opening up WRF netcdf data files using this method, but if anyone has any suggestions here, I'd love to hear from you. > > Thanks. > > Regards, > > Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) > Director of Meteorological Operations > CustomWeather, Inc. > San Francisco, California, USA > > "Taking the World by Storm!" > > http://www.customweather.com > http://www.myforecast.com > http://www.1stweather.com > > cell: 415-794-0411 > work: 415-777-3566 > email: klevey at customweather.com > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/7c2c2184/attachment.html From mubashardogar at GMAIL.COM Wed Nov 18 11:03:26 2009 From: mubashardogar at GMAIL.COM (Mubashar Dogar) Date: Wed, 18 Nov 2009 08:03:26 -0800 Subject: How to use aave with time-interval Message-ID: Dear Wang Lizhi, You have to make time average to convert your 6 hourly data into daily means. So use the following define function. define a= ave ( tmp2m, t=1, t=4) Then use the following command as per ur requirement define v=aave(a, lon=110,lon=120,lat=20,lat=30) other things will remain unchanged. Regards, Mubashar --------------------------------------------------------- Muhammmad Mubashar Ahmad Dogar Scientific Officer (Climatology Section), Global Change Impact Studies Centre (GCISC), NCP complex, Quaid-i-Azam University Campus, Shahdra road, Islamabad, Pakistan. Tel: +92519230226 Mob:+923315144169 email: mubashardogar at yahoo.com mubashar.ahmad at gcisc.org.pk mubashardogar at gmail.com --- On *Thu, 12/11/09, Wang Lizhi * wrote: From: Wang Lizhi Subject: How to use aave with time-interval To: GRADSUSR at LIST.CINECA.IT Date: Thursday, 12 November, 2009, 8:33 PM Hi, everyone, I get the ncep2 data set(example flx.ft06.200909), and I can plot a region's average temperature curve use following: open flx.ft06.200909.ctl set t 1 120 define v=aave( tmp2m, lon=110,lon=120,lat=20,lat=30) set x 1 set y 1 set z 1 d v But the curve is plotted at interval 6hour. Now I want to plot the mean daily temperature curve, How can I do ? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/9b1914bb/attachment.html From klevey at CUSTOMWEATHER.COM Wed Nov 18 12:51:38 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Wed, 18 Nov 2009 09:51:38 -0800 Subject: error in xdef ctl file In-Reply-To: <5825ce3f0911180621p5347bedfu88e6955c229265d7@mail.gmail.com> Message-ID: Hi Luis, You need to describe your variables as such (for example) alt=>elevation 1 99 Altitude in meters elevation is the actual name of the variable in my netcdf file, and I map it to a new variable called "alt". Try something like this for your variable: temp=>temperature_at_ 1 99 Surface Temperature Documentation is all in the GRADS user docs (http://grads.iges.org/grads/gadoc/gradcomdxdfopen.html) DTYPE: (GrADS version 1.9) For DTYPE netcdf or hdfsds or hdf5_grid (GrADS version 2.0.a7+) , the units field is a comma-delimited list of the varying dimensions of the variable. Dimensions expressed as x, y, z, or t correspond to the four axes defined by XDEF, YDEF, ZDEF and TDEF. For example, a surface variable such as sea level pressure might look like this: presSFC=>psfc 0 y,x Surface Pressure A time-varying atmospheric variable such as geopotential height might look like this: Height=>hght 17 t,z,y,x Geopotential Height (m) The order of the dimensions listed in the units field does matter. They must describe the shape of the variable as it was written to the SDF data file. For NetCDf files, this information appears in the output from ncdump next to the variable name. If your data file contains a variable that also varies in a non-world-coordinate dimension (e.g. histogram interval, spectral band, ensemble number) then you can put a non-negative integer in the list of varying dimensions that will become the array index of the extra dimension. For example: VAR=>hist0 0 0,y,x First historgram interval for VAR VAR=>hist1 0 1,y,x Second historgram interval for VAR VAR=>hist2 0 2,y,x Third histogram interval for VAR Another option in this example would be to fill the unused Z axis with the histogram intervals: zdef 3 linear 1 1 ... VAR=>hist 3 z,y,x VAR Histogram In this case, it would appear to GrADS that variable 'hist' varies in Z, but the user would have to remember that the Z levels correspond to histogram intervals. The latter technique makes it easier to slice through the data, but is not the most accurate representation. And if you don't have an unsued world-coordinate axis available, then you still have a way to access your data. Remember to use xdfopen when opening your CTL file and NOT sdfopen. Cheers Kevin On Nov 18, 2009, at 11/18/09 - 6:21 AM, luis blacutt wrote: > Thanks Kevin, > > I changed the ctl file to: > dset /home/lucho/Desktop/GlueNC/bolbia.pmg1jul.03236.rr8.reg.nc > undef 9.999E+20 > title baseline 60-90 > *produced by LFA > dtype netcdf > options yrev > ydef 82 linear -33.640000 0.439000 > xdef 97 linear -84.120000 0.440000 > tdef 1 linear 00Z01jul1961 1mo > zdef 1 linear 1 1 > vars 1 > temperature_at_ 0 216,1,0 ** > ENDVARS > > now I got another error message > > gancsetup error: Variable temperature_at_ not in netcdf file > Data Request Error: Error for variable 'temperature_at_' > Error ocurred at column 1 > DISPLAY error: Invalid expression > Expression = temperature_at_ > > Luis > > On Tue, Nov 17, 2009 at 6:27 PM, Kevin M Levey wrote: > Luis, > > the 5th argument is the data resolution, i.e. the incremental value, so if your x grid is 2 degrees, then your line should look like this > >> xdef 97 linear -84.120000 2.00 > > > > Your y increment is set to 2 degrees, so I am assuming your data resolution is 2x2 degrees. > > Here is the documentation: > > XDEF xnum mapping > > back to top > This entry defines the grid point values for the X dimension, or longitude. The first argument, xnum, specifies the number of grid points in the X direction. xnum must be an integer >= 1. mapping defines the method by which longitudes are assigned to X grid points. There are two options for mapping: > > LINEAR Linear mapping > LEVELS Longitudes specified individually > The LINEAR mapping method requires two additional arguments: start and increment. start is a floating point value that indicates the longitude at grid point X=1. Negative values indicate western longitudes. increment is the spacing between grid point values, given as a positive floating point value. > > The LEVELS mapping method requires one additional argument, value-list, which explicitly specifies the longitude value for each grid point. value-list should contain xnum floating point values. It may continue into the next record in the descriptor file, but note that records may not have more than 255 characters. There must be at least 2 levels in value-list; otherwise use the LINEAR method. > > Here are some examples: > > XDEF 144 LINEAR 0.0 2.5 > XDEF 72 LINEAR 0.0 5.0 > XDEF 12 LEVELS 0 30 60 90 120 150 180 210 240 270 300 330 > XDEF 12 LEVELS 15 45 75 105 135 165 195 225 255 285 315 345 > > > Regards, > > Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) > Director of Meteorological Operations > CustomWeather, Inc. > San Francisco, California, USA > > "Taking the World by Storm!" > > http://www.customweather.com > http://www.myforecast.com > http://www.1stweather.com > > cell: 415-794-0411 > work: 415-777-3566 > email: klevey at customweather.com > > On Nov 17, 2009, at 11/17/09 - 2:07 PM, luis blacutt wrote: > >> Dear Grads users >> I'm doing my first ctl file, it will have two variables, so far I have the following commands: >> >> dset /home/lucho/Desktop/GlueNC/bolbia.pag%x1%mc.%.nc >> options template >> undef 9.999E+20 >> title baseline 60-90 >> *produced by LFA >> dtype netcdf >> options yrev >> ydef 82 linear -33.640000 2.0000 >> xdef 97 linear -84.120000 -41.880000 >> tdef 1 linear 00Z01jul1961 1mo >> zdef 1 linear 1 1 >> vars 2 >> total_precipita 0 216,1,0 ** >> temperature_at_ 0 216,1,0 ** >> ENDVARS >> >> When I try to run it, it gives me the following error message >> >> Scanning description file: baseline.ctl >> Open Error: Missing or invalid dimension increment value >> --> The invalid description file record is: >> --> xdef 97 linear -84.120000 -41.880000 >> The data file was not opened. >> >> MyI checked by creating a grib file and those are the right numbers, the domain is for Southamerica. What am I missing? >> Regards >> Luis > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/d2b9ba41/attachment.html From daniel.maineult at NEUF.FR Wed Nov 18 14:28:49 2009 From: daniel.maineult at NEUF.FR (Daniel MAINEULT) Date: Wed, 18 Nov 2009 20:28:49 +0100 Subject: printim Message-ID: Dear all,? ? Results that I get with printim and a background are not correct, why?? ? I use the following command:? ?'printim 'lab%t%'.png x960 y576 -b fond2.png -t 0' The background is included well but the black color is not transparent.? Thank you for your help. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/e4c7f0d7/attachment.html From Ron.Goodson at EC.GC.CA Wed Nov 18 15:16:32 2009 From: Ron.Goodson at EC.GC.CA (Goodson,Ron [Edm]) Date: Wed, 18 Nov 2009 13:16:32 -0700 Subject: Radius of Curvature script or method In-Reply-To: A<105719.52680.qm@web88104.mail.re2.yahoo.com> Message-ID: Hi Just wondering if anybody has a script to calculate radius of curvature of contour lines drawn in grads. I'm expecting a "no", but would appreciate anything that might be out there. thanks ron goodson environment canada -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/e1e66ca9/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Nov 18 15:55:34 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 18 Nov 2009 14:55:34 -0600 Subject: colored vector Message-ID: Hi all user do anyone know how we can display colored vector ? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/8d85a7b0/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Untitled.jpg Type: image/jpeg Size: 49031 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091118/8d85a7b0/attachment.jpg From jimp at HAWAII.EDU Wed Nov 18 16:09:27 2009 From: jimp at HAWAII.EDU (James T. Potemra) Date: Wed, 18 Nov 2009 11:09:27 -1000 Subject: colored vector In-Reply-To: <5c658ce10911181255r7299d847sbe3246fae72a9638@mail.gmail.com> Message-ID: Hossein: The vector command will take third argument that will be color, e.g., if you have u,v,w defined 'd u;v;w' will draw vectors defined by u,v and colored according to the values of w. See usage note #2 at http://www.iges.org/grads/gadoc/gradcomdsetgxout.html Jim hossein lotfi wrote: > Hi all user > do anyone know how we can display colored vector ? > thanks > > > ------------------------------------------------------------------------ > From klevey at CUSTOMWEATHER.COM Wed Nov 18 16:09:31 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Wed, 18 Nov 2009 13:09:31 -0800 Subject: NETCDF descriptor file problem: gadsdf: SDF file does not have any non-coordinate variables. In-Reply-To: <77fcd6b20911181115q27581b19re748af6a5ed8912a@mail.gmail.com> Message-ID: Hey Arlindo Here is a weird thing - I figured out the problem. According to the documentation: SDF_varname=>grads_varname SDF_varname is the name the data variable was given when the SDF file was originally created. For NetCDF files, this name appears in the output from ncdump. It is important that SDF_varname exactly matches the variable name in the data file. SDF_varname may contain uppercase letters and non-alpha-numeric characters. I had my names mixed, i.e. instead of elevation=>alt 1 99 Altitude in meters I had alt=>elevation 1 99 Altitude in meters hence the message "gadsdf: SDF file does not have any non-coordinate variables." I just wish there was a list of GRADS error messages and what they mean in the documentation. It would really help. But the kicker is that for WRF outputted files it works the other way around. Anyway, problem solved. Thanks! Cheers Kevin On Nov 18, 2009, at 11/18/09 - 11:15 AM, Arlindo da Silva wrote: > Kevin, > > Could you make this file available to me for testing? > > Arlindo > > > On Wed, Nov 18, 2009 at 10:27 AM, Kevin M Levey wrote: > Hi Arlindo, > > No difference (same message) without the lat/lon variables listed in the CTL file and opening up directly with sdfopen: > > ga-> sdfopen /prod/custom/Input/modelplots/GRADS/reference/topo2.grd > Scanning self-describing file: /prod/custom/Input/modelplots/GRADS/reference/topo2.grd > gadsdf: SDF file has no discernable X coordinate. > > Cheers > Kevin > > On Nov 17, 2009, at 11/17/09 - 8:49 PM, Arlindo da Silva wrote: > >> >> >> On Tue, Nov 17, 2009 at 10:52 PM, Kevin M Levey wrote: >> TUE 17NOV09: 1945PST >> >> I am having problems opening trying to open a netcdf file of elevation data created by GMT. I am getting an error I've never seen before and don't understand. >> >> The output from ncdump -h is: >> >> netcdf topo2 { >> dimensions: >> lat = 101 ; >> lon = 151 ; >> variables: >> double lat(lat) ; >> lat:long_name = "latitude" ; >> lat:units = "degrees_north" ; >> lat:actual_range = 36.9, 37. ; >> double lon(lon) ; >> lon:long_name = "longitude" ; >> lon:units = "degrees_north" ; >> lon:actual_range = -120.18, -120.03 ; >> float elevation(lat, lon) ; >> elevation:long_name = "elevation" ; >> elevation:units = "meters" ; >> elevation:_FillValue = -999.f ; >> elevation:actual_range = 57.8879890441895, 96.9689636230469 ; >> >> // global attributes: >> :Conventions = "COARDS/CF-1.0" ; >> :title = "../grids/madera/mapdata/topo/topo.grd" ; >> :history = "grdsample -R-120.18/-120.03/36.90/37 -I0.06m ../grids/DATA/tmp/madera_topo250.grd -G../grids/madera/mapdata/topo/topo.grd" ; >> :GMT_version = "4.5.0 [64-bit]" ; >> } >> >> >> My CTL file is as follows: >> >> DSET /prod/custom/Input/modelplots/GRADS/reference/topo2.grd >> TITLE This is a sample USL grid box for Central California >> UNDEF -9999 >> XDEF lon 151 LINEAR -120.18 0.001 >> YDEF lat 101 LINEAR 36.9 0.001 >> VARS 3 >> alt=>elevation 1 99 Altitude in meters >> lon=>lon 1 99 longitude >> lat=>lat 1 99 Latitude >> ENDVARS >> >> >> Try eliminating lat/lon from the variable list; these are 1D coordinate variables: >> >> VARS 1 >> alt=>elevation 1 99 Altitude in meters >> ENDVARS >> >> Better yet, have you tried opening this netcdf file directly with "sdfopen"? >> >> ga-> sdfopen /prod/custom/Input/modelplots/GRADS/reference/topo2.grd >> >> Arlindo >> >> However, here is the output I get when opening the CTL file (GRADS Version 2.0.a7.oga.2) >> >> ga-> xdfopen usl_topo.ctl >> Scanning Descriptor File: usl_topo.ctl >> SDF file has no discernable time coordinate -- using default values. >> gadsdf: SDF file does not have any non-coordinate variables. >> SDF Descriptor file usl_topo.ctl was not successfully opened & parsed. >> >> Obviously I am doing something wrong here. I've had success before opening up WRF netcdf data files using this method, but if anyone has any suggestions here, I'd love to hear from you. >> >> Thanks. >> >> Regards, >> >> Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) >> Director of Meteorological Operations >> CustomWeather, Inc. >> San Francisco, California, USA >> >> "Taking the World by Storm!" >> >> http://www.customweather.com >> http://www.myforecast.com >> http://www.1stweather.com >> >> cell: 415-794-0411 >> work: 415-777-3566 >> email: klevey at customweather.com >> >> >> >> -- >> Arlindo da Silva >> dasilva at alum.mit.edu > > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/7f291b96/attachment.html From andy at F5DATA.COM Wed Nov 18 22:16:09 2009 From: andy at F5DATA.COM (Andrew Revering) Date: Wed, 18 Nov 2009 21:16:09 -0600 Subject: Multiple NetCDF Combine for Radar Message-ID: I am loading 142 radar sites into one graphic in GrADS from NetCDF files. I want to do a smoothed shaded contour of the data. When I do this, each radar site is contoured using the smth9() function and it works well.. The problem I have is it looks goofy when you smooth each radar site. I need all of the data to be plotted and then it all smoothed together. This would be accomplished if the 142 individual data sources were in one file, but I don't know if they can be combined because they are of different locations. Any thoughts? Is it possible to load all of the individual data sources into memory and then run smth9() as you display all of the data at once? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091118/82369cf3/attachment.html From gpmenon009 at GMAIL.COM Thu Nov 19 01:10:45 2009 From: gpmenon009 at GMAIL.COM (Gopal Menon) Date: Thu, 19 Nov 2009 11:40:45 +0530 Subject: colored vector In-Reply-To: <4B046287.8070104@hawaii.edu> Message-ID: Hossein, There is some other way in which the vectors can be plotted colored. d (u,v);mag(u,v) regards gopal On Thu, Nov 19, 2009 at 2:39 AM, James T. Potemra wrote: > Hossein: > > The vector command will take third argument that will be color, e.g., if > you have u,v,w defined > 'd u;v;w' will draw vectors defined by u,v and colored according to the > values of w. See usage > note #2 at http://www.iges.org/grads/gadoc/gradcomdsetgxout.html > > Jim > > > hossein lotfi wrote: > >> Hi all user >> do anyone know how we can display colored vector ? >> thanks >> >> >> ------------------------------------------------------------------------ >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/fab12a11/attachment.html From munia_c at YAHOO.CO.IN Thu Nov 19 01:27:55 2009 From: munia_c at YAHOO.CO.IN (tanusri chakraborty) Date: Thu, 19 Nov 2009 11:57:55 +0530 Subject: how to open HDF file in grads Message-ID: I want to open HDF file in grads. But?I am faceing problem ,bcoz it is not opening with sdfopen or xdfopen commened. Plz give me some suggestion to open the HDF file in grads Keep up with people you care about with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/bd37d1a4/attachment.html From mmahakur at TROPMET.RES.IN Thu Nov 19 03:02:00 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Thu, 19 Nov 2009 13:32:00 +0530 Subject: colored vector In-Reply-To: <5c658ce10911181255r7299d847sbe3246fae72a9638@mail.gmail.com> Message-ID: display u;v;mag(u,v) ---------- Original Message ----------- From: hossein lotfi To: GRADSUSR at list.cineca.it Sent: Wed, 18 Nov 2009 14:55:34 -0600 Subject: colored vector > Hi all user > do anyone know how we can display colored vector ? > thanks ------- End of Original Message ------- From kcpattnayak at GMAIL.COM Thu Nov 19 05:13:01 2009 From: kcpattnayak at GMAIL.COM (Kanhu Charan Pattnayak) Date: Thu, 19 Nov 2009 15:43:01 +0530 Subject: Regrid2 error In-Reply-To: Message-ID: Dear Grads Users I am trying to interpolate IMD 1deg gridded data to 0.5deg in *Grads-1.8sl11 * in my AIX Unix Platform and we are having I got the following message. ga-> define newg=regrid2(rf,0.5) Syntax Error: Invalid Operand 'regrid2' not a variable or function name Error ocurred at column 1 DEFINE error: Invalid expression. But I don't know why this error is coming. I have already checked that Regrid2 is there in the GrADS directory. Please suggest me what to do. Thanks in Advance. -- Kanhu Charan Pattnayak (Research Scholar) Room No.311, Block - VI Centre for Atmospheric Sciences IIT Delhi, Hauz Khas New Delhi - 110 016 India -- Kanhu Charan Pattnayak (Research Scholar) Room No.311, Block - VI Centre for Atmospheric Sciences IIT Delhi, Hauz Khas New Delhi - 110 016 India -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/aeadd985/attachment.html From gpmenon009 at GMAIL.COM Thu Nov 19 05:35:04 2009 From: gpmenon009 at GMAIL.COM (Gopal Menon) Date: Thu, 19 Nov 2009 16:05:04 +0530 Subject: Regrid2 error In-Reply-To: Message-ID: Kanhu, Install grads-1.9b4. Your problem will get solved. On Thu, Nov 19, 2009 at 3:43 PM, Kanhu Charan Pattnayak < kcpattnayak at gmail.com> wrote: > > Dear Grads Users > I am trying to interpolate IMD 1deg gridded data to 0.5deg in * > Grads-1.8sl11* in my AIX Unix Platform and we are having > I got the following message. > > ga-> define newg=regrid2(rf,0.5) > Syntax Error: Invalid Operand > 'regrid2' not a variable or function name > Error ocurred at column 1 > DEFINE error: Invalid expression. > > > But I don't know why this error is coming. > I have already checked that Regrid2 is there in the GrADS directory. > Please suggest me what to do. > Thanks in Advance. > -- > Kanhu Charan Pattnayak (Research Scholar) > Room No.311, Block - VI > Centre for Atmospheric Sciences > IIT Delhi, Hauz Khas > New Delhi - 110 016 > India > > > > -- > Kanhu Charan Pattnayak (Research Scholar) > Room No.311, Block - VI > Centre for Atmospheric Sciences > IIT Delhi, Hauz Khas > New Delhi - 110 016 > India > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/a2e2ff8e/attachment.html From sushantpuranik at GMAIL.COM Thu Nov 19 05:55:13 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Thu, 19 Nov 2009 16:25:13 +0530 Subject: colored vector In-Reply-To: <20091119080133.M51600@tropmet.res.in> Message-ID: I am using followind script for making such plots 'set gxout vector' 'set arrscl 1 30' 'set cthick 4' 'set arrowhead 0.10' 'set clevs 3 5 10 15 20 25' 'set ccols 0 4 1 2 3 5 12' 'd skip(uwnd,2,2);skip(vwnd.2,2,2);skip(sqrt(uwnd*uwnd+vwnd.2*vwnd.2),2,2)' 'run /home/Sushant/Desktop/lib/cbar.gs' 'set line 1 1 1' 'print' 'disable print' '!/usr/local/bin/gxpng -x 1000 -r -i temp -o /home/Sushant/Desktop/wind.png' On Thu, Nov 19, 2009 at 1:32 PM, M.Mahakur wrote: > display u;v;mag(u,v) > > ---------- Original Message ----------- > From: hossein lotfi > To: GRADSUSR at list.cineca.it > Sent: Wed, 18 Nov 2009 14:55:34 -0600 > Subject: colored vector > > > Hi all user > > do anyone know how we can display colored vector ? > > thanks > ------- End of Original Message ------- > -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/3493325d/attachment.html From kcpattnayak at GMAIL.COM Thu Nov 19 06:33:54 2009 From: kcpattnayak at GMAIL.COM (Kanhu Charan Pattnayak) Date: Thu, 19 Nov 2009 17:03:54 +0530 Subject: Regrid2 error In-Reply-To: Message-ID: Thank you Mr Gopal But Grads-1.9b4 is not compatible with IBM AIX machine. On Thu, Nov 19, 2009 at 4:05 PM, Gopal Menon wrote: > > Kanhu, > > Install grads-1.9b4. Your problem will get solved. > > > > > On Thu, Nov 19, 2009 at 3:43 PM, Kanhu Charan Pattnayak < > kcpattnayak at gmail.com> wrote: > >> >> Dear Grads Users >> I am trying to interpolate IMD 1deg gridded data to 0.5deg in * >> Grads-1.8sl11* in my AIX Unix Platform and we are having >> I got the following message. >> >> ga-> define newg=regrid2(rf,0.5) >> Syntax Error: Invalid Operand >> 'regrid2' not a variable or function name >> Error ocurred at column 1 >> DEFINE error: Invalid expression. >> >> >> But I don't know why this error is coming. >> I have already checked that Regrid2 is there in the GrADS directory. >> Please suggest me what to do. >> Thanks in Advance. >> -- >> Kanhu Charan Pattnayak (Research Scholar) >> Room No.311, Block - VI >> Centre for Atmospheric Sciences >> IIT Delhi, Hauz Khas >> New Delhi - 110 016 >> India >> >> >> >> -- >> Kanhu Charan Pattnayak (Research Scholar) >> Room No.311, Block - VI >> Centre for Atmospheric Sciences >> IIT Delhi, Hauz Khas >> New Delhi - 110 016 >> India >> > > -- Kanhu Charan Pattnayak (Research Scholar) Room No.311, Block - VI Centre for Atmospheric Sciences IIT Delhi, Hauz Khas New Delhi - 110 016 India -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/b772d79d/attachment.html From gpmenon009 at GMAIL.COM Thu Nov 19 06:41:09 2009 From: gpmenon009 at GMAIL.COM (Gopal Menon) Date: Thu, 19 Nov 2009 17:11:09 +0530 Subject: Regrid2 error In-Reply-To: Message-ID: Install open grads. http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle The function is inbuilt in opengrads. define newg=re(rf,0.5) will do regridding for you On Thu, Nov 19, 2009 at 5:03 PM, Kanhu Charan Pattnayak < kcpattnayak at gmail.com> wrote: > Thank you Mr Gopal > But Grads-1.9b4 is not compatible with IBM AIX machine. > > > On Thu, Nov 19, 2009 at 4:05 PM, Gopal Menon wrote: > >> >> Kanhu, >> >> Install grads-1.9b4. Your problem will get solved. >> >> >> >> >> On Thu, Nov 19, 2009 at 3:43 PM, Kanhu Charan Pattnayak < >> kcpattnayak at gmail.com> wrote: >> >>> >>> Dear Grads Users >>> I am trying to interpolate IMD 1deg gridded data to 0.5deg in * >>> Grads-1.8sl11* in my AIX Unix Platform and we are having >>> I got the following message. >>> >>> ga-> define newg=regrid2(rf,0.5) >>> Syntax Error: Invalid Operand >>> 'regrid2' not a variable or function name >>> Error ocurred at column 1 >>> DEFINE error: Invalid expression. >>> >>> >>> But I don't know why this error is coming. >>> I have already checked that Regrid2 is there in the GrADS directory. >>> Please suggest me what to do. >>> Thanks in Advance. >>> -- >>> Kanhu Charan Pattnayak (Research Scholar) >>> Room No.311, Block - VI >>> Centre for Atmospheric Sciences >>> IIT Delhi, Hauz Khas >>> New Delhi - 110 016 >>> India >>> >>> >>> >>> -- >>> Kanhu Charan Pattnayak (Research Scholar) >>> Room No.311, Block - VI >>> Centre for Atmospheric Sciences >>> IIT Delhi, Hauz Khas >>> New Delhi - 110 016 >>> India >>> >> >> > > > -- > Kanhu Charan Pattnayak (Research Scholar) > Room No.311, Block - VI > Centre for Atmospheric Sciences > IIT Delhi, Hauz Khas > New Delhi - 110 016 > India > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/8336f4a4/attachment.html From h.meteo.shirazu at GMAIL.COM Thu Nov 19 07:47:13 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Thu, 19 Nov 2009 06:47:13 -0600 Subject: colored vector In-Reply-To: <72e8bd3d0911190255k330b558br57c0e9a351703350@mail.gmail.com> Message-ID: On Thu, Nov 19, 2009 at 4:55 AM, sushant puranik wrote: > I am using followind script for making such plots > > 'set gxout vector' > 'set arrscl 1 30' > 'set cthick 4' > 'set arrowhead 0.10' > 'set clevs 3 5 10 15 20 25' > 'set ccols 0 4 1 2 3 5 12' > 'd skip(uwnd,2,2);skip(vwnd.2,2,2);skip(sqrt(uwnd*uwnd+vwnd.2*vwnd.2),2,2)' > 'run /home/Sushant/Desktop/lib/cbar.gs' > 'set line 1 1 1' > 'print' > 'disable print' > '!/usr/local/bin/gxpng -x 1000 -r -i temp -o > /home/Sushant/Desktop/wind.png' > > > > > On Thu, Nov 19, 2009 at 1:32 PM, M.Mahakur wrote: > >> display u;v;mag(u,v) >> >> ---------- Original Message ----------- >> From: hossein lotfi >> To: GRADSUSR at list.cineca.it >> Sent: Wed, 18 Nov 2009 14:55:34 -0600 >> Subject: colored vector >> >> > Hi all user >> > do anyone know how we can display colored vector ? >> > thanks >> ------- End of Original Message ------- >> > > > > -- > Sushant Puranik > Junior Research Fellow > Dept. of Atmospheric & Space Sciences, > University of Pune, > Pune-07, > India. > Hi thank you very very much it's worked good luck -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/de390970/attachment.html From zjuyanlibin at 163.COM Thu Nov 19 09:32:00 2009 From: zjuyanlibin at 163.COM (Yan Libin) Date: Thu, 19 Nov 2009 22:32:00 +0800 Subject: difference between d u;v and d u;v;w Message-ID: Hi, everyone! Can anyone tell me the difference between d u;v and d u;v;w? BTW, When I plotted the global U-V wind field, the U-V values of some places were so large that the others with small U-V values were invisible. Is there any method which can overcome this problem? Any suggestion is welcome! Thanks in advance! Best regards, Libin Yan 2009-11-19 Yan Libin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/7a34790b/attachment.html From arlindo.dasilva at GMAIL.COM Thu Nov 19 09:42:17 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 19 Nov 2009 09:42:17 -0500 Subject: Multiple NetCDF Combine for Radar In-Reply-To: <200911190316.nAJ3GBLs099692@mail.authsmtp.com> Message-ID: On Wed, Nov 18, 2009 at 10:16 PM, Andrew Revering wrote: > I am loading 142 radar sites into one graphic in GrADS from NetCDF files. > > > > I want to do a smoothed shaded contour of the data. When I do this, each > radar site is contoured using the smth9() function and it works well.. > > > > The problem I have is it looks goofy when you smooth each radar site. I > need all of the data to be plotted and then it all smoothed together. > > > > This would be accomplished if the 142 individual data sources were in one > file, but I don?t know if they can be combined because they are of different > locations. > > > > Any thoughts? > > > > Is it possible to load all of the individual data sources into memory and > then run smth9() as you display all of the data at once? > > > You could use re() to put each variable on a global grid (or large enough to span your region of interest). Once you have all in the same grid you should be able to combine them and display the resulting variable. You will probably be using maskout() and const() in the process of combining these. Is this detailed enough? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/d45b1c89/attachment.html From cmunozc at UDEC.CL Thu Nov 19 09:59:58 2009 From: cmunozc at UDEC.CL (Cristian Gonzal =?iso-8859-1?Q?Mu=F1oz_Castillo?=) Date: Thu, 19 Nov 2009 11:59:58 -0300 Subject: difference between d u;v and d u;v;w In-Reply-To: <200911192231597884323@163.com> Message-ID: By normalization, for example divide the values between the number of stations/grid points. You can also use percentiles, etc. There are many ways to normalize! Regards! > Hi, everyone! > > Can anyone tell me the difference between d u;v and d u;v;w? > > BTW, When I plotted the global U-V wind field, the U-V values of some > places were so large that > the others with small U-V values were invisible. Is there any method which > can overcome this problem? > > Any suggestion is welcome! > > Thanks in advance! > > Best regards, > > Libin Yan > > > 2009-11-19 > > > > Yan Libin > -- Cristian G. Mu?oz Castillo Geof?sico Licenciado en Ciencias F?sicas Oficina 442 Depto. Geof?sica (DGEO) Fono (41) 2203155 Facultad Ciencias F?sicas y Matem?ticas Universidad de Concepci?n Concepci?n Chile From daniel.maineult at NEUF.FR Thu Nov 19 11:33:49 2009 From: daniel.maineult at NEUF.FR (Daniel MAINEULT) Date: Thu, 19 Nov 2009 17:33:49 +0100 Subject: printim bugs Message-ID: Hello to all, I solved my problem with printim -b option I discovered two bugs : 1 - If the name of file background starts with a capital letter -> background image open error !!! IE : world.png it is ok? ---- World.png background image open error !!! 2 - If background image to a superior size 800*640 no transparency fonction. ????? my image make 960*576, if I reduce to 800*640 that is ok. Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/8f042188/attachment.html From hhe at ATMOS.UMD.EDU Thu Nov 19 12:00:00 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Thu, 19 Nov 2009 12:00:00 -0500 Subject: how to open HDF file in grads In-Reply-To: <538732.56343.qm@web8320.mail.in.yahoo.com> Message-ID: You can write .ctl file and use open command. Hao On Thu, 19 Nov 2009, tanusri chakraborty wrote: > I want to open HDF file in grads. But?I am faceing problem ,bcoz it is not opening with sdfopen or xdfopen commened. Plz give me some suggestion to open the HDF file in grads Keep up with people you care about with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore From Michael.Fiorino at NOAA.GOV Thu Nov 19 13:57:03 2009 From: Michael.Fiorino at NOAA.GOV (Michael Fiorino) Date: Thu, 19 Nov 2009 18:57:03 +0000 Subject: Regrid2 error In-Reply-To: Message-ID: and re2 the extension version of my regrid2...with bug fixes...it's best to use either re or re2 /r mike Gopal Menon wrote: > Install open grads. > > > http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle > > The function is inbuilt in opengrads. > > define newg=re(rf,0.5) will do regridding for you > > > > > On Thu, Nov 19, 2009 at 5:03 PM, Kanhu Charan Pattnayak > > wrote: > > Thank you Mr Gopal > But Grads-1.9b4 is not compatible with IBM AIX machine. > > > On Thu, Nov 19, 2009 at 4:05 PM, Gopal Menon > wrote: > > > Kanhu, > > Install grads-1.9b4. Your problem will get solved. > > > > > On Thu, Nov 19, 2009 at 3:43 PM, Kanhu Charan Pattnayak > > wrote: > > > Dear Grads Users > I am trying to interpolate IMD 1deg gridded data to 0.5deg > in *Grads-1.8sl11* in my AIX Unix Platform and we are having > I got the following message. > > ga-> define newg=regrid2(rf,0.5) > Syntax Error: Invalid Operand > 'regrid2' not a variable or function name > Error ocurred at column 1 > DEFINE error: Invalid expression. > > > But I don't know why this error is coming. > I have already checked that Regrid2 is there in the GrADS > directory. > Please suggest me what to do. > Thanks in Advance. > -- > Kanhu Charan Pattnayak (Research Scholar) > Room No.311, Block - VI > Centre for Atmospheric Sciences > IIT Delhi, Hauz Khas > New Delhi - 110 016 > India > > > > -- > Kanhu Charan Pattnayak (Research Scholar) > Room No.311, Block - VI > Centre for Atmospheric Sciences > IIT Delhi, Hauz Khas > New Delhi - 110 016 > India > > > > > > -- > Kanhu Charan Pattnayak (Research Scholar) > Room No.311, Block - VI > Centre for Atmospheric Sciences > IIT Delhi, Hauz Khas > New Delhi - 110 016 > India > > From Michael.Fiorino at NOAA.GOV Thu Nov 19 13:59:41 2009 From: Michael.Fiorino at NOAA.GOV (Michael Fiorino) Date: Thu, 19 Nov 2009 18:59:41 +0000 Subject: printim bugs In-Reply-To: <31249151.562961258648429717.JavaMail.www@wsfrf1122> Message-ID: daniel, you need to tell is the exact version of grads... i know earlier versions of grads2 from cola has this bug (i stepped on it) but from opengrads does not... see http://opengrads.org/ either version 1.10 or 2.0 should work, plus you get extensions... cheers, mike Daniel MAINEULT wrote: > Hello to all, > > I solved my problem with printim -b option > I discovered two bugs : > > 1 - If the name of file background starts with a capital letter -> > background image open error !!! > > IE : world.png it is ok ---- World.png background image open error !!! > > 2 - If background image to a superior size 800*640 no transparency > fonction. > my image make 960*576, if I reduce to 800*640 that is ok. > > Daniel > > > > From daniel.maineult at NEUF.FR Thu Nov 19 17:15:42 2009 From: daniel.maineult at NEUF.FR (Daniel MAINEULT) Date: Thu, 19 Nov 2009 23:15:42 +0100 Subject: re-printim Message-ID: Dear Mike, me work under linux Fedora 11? I have the problem with the two following versions: grads 2.0.a7 and opengrads 2.0.a5.oga.5 Impossible to use a resolution 720*576 or 960*576 the transparency doesn't function but with 800*640 it is ok.? I need to use formats broadcasts. Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/d82ffdab/attachment.html From dasilva at ALUM.MIT.EDU Thu Nov 19 17:49:35 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Thu, 19 Nov 2009 17:49:35 -0500 Subject: User Defined Functions in OpenGrADS In-Reply-To: <8d9ec3dd0911191405h32cada70m847fe303f7ea3795@mail.gmail.com> Message-ID: ---------- Forwarded message ---------- > From: Paidemwoyo Munhutu > Date: Thu, Nov 19, 2009 at 4:49 PM > Subject: RE: User Defined Functions in OpenGrADS > To: ddasilva at umd.edu > > > Hello, > > I am a software engineer at GFDL with NOAA and I would like to know if the > user defined functions are still disabled in OpenGrADS > The old style UDFs are no longer supported. The OpenGrADS project supports the dynamically linked extesions. > . I built opengrads (GrADS_v2.0.a5) from source so I was not sure if I had > made a mistake. I then downloaded the latest version GrADS 2.0.a7.oga.3. In > both I ran the command query udft and it returned a warning message saying > the feature was disabled. Is there anyway to enable it? > > The particular function I want to use is regrid2, but it is unrecognised > because of this. > > Try ga-> q udf ga-> q udc or even ga-> q udxt "q udft" is the old command, and the message you saw comes from the COLA's part of the code. I agree, it is confusing. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/f7078e8d/attachment.html From Michael.Fiorino at NOAA.GOV Thu Nov 19 19:12:49 2009 From: Michael.Fiorino at NOAA.GOV (Michael Fiorino) Date: Fri, 20 Nov 2009 00:12:49 +0000 Subject: User Defined Functions in OpenGrADS In-Reply-To: <77fcd6b20911191449t2ae4203em3ba29ba9e4f71d9f@mail.gmail.com> Message-ID: regrid2 as an old style udf that works in grads <= 1.9 but not in our opengrads versions as arlindo described; and the regrid2.f fortran code i wrote has bugs (not big ones though) that have been eliminated in the opengrads extension 're2'. please do NOT use regrid2, but use the corrected version in re2 that works in both opengrads 1.10 and 2.0. also note re2 is functionally the same as regrid2 and if you replaced all calls to regrid2 with re2 you get the same behavior, but not the same answers in some cases... let me know if you have problems using re2. /r mike Arlindo da Silva wrote: > > > ---------- Forwarded message ---------- > From: *Paidemwoyo Munhutu* > > Date: Thu, Nov 19, 2009 at 4:49 PM > Subject: RE: User Defined Functions in OpenGrADS > To: ddasilva at umd.edu > > > Hello, > > I am a software engineer at GFDL with NOAA and I would like to > know if the user defined functions are still disabled in OpenGrADS > > > The old style UDFs are no longer supported. The OpenGrADS project > supports the dynamically linked extesions. > > > . I built opengrads (GrADS_v2.0.a5) from source so I was not sure > if I had made a mistake. I then downloaded the latest version > GrADS 2.0.a7.oga.3. In both I ran the command query udft and it > returned a warning message saying the feature was disabled. Is > there anyway to enable it? > > The particular function I want to use is regrid2, but it is > unrecognised because of this. > > > Try > > ga-> q udf > ga-> q udc > > or even > > ga-> q udxt > > "q udft" is the old command, and the message you saw comes from the > COLA's part of the code. I agree, it is confusing. > > Arlindo > > -- > Arlindo da Silva > dasilva at alum.mit.edu From qilixin at GMAIL.COM Thu Nov 19 20:19:03 2009 From: qilixin at GMAIL.COM (L. Qi) Date: Fri, 20 Nov 2009 12:19:03 +1100 Subject: difference between d u;v and d u;v;w In-Reply-To: <200911192231597884323@163.com> Message-ID: When using "d u;v;w", the wind vector colors will change with the magnitude of w; similarly, you can try "d u;v;mag(u,v)", in which the wind vector colors will change with the magnitude of wind velocity. There were discussions on this topic recently in this mail list (Subject: colored vector). For your second question, probably you can try to plot velocity contours at the same time, that is: d u;v d mag(u, v) Good luck. Regards, Lixin On Fri, Nov 20, 2009 at 1:32 AM, Yan Libin wrote: > Hi, everyone! > > Can anyone tell me the difference between d u;v and d u;v;w? > > BTW, When I plotted the global U-V wind field, the U-V values of some places > were so large that > the others with small U-V values were invisible. Is there any method which > can overcome this problem? > > Any suggestion is welcome! > > Thanks in advance! > > Best regards, > > Libin Yan > > > 2009-11-19 > ________________________________ > Yan Libin From arlindo.dasilva at GMAIL.COM Thu Nov 19 22:07:33 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 19 Nov 2009 22:07:33 -0500 Subject: Multiple NetCDF Combine for Radar In-Reply-To: <200911190316.nAJ3GBLs099692@mail.authsmtp.com> Message-ID: On Wed, Nov 18, 2009 at 10:16 PM, Andrew Revering wrote: > I am loading 142 radar sites into one graphic in GrADS from NetCDF files. > > > > I want to do a smoothed shaded contour of the data. When I do this, each > radar site is contoured using the smth9() function and it works well.. > > > I've been looking at your data. Why would you want to use smoothed contouring to display your data? This is supposed to represent precipitation, a notoriously discontinuous parameter. The problem I have is it looks goofy when you smooth each radar site. I need > all of the data to be plotted and then it all smoothed together. > > These smoothing algorithms assume the function have a certain number of continuous derivatives. They are not designed for discontinuous data. Results are unlikely to be physical. > This would be accomplished if the 142 individual data sources were in one > file, but I don?t know if they can be combined because they are of different > locations. > > Regardless, it is fair to want to combine these individual radar reports into a single grid. Now, the data resolution is dlon ~ dlat ~ 0.013599 degrees, way too fine for visualization at a continental scale. You should be able to get away with dlon = dlat ~ 0.1 deg. I used 0.05 deg in the attached plot. The data you sent me in a separate e-mail had individual files in a subdirectory out/, e. g., out/ n.kabr.nc sn.kabx.nc sn.kakq.nc sn.kama.nc sn.kamx.nc sn.kapx.nc ... The attached radar_composite.gs script goes over these individual files, use re() to place them on a common grid, and combine them, taking care for not double count pixels. This script requires the function if() and command gxyat, both available with the opengrads extensions; you should be able to replace these with maskout and printim. Command sdfwrite is used to save the composite grid. Could you go over the script and make sure it is correct? We should include this in a recipe. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/6b55e9cc/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: radar_composite.gs Type: application/octet-stream Size: 4070 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091119/6b55e9cc/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: radar.png Type: image/png Size: 446365 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091119/6b55e9cc/attachment.png From arlindo.dasilva at GMAIL.COM Thu Nov 19 23:15:09 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 19 Nov 2009 23:15:09 -0500 Subject: re-printim In-Reply-To: <31004231.355491258668942726.JavaMail.www@wsfrf1129> Message-ID: On Thu, Nov 19, 2009 at 5:15 PM, Daniel MAINEULT wrote: > Dear Mike, > > me work under linux Fedora 11 > I have the problem with the two following versions: > > grads 2.0.a7 and opengrads 2.0.a5.oga.5 > > Impossible to use a resolution 720*576 or 960*576 the transparency doesn't > function > but with 800*640 it is ok. > I need to use formats broadcasts. > > The command version of* gxyat* has a more flexible transparency capability which allows each color you define to have its own transparency level (the so-called alpha channel). In particular, it can emulate the -t option of printim and it does work with any resolution. Here is an example: ga-> open model ga-> set_rgba 60 125 125 125 0 1 ga-> set ccols 1 2 3 4 5 6 60 t. ga-> set clevs 500 600 700 800 900 1000 ga-> d ps ga-> gxyat -x 1600 -y 1200 img.png As a bonus, you get anti-aliased fonts. Here is the syntax of the set_rgbacommand that Pablo Romero contributed: NAME set_rgba - define color including alpha channel SYNOPSIS set_rgba color red green blue alpha [mask] DESCRIPTION This User Defined Command (UDC) defines *color* given its RGB triplet along with its *alpha* channel. color integer in the range [16-255] red, green, blue integers in the range [0-255] alpha float, with alpha ranging from 0.0 (fully transparent) to 1.0 (fully opaque). The optional parameter *mask* determines whether the color below it is visible or not. mask=0 --- if alpha<1, *color* will be semi-transparent and the colors below it will be visible (default) mask=1 --- if alpha<1, *color* will be semi-transparent but the colors below it will *not* be visible EXAMPLE In order to emulate the -t option in printim ga-> set rgb 60 125 125 125 ga-> printim img.png -t 60 Specify alpha=0 and mask=1 ga-> set_rgba 60 125 125 125 0 1 ga-> gxyat img.png -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091119/efd7d170/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: img.png Type: image/png Size: 271178 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091119/efd7d170/attachment.png From zjuyanlibin at 163.COM Fri Nov 20 03:01:29 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Fri, 20 Nov 2009 16:01:29 +0800 Subject: =?utf-8?B?UmU6IFJlOiBkaWZmZXJlbmNlIGJldHdlZW4gZCB1O3YgYW5kIGQgdTt2O3c=?= Message-ID: Thank you all for your reply and suggestions. I wanna know how to set the ccolor to 1 while mag(u,v)<10? Thanks in advance. Best Regards, 2009-11-20 Yan Libin ???? L. Qi ????? 2009-11-20 15:48:06 ???? GRADSUSR ??? ??? Re: difference between d u;v and d u;v;w When using "d u;v;w", the wind vector colors will change with the magnitude of w; similarly, you can try "d u;v;mag(u,v)", in which the wind vector colors will change with the magnitude of wind velocity. There were discussions on this topic recently in this mail list (Subject: colored vector). For your second question, probably you can try to plot velocity contours at the same time, that is: d u;v d mag(u, v) Good luck. Regards, Lixin On Fri, Nov 20, 2009 at 1:32 AM, Yan Libin wrote: > Hi, everyone! > > Can anyone tell me the difference between d u;v and d u;v;w? > > BTW, When I plotted the global U-V wind field, the U-V values of some places > were so large that > the others with small U-V values were invisible. Is there any method which > can overcome this problem? > > Any suggestion is welcome! > > Thanks in advance! > > Best regards, > > Libin Yan > > > 2009-11-19 > ________________________________ > Yan Libin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/77c01d85/attachment.html From mmahakur at TROPMET.RES.IN Fri Nov 20 05:20:00 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Fri, 20 Nov 2009 15:50:00 +0530 Subject: difference between d u;v and d u;v;w In-Reply-To: <200911201601289689752@163.com> Message-ID: Hi, > Thank you all for your reply and suggestions. > > I wanna know how to set the ccolor to 1 while mag(u,v)<10? Use clevs and ccols (see the grads doc for color code 0-15 and RGB settings. you can try something as: 'set clevs 10 15 ....' 'set ccols 1 5 ....' color (ccols) 0 and 1 as white (RGB: 0 0 0) and black (RGB: 255 255 255).. > > Thanks in advance. > > Best Regards, > > 2009-11-20 > > Yan Libin > > [UTF-8?]???????????? L. Qi > [UTF-8?]??????????????? 2009-11-20 15:48:06 > [UTF-8?]???????????? GRADSUSR > [UTF-8?]? ??????? > [UTF-8?]????????? Re: difference between d u;v and d u;v;w > > When using "d u;v;w", the wind vector colors will change with the > magnitude of w; similarly, you can try "d u;v;mag(u,v)", in which the > wind vector colors will change with the magnitude of wind velocity. > There were discussions on this topic recently in this mail list > (Subject: colored vector). > For your second question, probably you can try to plot velocity > contours at the same time, that is: > d u;v > d mag(u, v) > Good luck. > Regards, > Lixin > On Fri, Nov 20, 2009 at 1:32 AM, Yan Libin wrote: > > Hi, everyone! > > > > Can anyone tell me the difference between d u;v and d u;v;w? > > > > BTW, When I plotted the global U-V wind field, the U-V values of some places > > were so large that > > the others with small U-V values were invisible. Is there any method which > > can overcome this problem? > > > > Any suggestion is welcome! > > > > Thanks in advance! > > > > Best regards, > > > > Libin Yan > > > > > > 2009-11-19 > > ________________________________ > > Yan Libin ------- End of Original Message ------- From claudiomet at GMAIL.COM Fri Nov 20 10:58:32 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Fri, 20 Nov 2009 12:58:32 -0300 Subject: cloud cover historical data In-Reply-To: <5c658ce10911061325n75b074c9l569c8327461b6f26@mail.gmail.com> Message-ID: Thanks for the help and links ! I found a datesets too in: surface variables (glabal coverage) http://nomad3.ncep.noaa.gov/pub/reanalysis-1/6hr/grb2d/ upper air variables (global coverage) http://nomad3.ncep.noaa.gov/pub/reanalysis-2/6hr/pgb/ 2009/11/6 hossein lotfi > > > On Fri, Nov 6, 2009 at 11:53 AM, Mike Bosilovich < > mike.bosilovich at gmail.com> wrote: > >> Hi Claudio, >> >> Just a word of caution. Any reanalysis data is not actually >> observations, and each reanalysis has it's own bias and uncertainty, >> NCEP or otherwise. One reanalysis is not necessarily representative of >> reality, especially in the physics output. Clouds and precipitation >> can be much more related to the model part of the data assimilation >> system. Temperature and heights less so, until you move toward data >> sparse regions. >> >> That said MERRA produces reanalysis cloud fields (1/2 degree >> resolution, global). The following links can be opened in gradsdap or >> opengrads sessions (sdfopen) to get the MERRA cloud fields: >> >> 1 hourly frequency: http://goldsmr2.sci.gsfc.nasa.gov:80/dods/MAT1NXRAD >> Monthly: http://goldsmr2.sci.gsfc.nasa.gov:80/dods/MATMNXRAD >> >> The main data page is at: >> http://disc.sci.gsfc.nasa.gov/daac-bin/DataHoldings.pl with a variety >> of download options. >> >> Also, you may be interested in installing opengrads on your computer. >> It has command lines built in for "merra" and "nomads", and these open >> gui interfaces to each reanalyses Grads Data Servers. >> >> Good Luck and have a great weekend!! >> >> Mike >> >> On Fri, Nov 6, 2009 at 11:59 AM, claudio cortes >> wrote: >> > greetings >> > >> > when I need historical data for climatological studies, I download >> > datasetes from this ftp: >> > ftp://ftp.cdc.noaa.gov/pub/Datasets/ncep.reanalysis/pressure/ >> > where can I find historical values of temperature, geotential heights, >> > humidity and wind >> > and this information I can extract it using grads >> > >> > but at this moment, I need cloud cover historial data and >> > where can I find cloud cover historical datasets ? >> > >> > thaks ! >> > >> > -- >> > Claudio Cortes >> > +56 (2) 2994121 >> > >> > Meteorologo >> > Laboratorio de Meteorologia y Calidad de Aire >> > Centro Nacional del Medio Ambiente (CENMA) >> > >> -------------------------------------------------------------------------------------- >> > >> > Claudio Cortes >> > +56 (2) 2994121 >> > >> > Meteorologist >> > Meteorology and Air Quality Labs >> > National Enviroment Center, Chile (CENMA) >> > >> > Hi > Thank you very very much for your email and links > it's has very good data > Thank you [?] [?] [?] [?] [?] [?] [?] > -- Claudio Cortes +56 (2) 2994121 Meteorologo Laboratorio de Meteorologia y Calidad de Aire Centro Nacional del Medio Ambiente (CENMA) -------------------------------------------------------------------------------------- Claudio Cortes +56 (2) 2994121 Meteorologist Meteorology and Air Quality Labs National Enviroment Center, Chile (CENMA) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/a2871e5b/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 892 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091120/a2871e5b/attachment.gif From jmssnyder at UCDAVIS.EDU Fri Nov 20 13:49:11 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Fri, 20 Nov 2009 19:49:11 +0100 Subject: Aerosol concentration data Message-ID: Do you know where I can get aerosol data sets that can be displayed in GrADS? Thanks, Jason From jgmsantos at GMAIL.COM Fri Nov 20 14:14:49 2009 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Fri, 20 Nov 2009 17:14:49 -0200 Subject: Aerosol concentration data In-Reply-To: <20091120185032.EBE111FE09@mx2.cineca.it> Message-ID: Hi Jason! Take a look in this webpage below: There you can find a lot of information about aerosol. Guilherme. http://mirador.gsfc.nasa.gov/cgi-bin/mirador/granlist.pl?page=1&dataSet=OMAEROG&version=003&allversion=003&keyword=omaeruv&pointLocation=%28-90,-180%29,%2890,180%29&location=%28-90,-180%29,%2890,180%29&searchType=Location&event=&startTime=2009-10-01%2000:00:01&endTime=2009-10-30%2023:59:59&search=&CGISESSID=46c6ea376f7cf3b7104ca83e8cc08373&nr=28&temporalres=1%20Day%28s%29&prodpg=http://mirador.gsfc.nasa.gov/collections/OMAEROG__003.shtml&longname=OMI/Aura%20Multi-wavelength%20Aerosol%20Optical%20Depth%20and%20Single%20Scattering%20Albedo%20Daily%20L2%20Global%200.25x0.25%20deg%20Lat/Lon%20Grid&granulePresentation=ungrouped 2009/11/20 Jason Snyder > Do you know where I can get aerosol data sets that can be displayed in > GrADS? > > Thanks, > > Jason > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento - DMD Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE Rodovia Presidente Dutra, km 39 - CEP 12630-000 Cachoeira Paulista, SP, Brasil Telefone(CP): +55 12 3186 8529 Celular(SJC): +55 12 91678770 / +55 12 81528580 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://jgmsantos.googlepages.com/index.html ----------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/914cc954/attachment.html From daniel.maineult at NEUF.FR Fri Nov 20 14:23:54 2009 From: daniel.maineult at NEUF.FR (Daniel MAINEULT) Date: Fri, 20 Nov 2009 20:23:54 +0100 Subject: Re-printim Message-ID: Dear Arlindo, I used function set_rgba, it is perfected I achieved with excellent picture.? But remains the problem to encrust the background image.? In the joined picture I made the encrustation with ImageMagics, I will wish to make the all with grads.? How to encrust with gxyat the -b option doesn't exist. regards Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/5de98597/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Final.png Type: image/png Size: 392195 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091120/5de98597/attachment.png From jmssnyder at UCDAVIS.EDU Fri Nov 20 14:32:57 2009 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Fri, 20 Nov 2009 20:32:57 +0100 Subject: making Message-ID: I have a NetCDF data set that is a composite of wind data based on certain phases of the Madden Julian Oscillation and I was interested in looking at the backwards trajectories of air parcels coming into Lake Tahoe in such a scenario. I have been trying to work with the script traj.gs, but GrADS said that TDEF is undefined. I was then told that I need to use a .ctl file, but how do I convert data in NetCDF format to that that can be used in a .ctl file which I would need to run the script traj.gs. Someone suggested that I use Use xconv utility, which has the website: http://badc.nerc.ac.uk/help/software/xconv/ However, I could not figure out how to use this program to convert a NetCDF file to a .ctl file. Can someone show me how to use this program, or some other ways to obtained .ctl files that I could use in running the traj.gs script? Thanks, Jason From arlindo.dasilva at GMAIL.COM Fri Nov 20 16:10:58 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 20 Nov 2009 16:10:58 -0500 Subject: Aerosol concentration data In-Reply-To: <20091120185032.EBE111FE09@mx2.cineca.it> Message-ID: On Fri, Nov 20, 2009 at 1:49 PM, Jason Snyder wrote: > Do you know where I can get aerosol data sets that can be displayed in > GrADS? > > We have near-real time aerosol gridded fields from GEOS-5 at our OPeNDAP server: http://opendap.nccs.nasa.gov:9090/dods/GEOS-5/yotc/0.25_deg/assim Look at these collections: *1: inst3_2d_hwl_Nx:* 2d Fields info dds das *2: inst3_3d_aer_Nv:* 3d Fields info dds das *13: tavg3_2d_aer_Cx:* 2d Fields info dds das These are global datasets, some at 1/2 degree, others at 1/4 degree. GEOS-5 is a global data assimilation system, but no aerosol data is being assimilated at this time. However, the model is driven by near-real time MODIS derived biomass emissions. If you prefer to download subsets, click on "Download" at this URL: http://portal.nccs.nasa.gov/cgi-lats4d/opendap.cgi?&path=/GEOS-5/yotc/0.25_deg/assim This is a web interface to lats4d. A WMS viewer can be found here: http://wwwdev.map.nasa.gov/cgi-bin/viewer.cgi?project=geos5-aerosol-depc&year=2009&month=11&day=19&hour=00&fhour=0&mbar=850&expand=100&width=720&height=360&vproj=latlon&maxy=90&minx=-180&maxx=180&miny=-90&transparent=FALSE&bgcolor=0x000000&service=Go&layers=DUEXTTAU&layers=countries&nav=zin&factor=2&DUEXTTAU-style=DUEXTTAU&DUEXTTAU-ct=IDL22&DUEXTTAU-min=&DUEXTTAU-max=&DUEXTTAU-delta=&DUEXTTAU-amax= Arlindo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/3ee902ea/attachment.html From daniel.maineult at NEUF.FR Fri Nov 20 17:12:09 2009 From: daniel.maineult at NEUF.FR (Daniel MAINEULT) Date: Fri, 20 Nov 2009 23:12:09 +0100 Subject: printim Message-ID: Dear all, Thank you for your help and your advices. Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/73ffa141/attachment.html From azarzarrin at YAHOO.COM Fri Nov 20 18:04:10 2009 From: azarzarrin at YAHOO.COM (Azar Zarrin) Date: Fri, 20 Nov 2009 15:04:10 -0800 Subject: making In-Reply-To: <20091120193418.91E3B20372@mx2.cineca.it> Message-ID: Jason, I don't know how to use the xconv utility. However, you can write a data descriptor file (.ctl) for your NetCDF file if you know the dimensions, variables, and attributes of your file. First, do a "ncdump -h foo.nc''? to see the header of your NetCDF file. Then, look at this page which simply describes how to write a descriptor file. http://www.iges.org/grads/gadoc/aboutgriddeddata.html#descriptor I hope this helps. Azar --- On Fri, 11/20/09, Jason Snyder wrote: From: Jason Snyder Subject: making To: GRADSUSR at LIST.CINECA.IT Date: Friday, November 20, 2009, 10:32 PM I have a NetCDF data set that is a composite of wind data based on certain phases of the Madden Julian Oscillation and I was interested in looking at the backwards trajectories of air parcels coming into Lake Tahoe in such a scenario.? I have been trying to work with the script traj.gs, but GrADS said that TDEF is undefined.? I was then told that I need to use a .ctl file, but how do I convert data in NetCDF format to that that can be used in a .ctl file which I would need to run the script traj.gs.? Someone suggested that I use Use xconv utility, which has the website: http://badc.nerc.ac.uk/help/software/xconv/ However, I could not figure out how to use this program to convert a NetCDF file to a .ctl file.? Can someone show me how to use this program, or some other ways to obtained .ctl files that I could use in running the traj.gs script? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091120/1782a676/attachment.html From dasilva at ALUM.MIT.EDU Sat Nov 21 19:42:10 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Sat, 21 Nov 2009 19:42:10 -0500 Subject: gxyat In-Reply-To: Message-ID: On Sat, Nov 21, 2009 at 4:32 PM, Fil wrote: > Hi, > > I have a problem with the gxyat tool, it produces very large 32 bit png > files, some files are like 4x as large as printim files which are 8 bit. > Isn't it possible to set gxyat to produce 8 bit png files like printim? > > Yes, you can. Type "gxyat" without arguments and read the documentation, in particular example 7): 7) Producing a PNG image file with the default 800x600 size, but piping the output through another program to reduce the file size: ga-> gxyat -o '|pngquant 256 > test.png' Notice that in this case the .png in the end is still used for determining the format of the output file. The utility pngquant is included in the opengrads bundle. Notice that this technique could also be used with other applications such as ImageMagick. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091121/2d2c9764/attachment.html From taranaphy at YAHOO.COM Sun Nov 22 22:22:26 2009 From: taranaphy at YAHOO.COM (tarana mahzabin) Date: Sun, 22 Nov 2009 19:22:26 -0800 Subject: Windows GrADS In-Reply-To: <77D48A10-2C43-43FC-8777-AFC8B2969B83@cola.iges.org> Message-ID: Hi everybody, Is there no version of Grads for windows ? Last time I was using GrADS Version 1.8 win32e.exe. Also I have forgot my User Archive Password but getting a new password...the following error message comes "Error - unable to initiate communication with LISTSERV (errno=146). The server is probably not started." Anyone please me... Tarana Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091122/d7362948/attachment.html From j.faber at WEERONLINE.NL Mon Nov 23 03:56:41 2009 From: j.faber at WEERONLINE.NL (Jennifer Faber) Date: Mon, 23 Nov 2009 09:56:41 +0100 Subject: Windows GrADS In-Reply-To: <795857.75915.qm@web35904.mail.mud.yahoo.com> Message-ID: Tarana, Check out this website: http://sourceforge.net/projects/opengrads/files/ Use Grads 2.0 WIN 32. Otherwise you can also check out the website of GrADS: http://www.iges.org/grads/downloads.html And use the MS windows system Good luck! ----- Original Message ----- From: tarana mahzabin To: GRADSUSR at LIST.CINECA.IT Sent: Monday, November 23, 2009 4:22 AM Subject: Windows GrADS Hi everybody, Is there no version of Grads for windows ? Last time I was using GrADS Version 1.8 win32e.exe. Also I have forgot my User Archive Password but getting a new password...the following error message comes "Error - unable to initiate communication with LISTSERV (errno=146). The server is probably not started." Anyone please me... Tarana ------------------------------------------------------------------------------ Get your new Email address! Grab the Email name you've always wanted before someone else does! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091123/ef5e50d7/attachment.html From sushantpuranik at GMAIL.COM Tue Nov 24 02:00:31 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Tue, 24 Nov 2009 12:30:31 +0530 Subject: how to make maximum wind plot along with level showing maximum wind for each grid Message-ID: Hello Sir I want to study the structure of a jet stream for that purpose i wish to make a plot showing maximum wind speed for each grid box alongwith the level in which the speed is maximum. Means it should print level with maximum wind speed value. I am trying to solve this problem since last 15 days but i am not able to solve it. Does anyone has any idea how i can make such plot using GrADS. I am using ECMWF interim reanalysis data for this purpose. Any suggestion is appreciated Thanking you. -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091124/d2e002bc/attachment.html From mercedes8282 at GMAIL.COM Mon Nov 23 19:01:47 2009 From: mercedes8282 at GMAIL.COM (J L) Date: Tue, 24 Nov 2009 09:01:47 +0900 Subject: Hi. (about the password) Message-ID: Hi, I didn't get the password yet. is it something I get from you or different source? please let me know. thank you. Sincerely, John Lee Jong-Hyung Lee, M.S. Research Assistant Korea Ocean Research & Development Institute ANSAN P.O. Box 29, 425-600 KOREA Tel: 010-7488-4623 E-mail:mercedes8282 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091124/ea556da4/attachment.html From Charles.Seman at NOAA.GOV Tue Nov 24 12:11:42 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 24 Nov 2009 12:11:42 -0500 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <72e8bd3d0911232300n4554f6bt5330d94929aca1ad@mail.gmail.com> Message-ID: Sushant, Here's some code that: 1) finds the height level "zmin" of the minimum temperature (represented by variable ztav = zonal average of weighted time average temperature) at each horizontal location "j" in a (y,z) physical domain 2) uses GrADS function "gr2xy" (http://grads.iges.org/grads/gadoc/script.html#commands) to transform the grid point location (j,zmin) to plot location (xloc.j,yloc.j) 3) plots the values (xloc.j,yloc.j) on a (y,z) plot say ' find and save location of minimum temperature...' j=1 while ( j <= ny ) 'set y 'j 'set gxout print' 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = subwrd(rec3,1) * say result say ' ...j, zmin = 'j', 'zmin 'query gr2xy 'j' 'zmin rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = subwrd(rec,6) * say result say ' xloc, yloc = 'xloc.j', 'yloc.j j=j+1 endwhile ... if( plot_min_temp = 'yes' ) say ' plot level of minimum temperature... ' j=1 while ( j <= ny ) 'set y 'j * say ' xloc, yloc = 'xloc.j', 'yloc.j 'set line 1' 'draw mark 3 'xloc.j' 'yloc.j' 0.03' j=j+1 endwhile endif Please contact me if you have any questions about this code, or would like a script that does a plot. Hope this helps, Chuck sushant puranik wrote: > Hello Sir > I want to study the structure of a jet stream for that purpose i wish > to make a plot showing maximum wind speed for each grid box alongwith > the level in which the speed is maximum. Means it should print level > with maximum wind speed value. I am trying to solve this problem since > last 15 days but i am not able to solve it. Does anyone has any idea > how i can make such plot using GrADS. I am using ECMWF interim > reanalysis data for this purpose. > > Any suggestion is appreciated > > Thanking you. > > -- > Sushant Puranik > Junior Research Fellow > Dept. of Atmospheric & Space Sciences, > University of Pune, > Pune-07, > India. -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." From naishi at METEO.MCGILL.CA Tue Nov 24 12:40:05 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Tue, 24 Nov 2009 12:40:05 -0500 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <4B0C13CE.10305@noaa.gov> Message-ID: Hi Chuck, I also met this problem. And there are something unclear to me (only to me!)in your last email, because: (1) the level that has minimum temp isn't the same as the level where there is maximum zonal wind speed; (2) what does the meaning of the step (3) you said; sorry how can plot the values (xloc,j,yloc,j) on a (y,z)plot (this is the cross section in the height-latitude plane? (3)could you be kind to tell me the basic ideas to get the maximum jet stream, or... this means the contours of zonal wind speed in a specific level as 250mb or ...? (4)could you be kind to send me the script to do this plotting, and data file too for a test. I am quite confused about this! Thank you so much in advance! Phillip > Sushant, > > Here's some code that: > 1) finds the height level "zmin" of the minimum temperature (represented > by variable ztav = zonal average of weighted time average temperature) > at each horizontal location "j" in a (y,z) physical domain > 2) uses GrADS function "gr2xy" > (http://grads.iges.org/grads/gadoc/script.html#commands) to transform > the grid point location (j,zmin) to plot location (xloc.j,yloc.j) > 3) plots the values (xloc.j,yloc.j) on a (y,z) plot > > say ' find and save location of minimum temperature...' > > j=1 > while ( j <= ny ) > 'set y 'j > 'set gxout print' > 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = > subwrd(rec3,1) > * say result > say ' ...j, zmin = 'j', 'zmin > 'query gr2xy 'j' 'zmin > rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = > subwrd(rec,6) > * say result > say ' xloc, yloc = 'xloc.j', 'yloc.j > j=j+1 > endwhile > ... > if( plot_min_temp = 'yes' ) > say ' plot level of minimum temperature... ' > j=1 > while ( j <= ny ) > 'set y 'j > * say ' xloc, yloc = 'xloc.j', 'yloc.j > 'set line 1' > 'draw mark 3 'xloc.j' 'yloc.j' 0.03' > j=j+1 > endwhile > endif > > Please contact me if you have any questions about this code, or would > like a script that does a plot. > > Hope this helps, > Chuck > > > sushant puranik wrote: >> Hello Sir >> I want to study the structure of a jet stream for that purpose i wish >> to make a plot showing maximum wind speed for each grid box alongwith >> the level in which the speed is maximum. Means it should print level >> with maximum wind speed value. I am trying to solve this problem since >> last 15 days but i am not able to solve it. Does anyone has any idea >> how i can make such plot using GrADS. I am using ECMWF interim >> reanalysis data for this purpose. >> >> Any suggestion is appreciated >> >> Thanking you. >> >> -- >> Sushant Puranik >> Junior Research Fellow >> Dept. of Atmospheric & Space Sciences, >> University of Pune, >> Pune-07, >> India. > > -- > > Please note that Charles.Seman at noaa.gov should be considered my NOAA > email address, not cjs at gfdl.noaa.gov. > > ******************************************************************** > Charles Seman Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not necessarily > reflect any position of the Government or NOAA." > From stefano.materia at CMCC.IT Tue Nov 24 12:36:33 2009 From: stefano.materia at CMCC.IT (Stefano Materia) Date: Tue, 24 Nov 2009 18:36:33 +0100 Subject: concatenate defined fields in time In-Reply-To: <72e8bd3d0911232300n4554f6bt5330d94929aca1ad@mail.gmail.com> Message-ID: Hello, I have .ctl file with a monthly time series of 50 years, and I'd like to make time series for each month. Namely, I want one variable to loop through the 50 januaries, one to loop through the 50 februaries, etc. example: define jan1=field(t=1) "january of year #1" define jan2=field(t=13) "january of year #2" ... ... How can I define totjan = jan1 & jan2 & ...... so that set t 1 50 d totjan allows looping through jan1, jan2, etc... ? Is it possible to do that? Many thanks, Stefano -- ---- PLEASE NOTE THE CHANGE OF EMAIL ADDRESS ---- Stefano Materia - PhD CMCC - Centro Euro-Mediterraneo per i Cambiamenti Climatici Viale Aldo Moro, 44 - 40127 Bologna (ITA) tel. +390513782676, fax +390513782655 stefano.materia at cmcc.it ------------------------------------------------- From Charles.Seman at NOAA.GOV Tue Nov 24 12:53:19 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 24 Nov 2009 12:53:19 -0500 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <40209.132.206.43.20.1259084405.squirrel@www.meteo.mcgill.ca> Message-ID: Hi Phillip, Sorry I didn't explain further: the code was meant as an example of how to find and plot extrema in a field of data. To do the max wind, the code would have to be modified to search in a wind speed field using "maxloc"... and the exact code would also depend on the domain... Hope this helps, Chuck Phillip Lin wrote: > Hi Chuck, > I also met this problem. And there are something unclear to me (only to > me!)in your last email, because: > (1) the level that has minimum temp isn't the same as the level where > there is maximum zonal wind speed; > (2) what does the meaning of the step (3) you said; sorry how can plot the > values (xloc,j,yloc,j) on a (y,z)plot (this is the cross section in the > height-latitude plane? > (3)could you be kind to tell me the basic ideas to get the maximum jet > stream, or... this means the contours of zonal wind speed in a specific > level as 250mb or ...? > (4)could you be kind to send me the script to do this plotting, and data > file too for a test. > I am quite confused about this! Thank you so much in advance! > Phillip > > > >> Sushant, >> >> Here's some code that: >> 1) finds the height level "zmin" of the minimum temperature (represented >> by variable ztav = zonal average of weighted time average temperature) >> at each horizontal location "j" in a (y,z) physical domain >> 2) uses GrADS function "gr2xy" >> (http://grads.iges.org/grads/gadoc/script.html#commands) to transform >> the grid point location (j,zmin) to plot location (xloc.j,yloc.j) >> 3) plots the values (xloc.j,yloc.j) on a (y,z) plot >> >> say ' find and save location of minimum temperature...' >> >> j=1 >> while ( j <= ny ) >> 'set y 'j >> 'set gxout print' >> 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = >> subwrd(rec3,1) >> * say result >> say ' ...j, zmin = 'j', 'zmin >> 'query gr2xy 'j' 'zmin >> rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = >> subwrd(rec,6) >> * say result >> say ' xloc, yloc = 'xloc.j', 'yloc.j >> j=j+1 >> endwhile >> ... >> if( plot_min_temp = 'yes' ) >> say ' plot level of minimum temperature... ' >> j=1 >> while ( j <= ny ) >> 'set y 'j >> * say ' xloc, yloc = 'xloc.j', 'yloc.j >> 'set line 1' >> 'draw mark 3 'xloc.j' 'yloc.j' 0.03' >> j=j+1 >> endwhile >> endif >> >> Please contact me if you have any questions about this code, or would >> like a script that does a plot. >> >> Hope this helps, >> Chuck >> >> >> sushant puranik wrote: >> >>> Hello Sir >>> I want to study the structure of a jet stream for that purpose i wish >>> to make a plot showing maximum wind speed for each grid box alongwith >>> the level in which the speed is maximum. Means it should print level >>> with maximum wind speed value. I am trying to solve this problem since >>> last 15 days but i am not able to solve it. Does anyone has any idea >>> how i can make such plot using GrADS. I am using ECMWF interim >>> reanalysis data for this purpose. >>> >>> Any suggestion is appreciated >>> >>> Thanking you. >>> >>> -- >>> Sushant Puranik >>> Junior Research Fellow >>> Dept. of Atmospheric & Space Sciences, >>> University of Pune, >>> Pune-07, >>> India. >>> >> -- >> >> Please note that Charles.Seman at noaa.gov should be considered my NOAA >> email address, not cjs at gfdl.noaa.gov. >> >> ******************************************************************** >> Charles Seman Charles.Seman at noaa.gov >> U.S. Department of Commerce / NOAA / OAR >> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >> 201 Forrestal Road fax: (609) 987-5063 >> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >> ******************************************************************** >> >> "The contents of this message are mine personally and do not necessarily >> reflect any position of the Government or NOAA." >> >> -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." From naishi at METEO.MCGILL.CA Tue Nov 24 13:31:17 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Tue, 24 Nov 2009 13:31:17 -0500 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <4B0C1D8F.50300@noaa.gov> Message-ID: Hi Chuck, Thanks for your dedicated input to this problem we have. And could you be kind to send me a script you did before for the sane or similar question? Then, maybe it is much helpful for me to solve this problem! Thanks much! Phillip > Hi Phillip, > > Sorry I didn't explain further: the code was meant as an example of how > to find and plot extrema in a field of data. To do the max wind, the > code would have to be modified to search in a wind speed field using > "maxloc"... and the exact code would also depend on the domain... > > Hope this helps, > Chuck > > Phillip Lin wrote: >> Hi Chuck, >> I also met this problem. And there are something unclear to me (only to >> me!)in your last email, because: >> (1) the level that has minimum temp isn't the same as the level where >> there is maximum zonal wind speed; >> (2) what does the meaning of the step (3) you said; sorry how can plot >> the >> values (xloc,j,yloc,j) on a (y,z)plot (this is the cross section in the >> height-latitude plane? >> (3)could you be kind to tell me the basic ideas to get the maximum jet >> stream, or... this means the contours of zonal wind speed in a specific >> level as 250mb or ...? >> (4)could you be kind to send me the script to do this plotting, and data >> file too for a test. >> I am quite confused about this! Thank you so much in advance! >> Phillip >> >> >> >>> Sushant, >>> >>> Here's some code that: >>> 1) finds the height level "zmin" of the minimum temperature >>> (represented >>> by variable ztav = zonal average of weighted time average temperature) >>> at each horizontal location "j" in a (y,z) physical domain >>> 2) uses GrADS function "gr2xy" >>> (http://grads.iges.org/grads/gadoc/script.html#commands) to transform >>> the grid point location (j,zmin) to plot location (xloc.j,yloc.j) >>> 3) plots the values (xloc.j,yloc.j) on a (y,z) plot >>> >>> say ' find and save location of minimum temperature...' >>> >>> j=1 >>> while ( j <= ny ) >>> 'set y 'j >>> 'set gxout print' >>> 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = >>> subwrd(rec3,1) >>> * say result >>> say ' ...j, zmin = 'j', 'zmin >>> 'query gr2xy 'j' 'zmin >>> rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = >>> subwrd(rec,6) >>> * say result >>> say ' xloc, yloc = 'xloc.j', 'yloc.j >>> j=j+1 >>> endwhile >>> ... >>> if( plot_min_temp = 'yes' ) >>> say ' plot level of minimum temperature... ' >>> j=1 >>> while ( j <= ny ) >>> 'set y 'j >>> * say ' xloc, yloc = 'xloc.j', 'yloc.j >>> 'set line 1' >>> 'draw mark 3 'xloc.j' 'yloc.j' 0.03' >>> j=j+1 >>> endwhile >>> endif >>> >>> Please contact me if you have any questions about this code, or would >>> like a script that does a plot. >>> >>> Hope this helps, >>> Chuck >>> >>> >>> sushant puranik wrote: >>> >>>> Hello Sir >>>> I want to study the structure of a jet stream for that purpose i wish >>>> to make a plot showing maximum wind speed for each grid box alongwith >>>> the level in which the speed is maximum. Means it should print level >>>> with maximum wind speed value. I am trying to solve this problem since >>>> last 15 days but i am not able to solve it. Does anyone has any idea >>>> how i can make such plot using GrADS. I am using ECMWF interim >>>> reanalysis data for this purpose. >>>> >>>> Any suggestion is appreciated >>>> >>>> Thanking you. >>>> >>>> -- >>>> Sushant Puranik >>>> Junior Research Fellow >>>> Dept. of Atmospheric & Space Sciences, >>>> University of Pune, >>>> Pune-07, >>>> India. >>>> >>> -- >>> >>> Please note that Charles.Seman at noaa.gov should be considered my NOAA >>> email address, not cjs at gfdl.noaa.gov. >>> >>> ******************************************************************** >>> Charles Seman Charles.Seman at noaa.gov >>> U.S. Department of Commerce / NOAA / OAR >>> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >>> 201 Forrestal Road fax: (609) 987-5063 >>> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >>> ******************************************************************** >>> >>> "The contents of this message are mine personally and do not >>> necessarily >>> reflect any position of the Government or NOAA." >>> >>> > > -- > > Please note that Charles.Seman at noaa.gov should be considered my NOAA > email address, not cjs at gfdl.noaa.gov. > > ******************************************************************** > Charles Seman Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not necessarily > reflect any position of the Government or NOAA." > From jimp at HAWAII.EDU Tue Nov 24 13:48:57 2009 From: jimp at HAWAII.EDU (James T. Potemra) Date: Tue, 24 Nov 2009 08:48:57 -1000 Subject: concatenate defined fields in time In-Reply-To: <4B0C19A1.2020905@cmcc.it> Message-ID: Hi Stephano: I think you can just use the "skip" function, e.g., 'set t 1 600' 'd skip(taux,12)' should plot every 12th point starting at t=1 (so every January). You can check by first plotting the entire time-series, then every 12th point to make sure this is what you want, e.g., 'set t 1 600' 'd taux' 'd skip(taux,12)' Jim Stefano Materia wrote: > Hello, > > I have .ctl file with a monthly time series of 50 years, and I'd like to > make time series for each month. Namely, I want one variable to loop > through the 50 januaries, one to loop through the 50 februaries, etc. > > example: > > define jan1=field(t=1) "january of year #1" define jan2=field(t=13) > "january of year #2" ... ... > > How can I define totjan = jan1 & jan2 & ...... > > so that > > set t 1 50 d totjan > > allows looping through jan1, jan2, etc... ? Is it possible to do that? > > Many thanks, Stefano > > -- > > ---- PLEASE NOTE THE CHANGE OF EMAIL ADDRESS ---- > > Stefano Materia - PhD > CMCC - Centro Euro-Mediterraneo per i Cambiamenti Climatici > Viale Aldo Moro, 44 - 40127 Bologna (ITA) > tel. +390513782676, fax +390513782655 > stefano.materia at cmcc.it > > ------------------------------------------------- From Charles.Seman at NOAA.GOV Tue Nov 24 14:31:54 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 24 Nov 2009 14:31:54 -0500 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <46968.132.206.43.20.1259087477.squirrel@www.meteo.mcgill.ca> Message-ID: Hi Phillip, Please find attached a script "fig3ab.gs" and called script functions "pause.gsf" and "scale_zdef_zlevs.gsf". "scale_zdef_zlevs.gsf" makes a local (temporary) ctl file with scaled vertical levels for plotting purposes: here specifically to convert the original zdef zlevs values from meters to kilometers (there may be a better way to do this; maybe using commands "set ylab off", followed by "set yaxis ..."). I hope all of the scripts needed for the fig3ab.gs script are attached; if not, please let me know. You may have questions about these scripts; please contact me if you do... Hope this helps, Chuck Phillip Lin wrote: > Hi Chuck, > Thanks for your dedicated input to this problem we have. > And could you be kind to send me a script you did before for the sane or > similar question? Then, maybe it is much helpful for me to solve this > problem! > Thanks much! > Phillip > > >> Hi Phillip, >> >> Sorry I didn't explain further: the code was meant as an example of how >> to find and plot extrema in a field of data. To do the max wind, the >> code would have to be modified to search in a wind speed field using >> "maxloc"... and the exact code would also depend on the domain... >> >> Hope this helps, >> Chuck >> >> Phillip Lin wrote: >> >>> Hi Chuck, >>> I also met this problem. And there are something unclear to me (only to >>> me!)in your last email, because: >>> (1) the level that has minimum temp isn't the same as the level where >>> there is maximum zonal wind speed; >>> (2) what does the meaning of the step (3) you said; sorry how can plot >>> the >>> values (xloc,j,yloc,j) on a (y,z)plot (this is the cross section in the >>> height-latitude plane? >>> (3)could you be kind to tell me the basic ideas to get the maximum jet >>> stream, or... this means the contours of zonal wind speed in a specific >>> level as 250mb or ...? >>> (4)could you be kind to send me the script to do this plotting, and data >>> file too for a test. >>> I am quite confused about this! Thank you so much in advance! >>> Phillip >>> >>> >>> >>> >>>> Sushant, >>>> >>>> Here's some code that: >>>> 1) finds the height level "zmin" of the minimum temperature >>>> (represented >>>> by variable ztav = zonal average of weighted time average temperature) >>>> at each horizontal location "j" in a (y,z) physical domain >>>> 2) uses GrADS function "gr2xy" >>>> (http://grads.iges.org/grads/gadoc/script.html#commands) to transform >>>> the grid point location (j,zmin) to plot location (xloc.j,yloc.j) >>>> 3) plots the values (xloc.j,yloc.j) on a (y,z) plot >>>> >>>> say ' find and save location of minimum temperature...' >>>> >>>> j=1 >>>> while ( j <= ny ) >>>> 'set y 'j >>>> 'set gxout print' >>>> 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = >>>> subwrd(rec3,1) >>>> * say result >>>> say ' ...j, zmin = 'j', 'zmin >>>> 'query gr2xy 'j' 'zmin >>>> rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = >>>> subwrd(rec,6) >>>> * say result >>>> say ' xloc, yloc = 'xloc.j', 'yloc.j >>>> j=j+1 >>>> endwhile >>>> ... >>>> if( plot_min_temp = 'yes' ) >>>> say ' plot level of minimum temperature... ' >>>> j=1 >>>> while ( j <= ny ) >>>> 'set y 'j >>>> * say ' xloc, yloc = 'xloc.j', 'yloc.j >>>> 'set line 1' >>>> 'draw mark 3 'xloc.j' 'yloc.j' 0.03' >>>> j=j+1 >>>> endwhile >>>> endif >>>> >>>> Please contact me if you have any questions about this code, or would >>>> like a script that does a plot. >>>> >>>> Hope this helps, >>>> Chuck >>>> >>>> >>>> sushant puranik wrote: >>>> >>>> >>>>> Hello Sir >>>>> I want to study the structure of a jet stream for that purpose i wish >>>>> to make a plot showing maximum wind speed for each grid box alongwith >>>>> the level in which the speed is maximum. Means it should print level >>>>> with maximum wind speed value. I am trying to solve this problem since >>>>> last 15 days but i am not able to solve it. Does anyone has any idea >>>>> how i can make such plot using GrADS. I am using ECMWF interim >>>>> reanalysis data for this purpose. >>>>> >>>>> Any suggestion is appreciated >>>>> >>>>> Thanking you. >>>>> >>>>> -- >>>>> Sushant Puranik >>>>> Junior Research Fellow >>>>> Dept. of Atmospheric & Space Sciences, >>>>> University of Pune, >>>>> Pune-07, >>>>> India. >>>>> >>>>> >>>> -- >>>> >>>> Please note that Charles.Seman at noaa.gov should be considered my NOAA >>>> email address, not cjs at gfdl.noaa.gov. >>>> >>>> ******************************************************************** >>>> Charles Seman Charles.Seman at noaa.gov >>>> U.S. Department of Commerce / NOAA / OAR >>>> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >>>> 201 Forrestal Road fax: (609) 987-5063 >>>> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >>>> ******************************************************************** >>>> >>>> "The contents of this message are mine personally and do not >>>> necessarily >>>> reflect any position of the Government or NOAA." >>>> >>>> >>>> >> -- >> >> Please note that Charles.Seman at noaa.gov should be considered my NOAA >> email address, not cjs at gfdl.noaa.gov. >> >> ******************************************************************** >> Charles Seman Charles.Seman at noaa.gov >> U.S. Department of Commerce / NOAA / OAR >> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >> 201 Forrestal Road fax: (609) 987-5063 >> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >> ******************************************************************** >> >> "The contents of this message are mine personally and do not necessarily >> reflect any position of the Government or NOAA." >> >> -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fig3ab.gs Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091124/043a4bbe/attachment.pl -------------- next part -------------- A non-text attachment was scrubbed... Name: pause.gsf Type: application/x-font-type1 Size: 355 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091124/043a4bbe/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: scale_zdef_zlevs.gsf Type: application/x-font-type1 Size: 3604 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091124/043a4bbe/attachment-0001.bin From naishi at METEO.MCGILL.CA Tue Nov 24 15:01:21 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Tue, 24 Nov 2009 15:01:21 -0500 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <4B0C34AA.5030109@noaa.gov> Message-ID: Hi Chuck, Thanks so much! I will test them first and then let you know the progress! Phillip > Hi Phillip, > > Please find attached a script "fig3ab.gs" and called script functions > "pause.gsf" and "scale_zdef_zlevs.gsf". "scale_zdef_zlevs.gsf" makes a > local (temporary) ctl file with scaled vertical levels for plotting > purposes: here specifically to convert the original zdef zlevs values > from meters to kilometers (there may be a better way to do this; maybe > using commands "set ylab off", followed by "set yaxis ..."). I hope all > of the scripts needed for the fig3ab.gs script are attached; if not, > please let me know. You may have questions about these scripts; please > contact me if you do... > > Hope this helps, > Chuck > > Phillip Lin wrote: >> Hi Chuck, >> Thanks for your dedicated input to this problem we have. >> And could you be kind to send me a script you did before for the sane or >> similar question? Then, maybe it is much helpful for me to solve this >> problem! >> Thanks much! >> Phillip >> >> >>> Hi Phillip, >>> >>> Sorry I didn't explain further: the code was meant as an example of how >>> to find and plot extrema in a field of data. To do the max wind, the >>> code would have to be modified to search in a wind speed field using >>> "maxloc"... and the exact code would also depend on the domain... >>> >>> Hope this helps, >>> Chuck >>> >>> Phillip Lin wrote: >>> >>>> Hi Chuck, >>>> I also met this problem. And there are something unclear to me (only >>>> to >>>> me!)in your last email, because: >>>> (1) the level that has minimum temp isn't the same as the level where >>>> there is maximum zonal wind speed; >>>> (2) what does the meaning of the step (3) you said; sorry how can plot >>>> the >>>> values (xloc,j,yloc,j) on a (y,z)plot (this is the cross section in >>>> the >>>> height-latitude plane? >>>> (3)could you be kind to tell me the basic ideas to get the maximum jet >>>> stream, or... this means the contours of zonal wind speed in a >>>> specific >>>> level as 250mb or ...? >>>> (4)could you be kind to send me the script to do this plotting, and >>>> data >>>> file too for a test. >>>> I am quite confused about this! Thank you so much in advance! >>>> Phillip >>>> >>>> >>>> >>>> >>>>> Sushant, >>>>> >>>>> Here's some code that: >>>>> 1) finds the height level "zmin" of the minimum temperature >>>>> (represented >>>>> by variable ztav = zonal average of weighted time average >>>>> temperature) >>>>> at each horizontal location "j" in a (y,z) physical domain >>>>> 2) uses GrADS function "gr2xy" >>>>> (http://grads.iges.org/grads/gadoc/script.html#commands) to transform >>>>> the grid point location (j,zmin) to plot location (xloc.j,yloc.j) >>>>> 3) plots the values (xloc.j,yloc.j) on a (y,z) plot >>>>> >>>>> say ' find and save location of minimum temperature...' >>>>> >>>>> j=1 >>>>> while ( j <= ny ) >>>>> 'set y 'j >>>>> 'set gxout print' >>>>> 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = >>>>> subwrd(rec3,1) >>>>> * say result >>>>> say ' ...j, zmin = 'j', 'zmin >>>>> 'query gr2xy 'j' 'zmin >>>>> rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = >>>>> subwrd(rec,6) >>>>> * say result >>>>> say ' xloc, yloc = 'xloc.j', 'yloc.j >>>>> j=j+1 >>>>> endwhile >>>>> ... >>>>> if( plot_min_temp = 'yes' ) >>>>> say ' plot level of minimum temperature... ' >>>>> j=1 >>>>> while ( j <= ny ) >>>>> 'set y 'j >>>>> * say ' xloc, yloc = 'xloc.j', 'yloc.j >>>>> 'set line 1' >>>>> 'draw mark 3 'xloc.j' 'yloc.j' 0.03' >>>>> j=j+1 >>>>> endwhile >>>>> endif >>>>> >>>>> Please contact me if you have any questions about this code, or would >>>>> like a script that does a plot. >>>>> >>>>> Hope this helps, >>>>> Chuck >>>>> >>>>> >>>>> sushant puranik wrote: >>>>> >>>>> >>>>>> Hello Sir >>>>>> I want to study the structure of a jet stream for that purpose i >>>>>> wish >>>>>> to make a plot showing maximum wind speed for each grid box >>>>>> alongwith >>>>>> the level in which the speed is maximum. Means it should print level >>>>>> with maximum wind speed value. I am trying to solve this problem >>>>>> since >>>>>> last 15 days but i am not able to solve it. Does anyone has any idea >>>>>> how i can make such plot using GrADS. I am using ECMWF interim >>>>>> reanalysis data for this purpose. >>>>>> >>>>>> Any suggestion is appreciated >>>>>> >>>>>> Thanking you. >>>>>> >>>>>> -- >>>>>> Sushant Puranik >>>>>> Junior Research Fellow >>>>>> Dept. of Atmospheric & Space Sciences, >>>>>> University of Pune, >>>>>> Pune-07, >>>>>> India. >>>>>> >>>>>> >>>>> -- >>>>> >>>>> Please note that Charles.Seman at noaa.gov should be considered my NOAA >>>>> email address, not cjs at gfdl.noaa.gov. >>>>> >>>>> ******************************************************************** >>>>> Charles Seman Charles.Seman at noaa.gov >>>>> U.S. Department of Commerce / NOAA / OAR >>>>> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >>>>> 201 Forrestal Road fax: (609) 987-5063 >>>>> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >>>>> ******************************************************************** >>>>> >>>>> "The contents of this message are mine personally and do not >>>>> necessarily >>>>> reflect any position of the Government or NOAA." >>>>> >>>>> >>>>> >>> -- >>> >>> Please note that Charles.Seman at noaa.gov should be considered my NOAA >>> email address, not cjs at gfdl.noaa.gov. >>> >>> ******************************************************************** >>> Charles Seman Charles.Seman at noaa.gov >>> U.S. Department of Commerce / NOAA / OAR >>> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >>> 201 Forrestal Road fax: (609) 987-5063 >>> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >>> ******************************************************************** >>> >>> "The contents of this message are mine personally and do not >>> necessarily >>> reflect any position of the Government or NOAA." >>> >>> > > -- > > Please note that Charles.Seman at noaa.gov should be considered my NOAA > email address, not cjs at gfdl.noaa.gov. > > ******************************************************************** > Charles Seman Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not necessarily > reflect any position of the Government or NOAA." > > From luis.blacutt at GMAIL.COM Tue Nov 24 15:11:19 2009 From: luis.blacutt at GMAIL.COM (luis blacutt) Date: Tue, 24 Nov 2009 16:11:19 -0400 Subject: Problem with ctl file Message-ID: Dear Grads users, I'm writing a ctl file to open 24 (only 24) files, baseline1pmg2jantp.grb baseline1pmg2febtp.grb baseline1pmg2martp.grb . . . baseline1pmg2janpr.grb baseline1pmg2febpr.grb baseline1pmg2marpr.grb . . . my ctl file is as follows: dset ^baseline1pmg2%mctp.grb index ^baseline1pmg2%mctp.grb.idx options template undef 9.999E+20 title Temperature at 1.5 m * produced by LFA 0.3 dtype grib 255 options yrev ydef 37 linear -23.960000 0.439 xdef 36 linear -72.240000 0.440000 tdef 12 linear 00Z01jan1962 1mo zdef 1 linear 1 1 vars 1 s03236 0 236,105,0 ** ENDVARS As for now I'm trying to open only 12 files, with one variable, the error I get is: Scanning description file: first.ctl Open Error: Can't open Station/Index map file baseline1pmg2%mctp.grb.idx The data file was not opened. Thanks Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091124/f4eb1ae8/attachment.html From sushantpuranik at GMAIL.COM Wed Nov 25 03:25:43 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Wed, 25 Nov 2009 13:55:43 +0530 Subject: how to make maximum wind plot along with level showing maximum wind for each grid In-Reply-To: <4B0C34AA.5030109@noaa.gov> Message-ID: Thank you for immediate reply i am testing those scripts. but while running the script it shows error in the information of GrADS files level_dir = '/net2/cjs/ljd/lima/ch3i1/pp/atmos_level/av/monthly_16yr' don_dir = '/net2/cjs/ljd/lima/ch3i1/pp/atmosdon/av/monthly_16yr' ras_dir = '/net2/cjs/lwh/fms/lima/m45_am2p14_ch3i/pp/atmos_level/av/monthly_16yr' sdir_months = 'Aug Sep' month_days = '31 30' /home/Sushant/Desktop/level_ctl = 'mc.o_zl.ctl' ; level_var = 'mc' don_ctl1 = 'uceml_deep.o_zl.ctl' ; don_var1 = 'uceml_deep' don_ctl2 = 'umeml_deep.o_zl.ctl' ; don_var2 = 'umeml_deep' don_ctl3 = 'dmeml_deep.o_zl.ctl' ; don_var3 = 'dmeml_deep' ras_ctl = 'mc.o_zl.ctl' ; ras_var = 'mc' temp_ctl = 'temp.o_zl.ctl' ; temp_var = 'temp' So can you please send me those files. Also i am using ECMWF data in the netcdf format. So there is no need to use ctl files. It is possible to run the script without using such ctl file info. Sushant On Wed, Nov 25, 2009 at 1:01 AM, Charles Seman wrote: > Hi Phillip, > > Please find attached a script "fig3ab.gs" and called script functions > "pause.gsf" and "scale_zdef_zlevs.gsf". "scale_zdef_zlevs.gsf" makes a > local (temporary) ctl file with scaled vertical levels for plotting > purposes: here specifically to convert the original zdef zlevs values > from meters to kilometers (there may be a better way to do this; maybe > using commands "set ylab off", followed by "set yaxis ..."). I hope all > of the scripts needed for the fig3ab.gs script are attached; if not, > please let me know. You may have questions about these scripts; please > contact me if you do... > > > Hope this helps, > Chuck > > Phillip Lin wrote: > >> Hi Chuck, >> Thanks for your dedicated input to this problem we have. >> And could you be kind to send me a script you did before for the sane or >> similar question? Then, maybe it is much helpful for me to solve this >> problem! >> Thanks much! >> Phillip >> >> >> Hi Phillip, >>> >>> Sorry I didn't explain further: the code was meant as an example of how >>> to find and plot extrema in a field of data. To do the max wind, the >>> code would have to be modified to search in a wind speed field using >>> "maxloc"... and the exact code would also depend on the domain... >>> >>> Hope this helps, >>> Chuck >>> >>> Phillip Lin wrote: >>> >>> Hi Chuck, >>>> I also met this problem. And there are something unclear to me (only to >>>> me!)in your last email, because: >>>> (1) the level that has minimum temp isn't the same as the level where >>>> there is maximum zonal wind speed; >>>> (2) what does the meaning of the step (3) you said; sorry how can plot >>>> the >>>> values (xloc,j,yloc,j) on a (y,z)plot (this is the cross section in the >>>> height-latitude plane? >>>> (3)could you be kind to tell me the basic ideas to get the maximum jet >>>> stream, or... this means the contours of zonal wind speed in a specific >>>> level as 250mb or ...? >>>> (4)could you be kind to send me the script to do this plotting, and data >>>> file too for a test. >>>> I am quite confused about this! Thank you so much in advance! >>>> Phillip >>>> >>>> >>>> >>>> >>>> Sushant, >>>>> >>>>> Here's some code that: >>>>> 1) finds the height level "zmin" of the minimum temperature >>>>> (represented >>>>> by variable ztav = zonal average of weighted time average temperature) >>>>> at each horizontal location "j" in a (y,z) physical domain >>>>> 2) uses GrADS function "gr2xy" >>>>> (http://grads.iges.org/grads/gadoc/script.html#commands) to transform >>>>> the grid point location (j,zmin) to plot location (xloc.j,yloc.j) >>>>> 3) plots the values (xloc.j,yloc.j) on a (y,z) plot >>>>> >>>>> say ' find and save location of minimum temperature...' >>>>> >>>>> j=1 >>>>> while ( j <= ny ) >>>>> 'set y 'j >>>>> 'set gxout print' >>>>> 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = >>>>> subwrd(rec3,1) >>>>> * say result >>>>> say ' ...j, zmin = 'j', 'zmin >>>>> 'query gr2xy 'j' 'zmin >>>>> rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = >>>>> subwrd(rec,6) >>>>> * say result >>>>> say ' xloc, yloc = 'xloc.j', 'yloc.j >>>>> j=j+1 >>>>> endwhile >>>>> ... >>>>> if( plot_min_temp = 'yes' ) >>>>> say ' plot level of minimum temperature... ' >>>>> j=1 >>>>> while ( j <= ny ) >>>>> 'set y 'j >>>>> * say ' xloc, yloc = 'xloc.j', 'yloc.j >>>>> 'set line 1' >>>>> 'draw mark 3 'xloc.j' 'yloc.j' 0.03' >>>>> j=j+1 >>>>> endwhile >>>>> endif >>>>> >>>>> Please contact me if you have any questions about this code, or would >>>>> like a script that does a plot. >>>>> >>>>> Hope this helps, >>>>> Chuck >>>>> >>>>> >>>>> sushant puranik wrote: >>>>> >>>>> >>>>> Hello Sir >>>>>> I want to study the structure of a jet stream for that purpose i wish >>>>>> to make a plot showing maximum wind speed for each grid box alongwith >>>>>> the level in which the speed is maximum. Means it should print level >>>>>> with maximum wind speed value. I am trying to solve this problem since >>>>>> last 15 days but i am not able to solve it. Does anyone has any idea >>>>>> how i can make such plot using GrADS. I am using ECMWF interim >>>>>> reanalysis data for this purpose. >>>>>> >>>>>> Any suggestion is appreciated >>>>>> >>>>>> Thanking you. >>>>>> >>>>>> -- >>>>>> Sushant Puranik >>>>>> Junior Research Fellow >>>>>> Dept. of Atmospheric & Space Sciences, >>>>>> University of Pune, >>>>>> Pune-07, >>>>>> India. >>>>>> >>>>>> >>>>>> -- >>>>> >>>>> Please note that Charles.Seman at noaa.gov should be considered my NOAA >>>>> email address, not cjs at gfdl.noaa.gov. >>>>> >>>>> ******************************************************************** >>>>> Charles Seman Charles.Seman at noaa.gov >>>>> U.S. Department of Commerce / NOAA / OAR >>>>> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >>>>> 201 Forrestal Road fax: (609) 987-5063 >>>>> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >>>>> ******************************************************************** >>>>> >>>>> "The contents of this message are mine personally and do not >>>>> necessarily >>>>> reflect any position of the Government or NOAA." >>>>> >>>>> >>>>> >>>>> -- >>> >>> Please note that Charles.Seman at noaa.gov should be considered my NOAA >>> email address, not cjs at gfdl.noaa.gov. >>> >>> ******************************************************************** >>> Charles Seman Charles.Seman at noaa.gov >>> U.S. Department of Commerce / NOAA / OAR >>> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 >>> 201 Forrestal Road fax: (609) 987-5063 >>> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ >>> ******************************************************************** >>> >>> "The contents of this message are mine personally and do not necessarily >>> reflect any position of the Government or NOAA." >>> >>> >>> > -- > > Please note that Charles.Seman at noaa.gov should be considered my NOAA > email address, not cjs at gfdl.noaa.gov. > > ******************************************************************** > Charles Seman Charles.Seman at noaa.gov > U.S. Department of Commerce / NOAA / OAR > Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 > 201 Forrestal Road fax: (609) 987-5063 > Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ > ******************************************************************** > > "The contents of this message are mine personally and do not necessarily > reflect any position of the Government or NOAA." > > > ************************************************************************ > * > * To use: "grads -p" > * > * Script calculates and plots zonally averaged cross-sections of the > * time averaged height interpolated "mass flux" from the GrADS files > * specified below (with an option to overlay the level of minimum > * temperature): > * > ************************************************************************ > function mass_flux (args) > > 'reinit' > > ************************************************************************ > * Allow external GrADS functions > ************************************************************************ > > rc = gsfallow("on") > > ************************************************************************ > * Pause between plots? > ************************************************************************ > > do_pause = 'no' > > ************************************************************************ > * GrADS meta file output? > ************************************************************************ > > do_print = 'yes' > > ************************************************************************ > * Information for GrADS files > ************************************************************************ > > level_dir = '/net2/cjs/ljd/lima/ch3i1/pp/atmos_level/av/monthly_16yr' > don_dir = '/net2/cjs/ljd/lima/ch3i1/pp/atmosdon/av/monthly_16yr' > ras_dir = > '/net2/cjs/lwh/fms/lima/m45_am2p14_ch3i/pp/atmos_level/av/monthly_16yr' > > sdir_months = 'Aug Sep' > month_days = '31 30' > > level_ctl = 'mc.o_zl.ctl' ; level_var = 'mc' > don_ctl1 = 'uceml_deep.o_zl.ctl' ; don_var1 = 'uceml_deep' > don_ctl2 = 'umeml_deep.o_zl.ctl' ; don_var2 = 'umeml_deep' > don_ctl3 = 'dmeml_deep.o_zl.ctl' ; don_var3 = 'dmeml_deep' > > ras_ctl = 'mc.o_zl.ctl' ; ras_var = 'mc' > > temp_ctl = 'temp.o_zl.ctl' ; temp_var = 'temp' > > ************************************************************************ > * Information for the plots > ************************************************************************ > > plot_min_max = 'no' > * > * Mass flux variable scale and units > * > var_scale = 1000 > var_units = '(g m`a-2`n s`a-1`n)' > * > * Height levels (scale GrADS ctl file levels from "m" to "km") > * > zscale = 1./1000. > zlevs = '0 18' > ylabel_int = 2 > ylabel = 'Height (km)' > * > * Define the contour levels... > * > *contour_levels = '1 3 5 7 9 11 13' > *contour_levels = '0 2 4 6 8 10 12 14 16' > contour_levels = '0 0.01 0.1 1 3 5 7 10 15' > * > * Plot level of minimum temperature? > * > plot_min_temp = 'yes' > > ************************************************************************ > * Plot variables' page limits > ************************************************************************ > > pvar_vpage.1 = '0 8.5 4.8 9.3' > pvar_vpage.2 = '0 8.5 0.3 4.8' > pvar_parea = '1 7.0 0.5 4.0' > > xl_pvar_parea = subwrd(pvar_parea,1) > yt_pvar_parea = subwrd(pvar_parea,4) > > ************************************************************************ > * Title information for the plots > ************************************************************************ > > mod_title = 'FMS lima 1983-1998' > var_title = 'Mass Flux 'var_units > avg_title = 'Zonal average of weighted time average' > > figure_panel.1 = '(a)' ; model.1 = 'AM2-D' > figure_panel.2 = '(b)' ; model.2 = 'AM2' > * > * Define names for the "sdir_months" subdirectories... > * > define_months() > > ************************************************************************ > * GrADS metafile for output > ************************************************************************ > > if( do_print = 'yes' ) > 'enable print fig3ab.gx' > endif > > *----------------------------------------------------------------------- > * Determine number of months to average... > *----------------------------------------------------------------------- > > n=1 > month = subwrd(sdir_months,n) > if( month = '' ) > say > say 'No months specified in variable "sdir_months"...' > say 'Exiting script' > say > exit > else > while ( month != '' ) > n=n+1 > month = subwrd(sdir_months,n) > endwhile > nmonths=n-1 > endif > > first = subwrd(sdir_months,1) ; last = subwrd(sdir_months,nmonths) > months = ''_name.first'-'_name.last'' > > *----------------------------------------------------------------------- > * Verify height levels... > *----------------------------------------------------------------------- > > l=1 > zlv.l = subwrd(zlevs,l) > if( zlv.l = '' ) > say > say 'No pressure levels specified in variable "zlevs"...' > say 'Exiting script' > say > exit > else > while ( zlv.l != '' ) > l=l+1 > zlv.l = subwrd(zlevs,l) > endwhile > nl = l-1 > if( nl > 2 ) > say > say 'More than two height levels ("nl" = 'nl') specified in variable > "zlevs"...' > say 'Exiting script' > say > exit > else > if( zlv.2 <= zlv.1 ) > say > say 'Height level "2" (= 'zlv.2') not greater than height level "1" (= > 'plv.1')...' > say 'Exiting script' > say > exit > endif > endif > endif > > say > say '------------------------------------------------------------------' > say 'Calculate zonal averages of weighted time average "mass fluxes"...' > say '------------------------------------------------------------------' > say > say 'Initialize time sum variables for time average...' > say > * > * Use GrADS ctl files for the first "month" to define time sum > variables... > * > month1 = subwrd(sdir_months,1) > say > say '--------------------' > say 'Model: 'model.1 > say '--------------------' > say > > ctl_file = ''level_dir'/'month1'/'level_ctl > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'mass_flux.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > > 'query file' > rec5 = sublin(result,5) > nx = subwrd(rec5,3) ; ny = subwrd(rec5,6) ; nz = subwrd(rec5,9) > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > say ' initialize: wtsum1m' > 'define wtsum1m = const('level_var',0,-a)' > 'close 1' > '!rm 'ctl_file_scale > > if( plot_min_temp = 'yes' ) > * > * Make local ctl file with scaled vertical levels... > * > ctl_file = ''level_dir'/'month1'/'temp_ctl > ctl_file_scale = 'temp.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > 'query file' > rec5 = sublin(result,5) > nxt = subwrd(rec5,3) ; nyt = subwrd(rec5,6) ; nzt = subwrd(rec5,9) > if( nxt != nx ) > say '...nxt = 'nxt > say '...nx = 'nx > exit > endif > if( nyt != ny ) > say '...nyt = 'nyt > say '...ny = 'ny > exit > endif > if( nzt != nz ) > say '...nzt = 'nzt > say '...nz = 'nz > exit > endif > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > say ' initialize: wtsum1t' > 'define wtsum1t = const('temp_var',0,-a)' > 'close 1' > '!rm 'ctl_file_scale > endif > > say > say '--------------------' > say 'Model: 'model.2 > say '--------------------' > say > > ctl_file = ''ras_dir'/'month1'/'ras_ctl > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'mass_flux.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > 'query file' > rec5 = sublin(result,5) > nx = subwrd(rec5,3) ; ny = subwrd(rec5,6) ; nz = subwrd(rec5,9) > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > say ' initialize: wtsum2m' > 'define wtsum2m = const('ras_var',0,-a)' > 'close 1' > '!rm 'ctl_file_scale > > if( plot_min_temp = 'yes' ) > * > * Make local ctl file with scaled vertical levels... > * > ctl_file = ''ras_dir'/'month1'/'temp_ctl > ctl_file_scale = 'temp.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > 'query file' > rec5 = sublin(result,5) > nxt = subwrd(rec5,3) ; nyt = subwrd(rec5,6) ; nzt = subwrd(rec5,9) > if( nxt != nx ) > say '...nxt = 'nxt > say '...nx = 'nx > exit > endif > if( nyt != ny ) > say '...nyt = 'nyt > say '...ny = 'ny > exit > endif > if( nzt != nz ) > say '...nzt = 'nzt > say '...nz = 'nz > exit > endif > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > say ' initialize: wtsum2t' > 'define wtsum2t = const('temp_var',0,-a)' > 'close 1' > '!rm 'ctl_file_scale > endif > > if( do_pause = 'yes' ) > pause() > endif > * > * Calculate running time sum variables for "mass flux" variable... > * > n=1 > ndays=0 > *----------------------------------------------------------------------- > while ( n <= nmonths ) > *----------------------------------------------------------------------- > * > * Name of the month... > * > month = subwrd(sdir_months,n) > * > * Days in the month... > * > days = subwrd(month_days,n) > > say > say '------------------------' > say 'Month = 'month', days = 'days > say '------------------------' > say > say > say '--------------------' > say 'Model: 'model.1 > say '--------------------' > say > > ctl_file.1 = ''level_dir'/'month'/'level_ctl > ctl_file.2 = ''don_dir'/'month'/'don_ctl1 > ctl_file.3 = ''don_dir'/'month'/'don_ctl2 > ctl_file.4 = ''don_dir'/'month'/'don_ctl3 > * > * Make local ctl files with scaled vertical levels... > * > ctl_file_scale.1 = 'mass_flux.1.scale.ctl' > scale_zdef_zlevs(ctl_file.1,zscale,ctl_file_scale.1) > ctl_file_scale.2 = 'mass_flux.2.scale.ctl' > scale_zdef_zlevs(ctl_file.2,zscale,ctl_file_scale.2) > ctl_file_scale.3 = 'mass_flux.3.scale.ctl' > scale_zdef_zlevs(ctl_file.3,zscale,ctl_file_scale.3) > ctl_file_scale.4 = 'mass_flux.4.scale.ctl' > scale_zdef_zlevs(ctl_file.4,zscale,ctl_file_scale.4) > > say 'Open GrADS file 1:' > say '...'ctl_file_scale.1 > 'open 'ctl_file_scale.1 > say 'Open GrADS file 2:' > say '...'ctl_file_scale.2 > 'open 'ctl_file_scale.2 > say 'Open GrADS file 3:' > say '...'ctl_file_scale.3 > 'open 'ctl_file_scale.3 > say 'Open GrADS file 4:' > say '...'ctl_file_scale.4 > 'open 'ctl_file_scale.4 > say 'GrADS files ready' > > say > say ' calculate weighted (using days = 'days') "mass flux" time sum' > say ' ('level_var'.1+'don_var1'.2+'don_var2'.3+'don_var3'.4)' > say ' for current month and add it to the time sum variable...' > say > 'set dfile 1' > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define wtsum1m = wtsum1m + > 'days'*('level_var'.1+'don_var1'.2+'don_var2'.3+'don_var3'.4)' > > 'close 4' ; 'close 3' ; 'close 2' ; 'close 1' > '!rm 'ctl_file_scale.1 > '!rm 'ctl_file_scale.2 > '!rm 'ctl_file_scale.3 > '!rm 'ctl_file_scale.4 > > if( plot_min_temp = 'yes' ) > > ctl_file = ''level_dir'/'month'/'temp_ctl > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'temp.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > say 'GrADS file ready' > say > say ' calculate weighted (using days = 'days') temperature time sum' > say ' for current month and add it to the time sum variable...' > say > > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define wtsum1t = wtsum1t + 'days'*'temp_var > > 'close 1' > '!rm 'ctl_file_scale > > endif > > say > say '--------------------' > say 'Model: 'model.2 > say '--------------------' > say > > ctl_file = ''ras_dir'/'month'/'ras_ctl > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'mass_flux.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > say 'GrADS file ready' > > say > say ' calculate weighted (using days = 'days') "mass flux" time sum' > say ' ('ras_var'.1)' > say ' for current month and add it to the time sum variable...' > say > 'query file' > rec5 = sublin(result,5) > nx = subwrd(rec5,3) ; ny = subwrd(rec5,6) ; nz = subwrd(rec5,9) > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define wtsum2m = wtsum2m + 'days'*'ras_var > > 'close 1' > '!rm 'ctl_file_scale > > if( plot_min_temp = 'yes' ) > > ctl_file = ''ras_dir'/'month'/'temp_ctl > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'temp.scale.ctl' > scale_zdef_zlevs(ctl_file,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > say 'GrADS file ready' > say > say ' calculate weighted (using days = 'days') temperature time sum' > say ' for current month and add it to the time sum variable...' > say > > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define wtsum2t = wtsum2t + 'days'*'temp_var > > 'close 1' > '!rm 'ctl_file_scale > > endif > > say > say '...finished month' > say > > if( do_pause = 'yes' ) > pause() > endif > > n=n+1 > ndays=ndays+days > *----------------------------------------------------------------------- > endwhile > *----------------------------------------------------------------------- > say > say '---------------------------' > say 'Finished weighted time sums' > say '---------------------------' > say > say > say '------------------------------------------------------------------' > say 'Calculate zonal averages of the weighted time averages' > say 'of the weighted time sums, and plot the data...' > say '------------------------------------------------------------------' > say > say 'Use GrADS ctl files for the first "month" to define time averaged > variables for plotting...' > * > * Model #1 > * > ctl_file.1 = ''level_dir'/'month1'/'level_ctl > ctl_file_temp.1 = ''level_dir'/'month1'/'temp_ctl > * > * Model #2 > * > ctl_file.2 = ''ras_dir'/'month1'/'ras_ctl > ctl_file_temp.2 = ''ras_dir'/'month1'/'temp_ctl > * > * Initialize min/max variables... > * > min = 1e6 ; max = -1e6 > * > * Start a new frame, and plot a title at top of page... > * > ptitle_top(var_title,avg_title,months,pvar_parea) > > m=1 > while ( m <= 2 ) > > say > say '--------------------' > say 'Model: 'model.m > say '--------------------' > say > > if( plot_min_temp = 'yes' ) > say > say 'Find and save level of minimum temperature for the' > say 'zonal and weighted time average temperature...' > say > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'temp.scale.ctl' > scale_zdef_zlevs(ctl_file_temp.m,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > say 'GrADS file ready' > say > 'query file' > rec5 = sublin(result,5) > nx = subwrd(rec5,3) ; ny = subwrd(rec5,6) ; nz = subwrd(rec5,9) > > say ' calculate weighted time average (using ndays = 'ndays')...' > > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define tav = wtsum'm't/'ndays > > say ' calculate zonal averages of the weighted time average...' > > 'set x 1' > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define ztav = ave(tav,x=1,x='nx')' > > say ' plot zonal average of the weighted time average...' > > 'set vpage 'pvar_vpage.m > 'set parea 'pvar_parea > 'set grads off' > 'set gxout contour' > 'set clab off' > 'set ccolor 0' > 'set xlab off' > 'set ylab off' > 'd ztav' > > say ' find and save location of minimum temperature...' > > j=1 > while ( j <= ny ) > 'set y 'j > 'set gxout print' > 'd minloc(ztav,z=1,z='nz')' ; rec3 = sublin(result,3) ; zmin = > subwrd(rec3,1) > * say result > say ' ...j, zmin = 'j', 'zmin > 'query gr2xy 'j' 'zmin > rec = sublin(result,1) ; xloc.j = subwrd(rec,3) ; yloc.j = > subwrd(rec,6) > * say result > say ' xloc, yloc = 'xloc.j', 'yloc.j > j=j+1 > endwhile > > 'undefine wtsum'm't' ; 'undefine tav' ; 'undefine ztav' > 'close 1' > '!rm 'ctl_file_scale > > endif > > say > say 'Calculate and plot zonally averaged "mass flux"...' > say > * > * Make local ctl file with scaled vertical levels... > * > ctl_file_scale = 'mass_flux.scale.ctl' > scale_zdef_zlevs(ctl_file.m,zscale,ctl_file_scale) > > say 'Open GrADS file:' > say '...'ctl_file_scale > 'open 'ctl_file_scale > say 'GrADS file ready' > say > say > 'query file' > rec5 = sublin(result,5) > nx = subwrd(rec5,3) ; ny = subwrd(rec5,6) ; nz = subwrd(rec5,9) > > say ' calculate weighted "mass flux" time average (using ndays = > 'ndays')' > > 'set x 1 'nx > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define tav = wtsum'm'm/'ndays > > say ' calculate zonal averages of the weighted time average...' > > 'set x 1' > 'set y 1 'ny > 'set z 1 'nz > 'set t 1' > 'define ztav = 'var_scale'*ave(tav,x=1,x='nx')' > > say ' plot zonal averages of time averaged "mass flux"' > 'set vpage 'pvar_vpage.m > 'set parea 'pvar_parea > 'set grads off' > 'set clevs 'contour_levels > 'set gxout shaded' > 'set xlab on' > 'set ylab on' > 'set ylint 'ylabel_int > 'set x 1' > 'set y 1 'ny > 'set lev 'zlevs > 'set t 1' > 'd ztav' > 'run cbar.gs 0.7' > 'draw title \\\ 'model.m > * 'draw xlab Latitude \\\' > 'draw ylab \\\ 'ylabel > xfp = xl_pvar_parea + 0.1 > yfp = yt_pvar_parea + 0.2 > 'set string 1 l 6' > 'set strsiz 0.13' > 'draw string 'xfp' 'yfp' 'figure_panel.m > 'set gxout stat' > 'd ztav' > min_max = sublin(result,8) > say ' 'min_max > min = subwrd(min_max,4) > max = subwrd(min_max,5) > if( plot_min_max = 'yes' ) > xmm = xl_pvar_parea + 0.1 > ymm = yt_pvar_parea - 0.1 > 'set string 1 l 4' > 'set strsiz 0.08' > 'draw string 'xmm' 'ymm' 'min_max' ' > endif > > if( plot_min_temp = 'yes' ) > say ' plot level of minimum temperature... ' > j=1 > while ( j <= ny ) > 'set y 'j > * say ' xloc, yloc = 'xloc.j', 'yloc.j > 'set line 1' > 'draw mark 3 'xloc.j' 'yloc.j' 0.03' > j=j+1 > endwhile > endif > > 'undefine wtsum'm'm' ; 'undefine tav' ; 'undefine ztav' > 'close 1' > '!rm 'ctl_file_scale > > say > say '...finished plot for: 'model.m > say > m=m+1 > endwhile > > say > say '--------------' > say 'Finished plots' > say '--------------' > say > > if( do_print = 'yes' ) > 'print' > 'disable print' > endif > > say > say '--------------------------' > say '"Mass flux" min/max values' > say '--------------------------' > say > say 'min = 'min' max = 'max > > say > say '************************************************' > say ' Finished with this script.' > say '************************************************' > say > > if( batch_mode = 'yes' ) > quit > endif > > return > > ************************************************************************ > * > function define_months() > * > * Define "names" for all months... > * > _name.Jan = 'January' > _name.Feb = 'February' > _name.Mar = 'March' > _name.Apr = 'April' > _name.May = 'May' > _name.Jun = 'June' > _name.Jul = 'July' > _name.Aug = 'August' > _name.Sep = 'September' > _name.Oct = 'October' > _name.Nov = 'November' > _name.Dec = 'December' > * > return > * > ************************************************************************ > > ************************************************************************ > * > function ptitle_top(title,subtitle,months,plim) > * > * Plots a title at the top of the page > * > x1 = subwrd(plim,1) > x2 = subwrd(plim,2) > xc = x1 + (x2-x1)/2 > 'c' > 'set vpage 0 8.5 0 11' > 'set string 1 c 6' > 'set strsiz 0.14' > 'draw string 'xc' 10.2 'title > *'draw string 'xc' 10.2 'subtitle > 'draw string 'xc' 9.8 'months > * > return > * > ************************************************************************ > > -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091125/5a4ad62e/attachment.html From davide.sacchetti at ARPAL.ORG Wed Nov 25 04:04:29 2009 From: davide.sacchetti at ARPAL.ORG (Davide Sacchetti) Date: Wed, 25 Nov 2009 10:04:29 +0100 Subject: concatenate defined fields in time In-Reply-To: <4B0C19A1.2020905@cmcc.it> Message-ID: concatenating defined fields it's hard but you may have other chances If I understood correctly your data contain monthly time series for 50 years, then your ctl should have a line like: tdef 600 linear datestart 1mo if you want to see just januaries you could do: set t 1 last set missconn on display skip(variable,12) to see februaries: set t 2 last ... If this could not help, on my opinion the best thing could be to divide januaries from februaries in different files Have a nice day Davide On Tue, 2009-11-24 at 18:36 +0100, Stefano Materia wrote: > Hello, > > I have .ctl file with a monthly time series of 50 years, and I'd like to > make time series for each month. Namely, I want one variable to loop > through the 50 januaries, one to loop through the 50 februaries, etc. > > example: > > define jan1=field(t=1) "january of year #1" define jan2=field(t=13) > "january of year #2" ... ... > > How can I define totjan = jan1 & jan2 & ...... > > so that > > set t 1 50 d totjan > > allows looping through jan1, jan2, etc... ? Is it possible to do that? > > Many thanks, Stefano > > -- > > ---- PLEASE NOTE THE CHANGE OF EMAIL ADDRESS ---- > > Stefano Materia - PhD > CMCC - Centro Euro-Mediterraneo per i Cambiamenti Climatici > Viale Aldo Moro, 44 - 40127 Bologna (ITA) > tel. +390513782676, fax +390513782655 > stefano.materia at cmcc.it > > ------------------------------------------------- > -- Sacchetti Davide Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria ARPAL Unit? Tecnica Complessa di livello Regionale V.le B