From mrahman426 at YAHOO.COM Tue Sep 1 01:28:57 2009 From: mrahman426 at YAHOO.COM (mizanur rahman) Date: Mon, 31 Aug 2009 22:28:57 -0700 Subject: Fw: Re: Regarding .CDF file display in grads Message-ID: Dear All I tried several times .nc instead of .CDF in grads but i could not success. --- On Mon, 8/31/09, loli lindalva wrote: From: loli lindalva Subject: Re: Regarding .CDF file display in grads To: GRADSUSR at LIST.CINECA.IT Date: Monday, August 31, 2009, 2:25 PM Por ejemplo si el nombre de tu fichero es hgt.2004.nc primero te sale una ventana pidiendote la opcion y le das "l", luego para abri el fichero "sdfopen", seguido del nombre de la variable y para fijar latitud y longitud "set lat " y "set lon", "d" par mostrar la variable, para el tiempo "set t" tienes que tener en cuenta que los datos son sinopticos y que set t 1 es el 1/1/2004 a las 00Z? si quieres plotear el geopotencial del 2/1/2004 a la 12Z a cercano a Cuba ser?a sdfopen hgt.2004.nc set lat 10 50 set lon 250 300 set t 5 d hgt te adjunto un script que hice para graficar cualguier variable espero que te sirva de ser asi te agradeceria que me lo dijeras un saludo olivia 2009/8/31 mizanur rahman Dear sir I would like to introduce myself to you. I am a researcher in the field of Meteorology.?I downloaded CRU data from ICTP web site that is linked with the CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF file?in Grads? I know how to display .nc file in grads but I tried several times to display in grads to .CDF file but I could not success. Please let me know how to display .CDF file in grads. Best? wishes Rahman Bangladesh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090831/b39acc95/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: sincambios.gs Type: application/octet-stream Size: 4721 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090831/b39acc95/attachment.obj From syllabamba at YAHOO.FR Tue Sep 1 04:36:55 2009 From: syllabamba at YAHOO.FR (Bamba Sylla) Date: Tue, 1 Sep 2009 08:36:55 +0000 Subject: Regarding .CDF file display in grads In-Reply-To: <567939.80725.qm@web112407.mail.gq1.yahoo.com> Message-ID: Hi ! Just tape sdfopen CRUPRE.CDF, it will work or the download was not complete. Regards ! *************************************************** Mouhamadou Bamba SYLLA Post-Doc Position, PWC/ESP International Centre for Theoretical Physics Strada Costiera 11, 34100 Trieste, Italy Office tel: 0039 040 2240 225 Cell: 0039 34 71 94 06 55 emails: msylla at ictp.it, syllabamba at yahoo.fr *************************************************** ________________________________ De : mizanur rahman ? : GRADSUSR at LIST.CINECA.IT Envoy? le : Mardi, 1 Septembre 2009, 7h28mn 57s Objet : Fw: Re: Regarding .CDF file display in grads Dear All I tried several times .nc instead of .CDF in grads but i could not success. --- On Mon, 8/31/09, loli lindalva wrote: >From: loli lindalva >Subject: Re: Regarding .CDF file display in grads >To: GRADSUSR at LIST.CINECA.IT >Date: Monday, August 31, 2009, 2:25 PM > > >Por ejemplo si el nombre de tu fichero es hgt.2004.nc >primero te sale una ventana pidiendote la opcion y le das "l", luego para abri el fichero "sdfopen", seguido del nombre de la variable y para fijar latitud y longitud >"set lat " y "set lon", "d" par mostrar la variable, para el tiempo "set t" tienes que tener en cuenta que los datos son sinopticos y que set t 1 es el 1/1/2004 a las 00Z si quieres plotear el geopotencial del 2/1/2004 a la 12Z a cercano a Cuba ser?a >sdfopen hgt.2004.nc >set lat 10 50 >set lon 250 300 >set t 5 >d hgt > >te adjunto un script que hice para graficar cualguier variable espero que te sirva de ser asi te agradeceria que me lo dijeras un saludo olivia >2009/8/31 mizanur rahman > >Dear sir >>I would like to introduce myself to you. I am a researcher in the field of Meteorology. I downloaded CRU data from ICTP web site that is linked with the CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF file in Grads? I know how to display .nc file in grads but I tried several times to display in grads to .CDF file but I could not success. >>Please let me know how to display .CDF file in >> grads. >> >>Best wishes >> >> >> >>Rahman >>Bangladesh >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090901/4d3e33a8/attachment.html From mmahakur at TROPMET.RES.IN Tue Sep 1 07:03:40 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Tue, 1 Sep 2009 17:33:40 +0630 Subject: Fw: Re: Regarding .CDF file display in grads In-Reply-To: <567939.80725.qm@web112407.mail.gq1.yahoo.com> Message-ID: Hello, what do you get from "ncdump CRUPRE.CDF " ?? Probably you need to make or get the DDF file. The CRU software site: http://www.cru.uea.ac.uk/~timm/grid/CRU_TS_2_1.html may assist you. Regards, Mahakur IITM, Pune (India) ---------- Original Message ----------- From: mizanur rahman To: GRADSUSR at list.cineca.it Sent: Mon, 31 Aug 2009 22:28:57 -0700 Subject: Fw: Re: Regarding .CDF file display in grads > Dear All > I tried several times .nc instead of .CDF in grads but i could not success. > > --- On Mon, 8/31/09, loli lindalva wrote: > > From: loli lindalva > Subject: Re: Regarding .CDF file display in grads > To: GRADSUSR at LIST.CINECA.IT > Date: Monday, August 31, 2009, 2:25 PM > > Por ejemplo si el nombre de tu fichero es hgt.2004.nc > primero te sale una ventana pidiendote la opcion y le das "l", luego para abri > el fichero "sdfopen", seguido del nombre de la variable y para fijar latitud y > longitud "set lat " y "set lon", "d" par mostrar la variable, para el tiempo > "set t" tienes que tener en cuenta que los datos son sinopticos y que set t 1 > es el 1/1/2004 a las 00Z si quieres plotear el geopotencial del 2/1/2004 a la > 12Z a cercano a Cuba ser?a sdfopen hgt.2004.nc set lat 10 50 set lon 250 300 > set t 5 d hgt > > te adjunto un script que hice para graficar cualguier variable espero que te > sirva de ser asi te agradeceria que me lo dijeras un saludo olivia 2009/8/31 > mizanur rahman > > Dear sir > I would like to introduce myself to you. I am a researcher in the field of > Meteorology. I downloaded CRU data from ICTP web site that is linked with the > CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF file in > Grads? I know how to display .nc file in grads but I tried several times to > display in grads to .CDF file but I could not success. Please let me know how > to display .CDF file in grads. > > Best wishes > > Rahman > Bangladesh ------- End of Original Message ------- From mmahakur at TROPMET.RES.IN Tue Sep 1 08:45:02 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Tue, 1 Sep 2009 19:15:02 +0630 Subject: Regarding .CDF file display in grads In-Reply-To: Message-ID: Hello, I checked with the data, 'sdfopen' worked for me: $grads -l Grid Analysis and Display System (GrADS) Version 2.0.a3 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.a3 little-endian readline printim grib2 netcdf hdf4-sds Issue 'q config' command for more information. GX Package Initialization: Size = 11 8.5 ga-> sdfopen CRUPRE.CDF Scanning self-describing file: CRUPRE.CDF SDF file CRUPRE.CDF is open as file 1 LON set to 0 360 LAT set to -89.75 89.75 LEV set to 0 0 Time values set: 1901:1:15:0 1901:1:15:0 E set to 1 1 ga-> q file File 1 : Descriptor: CRUPRE.CDF Binary: CRUPRE.CDF Type = Gridded Xsize = 720 Ysize = 360 Zsize = 1 Tsize = 1224 Esize = 1 Number of Variables = 1 pre 0 -103 Precipitation ga-> It should work for you also, check your file if you have obtained properly! Regards, Mahakur - ---------- Original Message ----------- From: loli lindalva To: GRADSUSR at list.cineca.it Sent: Mon, 31 Aug 2009 17:25:13 -0400 Subject: Re: Regarding .CDF file display in grads > Por ejemplo si el nombre de tu fichero es hgt.2004.nc > primero te sale una ventana pidiendote la opcion y le das "l", luego para > abri el fichero "sdfopen", seguido del nombre de la variable y para fijar > latitud y longitud > "set lat " y "set lon", "d" par mostrar la variable, para el tiempo "set t" > tienes que tener en cuenta que los datos son sinopticos y que set t 1 es el > 1/1/2004 a las 00Z si quieres plotear el geopotencial del 2/1/2004 a la 12Z > a cercano a Cuba ser?a > sdfopen hgt.2004.nc > set lat 10 50 > set lon 250 300 > set t 5 > d hgt > > te adjunto un script que hice para graficar cualguier variable espero que te > sirva de ser asi te agradeceria que me lo dijeras un saludo olivia > 2009/8/31 mizanur rahman > > > Dear sir > > I would like to introduce myself to you. I am a researcher in the field of > > Meteorology. I downloaded CRU data from ICTP web site that is linked with > > the CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF > > file in Grads? I know how to display .nc file in grads but I tried several > > times to display in grads to .CDF file but I could not success. > > Please let me know how to display .CDF file in grads. > > > > Best wishes > > > > > > Rahman > > > > Bangladesh > > > > ------- End of Original Message ------- From max.rythmos at YAHOO.COM Tue Sep 1 09:34:39 2009 From: max.rythmos at YAHOO.COM (MARZIO VENEMAN) Date: Tue, 1 Sep 2009 06:34:39 -0700 Subject: CINECA on social network and European Space Agency proposals Message-ID: Dear Gradsusers, Buongiorno cari amici, . . With reference to the above mentioned subjects, I take pleasure informing you as follows: ? Dear Mr Veneman, Please note that access to EMITS is limited to ESA potential bidders. To apply for an ESA potential bidder code, please fill in the Entity registration request available at the following url: http://emits.esa.int/emits/owa/indus_outlook.entity_reg For any further information on the new on-line Tender Registration System we would like to invite you to visit the Industry Portal: http://www.esa.int/export/esaCP/GGG59KAUGEC_Benefits_0.html Please do not hesitate to contact us for any further assistance you may require. Kind regards, ? Rosa ? EDS Service Desk CITI English/French lines from ESA Establishments: 80700 External lines from all other ESA sites and while on mission :+39 06 941 80700 Email : servdesk at esa.int ID Helpdesk - ESA Corporate Applications: 80700 External lines: +39 06 941 80700 Email : IDHelp at esa.int FAX number :+39 080 3853846 For information, help, FAQs etc:The OPS-E Service Portal? ? . Finally, I would like to inform you in respect of a professional social network on which CINECA is also represented and also various other (local)groups. ? I trust this information is sufficient for your purposes, in case you require any additional details, please do not hesitate to contact the undersigned. . . Yours sincerely, Cordiali Saluti . . . Marzio Veneman The Netherlands ? . Click here to visit my?professional profile and connect! . . This email message may contain privilliged information and is solely intended for the recipient(s) mentioned above.? To ensure that you continue receiving our emails, please add to your address book or safe list. . . . ________________________________ . ________________________________ ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090901/164477e5/attachment.html From swardika at GMAIL.COM Tue Sep 1 10:12:38 2009 From: swardika at GMAIL.COM (I Ketut Swardika Swardika) Date: Tue, 1 Sep 2009 23:12:38 +0900 Subject: Filled line plot area Message-ID: Dear GRADSUSER I plots line of sst anomalies, and I want positive anomalies area is filled with color red and negative anomalies area is filled with blue. How to do that?, let me know please. thank any advice ketut -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090901/3d6afb49/attachment.html From Mary-Jo.Nath at NOAA.GOV Tue Sep 1 10:36:33 2009 From: Mary-Jo.Nath at NOAA.GOV (Mary Jo Nath) Date: Tue, 1 Sep 2009 10:36:33 -0400 Subject: Filled line plot area In-Reply-To: Message-ID: Ketut, set gxout linefill set lfcols 2 4 d a;b Color where a > b in red (2) and a < b in blue (4) . In your case, "a" would be "sst" and "b" should be something like "const(sst,0.,-a)" or "sst*0." since you want to shade less than and greater than zero. (You can't just do "d sst;0." because the second variable needs to be on the same grid as "sst". "sst*0." or "const(sst,0.,-a)" are on the same grid as "sst", but have the value = 0.) MJ I Ketut Swardika Swardika wrote: > Dear GRADSUSER > > I plots line of sst anomalies, and I want positive anomalies area is > filled with color red and negative anomalies area is filled with blue. > How to do that?, let me know please. > > thank any advice > ketut > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090901/77004b16/attachment.html From mmahakur at TROPMET.RES.IN Tue Sep 1 11:40:30 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Tue, 1 Sep 2009 22:10:30 +0630 Subject: station model: cloud amount In-Reply-To: <20090820085324.093A020195@mx2.cineca.it> Message-ID: Respected GrADS Users, I would like to plot 'total cloud amount (in okta/octa)' inside the station circle(s) using the 'station model' plots: http://www.iges.org/grads/gadoc/usingstationdata.html. Code 21,22 and 23 seems to be ok for plotting 1/8, 7/8 and 8/8 (i.e. overcast), for example 1/8 in the attached test.png. How can I show cloud coverages of 2/8, 3/8, 4/8, 5/8 and 6/8 with "standard symbols" as shown the attached file <>? I request your help for a script or tricks making making plots. PS: Sorry, for posting again as I did not got any response to my earlier e-mail. With Regards and Thanks, M. Mahakur FRD/IITM, Pune (India). -------------- next part -------------- A non-text attachment was scrubbed... Name: cld_amount_okta.gif Type: image/gif Size: 1983 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090901/b5405418/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: test.png Type: image/png Size: 2162 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090901/b5405418/attachment.png From igor at CEAM.ES Tue Sep 1 11:41:00 2009 From: igor at CEAM.ES (Igor G=?ISO-8859-1?Q?=F3mez?=) Date: Tue, 1 Sep 2009 17:41:00 +0200 Subject: Lats4d with GrADS 2 Message-ID: Hi GrADS users, I have a question related to Lats4d usage with GrADS 2. We want to convert netcdf files to grib, but GrADS 2 does not include the LATS option. Is there still any possibility to do this? Thank you very much in advance. Igor. From smcmillan at PLANALYTICS.COM Tue Sep 1 12:23:28 2009 From: smcmillan at PLANALYTICS.COM (Stephen R McMillan) Date: Tue, 1 Sep 2009 11:23:28 -0500 Subject: OACRES - Radii of Influence Message-ID: What are the OACRES function's optional "radii of influence"? Are they length units and, if so, what? If not, are they number of grid cells/points...or something else? I could not find the answer, either in the Documentation Index description, or in the User archives. Stephen McMillan *************************************************** The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message. *************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090901/f7068fab/attachment.html From mmahakur at TROPMET.RES.IN Tue Sep 1 15:15:32 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Wed, 2 Sep 2009 01:45:32 +0630 Subject: OACRES - Radii of Influence In-Reply-To: Message-ID: It is the distance from the grid with in which the stations are used and values are weighted. I feel (as the contours does not go far into the data void regions) the distance is in terms of grid_length units, just a guess!! The src code developer(s) must be able to tell us correctly. Sorry! Regards, Mahakur ---------- Original Message ----------- From: Stephen R McMillan To: GRADSUSR at list.cineca.it Sent: Tue, 1 Sep 2009 11:23:28 -0500 Subject: OACRES - Radii of Influence > What are the OACRES function's optional "radii of influence"? Are they > length units and, if so, what? If not, are they number of grid > cells/points...or something else? > > I could not find the answer, either in the Documentation Index > description, or in the User archives. > > Stephen McMillan > > *************************************************** > The information contained in this e-mail message is intended only for the use > of the recipient(s) named above and may contain information that is privileged, > confidential, and/or proprietary. If you are not the intended recipient, you > may not review, copy or distribute this message. If you have received this > communication in error, please notify the sender immediately by e-mail, and > delete the original message. *************************************************** ------- End of Original Message ------- From Michael.Fiorino at NOAA.GOV Tue Sep 1 17:12:29 2009 From: Michael.Fiorino at NOAA.GOV (Michael Fiorino) Date: Tue, 1 Sep 2009 21:12:29 +0000 Subject: OACRES - Radii of Influence In-Reply-To: <20090901190707.M73833@tropmet.res.in> Message-ID: it's in grid length units... see: http://grads.iges.org/grads/gadoc/gradfuncoacres.html ciao ciao mike M.Mahakur wrote: > It is the distance from the grid with in which the stations are used and values are > weighted. I feel (as the contours does not go far into the data void regions) the > distance is in terms of grid_length units, just a guess!! The src code developer(s) must > be able to tell us correctly. Sorry! > > Regards, > > Mahakur > > ---------- Original Message ----------- > From: Stephen R McMillan > To: GRADSUSR at list.cineca.it > Sent: Tue, 1 Sep 2009 11:23:28 -0500 > Subject: OACRES - Radii of Influence > > >> What are the OACRES function's optional "radii of influence"? Are they >> length units and, if so, what? If not, are they number of grid >> cells/points...or something else? >> >> I could not find the answer, either in the Documentation Index >> description, or in the User archives. >> >> Stephen McMillan >> >> *************************************************** >> The information contained in this e-mail message is intended only for the use >> of the recipient(s) named above and may contain information that is privileged, >> confidential, and/or proprietary. If you are not the intended recipient, you >> may not review, copy or distribute this message. If you have received this >> communication in error, please notify the sender immediately by e-mail, and >> delete the original message. *************************************************** >> > ------- End of Original Message ------- > From cathy.smith at NOAA.GOV Wed Sep 2 12:16:39 2009 From: cathy.smith at NOAA.GOV (Cathy Smith) Date: Wed, 2 Sep 2009 10:16:39 -0600 Subject: removing continent boundaries? Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All: I'm having trouble figuring out how to remove continental (or other land) boundaries. I have 'set poly off' in the (very long) code. I don't appear to turn them back on anywhere else. I don't have mpdset set anywhere. Any ideas? Thanks! Cathy - -- NOAA/ESRL PSD and CIRES CDC 303-497-6263 http://www.cdc.noaa.gov/people/cathy.smith/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkqemmcACgkQFiO7KzMhjURs+wCfWkrwx9cko3b/R9r19USImCMi qIMAoIna2A1F0lYRfz5pdmYx6MQ/sjz+ =bbsL -----END PGP SIGNATURE----- From ivtoman at INET.HR Wed Sep 2 14:51:17 2009 From: ivtoman at INET.HR (Ivan Toman) Date: Wed, 2 Sep 2009 20:51:17 +0200 Subject: GrADS bad speed performances Message-ID: Hello. I have very strange issue and help is greatly appreciated. I run WRF-NMM 36-12-4km nesting and after model finishes I forward output grib1 files to grads (1.9) from all three domains in successive order. First, 36km domain is processed in GrADS, when it finish 12km domain comes to work and when it finish, 4km go into GrADS at the end. My problem is that GrADS has good performance only on 12km domain, on other domains it is very and extremely slow. These are times for creating map graphics from these domains: 36km - 40 seconds 12km - 6 seconds 4km - 105 seconds It is very clear something very strange is going on. Why last domain gribs files needs almost two minutes to postprocess in GrADS, when intermediate domain gribs takes only 6 seconds to complete the same job? Yes, for all three domains is executed completely same .gs script, domain sizes are almost the same (in number of points), and GrADS don't output any error or similar unusual messages on any domain. There are no other CPU jobs that could slow down processing. GrADS use one CPU core at 100% all of time during this hanging. These times are for only 6 output gribs (still testing), I need to extend forecast now to 60 hours, so there will be 10 times more data than now is, if now GrADS process for 105 seconds then it will work 17.5 minutes to draw all needed maps from 4km domain?? This will become a serious concern then. Please, can anybody help me to resolve this problem? Thanks From rajkumar_62 at REDIFFMAIL.COM Wed Sep 2 23:07:01 2009 From: rajkumar_62 at REDIFFMAIL.COM (Raj Kumar Sharma) Date: Thu, 3 Sep 2009 03:07:01 -0000 Subject: viewing and conversion to ASCII Message-ID: Hi,I would like to plot and convert netCF data 2days.nc to ascii. however, I am unable to load it into grads.I am using Grads 2.0.a5.oga.3 in WINDOWS and LINUX.  Some help will be useful. Data has been taken from NOAA site, so it should be compatible with GrADS.Thanks Dr Raj Kumar Scientist   -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090903/acfb7a42/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: 2days.nc Type: application/x-netcdf Size: 1156060 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090903/acfb7a42/attachment.nc From mmahakur at TROPMET.RES.IN Thu Sep 3 02:18:01 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Thu, 3 Sep 2009 12:48:01 +0630 Subject: viewing and conversion to ASCII In-Reply-To: <20090903030701.6351.qmail@f5mail-237-210.rediffmail.com> Message-ID: Respected Sir, The problem I guess is due to x-cord which goes beyond 360 degree E i.e. from 20.5E to 419.5, if that can be taken care of ....??, it will work ********************* dimensions: time = 3 ; depth = 1 ; lat = 120 ; lon = 400 ; variables: float time(time) ; time:FORTRAN_format = " " ; time:units = "day since 2009-02-05 00:00:00" ; time:type = "EVEN" ; float depth(depth) ; depth:FORTRAN_format = " " ; depth:units = "m" ; depth:type = "EVEN" ; depth:epic_code = 3 ; float lat(lat) ; lat:FORTRAN_format = " " ; lat:units = "degrees-N" ; lat:type = "EVEN" ; lat:epic_code = 500 ; float lon(lon) ; lon:FORTRAN_format = " " ; lon:units = "degrees-E" ; lon:type = "EVEN" ; lon:epic_code = 502 ; float u(time, depth, lat, lon) ; u:name = "u" ; u:long_name = "Ocean Surface Zonal Currents" ; u:generic_name = "u" ; u:units = "meter/sec" ; u:missing_value = 0.f ; float v(time, depth, lat, lon) ; v:name = "v" ; v:long_name = "Ocean Surface Meridional Currents" ; v:generic_name = "v" ; v:units = "meter/sec" ; v:missing_value = 0.f ; // global attributes: :VARIABLE = "Ocean Surface Currents" ; :DATATYPE = "5-Day Interval" ; :DATASUBTYPE = "unfiltered" ; :GEORANGE = "20.5E to 419.5E, 69.5S to 69.5N" ; :ANOM_MEAN_PERIOD = "1993-01-01 to 2006-12-31" ; :version = 2006.f ; :description = "Sea Surface Velocity" ; :source = "Gary Lagerloef, ESR (lager at esr.org) and Fabrice Bonjean (bonjean at esr.org)" ; :contact = "Fabrice Bonjean (bonjean at esr.org) or John T. Gunn (gunn at esr.org)" ; :company = "Earth & Space Research, Seattle, WA" ; :reference1 = "Bonjean F. and G.S.E. Lagerloef, 2002 ,\"Diagnostic model and analysis of the surface currents in the tropical Pacific ocean\" , J. Phys. Oceanogr., 32, 2,938-2,954" ; :date = "27-Apr-2007" ; :CREATION_DATE = "20:02 2-SEP-2009" ; :PERIOD = "1992-10-21 to 2009-09-01" ; data: time = 0, 5, 10 ; depth = 15 ; lon = 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5, 39.5, 40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5, 50.5, 51.5, 52.5, 53.5, 54.5, 55.5, 56.5, 57.5, 58.5, 59.5, 60.5, 61.5, 62.5, 63.5, 64.5, 65.5, 66.5, 67.5, 68.5, 69.5, 70.5, 71.5, 72.5, 73.5, 74.5, 75.5, 76.5, 77.5, 78.5, 79.5, 80.5, 81.5, 82.5, 83.5, 84.5, 85.5, 86.5, 87.5, 88.5, 89.5, 90.5, 91.5, 92.5, 93.5, 94.5, 95.5, 96.5, 97.5, 98.5, 99.5, 100.5, 101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5, 110.5, 111.5, 112.5, 113.5, 114.5, 115.5, 116.5, 117.5, 118.5, 119.5, 120.5, 121.5, 122.5, 123.5, 124.5, 125.5, 126.5, 127.5, 128.5, 129.5, 130.5, 131.5, 132.5, 133.5, 134.5, 135.5, 136.5, 137.5, 138.5, 139.5, 140.5, 141.5, 142.5, 143.5, 144.5, 145.5, 146.5, 147.5, 148.5, 149.5, 150.5, 151.5, 152.5, 153.5, 154.5, 155.5, 156.5, 157.5, 158.5, 159.5, 160.5, 161.5, 162.5, 163.5, 164.5, 165.5, 166.5, 167.5, 168.5, 169.5, 170.5, 171.5, 172.5, 173.5, 174.5, 175.5, 176.5, 177.5, 178.5, 179.5, 180.5, 181.5, 182.5, 183.5, 184.5, 185.5, 186.5, 187.5, 188.5, 189.5, 190.5, 191.5, 192.5, 193.5, 194.5, 195.5, 196.5, 197.5, 198.5, 199.5, 200.5, 201.5, 202.5, 203.5, 204.5, 205.5, 206.5, 207.5, 208.5, 209.5, 210.5, 211.5, 212.5, 213.5, 214.5, 215.5, 216.5, 217.5, 218.5, 219.5, 220.5, 221.5, 222.5, 223.5, 224.5, 225.5, 226.5, 227.5, 228.5, 229.5, 230.5, 231.5, 232.5, 233.5, 234.5, 235.5, 236.5, 237.5, 238.5, 239.5, 240.5, 241.5, 242.5, 243.5, 244.5, 245.5, 246.5, 247.5, 248.5, 249.5, 250.5, 251.5, 252.5, 253.5, 254.5, 255.5, 256.5, 257.5, 258.5, 259.5, 260.5, 261.5, 262.5, 263.5, 264.5, 265.5, 266.5, 267.5, 268.5, 269.5, 270.5, 271.5, 272.5, 273.5, 274.5, 275.5, 276.5, 277.5, 278.5, 279.5, 280.5, 281.5, 282.5, 283.5, 284.5, 285.5, 286.5, 287.5, 288.5, 289.5, 290.5, 291.5, 292.5, 293.5, 294.5, 295.5, 296.5, 297.5, 298.5, 299.5, 300.5, 301.5, 302.5, 303.5, 304.5, 305.5, 306.5, 307.5, 308.5, 309.5, 310.5, 311.5, 312.5, 313.5, 314.5, 315.5, 316.5, 317.5, 318.5, 319.5, 320.5, 321.5, 322.5, 323.5, 324.5, 325.5, 326.5, 327.5, 328.5, 329.5, 330.5, 331.5, 332.5, 333.5, 334.5, 335.5, 336.5, 337.5, 338.5, 339.5, 340.5, 341.5, 342.5, 343.5, 344.5, 345.5, 346.5, 347.5, 348.5, 349.5, 350.5, 351.5, 352.5, 353.5, 354.5, 355.5, 356.5, 357.5, 358.5, 359.5, 360.5, 361.5, 362.5, 363.5, 364.5, 365.5, 366.5, 367.5, 368.5, 369.5, 370.5, 371.5, 372.5, 373.5, 374.5, 375.5, 376.5, 377.5, 378.5, 379.5, 380.5, 381.5, 382.5, 383.5, 384.5, 385.5, 386.5, 387.5, 388.5, 389.5, 390.5, 391.5, 392.5, 393.5, 394.5, 395.5, 396.5, 397.5, 398.5, 399.5, 400.5, 401.5, 402.5, 403.5, 404.5, 405.5, 406.5, 407.5, 408.5, 409.5, 410.5, 411.5, 412.5, 413.5, 414.5, 415.5, 416.5, 417.5, 418.5, 419.5 ; Eith Best Regards and Thanks, -- M. Mahakur IITM, Pune ---------- Original Message ----------- From: Raj Kumar Sharma To: GRADSUSR at list.cineca.it Sent: Thu, 3 Sep 2009 03:07:01 -0000 Subject: viewing and conversion to ASCII > Hi,I would like to plot and convert netCF data 2days.nc to ascii. however, I > am unable to load it into grads.I am using Grads 2.0.a5.oga.3 in WINDOWS and > LINUX.  Some help will be useful. Data has been taken from NOAA site, so > it should be compatible with GrADS.Thanks > > Dr Raj Kumar > Scientist >   ------- End of Original Message ------- From pauli.j.jokinen at HELSINKI.FI Thu Sep 3 08:22:26 2009 From: pauli.j.jokinen at HELSINKI.FI (Pauli Jokinen) Date: Thu, 3 Sep 2009 15:22:26 +0300 Subject: Varying timeframe in the ctl-file Message-ID: Hi, I have a single grib file that contains gridded data from consecutive years between May and August (e.g. May 1960-August 1960, May 1961-August 1961 etc.). Is there a way to write a single ctl-file that recognizes this? Now when I open the ctl-file and go through the time steps it assumes a linear time scale and continues with September even though I'd want it to "jump" to May the following year. I know I can come around the problem by chopping the file (with the fwrite command) for each year and writing a new, separate ctl-file for each. As I have several decades of data, I was wondering if someone has an idea to do this in a quicker way. Best regards, Pauli Jokinen Finnish Meteorological Institute From hc.nnamchi at LASG.IAP.AC.CN Thu Sep 3 12:16:43 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Fri, 4 Sep 2009 00:16:43 +0800 Subject: Meridional average of pressure levels data Message-ID: Dear GRADS Users, I have the NCEP-2 monthly data at 2.5x2.5 lon/lat for 17 vertical levels I want to calculate the meridional average for lon=-60 lon=10 such that the new data wil be of the form: lon =1 lat = -90 90 lev= 1 17 time =t1 tlast (1979-2007) Can anyone help with some ideas? Thanks in advance, hyacinth From dotdeb at GMAIL.COM Fri Sep 4 04:12:08 2009 From: dotdeb at GMAIL.COM (Dot Deb) Date: Fri, 4 Sep 2009 10:12:08 +0200 Subject: 2.0.a7.1 segmentation fault when opening a netcdf dataset In-Reply-To: <58a4fe090908190425w1dc87abbs3c3b3b90a23d04ce@mail.gmail.com> Message-ID: Sorry for insisting, but I still have problems with grads built from source on a debian/sid i686. The built binary crashes when "sdfopening" a netcdf file. The same file is correctly opened using the pre-compiled ubuntu version. The only thing I noticed during compilation, is a bunch of warning (I can provide the make.log if necessary). Alberto On Wed, Aug 19, 2009 at 1:25 PM, Dot Deb wrote: > I compiled grads (2.0.a7.1) myself and, when "sdfopen" a netcdf > dataset, it segfaults. > If I install pre-compiled (ubuntu-8.04) binaries, the same dataset is > opened without any problem. > The same if i "open" the netcdf dataset by mean of an appropriate > "ctl": it works. > > Any idea? Anything I can do to help spotting the problem? > Alberto > From dotdeb at GMAIL.COM Fri Sep 4 04:19:18 2009 From: dotdeb at GMAIL.COM (Dot Deb) Date: Fri, 4 Sep 2009 10:19:18 +0200 Subject: 2.0.a7.1 segmentation fault when opening a netcdf dataset: further info Message-ID: The same problem on a debian/lenny (stable). gcc versions are: - lenny: 4.3.2 - sid: 4.3.4 libnetcdf4 versions is 1:3.6 for both. Alberto On Fri, Sep 4, 2009 at 10:12 AM, Dot Deb wrote: > Sorry for insisting, but I still have problems with grads built from > source on a debian/sid i686. The built binary crashes when "sdfopening" > a netcdf file. The same file is correctly opened using the pre-compiled > ubuntu version. > > The only thing I noticed during compilation, is a bunch of warning (I > can provide the make.log if necessary). > > Alberto > > On Wed, Aug 19, 2009 at 1:25 PM, Dot Deb wrote: >> I compiled grads (2.0.a7.1) myself and, when "sdfopen" a netcdf >> dataset, it segfaults. >> If I install pre-compiled (ubuntu-8.04) binaries, the same dataset is >> opened without any problem. >> The same if i "open" the netcdf dataset by mean of an appropriate >> "ctl": it works. >> >> Any idea? Anything I can do to help spotting the problem? >> Alberto >> > From lbyerle at YAHOO.COM Fri Sep 4 09:47:23 2009 From: lbyerle at YAHOO.COM (Lee and Amy Byerle) Date: Fri, 4 Sep 2009 06:47:23 -0700 Subject: Meridional average of pressure levels data In-Reply-To: <11463417.228981251994603182.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: Hyacinth, How about: open rean2.ctl set z 1 17 set lon -60 10 set t varying (t1 to tlast) define umer=ave(uwnd,lon=-90,lon=90) set lon 1 (so that only lat, lev, and time are varying) d umer (loops through all times, plots lat vs z-dim) Best regards, Lee On Sep 3, 2009, at 9:16 AM, Hyacinth Cyprain Nnamchi wrote: > Dear GRADS Users, > > I have the NCEP-2 monthly data at 2.5x2.5 lon/lat for 17 vertical > levels > > I want to calculate the meridional average for lon=-60 lon=10 such > that the new data wil be of the form: > lon =1 > lat = -90 90 > lev= 1 17 > time =t1 tlast (1979-2007) > > Can anyone help with some ideas? > > Thanks in advance, > hyacinth From jma at COLA.IGES.ORG Fri Sep 4 14:48:51 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 4 Sep 2009 14:48:51 -0400 Subject: Reminder: x85_64 Multithreading / GrADS on SMP machines In-Reply-To: <4A924C8E.3000408@gofferje.homelinux.org> Message-ID: GrADS in its current form does not support multi-threading. The thing to do is have multiple instances of GrADS running at the same time. Divide your chart rendering into sections and generate images in parallel. --Jennifer On Aug 24, 2009, at 4:17 AM, Stefan Gofferje wrote: > Hi all, > > I have a new machine for my chart rendering which has a AMD Phenom > triple core processor and I'm using the grads-2.0.a6-bin-RHEL4-x86_64 > package from IGES FTP. > The normal load of the machine is 3 when GrADS is not running and 4 > when > the rendering runs. According to my statistics, the CPU load never > goes > over 30-something percent when GrADS is running. That makes me suppose > that GrADS does not support multithreading. > > Stats: > http://www.saakeskus.fi/images/kload.png > http://www.saakeskus.fi/images/kcpustat.png > > As chart-rendering is a very CPU-intensive thing, I think, > multithreading would be a very practical thing as most modern machines > have multicore CPUs... Especially if you are rendering roughly 3500 > charts every 6 hours :). > Terve, > Stefan > > -- > Last words of a stormchaser: > "Where is that rotation on the radar?!" -- 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/20090904/f62ea84e/attachment.html From jma at COLA.IGES.ORG Fri Sep 4 14:50:23 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 4 Sep 2009 14:50:23 -0400 Subject: Sorting Issue In-Reply-To: <4A93B86002000087000DAC6B@gwiasmtp.uct.ac.za> Message-ID: We are working on a design for adding sorting capabilities to GrADS. Until then, you have to do it externally. --Jennifer On Aug 25, 2009, at 4:09 AM, Oliver ANGELIL wrote: > Hi, > > I am working with Station Data files in GrADS 1.8. > > X , Y varying (horizontal X, Y plot) > Z = 1 > T varying (360 days) > > Each pixel displays a colour coded value for precipitation. I'm > trying to sort precipitation from least to most, for each pixel, > through the time series. This is because I want to display an image > of the 90th percentile, to work out a vague probability of extreme > weather at each pixel. > > How would I go about sorting in GrADS? I am relatively new to GrADS. > > Oliver > > ______________________________________________________________________________________________ > > > UNIVERSITY OF CAPE TOWN > > > This e-mail is subject to the UCT ICT policies and e-mail disclaimer > published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ > or obtainable from +27 21 650 4500. This e-mail is intended only > for the person(s) to whom it is addressed. If the e-mail has reached > you in error, please notify the author. If you are not the intended > recipient of the e-mail you may not use, disclose, copy, redirect or > print the content. If this e-mail is not related to the business of > UCT it is sent by the sender in the sender's individual capacity. > > > _____________________________________________________________________________________________________ > -- 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/20090904/e0a242ee/attachment.html From jma at COLA.IGES.ORG Fri Sep 4 14:52:02 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 4 Sep 2009 14:52:02 -0400 Subject: setting scale_factor In-Reply-To: Message-ID: Use the "UNPACK" entry in your descriptor file. http://grads.iges.org/grads/gadoc/descriptorfile.html#unpack --Jennifer On Aug 25, 2009, at 12:53 PM, Semyon Grodsky wrote: > Folks, > is there a way to set SCALE_FACTOR value in CTL file for netcdf data. > SCALE_FACTOR is written as a character in netcdf. > Thanks, > --Senya > > ----------------------------------------------------------- > Semyon Grodsky > Computer and Space Science Building (Bldg. #224), Room 2409 > Department of Atmospheric and Oceanic Science > University of Maryland > College Park, MD 20742 > > Phone: 301-405-5330 > Fax: 301-314-9482 > E-mail: senya at atmos.umd.edu -- 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/20090904/63c5302c/attachment.html From dhaval.prajapati at ICCSIR.ORG Sat Sep 5 03:25:09 2009 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Sat, 5 Sep 2009 07:25:09 +0000 Subject: 13 point Gaussian Filter Message-ID: Dear All, There is command in grads smth9 which will smooth out the time series. I want to use13 point Gaussian filter. Do anybody has script file for 13 point Gaussian filter. With Regards, Dhaval Indian Centre for Climate and Societal Impacts Research (ICCSIR) Ahmedabad Education Society compound, Opp. H.L. Commerce College, Navrangpura, Ahmedabad 380 009, Gujarat, India Contact No. : +91(079)40045462 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090905/431a8f31/attachment.html From amjadozi at GMAIL.COM Sat Sep 5 07:08:25 2009 From: amjadozi at GMAIL.COM (Muhammad Amjad) Date: Sat, 5 Sep 2009 16:08:25 +0500 Subject: Regarding .CDF file display in grads In-Reply-To: <122503.31373.qm@web112418.mail.gq1.yahoo.com> Message-ID: First open a linux shell and then gradsnc sdfopen file_name q file d var Cheers Amjad. On Mon, Aug 31, 2009 at 1:36 PM, mizanur rahman wrote: > Dear sir > I would like to introduce myself to you. I am a researcher in the field of > Meteorology. I downloaded CRU data from ICTP web site that is linked with > the CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF > file in Grads? I know how to display .nc file in grads but I tried several > times to display in grads to .CDF file but I could not success. > Please let me know how to display .CDF file in grads. > > Best wishes > > > Rahman > > Bangladesh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090905/30ef2061/attachment.html From romero619 at HOTMAIL.COM Sat Sep 5 23:21:23 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Sat, 5 Sep 2009 22:21:23 -0500 Subject: reverse FWRITE order Message-ID: Hi, I need to fwrite in 'y-reverse' order (WE:NS instead of WE:SN). Is this possible? Thanks, P.R. From mrahman426 at YAHOO.COM Sun Sep 6 00:42:09 2009 From: mrahman426 at YAHOO.COM (mizanur rahman) Date: Sat, 5 Sep 2009 21:42:09 -0700 Subject: Regarding .CDF file display in grads In-Reply-To: <6142b78e0909050408n1eb4dad0gb54e7f31b8f7574@mail.gmail.com> Message-ID: Dear Amjad I tried several times to display CRUPRE.CDF file in grads but I could nor success. I opened grads by gradsnc and wrote: ga> sdfopen CRUPRE.CDF then it shows faliure and also shows you try SDF-HDF. I am giving the path of CRU data please download and display CRUPRE.CDF in your computer. http://users.ictp.it/RegCNET/postproc.html#CRU? (precipitation monthly mean mm/day, file name is CRUPRE.CDF) Please let me know what is happing. regards Rahman --- On Sat, 9/5/09, Muhammad Amjad wrote: From: Muhammad Amjad Subject: Re: Regarding .CDF file display in grads To: GRADSUSR at LIST.CINECA.IT Date: Saturday, September 5, 2009, 4:08 AM First open a linux shell and then ? gradsnc sdfopen file_name q file d var ? Cheers Amjad. ? On Mon, Aug 31, 2009 at 1:36 PM, mizanur rahman wrote: Dear sir I would like to introduce myself to you. I am a researcher in the field of Meteorology.?I downloaded CRU data from ICTP web site that is linked with the CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF file?in Grads? I know how to display .nc file in grads but I tried several times to display in grads to .CDF file but I could not success. Please let me know how to display .CDF file in grads. Best? wishes Rahman Bangladesh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090905/3c82d67c/attachment.html From webmaster at METEOROLOGIC.NET Sun Sep 6 04:21:28 2009 From: webmaster at METEOROLOGIC.NET (Jeremy Gaultier) Date: Sun, 6 Sep 2009 10:21:28 +0200 Subject: Draw non filled polygon Message-ID: Hi, I draw a filled with 'draw polyf' but i would like draw a non filled polygon (i tried 'draw mappoly' and 'draw poly' but not work). I have another question, how to ensure for the polygon it behing the data (shaded, contour) as a background map ? Thank you in advance. Best regards, J?r?my From smcmillan at PLANALYTICS.COM Sun Sep 6 15:06:47 2009 From: smcmillan at PLANALYTICS.COM (Stephen R McMillan) Date: Sun, 6 Sep 2009 14:06:47 -0500 Subject: Draw non filled polygon In-Reply-To: <20090906082244.CE119203A8@mx2.cineca.it> Message-ID: J?r?my, You can draw a non-filled polygon by using "draw line...." (see http://iges.org/grads/gadoc/gradcomddrawline.html). If I understand your second question correctly, to ensure a polygon is behind contours or shading, first draw the polygon(s) and then display your data. However, keep in mind the shading may obscure your polygons. Stephen Jeremy Gaultier Sent by: GRADSUSR at LIST.CINECA.IT 09/06/2009 03:21 AM Please respond to GRADSUSR at LIST.CINECA.IT To GRADSUSR at LIST.CINECA.IT cc Subject Draw non filled polygon Hi, I draw a filled with 'draw polyf' but i would like draw a non filled polygon (i tried 'draw mappoly' and 'draw poly' but not work). I have another question, how to ensure for the polygon it behing the data (shaded, contour) as a background map ? Thank you in advance. Best regards, J?r?my *************************************************** The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message. *************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090906/2fd61693/attachment.html From kwmski7 at SNU.AC.KR Tue Sep 8 04:17:06 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Tue, 8 Sep 2009 17:17:06 +0900 Subject: Meridional average of pressure levels data In-Reply-To: <11463417.228981251994603182.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: Use "define" ^^ e.g., >set x 1 >set lat -90 90 >set z 1 17 >set t 1 last then define, >define lonave=ave(var,lon=-60,lon=10) good luck, Kim, WonMoo -------------------------------------------------- From: "Hyacinth Cyprain Nnamchi" Sent: Friday, September 04, 2009 1:16 AM To: Subject: Meridional average of pressure levels data > Dear GRADS Users, > > I have the NCEP-2 monthly data at 2.5x2.5 lon/lat for 17 vertical levels > > I want to calculate the meridional average for lon=-60 lon=10 such that > the new data wil be of the form: > lon =1 > lat = -90 90 > lev= 1 17 > time =t1 tlast (1979-2007) > > Can anyone help with some ideas? > > Thanks in advance, > hyacinth > > > From hc.nnamchi at LASG.IAP.AC.CN Tue Sep 8 09:14:29 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Tue, 8 Sep 2009 21:14:29 +0800 Subject: Meridional average of pressure levels data In-Reply-To: <3C8BCC026F194149AE56D5D22FCDB5E0@KimWonMooPC> Message-ID: Dea Li and Kim, Thanks alot. Kim's simple code works perfectly well. hyacinth >-----????----- > ???: "Kim WonMoo" > ????: 2009-09-08 16:17:06 > ???: GRADSUSR at LIST.CINECA.IT > ??: > ??: Re: Meridional average of pressure levels data > Use "define" ^^ > > > > e.g., > > > > >set x 1 > > >set lat -90 90 > > >set z 1 17 > > >set t 1 last > > > > then define, > > > > >define lonave=ave(var,lon=-60,lon=10) > > > > good luck, > > Kim, WonMoo > > > > -------------------------------------------------- > > From: "Hyacinth Cyprain Nnamchi" > > Sent: Friday, September 04, 2009 1:16 AM > > To: > > Subject: Meridional average of pressure levels data > > > > > Dear GRADS Users, > > > > > > I have the NCEP-2 monthly data at 2.5x2.5 lon/lat for 17 vertical levels > > > > > > I want to calculate the meridional average for lon=-60 lon=10 such that > > > the new data wil be of the form: > > > lon =1 > > > lat = -90 90 > > > lev= 1 17 > > > time =t1 tlast (1979-2007) > > > > > > Can anyone help with some ideas? > > > > > > Thanks in advance, > > > hyacinth > > > > > > > > > > > -- Hyacinth C. Nnamchi TWAS-CAS Fellow State Key Laboratory of Numerical Modeling for Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) Institute of Atmospheric Physics (IAP) Chinese Academy of Sciences (CAS) P.O.Box 9804, Beijing 100029, China Tel: +86-13488719702 Fax: +86-10-82995172 E-mail:hc.nnamchi at lasg.iap.ac.cn From steve.levine.1523 at GMAIL.COM Tue Sep 8 10:45:53 2009 From: steve.levine.1523 at GMAIL.COM (Steve Levine) Date: Tue, 8 Sep 2009 10:45:53 -0400 Subject: Hurricane Tracking Script Message-ID: Fellow GrADS users, From Wesley.Ebisuzaki at NOAA.GOV Tue Sep 8 13:47:22 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Tue, 8 Sep 2009 13:47:22 -0400 Subject: Lats4d with GrADS 2 In-Reply-To: <20090901154216.F00562070B@mx2.cineca.it> Message-ID: Igor G?mez wrote: > Hi GrADS users, > > I have a question related to Lats4d usage with GrADS 2. We want to convert > netcdf files to grib, but GrADS 2 does not include the LATS option. Is there > still any possibility to do this? > > Thank you very much in advance. > > Igor. > Igor, Emily Becker is finishing off a grads script that creates grib2 files from GrADS readable files. Needs some polishing and documentation but I had no problems converting MERRA (HDF) files into grib2 using an earlier version. The wgrib2 home page will have more details when available. Wesley Ebisuzaki From amjadozi at GMAIL.COM Tue Sep 8 23:35:51 2009 From: amjadozi at GMAIL.COM (Muhammad Amjad) Date: Wed, 9 Sep 2009 08:35:51 +0500 Subject: Regarding .CDF file display in grads In-Reply-To: <762772.98220.qm@web112405.mail.gq1.yahoo.com> Message-ID: Dear Rehman, Your CRUPRE.CDF file probably has some problem. Please download it again and make sure that it has been downloaded completely by checking it size etc. Then follow the same procedure. I hope it will help. Cheers, Amjad. On Sun, Sep 6, 2009 at 9:42 AM, mizanur rahman wrote: > Dear Amjad > I tried several times to display CRUPRE.CDF file in grads but I could nor > success. > I opened grads by gradsnc > and wrote: ga> sdfopen CRUPRE.CDF then it shows faliure and also shows you > try SDF-HDF. > > I am giving the path of CRU data please download and display CRUPRE.CDF in > your computer. > > http://users.ictp.it/RegCNET/postproc.html#CRU > > (precipitation monthly mean mm/day, file name is CRUPRE.CDF) > > Please let me know what is happing. > > regards > > Rahman > > > --- On *Sat, 9/5/09, Muhammad Amjad * wrote: > > > From: Muhammad Amjad > Subject: Re: Regarding .CDF file display in grads > To: GRADSUSR at LIST.CINECA.IT > Date: Saturday, September 5, 2009, 4:08 AM > > > First open a linux shell and then > > gradsnc > sdfopen file_name > q file > d var > > Cheers > Amjad. > > > On Mon, Aug 31, 2009 at 1:36 PM, mizanur rahman > > wrote: > >> Dear sir >> I would like to introduce myself to you. I am a researcher in the field of >> Meteorology. I downloaded CRU data from ICTP web site that is linked with >> the CRU web site. This CRU data is CRUPRE.CDF fomat. How do display .CRF >> file in Grads? I know how to display .nc file in grads but I tried >> several times to display in grads to .CDF file but I could not success. >> Please let me know how to display .CDF file in grads. >> >> Best wishes >> >> >> Rahman >> >> Bangladesh >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090909/5d9234ea/attachment.html From kwmski7 at SNU.AC.KR Wed Sep 9 05:14:27 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Wed, 9 Sep 2009 18:14:27 +0900 Subject: removing continent boundaries? In-Reply-To: <4A9E9A67.6070209@noaa.gov> Message-ID: Hi, Have you tried 'set mpdraw off' ? try >set mpdraw off just before you draw something~ Good luck, Kim, WonMoo -------------------------------------------------- From: "Cathy Smith" Sent: Thursday, September 03, 2009 1:16 AM To: Subject: removing continent boundaries? > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All: > > I'm having trouble figuring out how to remove continental (or other > land) boundaries. I have > > 'set poly off' > > in the (very long) code. I don't appear to turn them back on anywhere > else. I don't have mpdset set anywhere. Any ideas? > > Thanks! > > Cathy > - -- > NOAA/ESRL PSD and CIRES CDC > 303-497-6263 > http://www.cdc.noaa.gov/people/cathy.smith/ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (Darwin) > > iEYEARECAAYFAkqemmcACgkQFiO7KzMhjURs+wCfWkrwx9cko3b/R9r19USImCMi > qIMAoIna2A1F0lYRfz5pdmYx6MQ/sjz+ > =bbsL > -----END PGP SIGNATURE----- > > > From Reto.Stauffer at STUDENT.UIBK.AC.AT Wed Sep 9 07:03:32 2009 From: Reto.Stauffer at STUDENT.UIBK.AC.AT (Reto Stauffer) Date: Wed, 9 Sep 2009 13:03:32 +0200 Subject: Variable Grid possible? In-Reply-To: <06244E2E5B3B439DADCBAC7AA89EE76D@KimWonMooPC> Message-ID: Hy there I try to plot some Satellite-Data with Grads. It was "no problem" to produce a netCDF file wich i can import into GrADS and display the test-dataset. But now i have a question up to you. Normaly GrADS plots only onto a linear Grid. My netCDF-File only contains a one-line-vector with longitude and latitude boundries. Is there any possibility to import long/lat as a 2-D matrix wich discribes my own grid? I cannot found any good information about that. Test-Dataset, int [0;10] with own colormap: http://dudecom.ch/satpress/wp-content/uploads/2009/09/20090909_grads_colormapexample-543x400.png If anyone has an idea it wold be great to send me a request. Best regards Reto, Austria From mike.bosilovich at GMAIL.COM Wed Sep 9 13:06:11 2009 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Wed, 9 Sep 2009 13:06:11 -0400 Subject: Hurricane Tracking Script In-Reply-To: Message-ID: Hi Steve, Here is a pretty simple tracking script I worked up for the MERRA workshop we had at the last AMS meeting. ftp://gmaoftp.gsfc.nasa.gov/pub/papers/mikeb/MERRA_Workshop/merra/Andrew/ It reads the best track ascii file, and does a couple nice things, like let you choose where in the file you want to plot (if not the whole track) and also changes the dots at 00Z so you can see new days. However, at the heart is a simple read and connect the dots. Good Luck, Mike On Tue, Sep 8, 2009 at 10:45 AM, Steve Levine wrote: > Fellow GrADS users, > > From what I have seen roaming through the archives, there is a hurricane > track plotting script out there. More specifically, I am looking for > something that simply plots and connects the lat/lon points from an input > file. Does anybody have it and would they care to pass it along? > > Thank you, > Steve Levine > MS Student, Department of Marine & Environmental Systems > Florida Institute of Technology > 150 W University Blvd. > Melbourne, FL 32901 > Ph: 513-520-9883 > From jgmsantos at GMAIL.COM Wed Sep 9 13:23:18 2009 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Wed, 9 Sep 2009 14:23:18 -0300 Subject: Hurricane Tracking Script In-Reply-To: <79aecae70909091006v49065b3bk787af2c2ccf2c64e@mail.gmail.com> Message-ID: I'd like to obtain this script to draw the hurricane track but I can't access the ftp. Thanks, Guilherme. 2009/9/9 Mike Bosilovich > Hi Steve, > > Here is a pretty simple tracking script I worked up for the MERRA > workshop we had at the last AMS meeting. > > ftp://gmaoftp.gsfc.nasa.gov/pub/papers/mikeb/MERRA_Workshop/merra/Andrew/ > > It reads the best track ascii file, and does a couple nice things, > like let you choose where in the file you want to plot (if not the > whole track) and also changes the dots at 00Z so you can see new days. > However, at the heart is a simple read and connect the dots. > > Good Luck, > > Mike > > On Tue, Sep 8, 2009 at 10:45 AM, Steve > Levine wrote: > > Fellow GrADS users, > > > > From what I have seen roaming through the archives, there is a hurricane > > track plotting script out there. More specifically, I am looking for > > something that simply plots and connects the lat/lon points from an input > > file. Does anybody have it and would they care to pass it along? > > > > Thank you, > > Steve Levine > > MS Student, Department of Marine & Environmental Systems > > Florida Institute of Technology > > 150 W University Blvd. > > Melbourne, FL 32901 > > Ph: 513-520-9883 > > > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento 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 3185 8529 / Celular: +55 12 91678770 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://jgmsantos.googlepages.com/index.html: ----------------------------------------------------------- Sent from S?o Jos? dos Campos, S?o Paulo, Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090909/00a9e58c/attachment.html From fdaryabor at GOOGLEMAIL.COM Thu Sep 10 00:21:18 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 10 Sep 2009 12:21:18 +0800 Subject: converting binary to netcdf Message-ID: Dear All User I have binary data ".dat" I want convert it to netcdf ".nc" by using grads, I create control file ".ctl" for it , is it ok. After that I use this command for convert to ".nc" "set gxout fwrite" "set fwrite my_data.nc" but not working, could you help me for solving this problem. Best Regards F.Daryabor Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selangor Malaysia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090910/47d899eb/attachment.html From zjuyanlibin at 163.COM Thu Sep 10 00:41:26 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Thu, 10 Sep 2009 12:41:26 +0800 Subject: =?utf-8?B?UmU6IGNvbnZlcnRpbmcgYmluYXJ5IHRvIG5ldGNkZg==?= Message-ID: fwrite is used for converting data read by GrADS to binary data. It does not work referring to converting into netcdf file. 2009-09-10 Yan Libin ???? Farshid Daryabor ????? 2009-09-10 12:31:59 ???? GRADSUSR ??? ??? converting binary to netcdf Dear All User I have binary data ".dat" I want convert it to netcdf ".nc" by using grads, I create control file ".ctl" for it , is it ok. After that I use this command for convert to ".nc" "set gxout fwrite" "set fwrite my_data.nc" but not working, could you help me for solving this problem. Best Regards F.Daryabor Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selangor Malaysia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090910/9059e71a/attachment.html From fdaryabor at GOOGLEMAIL.COM Thu Sep 10 02:01:38 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 10 Sep 2009 14:01:38 +0800 Subject: converting binary to netcdf In-Reply-To: <200909101241257343913@163.com> Message-ID: Dear Yan I find a script "lats4d.gs" in grads but can't download it for using. do you any suggestion. Best Regards F.Daryabor On Thu, Sep 10, 2009 at 12:41 PM, Yan Libin wrote: > fwrite is used for converting data read by GrADS to binary data. > It does not work referring to converting into netcdf file. > > 2009-09-10 > ------------------------------ > Yan Libin > ------------------------------ > *????* Farshid Daryabor > *?????* 2009-09-10 12:31:59 > *????* GRADSUSR > *???* > *???* converting binary to netcdf > Dear All User > I have binary data ".dat" I want convert it to netcdf ".nc" by using > grads, I create control file ".ctl" for it , is it ok. After that I use this > command for convert to ".nc" > "set gxout fwrite" > "set fwrite my_data.nc" > > but not working, could you help me for solving this problem. > > Best Regards > F.Daryabor > > Center for Tropical and Climate Change System > Faculty of Sciences and Technology > National University of Malaysia (UKM) > Bangi 43600 > Selangor > Malaysia > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090910/3f073370/attachment.html From zjuyanlibin at 163.COM Thu Sep 10 05:28:30 2009 From: zjuyanlibin at 163.COM (Yan Libin) Date: Thu, 10 Sep 2009 17:28:30 +0800 Subject: converting binary to netcdf Message-ID: attached plz find the script you needed. ps: are you a boy or a girl 2009-09-10 Yan Libin ???? Farshid Daryabor ????? 2009-09-10 17:24:32 ???? GRADSUSR ??? ??? Re: converting binary to netcdf Dear Yan I find a script "lats4d.gs" in grads but can't download it for using. do you any suggestion. Best Regards F.Daryabor On Thu, Sep 10, 2009 at 12:41 PM, Yan Libin wrote: fwrite is used for converting data read by GrADS to binary data. It does not work referring to converting into netcdf file. 2009-09-10 Yan Libin ???? Farshid Daryabor ????? 2009-09-10 12:31:59 ???? GRADSUSR ??? ??? converting binary to netcdf Dear All User I have binary data ".dat" I want convert it to netcdf ".nc" by using grads, I create control file ".ctl" for it , is it ok. After that I use this command for convert to ".nc" "set gxout fwrite" "set fwrite my_data.nc" but not working, could you help me for solving this problem. Best Regards F.Daryabor Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selangor Malaysia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090910/fec75626/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: lats4d.gs Type: application/octet-stream Size: 81887 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090910/fec75626/attachment.obj From max.rythmos at YAHOO.COM Thu Sep 10 07:08:02 2009 From: max.rythmos at YAHOO.COM (MARZIO VENEMAN) Date: Thu, 10 Sep 2009 04:08:02 -0700 Subject: Research-affiliate Multi-user Screen-Saver (WIP: archeo-fysics-math-life) Message-ID: Dear subscribers GRADS, Buongiorno cari amici, . Recently EvoGrid project has commenced. Advance details on my wiki page notes for any of these fields, oceanography, ozon, physics, math, life science or anybode else is welcome to participate professional, it's similar to SETI at Home and run by Mr. Bruce Damer.. ? The EvoGrid is an effort to develop a distributed simulation system to simulate potential pre-biotic chemical environments. ? I trust this information is sufficient for your purposes, in case you require any additional details, please do not hesitate to contact the undersigned. . Yours sincerely, Cordiali Saluti . . . Marzio Veneman The Netherlands ? Click here to visit my?professional profile and connect! . . This email message may contain privilliged information and is solely intended for the recipient(s) mentioned above.? To ensure that you continue receiving our emails, please add to your address book or safe list. . . . ________________________________ . ________________________________ ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090910/efd9b328/attachment.html From jma at COLA.IGES.ORG Thu Sep 10 07:55:52 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 10 Sep 2009 07:55:52 -0400 Subject: converting binary to netcdf In-Reply-To: <9b8832d50909092121w502b11fbh89a29c4acdeed4b7@mail.gmail.com> Message-ID: If you are using GrADS version 2.0.3 or later, you can use the 'sdfwrite' command to write out a NetCDF file. The documentation is at http://www.iges.org/grads/gadoc/gradcomdsdfwrite.html --Jennifer On Sep 10, 2009, at 12:21 AM, Farshid Daryabor wrote: > Dear All User > I have binary data ".dat" I want convert it to netcdf ".nc" by > using grads, I create control file ".ctl" for it , is it ok. After > that I use this command for convert to ".nc" > "set gxout fwrite" > "set fwrite my_data.nc" > > but not working, could you help me for solving this problem. > > Best Regards > F.Daryabor > > Center for Tropical and Climate Change System > Faculty of Sciences and Technology > National University of Malaysia (UKM) > Bangi 43600 > Selangor > Malaysia -- 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/20090910/67143176/attachment.html From zjuyanlibin at 163.COM Thu Sep 10 07:58:16 2009 From: zjuyanlibin at 163.COM (Yan Libin) Date: Thu, 10 Sep 2009 19:58:16 +0800 Subject: converting binary to netcdf Message-ID: strong 2009-09-10 Yan Libin ???? Jennifer Adams ????? 2009-09-10 19:55:55 ???? GRADSUSR ??? ??? Re: converting binary to netcdf If you are using GrADS version 2.0.3 or later, you can use the 'sdfwrite' command to write out a NetCDF file. The documentation is at http://www.iges.org/grads/gadoc/gradcomdsdfwrite.html --Jennifer On Sep 10, 2009, at 12:21 AM, Farshid Daryabor wrote: Dear All User I have binary data ".dat" I want convert it to netcdf ".nc" by using grads, I create control file ".ctl" for it , is it ok. After that I use this command for convert to ".nc" "set gxout fwrite" "set fwrite my_data.nc" but not working, could you help me for solving this problem. Best Regards F.Daryabor Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selangor Malaysia -- 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/20090910/75370899/attachment.html From jma at COLA.IGES.ORG Thu Sep 10 07:58:53 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 10 Sep 2009 07:58:53 -0400 Subject: Variable Grid possible? In-Reply-To: <1252494212.4aa78b8485e5d@web-mail1.uibk.ac.at> Message-ID: You can use the PDEF GENERAL (aka PDEF FILE) option to tell GrADS how to map each grid point in your 1-D vector into a 2-D lat/lon grid. Please see http://www.iges.org/grads/gadoc/pdef.html The example at the bottom of the page does something very similar to what you'd like to do. --Jennifer On Sep 9, 2009, at 7:03 AM, Reto Stauffer wrote: > Hy there > > I try to plot some Satellite-Data with Grads. It was "no problem" to > produce a > netCDF file wich i can import into GrADS and display the test-dataset. > > But now i have a question up to you. Normaly GrADS plots only onto a > linear > Grid. My netCDF-File only contains a one-line-vector with longitude > and > latitude boundries. > > Is there any possibility to import long/lat as a 2-D matrix wich > discribes my > own grid? I cannot found any good information about that. > > Test-Dataset, int [0;10] with own colormap: > http://dudecom.ch/satpress/wp-content/uploads/2009/09/20090909_grads_colormapexample-543x400.png > > If anyone has an idea it wold be great to send me a request. > > Best regards > Reto, Austria -- 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/20090910/b1efc5ed/attachment.html From jma at COLA.IGES.ORG Thu Sep 10 08:01:35 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 10 Sep 2009 08:01:35 -0400 Subject: Regarding .CDF file display in grads In-Reply-To: <762772.98220.qm@web112405.mail.gq1.yahoo.com> Message-ID: Please post the complete error message you're getting from GrADS, plus the output from 'q config'. It might also be helpful to know what operating system you're using. --Jennifer On Sep 6, 2009, at 12:42 AM, mizanur rahman wrote: > Dear Amjad > I tried several times to display CRUPRE.CDF file in grads but I > could nor success. > I opened grads by gradsnc > and wrote: ga> sdfopen CRUPRE.CDF then it shows faliure > > and also shows you try SDF-HDF. > > I am giving the path of CRU data please download and display > CRUPRE.CDF in your computer. > > http://users.ictp.it/RegCNET/postproc.html#CRU > > (precipitation monthly mean mm/day, file name is CRUPRE.CDF) > > Please let me know what is happing. > > regards > > Rahman > > > --- On Sat, 9/5/09, Muhammad Amjad wrote: > > From: Muhammad Amjad > Subject: Re: Regarding .CDF file display in grads > To: GRADSUSR at LIST.CINECA.IT > Date: Saturday, September 5, 2009, 4:08 AM > > First open a linux shell and then > > gradsnc > sdfopen file_name > q file > d var > > Cheers > Amjad. > > > On Mon, Aug 31, 2009 at 1:36 PM, mizanur rahman > wrote: > Dear sir > I would like to introduce myself to you. I am a researcher in the > field of Meteorology. I downloaded CRU data from ICTP web site that > is linked with the CRU web site. This CRU data is CRUPRE.CDF fomat. > How do display .CRF file in Grads? I know how to display .nc file in > grads but I tried several times to display in grads to .CDF file but > I could not success. > Please let me know how to display .CDF file in grads. > > Best wishes > > Rahman > Bangladesh > > > -- 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/20090910/de482340/attachment.html From jma at COLA.IGES.ORG Thu Sep 10 08:03:01 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 10 Sep 2009 08:03:01 -0400 Subject: reverse FWRITE order In-Reply-To: Message-ID: There's no option to 'set fwrite' to do this. You have to write out each row explicitly, starting at the northernmost latitude and working your way southward. --Jennifer On Sep 5, 2009, at 11:21 PM, P.R. wrote: > Hi, > I need to fwrite in 'y-reverse' order (WE:NS instead of WE:SN). > Is this possible? > > Thanks, > P.R. -- 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/20090910/044025b9/attachment.html From Chris.Lynnes at NASA.GOV Thu Sep 10 11:37:15 2009 From: Chris.Lynnes at NASA.GOV (Christopher Lynnes) Date: Thu, 10 Sep 2009 11:37:15 -0400 Subject: Variable Grid possible? In-Reply-To: Message-ID: Jennifer, The PDEF GENERAL capability looks quite useful, but made me wonder if GrADS does or will support variable grids in netCDF, where the data are defined according to the CF-1 convention for two-dimensional latitude and longitude coordinate variables (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.4/cf-conventions.html#id2984605 ). We have a service to convert our AIRS swath data to netCDF files with this convention, which allows tools such as IDV and McIDAS-V to read and project them. However, attempting an sdfopen in grads 2.0.a7.1 leads to the "no discernable X coordinate" error. An example file can be obtained via the URL: http://aurapar2u.ecs.nasa.gov/airspar1/daac-bin/OTF/HTTP_services.cgi?FILENAME=%2Fdata%2Fs4pa%2FAqua_AIRS_Level2%2FAIRX2RET.005%2F2006%2F161%2FAIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.hdf&LABEL=AIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.nc&SHORTNAME=AIRX2RET&SERVICE=NetCDF&VERSION=1.02 On Sep 10, 2009, at 7:58 AM, Jennifer Adams wrote: > You can use the PDEF GENERAL (aka PDEF FILE) option to tell GrADS > how to map each grid point in your 1-D vector into a 2-D lat/lon > grid. Please see http://www.iges.org/grads/gadoc/pdef.html > The example at the bottom of the page does something very similar to > what you'd like to do. > --Jennifer > > On Sep 9, 2009, at 7:03 AM, Reto Stauffer wrote: > >> Hy there >> >> I try to plot some Satellite-Data with Grads. It was "no problem" >> to produce a >> netCDF file wich i can import into GrADS and display the test- >> dataset. >> >> But now i have a question up to you. Normaly GrADS plots only onto >> a linear >> Grid. My netCDF-File only contains a one-line-vector with longitude >> and >> latitude boundries. >> >> Is there any possibility to import long/lat as a 2-D matrix wich >> discribes my >> own grid? I cannot found any good information about that. >> >> Test-Dataset, int [0;10] with own colormap: >> http://dudecom.ch/satpress/wp-content/uploads/2009/09/20090909_grads_colormapexample-543x400.png >> >> If anyone has an idea it wold be great to send me a request. >> >> Best regards >> Reto, Austria > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > -- Christopher Lynnes NASA/GSFC, Code 610.2 301-614-5185 From jma at COLA.IGES.ORG Thu Sep 10 14:00:34 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 10 Sep 2009 14:00:34 -0400 Subject: Variable Grid possible? In-Reply-To: <9F04B9AE-CE20-45B2-B9DE-CDCFFE1AB59B@nasa.gov> Message-ID: That kind of data grid (with 2-dimensional coordinate variables) doesn't fit the current gridded data model in GrADS. We have talked about implementing a new data model, quasi-regular data, that would fall somewhere in between regular grids and station data. But that is not likely to be implemented any time soon. For now, interpolating to a regular grid with PDEF is the only way to handle that kind of data directly using GrADS. --Jennifer On Sep 10, 2009, at 11:37 AM, Christopher Lynnes wrote: > Jennifer, > The PDEF GENERAL capability looks quite useful, but made me wonder > if GrADS does or will support variable grids in netCDF, where the data > are defined according to the CF-1 convention for two-dimensional > latitude and longitude coordinate variables (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.4/cf-conventions.html#id2984605 > ). > We have a service to convert our AIRS swath data to netCDF files > with this convention, which allows tools such as IDV and McIDAS-V to > read and project them. However, attempting an sdfopen in grads > 2.0.a7.1 leads to the "no discernable X coordinate" error. > An example file can be obtained via the URL: > http://aurapar2u.ecs.nasa.gov/airspar1/daac-bin/OTF/HTTP_services.cgi?FILENAME=%2Fdata%2Fs4pa%2FAqua_AIRS_Level2%2FAIRX2RET.005%2F2006%2F161%2FAIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.hdf&LABEL=AIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.nc&SHORTNAME=AIRX2RET&SERVICE=NetCDF&VERSION=1.02 > > On Sep 10, 2009, at 7:58 AM, Jennifer Adams wrote: > >> You can use the PDEF GENERAL (aka PDEF FILE) option to tell GrADS >> how to map each grid point in your 1-D vector into a 2-D lat/lon >> grid. Please see http://www.iges.org/grads/gadoc/pdef.html >> The example at the bottom of the page does something very similar to >> what you'd like to do. >> --Jennifer >> >> On Sep 9, 2009, at 7:03 AM, Reto Stauffer wrote: >> >>> Hy there >>> >>> I try to plot some Satellite-Data with Grads. It was "no problem" >>> to produce a >>> netCDF file wich i can import into GrADS and display the test- >>> dataset. >>> >>> But now i have a question up to you. Normaly GrADS plots only onto >>> a linear >>> Grid. My netCDF-File only contains a one-line-vector with longitude >>> and >>> latitude boundries. >>> >>> Is there any possibility to import long/lat as a 2-D matrix wich >>> discribes my >>> own grid? I cannot found any good information about that. >>> >>> Test-Dataset, int [0;10] with own colormap: >>> http://dudecom.ch/satpress/wp-content/uploads/2009/09/20090909_grads_colormapexample-543x400.png >>> >>> If anyone has an idea it wold be great to send me a request. >>> >>> Best regards >>> Reto, Austria >> >> -- >> Jennifer M. Adams >> IGES/COLA >> 4041 Powder Mill Road, Suite 302 >> Calverton, MD 20705 >> jma at cola.iges.org >> >> >> > > -- > Christopher Lynnes NASA/GSFC, Code 610.2 > 301-614-5185 -- 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/20090910/6771fcb1/attachment.html From cujyaz at GOOGLEMAIL.COM Thu Sep 10 20:38:17 2009 From: cujyaz at GOOGLEMAIL.COM (Andreas Schneider) Date: Fri, 11 Sep 2009 02:38:17 +0200 Subject: How to control the streamline? In-Reply-To: <4AA98A40.4020905@hawaii.edu> Message-ID: On Fri, Sep 11, 2009 at 1:22 AM, James T. Potemra wrote: > Hi Andreas: > > Thanks for investing the time to update this GrADS function. I've been able > to apply the patch and compile on my linux system (Redhat). I was wondering > if your new code allows one to change the thickness of the streamlines? > GrADS allows this in lines and contours but not streamlines. Would this be > easier to add (I could do it myself if you could point me to the right > routine)? Thanks again, > > Jim Maybe it's as easy as adding gxwide(gxqwid()); somewhere near the top of gxstrm() (just a guess from looking at gxcntr.c). Andreas From karakavalasa at YAHOO.COM Fri Sep 11 03:42:50 2009 From: karakavalasa at YAHOO.COM (Rama Krishna Patnaik) Date: Fri, 11 Sep 2009 09:42:50 +0200 Subject: data management in grads Message-ID: Dear colleagues, Please suggest me a script file to get a monthly averaged netcdf file from day wise 30 netcdf files. regards, patnaik From max.rythmos at YAHOO.COM Fri Sep 11 04:37:18 2009 From: max.rythmos at YAHOO.COM (MARZIO VENEMAN) Date: Fri, 11 Sep 2009 01:37:18 -0700 Subject: Fw: EUR EC VESTA-GIS Newsletter 5 Message-ID: ----- Forwarded Message ---- From: VESTA-GIS office Sent: Thursday, September 10, 2009 3:46:09 PM Subject: VESTA-GIS Newsletter 5 Sorry for Cross Posting! Dear friend, you find attached the 5th issue of the VESTA-GIS newsletter. There you will find a detailed guide to the on line mobility database with the hope to invite all of you to actively participate to the Network and to enjoy the opportunities that it can offer. Two new Associated Partners are presented to the VESTA-GIS community, as well as some important events that have seen and will see the participation of? VESTA-GIS Finally, it is given an overview of the next events in the field of GIS and related applications. Of course, feel free to send this message to all people you think might be interested in VESTA-GIS! Hoping you find it useful Best regards -- VESTA-GIS Project Office Tel. +39 010 8355588 Fax? +39 010 8357190 e-mail: office at vesta-gis.eu ? ________________________________ . Click here to visit my?professional profile and connect! . . . ________________________________ . ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090911/d99683bb/attachment.html From gabriel.ud at GMAIL.COM Fri Sep 11 13:58:07 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Fri, 11 Sep 2009 14:58:07 -0300 Subject: color-filled continents Message-ID: Hi everybody!Does somebody knows how to color the land? the ?set map?or ?set mpt? only controls the color of the line of the land (continent)! thanks a lot, Gabriel Carvalho Oceanography Student Rio de Janeiro Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090911/c468f2c1/attachment.html From matias at TROPOSFERA.ATMOSFCU.UNAM.MX Fri Sep 11 14:13:04 2009 From: matias at TROPOSFERA.ATMOSFCU.UNAM.MX (Matias Mendez) Date: Fri, 11 Sep 2009 13:13:04 -0500 Subject: color-filled continents In-Reply-To: Message-ID: Hello Gabriel, You can try basemap.gs. This script overlays a land or ocean mask. You can get it, here: http://www.iges.org/grads/gadoc/library.html Good luck. Best regards, Matias Gabriel - ud Carvalho escribi?: > Hi everybody! > Does somebody knows how to color the land? > the ?set map?or ?set mpt? only controls the color of the line of the > land (continent)! > > thanks a lot, > > Gabriel Carvalho > Oceanography Student > Rio de Janeiro > Brazil > From hc.nnamchi at LASG.IAP.AC.CN Sat Sep 12 11:22:29 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Sat, 12 Sep 2009 23:22:29 +0800 Subject: Problem with fwrite Message-ID: Dear GrADS Users, I am trying to write out SST data from the Hadley Centre dataset at 1*1-degree lon/lat grids for the oceans using the code in .gs file: tt=1 while(tt<=684) 'set z 1' 'set lon -60 20' 'set lat -45 5' 'set t ' tt 'd sst' tt=tt+1 endwhile 'reinit' This works when I print the data on the screen as in the "Correct_Fig.JPG" (attached herewith) for the 684 timesteps.The problem is: When I use fwrite to write out the data and then read with ctl file, it produces the "Wrong_Fig.JPG" (Fig attached is for the first timestep.This error occurs in all the timesteps). The CTL info below is the same with that of the parent data except in respect to the start lon/lat and the numbers of lon/lat: UNDEF -1e+30 XDEF 81 LINEAR -60 1 YDEF 51 LINEAR -45 1 ZDEF 1 LINEAR 0 1 TDEF 684 LINEAR JAN1950 1mo VARS 1 sst 0 99 global monthly SSTs at 1 by 1 resolution from the Hadley Centre ENDVARS Can anyone help with some ideas on how to get around this? Thanks in advance. hyacinth MS Windows GrADS 2.0.a5.oga.5 -- -------------- next part -------------- A non-text attachment was scrubbed... Name: Wrong_Fig.JPG Type: image/jpeg Size: 130268 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090912/f2d2410c/attachment.jpe From olivia851224 at GMAIL.COM Sat Sep 12 20:06:35 2009 From: olivia851224 at GMAIL.COM (loli lindalva) Date: Sat, 12 Sep 2009 20:06:35 -0400 Subject: converting binary to netcdf In-Reply-To: <200909101958156406944@163.com> Message-ID: hello i need draw trayectory used grad, how are make 2009/9/10 Yan Libin > strong > > > 2009-09-10 > ------------------------------ > Yan Libin > ------------------------------ > *????* Jennifer Adams > *?????* 2009-09-10 19:55:55 > *????* GRADSUSR > *???* > *???* Re: converting binary to netcdf > If you are using GrADS version 2.0.3 or later, you can use the > 'sdfwrite' command to write out a NetCDF file. The documentation is at > http://www.iges.org/grads/gadoc/gradcomdsdfwrite.html --Jennifer > > On Sep 10, 2009, at 12:21 AM, Farshid Daryabor wrote: > > Dear All User > I have binary data ".dat" I want convert it to netcdf ".nc" by using > grads, I create control file ".ctl" for it , is it ok. After that I use this > command for convert to ".nc" > "set gxout fwrite" > "set fwrite my_data.nc" > > but not working, could you help me for solving this problem. > > Best Regards > F.Daryabor > > Center for Tropical and Climate Change System > Faculty of Sciences and Technology > National University of Malaysia (UKM) > Bangi 43600 > Selangor > Malaysia > > > -- > 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/20090912/a105e0c8/attachment.html From davide.sacchetti at ARPAL.ORG Mon Sep 14 03:27:03 2009 From: davide.sacchetti at ARPAL.ORG (Davide Sacchetti) Date: Mon, 14 Sep 2009 09:27:03 +0200 Subject: Problem with fwrite In-Reply-To: <7946656.254741252768949005.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: I don't know ... my suggestions are: * use gxout shaded (it helps understanding location of missing data - that's the wrong land sea mask) * when grads writes down (display with gxout fwrite) check number of elements with Nx * Ny * put 'set lon ... lat ... z' out of the loop, tying inside the loop does not help * when you obtain the output file check the file size by Nx*Ny*Nt*4 * if any of these check fails try to understand where it fails. In my experience, using high resolutions, fwrite may fail the correct number of X, or Y, or may fail the X,Y start point; it's really unusual the failure with 1 deg resolution. p.s.: the correct_fig was missing ... bye bye davide On Sat, 2009-09-12 at 23:22 +0800, Hyacinth Cyprain Nnamchi wrote: > Dear GrADS Users, > > I am trying to write out SST data from the Hadley Centre dataset at 1*1-degree lon/lat grids for the oceans using the code in .gs file: > > tt=1 > while(tt<=684) > 'set z 1' > 'set lon -60 20' > 'set lat -45 5' > 'set t ' tt > 'd sst' > tt=tt+1 > endwhile > 'reinit' > > This works when I print the data on the screen as in the "Correct_Fig.JPG" (attached herewith) for the 684 timesteps.The problem is: When I use fwrite to write out the data and then read with ctl file, it produces the "Wrong_Fig.JPG" (Fig attached is for the first timestep.This error occurs in all the timesteps). > > The CTL info below is the same with that of the parent data except in respect to the start lon/lat and the numbers of lon/lat: > UNDEF -1e+30 > XDEF 81 LINEAR -60 1 > YDEF 51 LINEAR -45 1 > ZDEF 1 LINEAR 0 1 > TDEF 684 LINEAR JAN1950 1mo > VARS 1 > sst 0 99 global monthly SSTs at 1 by 1 resolution from the Hadley Centre > ENDVARS > > > Can anyone help with some ideas on how to get around this? > Thanks in advance. > > hyacinth > MS Windows GrADS 2.0.a5.oga.5 > > > > > > > > -- -- 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 kwmski7 at SNU.AC.KR Mon Sep 14 03:30:05 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Mon, 14 Sep 2009 16:30:05 +0900 Subject: Problem with fwrite In-Reply-To: <1252913223.1308.20.camel@davide> Message-ID: I think it's problem with the number of grid points: > * when grads writes down (display with gxout fwrite) check number > of elements with Nx * Ny Rather than using 'lon' & 'lat' setting, try 'set x' & 'y'. i.e., if you use 'set lon -60 60' than the output may not be 81 in x-dimension, but 82 or 80 sometimes. Good luck, Kim, WonMoo -------------------------------------------------- From: "Davide Sacchetti" Sent: Monday, September 14, 2009 4:27 PM To: Subject: Re: Problem with fwrite > I don't know ... > my suggestions are: > * use gxout shaded (it helps understanding location of missing > data - that's the wrong land sea mask) > * when grads writes down (display with gxout fwrite) check number > of elements with Nx * Ny > * put 'set lon ... lat ... z' out of the loop, tying inside the > loop does not help > * when you obtain the output file check the file size by > Nx*Ny*Nt*4 > * if any of these check fails try to understand where it fails. In > my experience, using high resolutions, fwrite may fail the > correct number of X, or Y, or may fail the X,Y start point; it's > really unusual the failure with 1 deg resolution. > > p.s.: the correct_fig was missing ... > bye bye > > davide > > On Sat, 2009-09-12 at 23:22 +0800, Hyacinth Cyprain Nnamchi wrote: >> Dear GrADS Users, >> >> I am trying to write out SST data from the Hadley Centre dataset at >> 1*1-degree lon/lat grids for the oceans using the code in .gs file: >> >> tt=1 >> while(tt<=684) >> 'set z 1' >> 'set lon -60 20' >> 'set lat -45 5' >> 'set t ' tt >> 'd sst' >> tt=tt+1 >> endwhile >> 'reinit' >> >> This works when I print the data on the screen as in the >> "Correct_Fig.JPG" (attached herewith) for the 684 timesteps.The problem >> is: When I use fwrite to write out the data and then read with ctl file, >> it produces the "Wrong_Fig.JPG" (Fig attached is for the first >> timestep.This error occurs in all the timesteps). >> >> The CTL info below is the same with that of the parent data except in >> respect to the start lon/lat and the numbers of lon/lat: >> UNDEF -1e+30 >> XDEF 81 LINEAR -60 1 >> YDEF 51 LINEAR -45 1 >> ZDEF 1 LINEAR 0 1 >> TDEF 684 LINEAR JAN1950 1mo >> VARS 1 >> sst 0 99 global monthly SSTs at 1 by 1 resolution from the >> Hadley Centre >> ENDVARS >> >> >> Can anyone help with some ideas on how to get around this? >> Thanks in advance. >> >> hyacinth >> MS Windows GrADS 2.0.a5.oga.5 >> >> >> >> >> >> >> >> -- > -- > 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 hc.nnamchi at LASG.IAP.AC.CN Sun Sep 13 11:43:08 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Sun, 13 Sep 2009 23:43:08 +0800 Subject: GS files in GrADS 2.0.a5.oga.5 Message-ID: Dear Colleagues, I am using GrADS 2.0.a5.oga.5 from the Opengrads download page (http://sourceforge.net/projects/opengrads/files/) on MS Windows.I notice that it does not recognise the in-built .gs files like cbar.gs, cbarn.gs etc, although I have confirmed that they are in the "scripts" file. Does anyone know what could be wrong, where should I place the .gs files? Thanks, hyacinth -- Hyacinth C. Nnamchi TWAS-CAS Fellow State Key Laboratory of Numerical Modeling for Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) Institute of Atmospheric Physics (IAP) Chinese Academy of Sciences (CAS) P.O.Box 9804, Beijing 100029, China Tel: +86-13488719702 Fax: +86-10-82995172 E-mail:hc.nnamchi at lasg.iap.ac.cn From ccortes at CENMA.CL Mon Sep 14 10:40:07 2009 From: ccortes at CENMA.CL (claudio cortes) Date: Mon, 14 Sep 2009 10:40:07 -0400 Subject: need information, please Message-ID: Hi GraDS Users (and sorry for the semi-off topic) I'm meteorologist of the National Environment Center, Chile. In the principal city of Chile (Santiago) and in another cities of the country, the PM10 problem in winter and Tropospheric Ozone in Summer is critical. Therefore, in winter, the goverment takes actions to control the emissions and protect the people against the PM10, depending of the meteorological and PM10 forecast made by us. Now, we are in campaign of update our forecast system, and my work is find another institutions who works with PM10 and Ozone forecast systems and know how works, tools used, work way, monitoring systems, models used and his accuracy. So, I need your help, if any of you works in some institution dedicated to the forecast of particulate matter and ozone, please answer me the next questions (and send me additional info if you want) 1.- Institution name (organization, who depends, financing, etc.) 2.- Country 3.- Forecast zone (extension and number of monitoring stations) 4.- Number of people working in the forecast 5.- Official way to measure the air quality in your zone (pm10: average of next 0 to 23 hours of tomorrow, pm10: max movable average of 24 hours for tomorrow, pm10: average of 6AM of tomorrow to 6AM of past tomorow, etc... and ozone) 6.- Models used (linear regression, mos, neural networks, physics-chemical models, etc.) and his accuracy (what model is recommended by you?) 7.- Other institutions involved in the forecast and his role in this work 8.- The local goverment takes actions before critical events of pollution ? (what kind of actions?) 9.- Long-term actions in your zone to reduce the pollution. 10.- Cost of implement your forecast system in another place (eg, another country), including monitoring stations, equiments, etc. The end of this study is recommend to the goverment improvements to our forecast system (governed by law), improvements who involving better accuracy and, therefore, more efficient protection to the people. This info will be helpful for my study, and if you have any complementary information just send me. I will share the results of this study with the list. Thank you very much GrADS Users !. -- 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 j.c.mikovitz at NASA.GOV Mon Sep 14 10:57:42 2009 From: j.c.mikovitz at NASA.GOV (Colleen Mikovitz) Date: Mon, 14 Sep 2009 10:57:42 -0400 Subject: Variable define and/or aave oddity Message-ID: I am working though a script to do simple global maps of variables with annotations of the global average. But I noticed that when I use the define command, aave returns a different value on that newly defined variable than on the original variable. I just installed the newest release to see if that would correct it, but I get the same thing. Could someone look at the following to see if I am doing anything odd or if this is a known/unknown problem? Thanks, Colleen ********************* ga-> q config Config: v2.0.a7.1 little-endian readline printim grib2 netcdf hdf4-sds hdf5 geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7.1 Copyright (c) 1988-2009 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Fri Aug 7 18:15:20 EDT 2009 for i386-apple-darwin9.7.0 ga-> q ctlinfo dset /Users/colleen/lib/sfcdn_new.binary title GLW undef -999 xdef 360 linear 0.5 1 ydef 180 linear -89.5 1 zdef 1 linear 1000 1 tdef 1 linear 00Z01JAN2002 180mn vars 1 prop 1 0 check var endvars ga-> d prop Contouring: 100 to 450 interval 50 ga-> define newvar=prop Define memory allocation size = 527072 bytes ga-> d aave(prop,g) Result value = 335.076 ga-> d aave(newvar,g) Result value = 324.465 ga-> d prop-newvar Constant field. Value = 0 From hersala at GMAIL.COM Mon Sep 14 12:32:44 2009 From: hersala at GMAIL.COM (hersala) Date: Mon, 14 Sep 2009 13:32:44 -0300 Subject: GS files in GrADS 2.0.a5.oga.5 In-Reply-To: <17945030.256101252856588130.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: Hi Hyacinth: When I use my own scripts or from another person, I save them in the same folder from where the data is read by GrADS, that is *win32* folder. I hope this help you. Bye, Hern?n 2009/9/13 Hyacinth Cyprain Nnamchi > Dear Colleagues, > > I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( > http://sourceforge.net/projects/opengrads/files/) on MS Windows.I notice > that it does not recognise the in-built .gs files like cbar.gs, cbarn.gsetc, although I have confirmed that they are in the "scripts" file. > > Does anyone know what could be wrong, where should I place the .gs files? > > > Thanks, > hyacinth > > > > > -- > > Hyacinth C. Nnamchi > TWAS-CAS Fellow > State Key Laboratory of Numerical Modeling for > Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) > Institute of Atmospheric Physics (IAP) > Chinese Academy of Sciences (CAS) > P.O.Box 9804, Beijing 100029, China > Tel: +86-13488719702 > Fax: +86-10-82995172 > E-mail:hc.nnamchi at lasg.iap.ac.cn > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090914/0535aeb6/attachment.html From fowler at CIRA.COLOSTATE.EDU Mon Sep 14 16:17:04 2009 From: fowler at CIRA.COLOSTATE.EDU (Laura Fowler) Date: Mon, 14 Sep 2009 22:17:04 +0200 Subject: netcdf 64 bit Message-ID: Hello: I am trying to display data from a 64 bit netcdf file using open. Using ncdump -h, the top of the netcdf file is: netcdf cam3_5_1 { // format variant: 64bit I wrote a ctl file to open the file. I am able to open the file, and display data that are defined as double, but not data that are defined as float. What do I need to do to read and display data defined as float? Thanks. Laura From rebrosa at GMAIL.COM Mon Sep 14 16:20:03 2009 From: rebrosa at GMAIL.COM (Rebeca Meyer Rosa) Date: Mon, 14 Sep 2009 17:20:03 -0300 Subject: unsubscribe Message-ID: *rebs* | o tempo muda | -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090914/98ebc9b5/attachment.html From berkelha at USC.EDU Mon Sep 14 21:02:04 2009 From: berkelha at USC.EDU (Max) Date: Tue, 15 Sep 2009 03:02:04 +0200 Subject: point by point correlation Message-ID: Dear Gradsusr, I was curious if there was a function or script to plot the correlation coefficient between two variables at each grid point in a defined region? For example, I would like to make a plot showing the correlation between the concentration of a tracer and vertical velocity over a wide region. Thanks. -Max From mubashardogar at GMAIL.COM Mon Sep 14 23:45:50 2009 From: mubashardogar at GMAIL.COM (Mubashar Dogar) Date: Tue, 15 Sep 2009 08:45:50 +0500 Subject: point by point correlation In-Reply-To: <20090915010321.28A061FFDF@mx2.cineca.it> Message-ID: Dear GrADS users, I want to extract daily averages from a monthly file having 3 hourly out put data. I am using the following script (in blue color). Script is working fine but the result of daily averages obtained by this script are different when I compare it by directly opening the 3 hourly output file in GrADS and do manual daily average at particular lat and lon information. The manual command is as follows. Any idea in this regard? 'set gxout fwrite' 'disable fwrite' 'set fwrite SRF_avg_daily.grd' 'open /RAID/RegCM_A2/ERA40_09/SRF.1961010100.ctl' 'set x 1 303' 'set y 1 226' t=1 tmax=248 while(t<=tmax) 'set t 't 'define a=avg(t2min,t+0,t+7)' 'd const(a,-9999.0,-u)' t=t+8 endwhile 'close 1' Regards, Mubashar -- Muhammad Mubashar Ahmad Dogar Scientific Officer (Climatology Section), Global Change Impact Studies Centre (GCISC), NCP complex, Quaid-e-Azam University Campus, Shahdra road, Islamabad, Pakistan. Tel: +92519230226 Mob:+923315144169 email: mubashardogar at yahoo.com mubashar.ahmad at gcisc.org.pk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090915/14e744ec/attachment.html From rust123 at YAHOO.CN Tue Sep 15 03:48:00 2009 From: rust123 at YAHOO.CN (=?gb2312?B?zfXTwMGi?=) Date: Tue, 15 Sep 2009 15:48:00 +0800 Subject: =?gb2312?B?u9i4tKO6IHBvaW50IGJ5IHBvaW50IGNvcnJlbGF0aW9u?= In-Reply-To: <20090915010321.28A061FFDF@mx2.cineca.it> Message-ID: the scorr in the grads function may be suitable ________________________________ ???? Max ???? GRADSUSR at LIST.CINECA.IT ???? 2009/9/15(??), ??9:02:04 ??? point by point correlation Dear Gradsusr, I was curious if there was a function or script to plot the correlation coefficient between two variables at each grid point in a defined region? For example, I would like to make a plot showing the correlation between the concentration of a tracer and vertical velocity over a wide region. Thanks. -Max ___________________________________________________________ ????????????????? http://card.mail.cn.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090915/3021ffc1/attachment.html From rust123 at YAHOO.CN Tue Sep 15 04:03:35 2009 From: rust123 at YAHOO.CN (=?utf-8?B?546L5rC456uL?=) Date: Tue, 15 Sep 2009 16:03:35 +0800 Subject: command in GrADS 2.0.a5.oga.5 In-Reply-To: <5b40c90909140932g17035b40q722226b8a0b0d0ff@mail.gmail.com> Message-ID: hello,everyone ????? what?are the shortcut keys of the copy and paste?command in GrADS 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in the windows xp. ________________________________ ???? hersala ???? GRADSUSR at LIST.CINECA.IT ???? 2009/9/15(??), ??12:32:44 ??? Re: GS files in GrADS 2.0.a5.oga.5 Hi Hyacinth: When I use my own scripts or from another person, I save them in the same folder from where the data is read by GrADS, that is win32 folder. I hope this help you. Bye, Hern? 2009/9/13 Hyacinth Cyprain Nnamchi Dear Colleagues, > >I am using GrADS 2.0.a5.oga.5 from the Opengrads download page (http://sourceforge.net/projects/opengrads/files/) on MS Windows.I notice that it does not recognise the in-built .gs files like cbar.gs, cbarn.gs etc, although I have confirmed that they are in the "scripts" file. > >Does anyone know what could be wrong, where should I place the .gs files? > > >Thanks, >hyacinth > > > > >-- > >Hyacinth C. Nnamchi >TWAS-CAS Fellow >State Key Laboratory of Numerical Modeling for >Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) >Institute of Atmospheric Physics (IAP) >Chinese Academy of Sciences (CAS) >P.O.Box 9804, Beijing 100029, China >Tel: +86-13488719702 >Fax: +86-10-82995172 >E-mail:hc.nnamchi at lasg.iap.ac.cn > ___________________________________________________________ ????????????????? http://card.mail.cn.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090915/2181572a/attachment.html From fdaryabor at GOOGLEMAIL.COM Tue Sep 15 05:19:37 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Tue, 15 Sep 2009 17:19:37 +0800 Subject: command in GrADS 2.0.a5.oga.5 In-Reply-To: <738774.2495.qm@web92416.mail.cnh.yahoo.com> Message-ID: Hi I try for downloading 'sdfwrite' script from " http://www.iges.org/grads/gadoc/library.html" but can't find it, because when I open 'my_data.ctl' in './gradsc' I face to following massage: ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl Scanning description file: /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 LON set to 0 360 LAT set to 180 359 LEV set to 0 0 Time values set: 1960:1:16:5 1960:1:16:5 ga-> set lon 98 120 LON set to 98 120 ga-> set lat -10 20 LAT set to -10 20 ga-> set t 05z16jan1960 1mo Time values set: 1960:5:16:5 1960:1:16:5 ga-> set sdfwrite /home/Arya/Desktop/EMP.nc SET error: Invalid operand Operand = sdfwrite /home/arya/desktop/emp.nc I think must download "sdfwrite" script, please you help me, and give me straight address for find it. Best Regards F.Daryabor On Tue, Sep 15, 2009 at 4:03 PM, ?????? wrote: > hello,everyone > what are the shortcut keys of the copy and paste command in GrADS > 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in the > windows xp. > > ------------------------------ > *????????* hersala > *????????* GRADSUSR at LIST.CINECA.IT > *????????* 2009/9/15(????), ????12:32:44 > *??????* Re: GS files in GrADS 2.0.a5.oga.5 > > Hi Hyacinth: > When I use my own scripts or from another person, I save them in the same > folder from where the data is read by GrADS, that is *win32* folder. > I hope this help you. > Bye, > Hern?n > > 2009/9/13 Hyacinth Cyprain Nnamchi > >> Dear Colleagues, >> >> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( >> http://sourceforge.net/projects/opengrads/files/) on MS Windows.I notice >> that it does not recognise the in-built .gs files like cbar.gs, cbarn.gsetc, although I have confirmed that they are in the "scripts" file. >> >> Does anyone know what could be wrong, where should I place the .gs files? >> >> >> Thanks, >> hyacinth >> >> >> >> >> -- >> >> Hyacinth C. Nnamchi >> TWAS-CAS Fellow >> State Key Laboratory of Numerical Modeling for >> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) >> Institute of Atmospheric Physics (IAP) >> Chinese Academy of Sciences (CAS) >> P.O.Box 9804, Beijing 100029, China >> Tel: +86-13488719702 >> Fax: +86-10-82995172 >> E-mail:hc.nnamchi at lasg.iap.ac.cn >> > > > ------------------------------ > ?????????????????????????????????? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090915/751d64df/attachment.html From cferrao at GMAIL.COM Tue Sep 15 09:26:15 2009 From: cferrao at GMAIL.COM (=?ISO-8859-1?Q?Carlos_Ferr=E3o?=) Date: Tue, 15 Sep 2009 15:26:15 +0200 Subject: WMO BUFR 13.0 tables for GRADS Message-ID: Dear all, I need to read WMO BUFR 13.0 data from METOP satellite. The idea is to read BUFR and write to a more friendly format like HDF or NETCDF. I was thinking of using GRADS for this. However, I cannot find the WMO 13.0 tables for GRADS. In the WMO website the tables are in doc, pdf and in ASCII but on a different layout. Am I supposed to do some perl script to convert from WMO provided ascii tables to GRADS ascii tables?? From cferrao at GMAIL.COM Tue Sep 15 09:26:21 2009 From: cferrao at GMAIL.COM (=?ISO-8859-1?Q?Carlos_Ferr=E3o?=) Date: Tue, 15 Sep 2009 15:26:21 +0200 Subject: WMO BUFR 13.0 tables for GRADS Message-ID: Dear all, I need to read WMO BUFR 13.0 data from METOP satellite. The idea is to read BUFR and write to a more friendly format like HDF or NETCDF. I was thinking of using GRADS for this. However, I cannot find the WMO 13.0 tables for GRADS. In the WMO website the tables are in doc, pdf and in ASCII but on a different layout. Am I supposed to do some perl script to convert from WMO provided ascii tables to GRADS ascii tables?? From ela at COLA.IGES.ORG Tue Sep 15 11:49:03 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Tue, 15 Sep 2009 11:49:03 -0400 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <1191101145.68361253029731242.JavaMail.root@mail.iges.org> Message-ID: Hello Farshid, sdfwrite is not a script. It's a built-in command, and you need grads 2.0.a3 or higher to use it. You mentioned that you use the grads executable 'gradsc'. This means you are using an old version of grads. Beginning with grads 2.0, the 'gradsc' executable does not exist anymore. There are only two grads executables, 'grads' and 'gradsdap'. Get the latest version of grads; the sdfwrite command will be available. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Farshid Daryabor" To: GRADSUSR at LIST.CINECA.IT Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada Eastern Subject: Re: command in GrADS 2.0.a5.oga.5 Hi I try for downloading 'sdfwrite' script from " http://www.iges.org/grads/gadoc/library.html " but can't find it, because when I open 'my_data.ctl' in './gradsc' I face to following massage: ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl Scanning description file: /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 LON set to 0 360 LAT set to 180 359 LEV set to 0 0 Time values set: 1960:1:16:5 1960:1:16:5 ga-> set lon 98 120 LON set to 98 120 ga-> set lat -10 20 LAT set to -10 20 ga-> set t 05z16jan1960 1mo Time values set: 1960:5:16:5 1960:1:16:5 ga-> set sdfwrite /home/Arya/Desktop/EMP.nc SET error: Invalid operand Operand = sdfwrite /home/arya/desktop/ emp.nc I think must download "sdfwrite" script, please you help me, and give me straight address for find it. Best Regards F.Daryabor On Tue, Sep 15, 2009 at 4:03 PM, ????????? < rust123 at yahoo.cn > wrote: hello,everyone what are the shortcut keys of the copy and paste command in GrADS 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in the windows xp. ???????????? hersala < hersala at GMAIL.COM > ???????????? GRADSUSR at LIST.CINECA.IT ???????????? 2009/9/15(??????), ?? ???12:32:44 ????????? Re: GS files in GrADS 2.0.a5.oga.5 Hi Hyacinth: When I use my own scripts or from another person, I save them in the same folder from where the data is read by GrADS, that is win32 folder. I hope this help you. Bye, Hern???n 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > Dear Colleagues, I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I notice that it does not recognise the in-built .gs files like cbar.gs , cbarn.gs etc, although I have confirmed that they are in the "scripts" file. Does anyone know what could be wrong, where should I place the .gs files? Thanks, hyacinth -- Hyacinth C. Nnamchi TWAS-CAS Fellow State Key Laboratory of Numerical Modeling for Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) Institute of Atmospheric Physics (IAP) Chinese Academy of Sciences (CAS) P.O.Box 9804, Beijing 100029, China Tel: +86-13488719702 Fax: +86-10-82995172 E-mail:hc.nnamchi at lasg.iap.ac.cn ????????????????? ?????????????????????????? ?????? From rajkumar_62 at REDIFFMAIL.COM Tue Sep 15 13:56:29 2009 From: rajkumar_62 at REDIFFMAIL.COM (Raj Kumar Sharma) Date: Tue, 15 Sep 2009 17:56:29 -0000 Subject: Standard deviation of particular location and of area Message-ID: Hi, I have file containing global values of variable for whole year. I would like to compute Average & Standard Deviation for Particular Location and also for defined area.I had written script to compute Std Dev for a particular location, however it is showing error. It will be great if someone can help. Raj 'reinit''set display color white'clear'set gxout shaded''open pqfull.ctl'ln = 60lt = -10it = 1et = 5 'set lon 'ln'set lat 'lt 'd ave(whu,t='it',t='et')'lin=sublin(result,2)avg = subwrd(lin,4)say 'AAAA 'avgwhile(t<'et')sg = sg + (avg-whu)df =  pow(sg,2)endwhiledt = et-it+1std = df/dt'd sqrt(std)'std = subwrd(result,4)say 'STD DEV = ',stdreturn Dr Raj Kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090915/9d644665/attachment.html From Charles.Seman at NOAA.GOV Tue Sep 15 14:28:44 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 15 Sep 2009 14:28:44 -0400 Subject: Standard deviation of particular location and of area In-Reply-To: <20090915175629.51348.qmail@f5mail-237-242.rediffmail.com> Message-ID: Raj, here's some documentation from a script used to calculate standard deviation: * From statistics (reference: "Statistical Concepts and Methods" * by Bhattacharyya and Johnson (1977)), the sample variance s**2 * for a set of "N" observations of a variable "xi" (x1,...,xN) * is defined as: * * s**2 = [(x1-xbar)**2 + (x2-xbar)**2 + (x3-xbar)**2 +.... * + (xN-xbar)**2 ]/(N-1) , (from page 34) * * where the sample mean = xbar = (x1+x2+x3+...+xN)/N , (from page 27) * * Note, the sample variance sums over "N" observations, and divides the * sum by "N-1"... * * The sample standard deviation is defined as the square root of the * sample variance (from page 35): * * s = sqrt(s**2) perhaps you could try (please check for mistakes) ...same as in your email, then sg = 0 tt = it while(tt<='et') 'set t 'tt ...define whu at t = "tt" sg = sg + pow((avg-whu),2) endwhile dt = et-it+1 sv = sg/(dt-1) * sample variance 'd sqrt(sv)' std = subwrd(result,4) say 'STD DEV = ',std Hope this helps, Chuck Raj Kumar Sharma wrote: > Hi, I have file containing global values of variable for whole year. I > would like to compute Average & Standard Deviation for Particular > Location and also for defined area. > I had written script to compute Std Dev for a particular location, > however it is showing error. It will be great if someone can help. > > Raj > > 'reinit' > 'set display color white' > clear > 'set gxout shaded' > 'open pqfull.ctl' > ln = 60 > lt = -10 > it = 1 > et = 5 > > 'set lon 'ln > 'set lat 'lt > > 'd ave(whu,t='it',t='et')' > lin=sublin(result,2) > avg = subwrd(lin,4) > say 'AAAA 'avg > while(t<'et') > sg = sg + (avg-whu) > df = pow(sg,2) > endwhile > dt = et-it+1 > std = df/dt > 'd sqrt(std)' > std = subwrd(result,4) > say 'STD DEV = ',std > return > > > Dr Raj Kumar > > > -- 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 Felix.Navejar at NOAA.GOV Tue Sep 15 14:32:18 2009 From: Felix.Navejar at NOAA.GOV (Felix Navejar) Date: Tue, 15 Sep 2009 13:32:18 -0500 Subject: Unsubscribe Message-ID: Hey All, Loved the emails, but too much love can be too much. :) Felix From ambarish.jash at GMAIL.COM Tue Sep 15 14:44:19 2009 From: ambarish.jash at GMAIL.COM (Ambarish Jash) Date: Tue, 15 Sep 2009 12:44:19 -0600 Subject: Unsubscribe In-Reply-To: <89fe3d026a82bc92.4aaf9762@noaa.gov> Message-ID: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090915/8eb0984e/attachment.html From changliang at HHU.EDU.CN Tue Sep 15 21:24:16 2009 From: changliang at HHU.EDU.CN (changliang) Date: Wed, 16 Sep 2009 09:24:16 +0800 Subject: unsubscribe Message-ID: unsubscribe 2009-09-16 changliang -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090916/2c853164/attachment.html From fdaryabor at GOOGLEMAIL.COM Wed Sep 16 00:55:54 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Wed, 16 Sep 2009 00:55:54 -0400 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <1342339260.68381253029743820.JavaMail.root@mail.iges.org> Message-ID: Hi Eric Altshuler Thanks so much for your guide. I try download grads 2.0.a3. Best Regards F.Daryabor On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler wrote: > Hello Farshid, > > sdfwrite is not a script. It's a built-in command, and you need grads > 2.0.a3 or higher to use it. You mentioned that you use the grads executable > 'gradsc'. This means you are using an old version of grads. Beginning with > grads 2.0, the 'gradsc' executable does not exist anymore. There are only > two grads executables, 'grads' and 'gradsdap'. Get the latest version of > grads; the sdfwrite command will be available. > > Best regards, > > Eric L. Altshuler > Assistant Research Scientist > Center for Ocean-Land-Atmosphere Studies > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705-3106 > USA > > E-mail: ela at cola.iges.org > Phone: (301) 902-1257 > Fax: (301) 595-9793 > > ----- Original Message ----- > From: "Farshid Daryabor" > To: GRADSUSR at LIST.CINECA.IT > Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada Eastern > Subject: Re: command in GrADS 2.0.a5.oga.5 > > Hi > I try for downloading 'sdfwrite' script from " > http://www.iges.org/grads/gadoc/library.html " but can't find it, because > when I open 'my_data.ctl' in './gradsc' I face to following massage: > > ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > Scanning description file: > /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 > LON set to 0 360 > LAT set to 180 359 > LEV set to 0 0 > Time values set: 1960:1:16:5 1960:1:16:5 > ga-> set lon 98 120 > LON set to 98 120 > ga-> set lat -10 20 > LAT set to -10 20 > ga-> set t 05z16jan1960 1mo > Time values set: 1960:5:16:5 1960:1:16:5 > ga-> set sdfwrite /home/Arya/Desktop/EMP.nc > SET error: Invalid operand > Operand = sdfwrite /home/arya/desktop/ emp.nc > I think must download "sdfwrite" script, please you help me, and give me > straight address for find it. > Best Regards > F.Daryabor > > > > On Tue, Sep 15, 2009 at 4:03 PM, ??? < rust123 at yahoo.cn > wrote: > > > > > > hello,everyone > what are the shortcut keys of the copy and paste command in GrADS > 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in the > windows xp. > > > > > ???? hersala < hersala at GMAIL.COM > > ???? GRADSUSR at LIST.CINECA.IT > ???? 2009/9/15(??), ?? ?12:32:44 > ??? Re: GS files in GrADS 2.0.a5.oga.5 > > Hi Hyacinth: > When I use my own scripts or from another person, I save them in the same > folder from where the data is read by GrADS, that is win32 folder. > I hope this help you. > Bye, > Hern?n > > > 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > > > > Dear Colleagues, > > I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( > http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I notice > that it does not recognise the in-built .gs files like cbar.gs , cbarn.gsetc, although I have confirmed that they are in the "scripts" file. > > Does anyone know what could be wrong, where should I place the .gs files? > > > Thanks, > hyacinth > > > > > -- > > Hyacinth C. Nnamchi > TWAS-CAS Fellow > State Key Laboratory of Numerical Modeling for > Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) > Institute of Atmospheric Physics (IAP) > Chinese Academy of Sciences (CAS) > P.O.Box 9804, Beijing 100029, China > Tel: +86-13488719702 > Fax: +86-10-82995172 > E-mail:hc.nnamchi at lasg.iap.ac.cn > > > > ??????? ?????????? ?? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090916/6ee431da/attachment.html From preuter at LABRI.FR Wed Sep 16 01:23:03 2009 From: preuter at LABRI.FR (Patrick Reuter) Date: Wed, 16 Sep 2009 07:23:03 +0200 Subject: unsubscribe Message-ID: 3rd try. Please unscubscribe me. From hersala at GMAIL.COM Wed Sep 16 09:29:07 2009 From: hersala at GMAIL.COM (hersala) Date: Wed, 16 Sep 2009 10:29:07 -0300 Subject: About sdfwrite Message-ID: Hi Farshid: Take in account that sdfwrite is a command and not an script and that it works with GrADS version 2.0.a3 (or higher). You will find more info in: http://www.iges.org/grads/gadoc/gadocindex.html Regards, Hern?n 2009/9/15 Farshid Daryabor > Hi > I try for downloading 'sdfwrite' script from " > http://www.iges.org/grads/gadoc/library.html" but can't find it, because > when I open 'my_data.ctl' in './gradsc' I face to following massage: > > ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > Scanning description file: > /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 > LON set to 0 360 > LAT set to 180 359 > LEV set to 0 0 > Time values set: 1960:1:16:5 1960:1:16:5 > ga-> set lon 98 120 > LON set to 98 120 > ga-> set lat -10 20 > LAT set to -10 20 > ga-> set t 05z16jan1960 1mo > Time values set: 1960:5:16:5 1960:1:16:5 > ga-> set sdfwrite /home/Arya/Desktop/EMP.nc > SET error: Invalid operand > Operand = sdfwrite /home/arya/desktop/emp.nc > I think must download "sdfwrite" script, please you help me, and give me > straight address for find it. > Best Regards > F.Daryabor > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090916/361696a2/attachment.html From fdaryabor at GOOGLEMAIL.COM Wed Sep 16 22:26:56 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 17 Sep 2009 10:26:56 +0800 Subject: About sdfwrite In-Reply-To: <5b40c90909160629n49ba024cn730a89e25b5eca99@mail.gmail.com> Message-ID: Hi Hernan TQ for your guid Best Regards for you FARSHID On Wed, Sep 16, 2009 at 9:29 PM, hersala wrote: > Hi Farshid: > Take in account that sdfwrite is a command and not an script and that it > works with GrADS version 2.0.a3 (or higher). > You will find more info in: > http://www.iges.org/grads/gadoc/gadocindex.html > Regards, > Hern?n > > > 2009/9/15 Farshid Daryabor > >> Hi >> I try for downloading 'sdfwrite' script from " >> http://www.iges.org/grads/gadoc/library.html" but can't find it, because >> when I open 'my_data.ctl' in './gradsc' I face to following massage: >> >> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >> Scanning description file: >> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 >> LON set to 0 360 >> LAT set to 180 359 >> LEV set to 0 0 >> Time values set: 1960:1:16:5 1960:1:16:5 >> ga-> set lon 98 120 >> LON set to 98 120 >> ga-> set lat -10 20 >> LAT set to -10 20 >> ga-> set t 05z16jan1960 1mo >> Time values set: 1960:5:16:5 1960:1:16:5 >> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc >> SET error: Invalid operand >> Operand = sdfwrite /home/arya/desktop/emp.nc >> I think must download "sdfwrite" script, please you help me, and give me >> straight address for find it. >> Best Regards >> F.Daryabor >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/b79e681a/attachment.html From fdaryabor at GOOGLEMAIL.COM Thu Sep 17 03:17:20 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 17 Sep 2009 15:17:20 +0800 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <9b8832d50909152155p1decef20g1cbd8950420513a1@mail.gmail.com> Message-ID: Hi all I could use 'sdfwrite', now I want to input 2 variables 'u' and 'v' in one netcdf file. I write a script for execute , after 'set sdfwrite /hom2/../VAR.nc' when I type 'sdfwrite' command which is 'sdfwrite uwind vwind.2' for writing 2 variables in netcdf file, it only gives me one of them not both. Please guide me. 'open /home2/fdaryabor/Documents/U.ctl' 'open /home2/fdaryabor/Documents/V.ctl' 'set lon 0 360' 'set lat 180 359' 'set lev 0 0' 'set t 1 last' 'set e 1 last' 'define uwind=u' 'define vwind=v.2' 'set sdfwrite /home2/fdaryabor/Documents/VAR.nc' 'sdfwrite uwind vwind.2' Best Regards F.Daryabor On Wed, Sep 16, 2009 at 12:55 PM, Farshid Daryabor wrote: > Hi Eric Altshuler > Thanks so much for your guide. I try download grads 2.0.a3. > Best Regards > F.Daryabor > > > On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler wrote: > >> Hello Farshid, >> >> sdfwrite is not a script. It's a built-in command, and you need grads >> 2.0.a3 or higher to use it. You mentioned that you use the grads executable >> 'gradsc'. This means you are using an old version of grads. Beginning with >> grads 2.0, the 'gradsc' executable does not exist anymore. There are only >> two grads executables, 'grads' and 'gradsdap'. Get the latest version of >> grads; the sdfwrite command will be available. >> >> Best regards, >> >> Eric L. Altshuler >> Assistant Research Scientist >> Center for Ocean-Land-Atmosphere Studies >> 4041 Powder Mill Road, Suite 302 >> Calverton, MD 20705-3106 >> USA >> >> E-mail: ela at cola.iges.org >> Phone: (301) 902-1257 >> Fax: (301) 595-9793 >> >> ----- Original Message ----- >> From: "Farshid Daryabor" >> To: GRADSUSR at LIST.CINECA.IT >> Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada Eastern >> Subject: Re: command in GrADS 2.0.a5.oga.5 >> >> Hi >> I try for downloading 'sdfwrite' script from " >> http://www.iges.org/grads/gadoc/library.html " but can't find it, because >> when I open 'my_data.ctl' in './gradsc' I face to following massage: >> >> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >> Scanning description file: >> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 >> LON set to 0 360 >> LAT set to 180 359 >> LEV set to 0 0 >> Time values set: 1960:1:16:5 1960:1:16:5 >> ga-> set lon 98 120 >> LON set to 98 120 >> ga-> set lat -10 20 >> LAT set to -10 20 >> ga-> set t 05z16jan1960 1mo >> Time values set: 1960:5:16:5 1960:1:16:5 >> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc >> SET error: Invalid operand >> Operand = sdfwrite /home/arya/desktop/ emp.nc >> I think must download "sdfwrite" script, please you help me, and give me >> straight address for find it. >> Best Regards >> F.Daryabor >> >> >> >> On Tue, Sep 15, 2009 at 4:03 PM, ??? < rust123 at yahoo.cn > wrote: >> >> >> >> >> >> hello,everyone >> what are the shortcut keys of the copy and paste command in GrADS >> 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in the >> windows xp. >> >> >> >> >> ???? hersala < hersala at GMAIL.COM > >> ???? GRADSUSR at LIST.CINECA.IT >> ???? 2009/9/15(??), ?? ?12:32:44 >> ??? Re: GS files in GrADS 2.0.a5.oga.5 >> >> Hi Hyacinth: >> When I use my own scripts or from another person, I save them in the same >> folder from where the data is read by GrADS, that is win32 folder. >> I hope this help you. >> Bye, >> Hern?n >> >> >> 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > >> >> >> Dear Colleagues, >> >> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( >> http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I notice >> that it does not recognise the in-built .gs files like cbar.gs , cbarn.gsetc, although I have confirmed that they are in the "scripts" file. >> >> Does anyone know what could be wrong, where should I place the .gs files? >> >> >> Thanks, >> hyacinth >> >> >> >> >> -- >> >> Hyacinth C. Nnamchi >> TWAS-CAS Fellow >> State Key Laboratory of Numerical Modeling for >> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) >> Institute of Atmospheric Physics (IAP) >> Chinese Academy of Sciences (CAS) >> P.O.Box 9804, Beijing 100029, China >> Tel: +86-13488719702 >> Fax: +86-10-82995172 >> E-mail:hc.nnamchi at lasg.iap.ac.cn >> >> >> >> ??????? ?????????? ?? >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/ee3d8d3b/attachment.html From sushantpuranik at GMAIL.COM Thu Sep 17 03:54:44 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Thu, 17 Sep 2009 13:24:44 +0530 Subject: How to store images continuously Message-ID: Hi Is it possible to store images continuously with the help of scripting. For example I has a ECMWF data at 00, 06 , 12 and 18 UTC and also for whole month in a single file (netcdf file) . Is there any script by which i can store image at each observation hour and also for each day of whole month with the help of single script. If so then any one has such script? Sushant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/7df3f0e2/attachment.html From eliavs at GMAIL.COM Thu Sep 17 04:21:38 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Thu, 17 Sep 2009 11:21:38 +0300 Subject: How to store images continuously In-Reply-To: <72e8bd3d0909170054j17fa67f8p93c74d22d8bfb7fe@mail.gmail.com> Message-ID: Hi Sushant i am not sure if this is what you meant but i attached 2 scripts of mine look at it and let me know eliav On Thu, Sep 17, 2009 at 10:54 AM, sushant puranik wrote: > Hi > Is it possible to store images continuously with the help of scripting. > For example I has a ECMWF data at 00, 06 , 12 and 18 UTC and also for whole > month in a single file (netcdf file) . > Is there any script by which i can store image at each observation hour and > also for each day of whole month with the help of single script. > > If so then any one has such script? > > > Sushant > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/05bf1a60/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: slp_hgt.gs Type: application/octet-stream Size: 851 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090917/05bf1a60/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: slp.gs Type: application/octet-stream Size: 845 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090917/05bf1a60/attachment-0001.obj From javier.p at EREDA.COM Thu Sep 17 05:23:31 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Thu, 17 Sep 2009 11:23:31 +0200 Subject: Help Message-ID: We have some data in a netcdf file (u velocity, v velocity, geopetential,ect) to some dates and some points of a grid. Now, we extract each variable in a file with following script: For example to extract the temperature: 'reinit' 'sdfopen ereda' '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 'd t' rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\ereda_ecmwf_t.txt',result) to = to + 1 endwhile We'd like to extract all variables in a same file and the variables are in differents columns. Are there any script to do this? -- 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/20090917/3a29c9b7/attachment.html From matt.alonso at GMAIL.COM Thu Sep 17 06:07:42 2009 From: matt.alonso at GMAIL.COM (Matt Alonso) Date: Thu, 17 Sep 2009 10:07:42 +0000 Subject: Help In-Reply-To: <607bb2140909170223n5496cf0ai480b78f62be80056@mail.gmail.com> Message-ID: Try creating an array with all the variable names as strings and loop over that inside the WHILE loop. If you need more clarification I can send you an example once I get to my computer. Cheers, Matt Sent from my Verizon Wireless BlackBerry -----Original Message----- From: Javier Pe?a Date: Thu, 17 Sep 2009 11:23:31 To: Subject: Help We have some data in a netcdf file (u velocity, v velocity, geopetential,ect) to some dates and some points of a grid. Now, we extract each variable in a file with following script: For example to extract the temperature: 'reinit' 'sdfopen ereda' '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 'd t' rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\ereda_ecmwf_t.txt',result) to = to + 1 endwhile We'd like to extract all variables in a same file and the variables are in differents columns. Are there any script to do this? -- 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/20090917/1355abb4/attachment.html From kwmski7 at SNU.AC.KR Thu Sep 17 06:05:02 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Thu, 17 Sep 2009 19:05:02 +0900 Subject: Help In-Reply-To: <607bb2140909170223n5496cf0ai480b78f62be80056@mail.gmail.com> Message-ID: Try this : in the 'while' loop, ------------------------------------------ while ( to<5 ) 'set t 'to tmp='' 'd var1' ; tmp=subwrd(result,4) 'd var2' ; tmp=tmp%' 'subwrd(result,4) 'd var3' ; tmp=tmp%' 'subwrd(result,4) 'd var4' ; tmp=tmp%' 'subwrd(result,4) rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\ereda_ecmwf_t.txt',tmp) to = to + 1 endwhile ------------------------------------------ so that before you write to ~.txt file, make a augmented outputs as in the script. here, subwrd(result,4) is used, for the 4th word of the 'result' contains the value. Good luck, Kim, WonMoo From: Javier Pe?a Sent: Thursday, September 17, 2009 6:23 PM To: GRADSUSR at LIST.CINECA.IT Subject: Help We have some data in a netcdf file (u velocity, v velocity, geopetential,ect) to some dates and some points of a grid. Now, we extract each variable in a file with following script: For example to extract the temperature: 'reinit' 'sdfopen ereda' '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 'd t' rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\ereda_ecmwf_t.txt',result) to = to + 1 endwhile We'd like to extract all variables in a same file and the variables are in differents columns. Are there any script to do this? -- 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/20090917/1891afcf/attachment.html From sushantpuranik at GMAIL.COM Thu Sep 17 08:37:11 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Thu, 17 Sep 2009 18:07:11 +0530 Subject: How to store images continuously In-Reply-To: <128fb9ed0909170121y49c13363ja4b73fd75edda33d@mail.gmail.com> Message-ID: Thank you very much Sir. It works. Again thank you for the script Sushant On Thu, Sep 17, 2009 at 1:51 PM, eliav schmulewitz wrote: > > Hi Sushant > i am not sure if this is what you meant but i attached 2 scripts of mine > look at it and let me know > eliav > > On Thu, Sep 17, 2009 at 10:54 AM, sushant puranik < > sushantpuranik at gmail.com> wrote: > >> Hi >> Is it possible to store images continuously with the help of scripting. >> For example I has a ECMWF data at 00, 06 , 12 and 18 UTC and also for >> whole month in a single file (netcdf file) . >> Is there any script by which i can store image at each observation hour >> and also for each day of whole month with the help of single script. >> >> If so then any one has such script? >> >> >> Sushant >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/ebc57a3b/attachment.html From javier.p at EREDA.COM Thu Sep 17 09:22:44 2009 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Thu, 17 Sep 2009 15:22:44 +0200 Subject: Help In-Reply-To: Message-ID: Thank so much for your reply. With the script you have sent me: 'reinit' 'sdfopen ereda' '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\prueba3.txt',tmp) tmp=subwrd(rerult,4) 'd v';tmp=tmp%''subwrd(result,4) rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\prueba3.txt',tmp) to = to + 1 endwhile set lev 1 I've gotten the following result: 0.261717 -2.01558 2.12168 -4.01917 1.91571 -4.87874 0.710381 -3.54395 In the first row, the fist data of the u velocity appears; in the second row, the second data of the v velocity appears, in the third row, the second data of the u velocity appears; in the fourth row, the second data of the v velocity appears. This is fine but I'd would like the following: The first data of u velocity appears in the first row and first column, the second data of u velocity appears in the second row and first column,... The first data of v velocity appears in the first row and second column; the second data of velicity appears in the second row and the second column,... I mean, somethink similar like this: 0.261717 -2.01558 2.12168 -4.01917 1.91571 -4.87874 0.710381 -3.54395 It say like a array o matrix. Is it possible to do that? Best Regards: Javier Pe?a 2009/9/17 Kim WonMoo > Try this : > > in the 'while' loop, > ------------------------------------------ > while ( to<5 ) > 'set t 'to > tmp='' > 'd var1' ; tmp=subwrd(result,4) > 'd var2' ; tmp=tmp%' 'subwrd(result,4) > 'd var3' ; tmp=tmp%' 'subwrd(result,4) > 'd var4' ; tmp=tmp%' 'subwrd(result,4) > rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\ereda_ecmwf_t.txt',tmp) > to = to + 1 > endwhile > ------------------------------------------ > > so that before you write to ~.txt file, make a augmented outputs as in the > script. > > here, subwrd(result,4) is used, for the 4th word of the 'result' contains > the value. > > Good luck, > Kim, WonMoo > > > *From:* Javier Pe?a > *Sent:* Thursday, September 17, 2009 6:23 PM > *To:* GRADSUSR at LIST.CINECA.IT > *Subject:* Help > > We have some data in a netcdf file (u velocity, v velocity, > geopetential,ect) to some dates and some points of a grid. > Now, we extract each variable in a file with following script: > For example to extract the temperature: > > 'reinit' > 'sdfopen ereda' > '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 > 'd t' > rrc = write('c:\prueba_c\pruebas_archivo_ecmwf\ereda_ecmwf_t.txt',result) > to = to + 1 > endwhile > We'd like to extract all variables in a same file and the variables are in > differents columns. > Are there any script to do this? > > -- > 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/20090917/550cf69d/attachment.html From claudiomet at GMAIL.COM Thu Sep 17 11:27:14 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Thu, 17 Sep 2009 11:27:14 -0400 Subject: kml tiff size Message-ID: Hi users ! I'm exporting some grib files to kml format (for view the outputs in GoogleEarth), but the tiff file generated is too small. Is there any way to generate kml files with big tiff files ? -- 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 yi_zhou01 at YAHOO.CA Thu Sep 17 12:21:13 2009 From: yi_zhou01 at YAHOO.CA (yi zhou) Date: Thu, 17 Sep 2009 09:21:13 -0700 Subject: Display NARR Message-ID: Hi Group members, Could you please help me to solve the problem? My grads version: Grads2.0a3 under Window XP 2002 Now I am encountering a problem when open a NARR 3hr data. In order to practice, I download the data from NARR daily dataset website. the grib data name as: narr-a_221_20090912_0000_000.grd.?? I just download one variable:hgtpre and one level: 500 hpa level.? So I change the ctl file as: ls.ctl ============================== dset? ^ls.grb index ^ls.idx undef 9.999E+20 title Select North American Regional Reanalysis - 3hr time steps * *? produced by grib2ctl v0.9.12.5p33h modified by hand v1.0 WNE * dtype grib 221 options template pdef 349 277 lcc 1 -145.5 1 1 50 50 -107 32463 32463 xdef 1111 linear -250 0.333333 ydef 247 linear 8 0.333333 tdef 1 linear 00:00Z12sep2009 3hr zdef 1 levels 500 * vars 1 HGTprs????????? 1 7,100,0??? anl Geopotential height [gpm] ENDVARS ================================== And then I use gribmap to create an index file: ls.idx So far every thing is ok. Then I display hgtprs, the imformation shows as : ========= ga->d hgtprs Notice: Automatic Grid Interpolation Taking Place Cannot contour grid - all undefined values. ================== Thanks in advance. Regards Emily -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/63df7a89/attachment.html From zjuyanlibin at 163.COM Thu Sep 17 12:55:50 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Fri, 18 Sep 2009 00:55:50 +0800 Subject: =?utf-8?B?UmU6IERpc3BsYXkgTkFSUg==?= Message-ID: 2009-09-18 Yan Libin ???? yi zhou ????? 2009-09-18 00:31:19 ???? GRADSUSR ??? ??? Display NARR Hi Group members, Could you please help me to solve the problem? My grads version: Grads2.0a3 under Window XP 2002 Now I am encountering a problem when open a NARR 3hr data. In order to practice, I download the data from NARR daily dataset website. the grib data name as: narr-a_221_20090912_0000_000.grd. I just download one variable:hgtpre and one level: 500 hpa level. So I change the ctl file as: ls.ctl ============================== dset ^ls.grb index ^ls.idx undef 9.999E+20 title Select North American Regional Reanalysis - 3hr time steps * * produced by grib2ctl v0.9.12.5p33h modified by hand v1.0 WNE * dtype grib 221 options template >>> delete above line pdef 349 277 lcc 1 -145.5 1 1 50 50 -107 32463 32463 xdef 1111 linear -250 0.333333 ydef 247 linear 8 0.333333 tdef 1 linear 00:00Z12sep2009 3hr zdef 1 levels 500 * vars 1 HGTprs 1 7,100,0 anl Geopotential height [gpm] ENDVARS ================================== And then I use gribmap to create an index file: ls.idx So far every thing is ok. Then I display hgtprs, the imformation shows as : ========= ga->d hgtprs Notice: Automatic Grid Interpolation Taking Place Cannot contour grid - all undefined values. >>> notice it, all undefined!!! ================== Thanks in advance. Regards Emily -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090918/18f76c6a/attachment.html From andrewhazelden at GMAIL.COM Thu Sep 17 12:46:21 2009 From: andrewhazelden at GMAIL.COM (Andrew Hazelden) Date: Thu, 17 Sep 2009 13:46:21 -0300 Subject: kml tiff size In-Reply-To: <5f3ba4e00909170827x6c9aa23md49e0a92999d70c9@mail.gmail.com> Message-ID: Hi. I am a fairly new GrADS user but this is the technique I have worked out. I export a dummy kml file + small tiff using gxout kml just for the Google Earth GroundOverlay coordinates. ga-> clear ga->set kml /base_kml ga->set gxout kml ga->d mag(UGRD10m,VGRD10m) * 3.6 Then I use printim command to export a larger image in a format like TIFF or PNG. ga-> clear ga-> set parea 0 11 0 8.5 ga-> set grid off grid is off ga-> set mproj scaled ga-> set mpdraw off ga-> set grads off ga-> set gxout shaded ga-> d mag(UGRD10m,VGRD10m) * 3.6 ga-> printim /wind_speed_layer.tif x2048 y1024 -t 0 Then I replace the reference in the KML file from the low resolution tiff to the new image on the line: /base_kml.tif Also in my experience Google Earth doesn't respect the transparency in GrADS TIFF or GIF exports but does in PNG exports. Regards, Andrew Hazelden Weather Enthusiast On 17-Sep-09, at 12:27 PM, claudio cortes wrote: > Hi users ! > > I'm exporting some grib files to kml format (for view the outputs in > GoogleEarth), but the tiff file generated is too small. > Is there any way to generate kml files with big tiff files ? > > -- > 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/20090917/9770c2ec/attachment.html From gabriel.ud at GMAIL.COM Thu Sep 17 13:30:24 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Thu, 17 Sep 2009 14:30:24 -0300 Subject: color-filled continents In-Reply-To: <4AAA9330.4090009@atmosfera.unam.mx> Message-ID: Valeu matias! 2009/9/11 Matias Mendez > Hello Gabriel, > > You can try basemap.gs. This script overlays a land or ocean mask. You > can get it, here: > > http://www.iges.org/grads/gadoc/library.html > > Good luck. > > Best regards, > Matias > > > Gabriel - ud Carvalho escribi?: > > Hi everybody! >> Does somebody knows how to color the land? >> the ?set map?or ?set mpt? only controls the color of the line of the >> land (continent)! >> >> thanks a lot, >> >> Gabriel Carvalho >> Oceanography Student >> Rio de Janeiro >> Brazil >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/2a3400e1/attachment.html From claudiomet at GMAIL.COM Thu Sep 17 13:30:49 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Thu, 17 Sep 2009 13:30:49 -0400 Subject: kml tiff size In-Reply-To: Message-ID: Thanks Andrew ! It works ! 2009/9/17 Andrew Hazelden : > Hi. > I am a fairly new GrADS user but this is the technique I have worked out. > I export a dummy kml file + small tiff using gxout kml just for the Google > Earth GroundOverlay coordinates. > ga-> clear > ga->set kml /base_kml > ga->set gxout kml > ga->d mag(UGRD10m,VGRD10m) * 3.6 > Then I use printim command to export a larger image in a format like TIFF or > PNG. > ga-> clear > ga-> set parea 0 11 0 8.5 > ga-> set grid off > grid is off > ga-> set mproj scaled > ga-> set mpdraw off > ga-> set grads off > ga-> set gxout shaded > ga-> d mag(UGRD10m,VGRD10m) * 3.6 > ga-> printim /wind_speed_layer.tif x2048 y1024 -t 0 > Then I replace the reference in the KML file from the low resolution tiff to > the new image on the line: > /base_kml.tif > Also in my experience Google Earth doesn't respect the transparency in GrADS > TIFF or GIF exports but does in PNG exports. > Regards, > Andrew Hazelden > Weather Enthusiast > > On 17-Sep-09, at 12:27 PM, claudio cortes wrote: > > Hi users ! > > I'm exporting some grib files to kml format (for view the outputs in > GoogleEarth), but the tiff file generated is too small. > Is there any way to generate kml files with big tiff files ? > > -- > 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) > > -- 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 yi_zhou01 at YAHOO.CA Fri Sep 18 00:19:51 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Thu, 17 Sep 2009 21:19:51 -0700 Subject: g2ctl.pl Message-ID: Hi group members, I have a problem when run g2ctl.pl. Could you please figure out this problem? My grads version is grads 2.0 a3, and run g2ctl.pl under window xp. when I run >g2ctl.pl? narr-a_221_20090912_0000_000.grb>narr-a_221_20090912_0000_000.ctl, the .ctl is empty. here I downloaded the .grb data as a subset dataset. I just downloaded 1 variable hgtprs at 00z time and one level (500hpa). please help me, thanks a lot Emily -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090917/fc7eacad/attachment.html From mike.bosilovich at GMAIL.COM Fri Sep 18 10:57:55 2009 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Fri, 18 Sep 2009 10:57:55 -0400 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <9b8832d50909170017s4e5dee66u2b48931cc3d9e1da@mail.gmail.com> Message-ID: I just had a similar question, and asked Jennifer offline. So, what to do is to build a call to ncks into your script, and it can append data onto a file. In my case I loop over many variables, so the file in sdfwrite is temp.nc, then I use ncks to append to the actual output file I want. I tried to add som script below that may work for you. On Thu, Sep 17, 2009 at 3:17 AM, Farshid Daryabor wrote: > Hi all > I could use 'sdfwrite', now I want to input 2 variables? 'u' and 'v' in one > netcdf file.? I write a script for execute , after 'set sdfwrite > /hom2/../VAR.nc' when I type 'sdfwrite' command which is 'sdfwrite uwind > vwind.2' for writing 2 variables? in? netcdf file, it only gives me one of > them not both. Please guide me. > > > 'open /home2/fdaryabor/Documents/U.ctl' > 'open /home2/fdaryabor/Documents/V.ctl' > 'set lon 0 360' > 'set lat 180 359' > 'set lev 0 0' > 'set t 1 last' > 'set e 1 last' > 'define uwind=u' > 'define vwind=v.2' > *'set sdfwrite /home2/fdaryabor/Documents/VAR.nc' 'set sdfwrite temp.nc' > *'sdfwrite uwind vwind.2' 'sdfwrite uwind' '!cp temp.nc /home2/fdaryabor/Documents/VAR.nc' 'sdfwrite vwind' 'ncks -A -h temp.nc /home2/fdaryabor/Documents/VAR.nc' If there's any looping involved, then the !cp will over write, so only do that on the first iteration of the loop to initialize the file, and append all the rest. -A does the append, and -h prevents a history line in the netcdf metadata. I was looping over many vars, and this history was getting too big. Hope this helps and have a great weekend!! Mike > > Best Regards > F.Daryabor > > On Wed, Sep 16, 2009 at 12:55 PM, Farshid Daryabor > wrote: >> >> Hi Eric Altshuler >> Thanks so much for your guide. I try download grads 2.0.a3. >> Best Regards >> F.Daryabor >> >> On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler >> wrote: >>> >>> Hello Farshid, >>> >>> sdfwrite is not a script. It's a built-in command, and you need grads >>> 2.0.a3 or higher to use it. You mentioned that you use the grads executable >>> 'gradsc'. This means you are using an old version of grads. Beginning with >>> grads 2.0, the 'gradsc' executable does not exist anymore. There are only >>> two grads executables, 'grads' and 'gradsdap'. Get the latest version of >>> grads; the sdfwrite command will be available. >>> >>> Best regards, >>> >>> Eric L. Altshuler >>> Assistant Research Scientist >>> Center for Ocean-Land-Atmosphere Studies >>> 4041 Powder Mill Road, Suite 302 >>> Calverton, MD 20705-3106 >>> USA >>> >>> E-mail: ela at cola.iges.org >>> Phone: (301) 902-1257 >>> Fax: (301) 595-9793 >>> >>> ----- Original Message ----- >>> From: "Farshid Daryabor" >>> To: GRADSUSR at LIST.CINECA.IT >>> Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada Eastern >>> Subject: Re: command in GrADS 2.0.a5.oga.5 >>> >>> Hi >>> I try for downloading 'sdfwrite' script from " >>> http://www.iges.org/grads/gadoc/library.html " but can't find it, because >>> when I open 'my_data.ctl' in './gradsc' I face to following massage: >>> >>> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >>> Scanning description file: >>> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >>> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 >>> LON set to 0 360 >>> LAT set to 180 359 >>> LEV set to 0 0 >>> Time values set: 1960:1:16:5 1960:1:16:5 >>> ga-> set lon 98 120 >>> LON set to 98 120 >>> ga-> set lat -10 20 >>> LAT set to -10 20 >>> ga-> set t 05z16jan1960 1mo >>> Time values set: 1960:5:16:5 1960:1:16:5 >>> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc >>> SET error: Invalid operand >>> Operand = sdfwrite /home/arya/desktop/ emp.nc >>> I think must download "sdfwrite" script, please you help me, and give me >>> straight address for find it. >>> Best Regards >>> F.Daryabor >>> >>> >>> >>> On Tue, Sep 15, 2009 at 4:03 PM, ????????? < rust123 at yahoo.cn > wrote: >>> >>> >>> >>> >>> >>> hello,everyone >>> what are the shortcut keys of the copy and paste command in GrADS >>> 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in the >>> windows xp. >>> >>> >>> >>> >>> ???????????? hersala < hersala at GMAIL.COM > >>> ???????????? GRADSUSR at LIST.CINECA.IT >>> ???????????? 2009/9/15(??????), ????? ???12:32:44 >>> ????????? Re: GS files in GrADS 2.0.a5.oga.5 >>> >>> Hi Hyacinth: >>> When I use my own scripts or from another person, I save them in the same >>> folder from where the data is read by GrADS, that is win32 folder. >>> I hope this help you. >>> Bye, >>> Hern???n >>> >>> >>> 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > >>> >>> >>> Dear Colleagues, >>> >>> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( >>> http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I notice >>> that it does not recognise the in-built .gs files like cbar.gs , cbarn.gs >>> etc, although I have confirmed that they are in the "scripts" file. >>> >>> Does anyone know what could be wrong, where should I place the .gs files? >>> >>> >>> Thanks, >>> hyacinth >>> >>> >>> >>> >>> -- >>> >>> Hyacinth C. Nnamchi >>> TWAS-CAS Fellow >>> State Key Laboratory of Numerical Modeling for >>> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) >>> Institute of Atmospheric Physics (IAP) >>> Chinese Academy of Sciences (CAS) >>> P.O.Box 9804, Beijing 100029, China >>> Tel: +86-13488719702 >>> Fax: +86-10-82995172 >>> E-mail:hc.nnamchi at lasg.iap.ac.cn >>> >>> >>> >>> ???????????????????? ????????????????????????????? ?????? >> > > From minjarez at ATMO.ARIZONA.EDU Fri Sep 18 14:58:24 2009 From: minjarez at ATMO.ARIZONA.EDU (Carlos Minjarez) Date: Fri, 18 Sep 2009 12:58:24 -0600 Subject: About sdfwrite In-Reply-To: <9b8832d50909161926s1e668cbcy49cc2dbb7008d8af@mail.gmail.com> Message-ID: Dear users, I am wondering if somebody of you can provide me the regrid2.gs function Thanks a lot Carlos Minjarez PhD. Student Atmospheric sciences Department University of Arizona From eliavs at GMAIL.COM Mon Sep 21 08:17:16 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Mon, 21 Sep 2009 15:17:16 +0300 Subject: open gifsicle from grads Message-ID: hi everyone i have a script that runs over a year and for each day builds a synoptic map with slp ang gph at 500 the maps are saved as gif, after i finish i open gifsicle and use it to make an animation i would like to add to the script another part witch from grads runs the gifsicle is that possible? eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090921/3d1214f2/attachment.html From claudiomet at GMAIL.COM Mon Sep 21 08:25:36 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Mon, 21 Sep 2009 08:25:36 -0400 Subject: open gifsicle from grads In-Reply-To: <128fb9ed0909210517tc85e91ag885de3d707312e9b@mail.gmail.com> Message-ID: Eliav For run Linux (or Windows or Mac or Unix) shell commands from the GrADS command line or script just put the exclamation symbol at beginning of the line. For exmaple: 'open file.ctl' 'set t 5' 'set lev 3' 'd hgt' '!linux_command -option1 -option2 -option3' 'grads command1' 'grads command2' 'etc' 2009/9/21 eliav schmulewitz : > hi everyone > i have a script that runs over a year and for each day builds a synoptic > map with slp ang gph at 500 > the maps are saved as gif, after i finish i open gifsicle and use it to make > an animation > i would like to add to the script another part witch from grads runs the > gifsicle is that possible? > eliav > -- 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 koletsis at METEO.NOA.GR Mon Sep 21 10:26:01 2009 From: koletsis at METEO.NOA.GR (Ioannis Koletsis) Date: Mon, 21 Sep 2009 17:26:01 +0300 Subject: Skipping barbs in GRADS Message-ID: Dear all, I plot wind barbs using the maskout function. Each color corresponds to a different wind intensity (barbs), for example: 'set ccolor 9' 'd maskout(u*2,mag(u,v)-0;maskout(v*2,1.25-mag(u,v))' 'set ccolor 14' 'd maskout(u*2,mag(u,v)-1.26;maskout(v*2,3.75-mag(u,v))' 'set ccolor 4' 'd maskout(u*2,mag(u,v)-3.76;maskout(v*2,6.25-mag(u,v))' e.t.c. I would like to skip barbs in both x and y direction I tried to use the skip function, 'd skip(maskout(u*2,mag(u,v)-3.76;maskout(v*2,6.25-mag(u,v)),2,2) but it didn't work! Would somebody please help me? Any idea? Thanks in advance John ----------------------------------------------------------- Ioannis Koletsis National Observatory of Athens Institute for Environmental Research Lofos Koufou 15236-Penteli Athens-Greece Tel: (+30) 210 8109140 e-mail: koletsis at meteo.noa.gr ikoletsis at gmail.com ----------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090921/0903c450/attachment.html From leandro at SMM.MIL.BR Mon Sep 21 10:53:15 2009 From: leandro at SMM.MIL.BR (1T(T) Leandro Machado) Date: Mon, 21 Sep 2009 15:53:15 +0100 Subject: Skipping barbs in GRADS In-Reply-To: <7680725058204CD4AE71983D116C859C@Ioannis> Message-ID: Dear Jhon, You is using differents mask values for u and v components. Try this way: 'set gxout barb' 'set clevs lev(1) lev(2) ... lev(n)' 'set ccols color(1) color(2 ) ... color(n) color(n+1)' 'd skip(u,2,2);skip(v,2,2);mag(u,v)' Good luck! Leandro On Mon, 21 Sep 2009 17:26:01 +0300, Ioannis Koletsis wrote > Dear all, > > I plot wind barbs using the maskout function. Each color corresponds to a different wind intensity (barbs), for example: > > 'set ccolor 9' > 'd maskout(u*2,mag(u,v)-0;maskout(v*2,1.25-mag(u,v))' > > 'set ccolor 14' > 'd maskout(u*2,mag(u,v)-1.26;maskout(v*2,3.75-mag(u,v))' > > 'set ccolor 4' > 'd maskout(u*2,mag(u,v)-3.76;maskout(v*2,6.25-mag(u,v))' > e.t.c. > > I would like to skip barbs in both x and y direction > > I tried to use the skip function, > > 'd skip(maskout(u*2,mag(u,v)-3.76;maskout(v*2,6.25-mag(u,v)),2,2) > > but it didn't work! > > Would somebody please help me? > Any idea? > > Thanks in advance > > John > > > ----------------------------------------------------------- > Ioannis Koletsis > National Observatory of Athens > Institute for Environmental Research > Lofos Koufou > 15236-Penteli > Athens-Greece > Tel: (+30) 210 8109140 > e-mail: koletsis at meteo.noa.gr > ikoletsis at gmail.com > ----------------------------------------------------------- 1T(T) Leandro Machado Ajudante da Se??o de Modelagem Atmosf?rica Centro de Hidrografia da Marinha R Bar?o de Jaceguai, s/n Ponta da Arma??o - Niter?i CEP 24.048-900 tel: (21) 2189-3282/3283 fax: (21) 2189-3295 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090921/b8c5a7e7/attachment.html From eliavs at GMAIL.COM Mon Sep 21 11:16:14 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Mon, 21 Sep 2009 18:16:14 +0300 Subject: open gifsicle from grads In-Reply-To: <5f3ba4e00909210525p86faaacgeff652ea7f4f4182@mail.gmail.com> Message-ID: Claudio thank you!! Eliav On Mon, Sep 21, 2009 at 3:25 PM, claudio cortes wrote: > Eliav > > For run Linux (or Windows or Mac or Unix) shell commands from the > GrADS command line or script just put the exclamation symbol at > beginning of the line. For exmaple: > > 'open file.ctl' > 'set t 5' > 'set lev 3' > 'd hgt' > '!linux_command -option1 -option2 -option3' > 'grads command1' > 'grads command2' > 'etc' > > > 2009/9/21 eliav schmulewitz : > > hi everyone > > i have a script that runs over a year and for each day builds a synoptic > > map with slp ang gph at 500 > > the maps are saved as gif, after i finish i open gifsicle and use it to > make > > an animation > > i would like to add to the script another part witch from grads runs the > > gifsicle is that possible? > > eliav > > > > > > -- > 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/20090921/941e84e3/attachment.html From hiren_dave85 at YAHOO.COM Tue Sep 22 03:28:38 2009 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Tue, 22 Sep 2009 00:28:38 -0700 Subject: controling Looping Message-ID: Dear, ? ? ?? Friends I have netCDf file containing the daily average value of a parameter. I am using following script to view the plots of 5 to 10 days in looping. But the speed of looping is so fast and it is difficult to see any pattern in the output. I want to control the speed of this looping. Is there any way? ? 'set t 1 20' 'd slp' Hiren Dave JRF Dept. of Physics, Electronics & Space Science University School of Sciences Gujarat University Navrangpura Ahmedabad-09 Gujarat-India M:- 9426976862 ? Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/053b2287/attachment.html From eliavs at GMAIL.COM Tue Sep 22 04:31:55 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Tue, 22 Sep 2009 11:31:55 +0300 Subject: controling Looping In-Reply-To: <365417.85932.qm@web30407.mail.mud.yahoo.com> Message-ID: Hi Hiren why dont you save them while you loop Eliav On Tue, Sep 22, 2009 at 10:28 AM, hiren dave wrote: > Dear, > Friends > > I have netCDf file containing the daily average value of a parameter. I am > using following script to view the plots of 5 to 10 days in looping. But the > speed of looping is so fast and it is difficult to see any pattern in the > output. I want to control the speed of this looping. Is there any way? > > 'set t 1 20' > 'd slp' > > > Hiren Dave > JRF > Dept. of Physics, Electronics & Space Science > University School of Sciences > Gujarat University > Navrangpura > Ahmedabad-09 > Gujarat-India > M:- 9426976862 > > > ------------------------------ > From cricket scores to your friends. Try the Yahoo! India Homepage! > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/5e75538b/attachment.html From kwmski7 at SNU.AC.KR Tue Sep 22 04:28:20 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Tue, 22 Sep 2009 17:28:20 +0900 Subject: How can I change the position of the contour labels? Message-ID: Dear friends, I would like to change the 'position' of the contour labels, for they block the region I am interested in. I know that 'clopts' can change the sizes of the labels, 'clskip' the spacing, and 'cint' the intervals, but they all block the very region I need. I think the position is a kind of reference position for labeling (It's on the center of the map). Are there any way to move the reference position, not changing the map domain (lon, lat range)? Thanks in advance, Kim, WonMoo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/87e0ac1a/attachment.html From zjuyanlibin at 163.COM Tue Sep 22 04:40:52 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Tue, 22 Sep 2009 16:40:52 +0800 Subject: =?utf-8?B?UmU6IGNvbnRyb2xpbmcgTG9vcGluZw==?= Message-ID: it=1 while(it<=20) set t 'it' d slp pull down c endwhile 2009-09-22 Yan Libin ???? hiren dave ????? 2009-09-22 16:29:43 ???? GRADSUSR ??? ??? controling Looping Dear, Friends I have netCDf file containing the daily average value of a parameter. I am using following script to view the plots of 5 to 10 days in looping. But the speed of looping is so fast and it is difficult to see any pattern in the output. I want to control the speed of this looping. Is there any way? 'set t 1 20' 'd slp' Hiren Dave JRF Dept. of Physics, Electronics & Space Science University School of Sciences Gujarat University Navrangpura Ahmedabad-09 Gujarat-India M:- 9426976862 From cricket scores to your friends. Try the Yahoo! India Homepage! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/76b1b12c/attachment.html From kwmski7 at SNU.AC.KR Tue Sep 22 04:43:28 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Tue, 22 Sep 2009 17:43:28 +0900 Subject: controling Looping In-Reply-To: <200909221640521095842@163.com> Message-ID: Or, just insert dummy loop inside, it=1 while (it<=20) 'set t 'it 'd slp' idummy=1 while (idummy<=100000) idummy=idummy+1 endwhile it=it+1 endwhile to avoid keep pressing key-board. Good luck, Kim,WonMoo From: Yan Libin Sent: Tuesday, September 22, 2009 5:40 PM To: GRADSUSR at LIST.CINECA.IT Subject: Re: controling Looping it=1 while(it<=20) set t 'it' d slp pull down c endwhile 2009-09-22 -------------------------------------------------------------------------------- Yan Libin -------------------------------------------------------------------------------- ???? hiren dave ????? 2009-09-22 16:29:43 ???? GRADSUSR ??? ??? controling Looping Dear, Friends I have netCDf file containing the daily average value of a parameter. I am using following script to view the plots of 5 to 10 days in looping. But the speed of looping is so fast and it is difficult to see any pattern in the output. I want to control the speed of this looping. Is there any way? 'set t 1 20' 'd slp' Hiren Dave JRF Dept. of Physics, Electronics & Space Science University School of Sciences Gujarat University Navrangpura Ahmedabad-09 Gujarat-India M:- 9426976862 -------------------------------------------------------------------------------- From ivtoman at INET.HR Tue Sep 22 04:58:11 2009 From: ivtoman at INET.HR (Ivan Toman) Date: Tue, 22 Sep 2009 10:58:11 +0200 Subject: How can I change the position of the contour labels? In-Reply-To: <90A18A8809ED4A1D9D515B902A224310@KimWonMooPC> Message-ID: Hello, I'm not familiar with controlling exact position of labels, but if you are using GrADS prior 2.0.a6 you might want to upgrade, because new versions have ability of drawing better looking labels that do not block too much of area under them. Please check here: http://www.iges.org/grads/gadoc/gradcomdsetclab.html Ivan Kim WonMoo wrote: > Dear friends, > I would like to change the 'position' of the contour labels, for they > block the region I am interested in. > I know that 'clopts' can change the sizes of the labels, 'clskip' the > spacing, and 'cint' the intervals, > but they all block the very region I need. I think the position is a > kind of reference position for labeling (It's on the center of the map). > Are there any way to move the reference position, not changing the map > domain (lon, lat range)? > Thanks in advance, > Kim, WonMoo From zjuyanlibin at 163.COM Tue Sep 22 05:02:26 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Tue, 22 Sep 2009 17:02:26 +0800 Subject: =?utf-8?B?UmU6IFJlOiBjb250cm9saW5nIExvb3Bpbmc=?= Message-ID: idummy??? what is this variable? 2009-09-22 Yan Libin ???? Kim WonMoo ????? 2009-09-22 16:48:49 ???? GRADSUSR ??? ??? Re: controling Looping Or, just insert dummy loop inside, it=1 while (it<=20) 'set t 'it 'd slp' idummy=1 while (idummy<=100000) idummy=idummy+1 endwhile it=it+1 endwhile to avoid keep pressing key-board. Good luck, Kim,WonMoo From: Yan Libin Sent: Tuesday, September 22, 2009 5:40 PM To: GRADSUSR at LIST.CINECA.IT Subject: Re: controling Looping it=1 while(it<=20) set t 'it' d slp pull down c endwhile 2009-09-22 Yan Libin ???? hiren dave ????? 2009-09-22 16:29:43 ???? GRADSUSR ??? ??? controling Looping Dear, Friends I have netCDf file containing the daily average value of a parameter. I am using following script to view the plots of 5 to 10 days in looping. But the speed of looping is so fast and it is difficult to see any pattern in the output. I want to control the speed of this looping. Is there any way? 'set t 1 20' 'd slp' Hiren Dave JRF Dept. of Physics, Electronics & Space Science University School of Sciences Gujarat University Navrangpura Ahmedabad-09 Gujarat-India M:- 9426976862 From cricket scores to your friends. Try the Yahoo! India Homepage! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/fa82b990/attachment.html From sushantpuranik at GMAIL.COM Tue Sep 22 08:18:00 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Tue, 22 Sep 2009 17:48:00 +0530 Subject: How to make composite plots Message-ID: Hello sir I wish to make composite plot for 20 year period for each month (monthly mean composite) and also want to make composite for season (seasonal composite)(Dec-March). Can you please give me help in this regard. Thanking you Sushant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/bc10ce50/attachment.html From zjuyanlibin at 163.COM Tue Sep 22 08:20:45 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Tue, 22 Sep 2009 20:20:45 +0800 Subject: =?utf-8?B?UmU6IEhvdyB0byBtYWtlIGNvbXBvc2l0ZSBwbG90cw==?= Message-ID: d ave(var,t=1,t=360,12) d (ave(var,t=1,t=360,12)+ave(var,t=2,t=360,12)+ave(var,t=3,t=360,12))/3 2009-09-22 Yan Libin ???? sushant puranik ????? 2009-09-22 20:18:04 ???? GRADSUSR ??? ??? How to make composite plots Hello sir I wish to make composite plot for 20 year period for each month (monthly mean composite) and also want to make composite for season (seasonal composite)(Dec-March). Can you please give me help in this regard. Thanking you Sushant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/a41c11bb/attachment.html From jma at COLA.IGES.ORG Tue Sep 22 08:21:12 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 22 Sep 2009 08:21:12 -0400 Subject: How can I change the position of the contour labels? In-Reply-To: <90A18A8809ED4A1D9D515B902A224310@KimWonMooPC> Message-ID: Try using 'set clskip' to increase the spacing between labels. -- Jennifer On Sep 22, 2009, at 4:28 AM, Kim WonMoo wrote: > Dear friends, > > I would like to change the 'position' of the contour labels, for > they block the region I am interested in. > > I know that 'clopts' can change the sizes of the labels, 'clskip' > the spacing, and 'cint' the intervals, > > but they all block the very region I need. I think the position is a > kind of reference position for labeling (It's on the center of the > map). > > Are there any way to move the reference position, not changing the > map domain (lon, lat range)? > > Thanks in advance, > > Kim, WonMoo -- 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/20090922/ffdda6f8/attachment.html From jma at COLA.IGES.ORG Tue Sep 22 08:23:18 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 22 Sep 2009 08:23:18 -0400 Subject: controling Looping In-Reply-To: <365417.85932.qm@web30407.mail.mud.yahoo.com> Message-ID: You can set up a 'while' loop and put a 'q pos' command inside, then mouse clicks will control the looping. Also, please take a look at ftp://grads.iges.org/grads/scripts/xanim.gs which is a script to control animations. --Jennifer On Sep 22, 2009, at 3:28 AM, hiren dave wrote: > Dear, > Friends > > I have netCDf file containing the daily average value of a > parameter. I am using following script to view the plots of 5 to 10 > days in looping. But the speed of looping is so fast and it is > difficult to see any pattern in the output. I want to control the > speed of this looping. Is there any way? > > 'set t 1 20' > 'd slp' > > > Hiren Dave > JRF > Dept. of Physics, Electronics & Space Science > University School of Sciences > Gujarat University > Navrangpura > Ahmedabad-09 > Gujarat-India > M:- 9426976862 > > > From cricket scores to your friends. Try the Yahoo! India Homepage! -- 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/20090922/82e3a9ba/attachment.html From arlindo.dasilva at GMAIL.COM Tue Sep 22 10:00:10 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 22 Sep 2009 09:00:10 -0500 Subject: GS files in GrADS 2.0.a5.oga.5 In-Reply-To: <17945030.256101252856588130.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: 2009/9/13 Hyacinth Cyprain Nnamchi > Dear Colleagues, > > I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( > http://sourceforge.net/projects/opengrads/files/) on MS Windows.I notice > that it does not recognise the in-built .gs files like cbar.gs, cbarn.gsetc, although I have confirmed that they are in the "scripts" file. > > Does anyone know what could be wrong, where should I place the .gs files? > It is supposed to find these out of the box, no need to place files anywhere. How did you install it? Did you do a standard install from the superpack...exe? How are you starting it? From the [Start] menu? Which windows are you using? XP, Vista, Windows 7? Are you setting any environment variable such as GADDIR or GASCRP? (You should not set any environment variable if you did a "bundle install".) -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/25eb7faf/attachment.html From arlindo.dasilva at GMAIL.COM Tue Sep 22 10:13:00 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 22 Sep 2009 09:13:00 -0500 Subject: GrADS bad speed performances In-Reply-To: <4A9EBEA5.6010807@inet.hr> Message-ID: On Wed, Sep 2, 2009 at 1:51 PM, Ivan Toman wrote: > Hello. I have very strange issue and help is greatly appreciated. > > I run WRF-NMM 36-12-4km nesting and after model finishes I forward > output grib1 files to grads (1.9) from all three domains in successive > order. First, 36km domain is processed in GrADS, when it finish 12km > domain comes to work and when it finish, 4km go into GrADS at the end. > > My problem is that GrADS has good performance only on 12km domain, on > other domains it is very and extremely slow. These are times for > creating map graphics from these domains: > > 36km - 40 seconds > 12km - 6 seconds > 4km - 105 seconds > > It is very clear something very strange is going on. Why last domain > gribs files needs almost two minutes to postprocess in GrADS, when > intermediate domain gribs takes only 6 seconds to complete the same job? > It has been my experience that you need to run these jobs at least 20 times each and average the execution times in order to get stable statistics. Also, process more than 1 time step at a time to factor out the time it takes to start grads. An execution time of 6s is too short not to get entagled with the usual latency of starting grads. Arlindo > Yes, for all three domains is executed completely same .gs script, > domain sizes are almost the same (in number of points), and GrADS don't > output any error or similar unusual messages on any domain. There are no > other CPU jobs that could slow down processing. GrADS use one CPU core > at 100% all of time during this hanging. > > These times are for only 6 output gribs (still testing), I need to > extend forecast now to 60 hours, so there will be 10 times more data > than now is, if now GrADS process for 105 seconds then it will work 17.5 > minutes to draw all needed maps from 4km domain?? This will become a > serious concern then. > > Please, can anybody help me to resolve this problem? > > Thanks > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/fa63f826/attachment.html From ivtoman at INET.HR Tue Sep 22 10:38:04 2009 From: ivtoman at INET.HR (Ivan Toman) Date: Tue, 22 Sep 2009 16:38:04 +0200 Subject: GrADS bad speed performances In-Reply-To: <77fcd6b20909220713n30edf100i583af2986fe54795@mail.gmail.com> Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/31e51e6b/attachment.html From jma at COLA.IGES.ORG Tue Sep 22 11:07:34 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 22 Sep 2009 11:07:34 -0400 Subject: Variable define and/or aave oddity In-Reply-To: <11DC8B53-B726-4C48-8B6B-226208E9A56A@nasa.gov> Message-ID: Hi, Colleen -- I am unable to reproduce this problem. The result of a global aave() on a data variable and a defined variable are the same no matter what I try. One thing you didn't show was the output from 'q dims' -- I wonder if you had a funky dimension environment set. In any event, if this problem can be reliably reproduced with your file sfcdn_new.binary, please send it to me (not to gradsusr). --Jennifer On Sep 14, 2009, at 10:57 AM, Colleen Mikovitz wrote: > I am working though a script to do simple global maps of variables > with annotations of the global average. But I noticed that when I use > the define command, aave returns a different value on that newly > defined variable than on the original variable. I just installed the > newest release to see if that would correct it, but I get the same > thing. > > Could someone look at the following to see if I am doing anything odd > or if this is a known/unknown problem? > > Thanks, > Colleen > > ********************* > ga-> q config > Config: v2.0.a7.1 little-endian readline printim grib2 netcdf hdf4-sds > hdf5 geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a7.1 > Copyright (c) 1988-2009 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Fri Aug 7 18:15:20 EDT 2009 for i386-apple-darwin9.7.0 > > ga-> q ctlinfo > dset /Users/colleen/lib/sfcdn_new.binary > title GLW > undef -999 > xdef 360 linear 0.5 1 > ydef 180 linear -89.5 1 > zdef 1 linear 1000 1 > tdef 1 linear 00Z01JAN2002 180mn > vars 1 > prop 1 0 check var > endvars > > > ga-> d prop > Contouring: 100 to 450 interval 50 > ga-> define newvar=prop > Define memory allocation size = 527072 bytes > ga-> d aave(prop,g) > Result value = 335.076 > ga-> d aave(newvar,g) > Result value = 324.465 > ga-> d prop-newvar > Constant field. Value = 0 -- 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/20090922/3d35b3c4/attachment.html From ela at COLA.IGES.ORG Tue Sep 22 13:33:00 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Tue, 22 Sep 2009 13:33:00 -0400 Subject: controling Looping In-Reply-To: <1158542436.82421253640384889.JavaMail.root@mail.iges.org> Message-ID: Kim WonMoo's method sets up a script loop that does nothing except use CPU cycles to cause a delay between frames in the animation. This is a brute force method that may result in drastically different delay lengths depending on machine speed and CPU usage by other processes at any given time. A better way to introduce a delay between frames is to use double buffer mode and the Unix 'sleep' command, e.g. 'set dbuff on' it=1 while (it<=20) 'set t 'it 'd slp' 'swap' '!sleep 1' it=it+1 endwhile The only problem here is that the minimum sleep time is 1 second, which is rather long for an animation. On some Linux machines there is a 'usleep' command that allows the user to specify the delay time in microseconds, e.g. '!usleep 500000' to sleep for 0.5 second. If your system has the usleep command, use it instead of sleep so you can specify a delay of less than 1 second. Using double buffer mode along with the sleep or usleep command produces a nice animation without having to use the mouse or keyboard to advance the frames. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Yan Libin" To: GRADSUSR at LIST.CINECA.IT Sent: Tuesday, September 22, 2009 5:02:26 AM GMT -05:00 US/Canada Eastern Subject: Re: Re: controling Looping ??? idummy??? what is this variable? 2009-09-22 Yan Libin ???????????? Kim WonMoo ??????????????? 2009-09-22 16:48:49 ???????????? GRADSUSR ? ??????? ????????? Re: controling Looping Or, just insert dummy loop inside, it=1 while (it<=20) 'set t 'it 'd slp' idummy=1 while (idummy<=100000) idummy=idummy+1 endwhile it=it+1 endwhile to avoid keep pressing key-board. Good luck, Kim,WonMoo From: Yan Libin Sent: Tuesday, September 22, 2009 5:40 PM To: GRADSUSR at LIST.CINECA.IT Subject: Re: controling Looping it=1 while(it<=20) set t 'it' d slp pull down c endwhile 2009-09-22 Yan Libin ???????????? hiren dave ??????????????? 2009-09-22 16:29:43 ???????????? GRADSUSR ? ??????? ????????? controling Looping Dear, Friends I have netCDf file containing the daily average value of a parameter. I am using following script to view the plots of 5 to 10 days in looping. But the speed of looping is so fast and it is difficult to see any pattern in the output. I want to control the speed of this looping. Is there any way? 'set t 1 20' 'd slp' Hiren Dave JRF Dept. of Physics, Electronics & Space Science University School of Sciences Gujarat University Navrangpura Ahmedabad-09 Gujarat-India M:- 9426976862 From eliavs at GMAIL.COM Tue Sep 22 13:51:03 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Tue, 22 Sep 2009 20:51:03 +0300 Subject: controling Looping In-Reply-To: <1099728238.82471253640779993.JavaMail.root@mail.iges.org> Message-ID: Hi another thing you can do is use 'gifsicle', a very useful program that can make animation from gif files though this can make the script very long if you want i can give you an example of a script eliav On Tue, Sep 22, 2009 at 8:33 PM, Eric Altshuler wrote: > Kim WonMoo's method sets up a script loop that does nothing except use CPU > cycles to cause a delay between frames in the animation. This is a brute > force method that may result in drastically different delay lengths > depending on machine speed and CPU usage by other processes at any given > time. A better way to introduce a delay between frames is to use double > buffer mode and the Unix 'sleep' command, e.g. > > 'set dbuff on' > it=1 > while (it<=20) > 'set t 'it > 'd slp' > 'swap' > '!sleep 1' > it=it+1 > endwhile > > The only problem here is that the minimum sleep time is 1 second, which is > rather long for an animation. On some Linux machines there is a 'usleep' > command that allows the user to specify the delay time in microseconds, e.g. > > '!usleep 500000' > > to sleep for 0.5 second. If your system has the usleep command, use it > instead of sleep so you can specify a delay of less than 1 second. Using > double buffer mode along with the sleep or usleep command produces a nice > animation without having to use the mouse or keyboard to advance the frames. > > Best regards, > > Eric L. Altshuler > Assistant Research Scientist > Center for Ocean-Land-Atmosphere Studies > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705-3106 > USA > > E-mail: ela at cola.iges.org > Phone: (301) 902-1257 > Fax: (301) 595-9793 > > ----- Original Message ----- > From: "Yan Libin" > To: GRADSUSR at LIST.CINECA.IT > Sent: Tuesday, September 22, 2009 5:02:26 AM GMT -05:00 US/Canada Eastern > Subject: Re: Re: controling Looping > > ? > idummy??? what is this variable? > > > 2009-09-22 > > Yan Libin > > ???? Kim WonMoo > ????? 2009-09-22 16:48:49 > ???? GRADSUSR > ? ??? > ??? Re: controling Looping > > > Or, just insert dummy loop inside, > > it=1 > while (it<=20) > 'set t 'it > 'd slp' > idummy=1 > while (idummy<=100000) > idummy=idummy+1 > endwhile > it=it+1 > endwhile > > to avoid keep pressing key-board. > > Good luck, > > Kim,WonMoo > > > > > From: Yan Libin > Sent: Tuesday, September 22, 2009 5:40 PM > To: GRADSUSR at LIST.CINECA.IT > Subject: Re: controling Looping > > > it=1 > while(it<=20) > set t 'it' > d slp > pull down > c > endwhile > > > 2009-09-22 > > Yan Libin > > ???? hiren dave > ????? 2009-09-22 16:29:43 > ???? GRADSUSR > ? ??? > ??? controling Looping > > > Dear, > Friends > > I have netCDf file containing the daily average value of a parameter. I am > using following script to view the plots of 5 to 10 days in looping. But the > speed of looping is so fast and it is difficult to see any pattern in the > output. I want to control the speed of this looping. Is there any way? > > 'set t 1 20' > 'd slp' > > > Hiren Dave > JRF > Dept. of Physics, Electronics & Space Science > University School of Sciences > Gujarat University > Navrangpura > Ahmedabad-09 > Gujarat-India > M:- 9426976862 > > > > From cricket scores to your friends. Try the Yahoo! India Homepage! > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090922/8c9c06f2/attachment.html From howardb at SSEC.WISC.EDU Tue Sep 22 14:46:49 2009 From: howardb at SSEC.WISC.EDU (Howard Berger) Date: Tue, 22 Sep 2009 13:46:49 -0500 Subject: bufrscan help Message-ID: Hello, I'm trying to use bufrscan to eventually read a bufr file. I placed a symbolic link to my bufr table in the directory with the data file. I first tried: bufrscan ./ layermean_bufr.20090921.18.nh and nothing seems to happen. When I try: bufrscan -d ./ layermean_bufr.20090921.18.nh I get the following output: DYLD_LIBRARY_PATH=/Users/howardb/bin/Darwin/Versions/2.0.a5.oga.4/i386/gex:/Users/howardb/grads/bin/gex: GADDIR=/Users/howardb/grads GADDIR=/Users/howardb/bin/Resources/Scripts GAUDXT=/Users/howardb/bin/Darwin/Versions/2.0.a5.oga.4/i386/gex/udxt GAVERSION=2.0.a5.oga.4 I also tried: bufrscan -dh ./ layermean_bufr.20090921.18.nh and get: Low level read error on BUFR file ./ I'm using grads version 2.0.a5 on a mac 10.5 Am I doing something wrong or is my bufr file bad? Thanks! Howard From aspratt2000 at YAHOO.COM Tue Sep 22 15:36:11 2009 From: aspratt2000 at YAHOO.COM (Aaron Pratt) Date: Tue, 22 Sep 2009 15:36:11 -0400 Subject: Reading HDF-EOS files in GrADS In-Reply-To: <4AB91B99.5010108@ssec.wisc.edu> Message-ID: Hello, Is there a way to open HDF-EOS files in GrADS. I have tried to find information pertaining to this online, but have so far been unable to find anything. I would like to be able to open HDF-EOS formatted files from MODIS, CloudSat, CALIPSO, etc. (I believe HDF-EOS is the standard format for most of NASA's satellite data products. Aaron Pratt,PhD NASA/ORAU Post-Doctoral Fellow Goddard Space Flight Center Greenbelt, MD 20774 From zjuyanlibin at 163.COM Tue Sep 22 20:39:30 2009 From: zjuyanlibin at 163.COM (Yan Libin) Date: Wed, 23 Sep 2009 08:39:30 +0800 Subject: Reading HDF-EOS files in GrADS Message-ID: Yes, if GrADS supports HDF-EOS format files, it will be more powerful. 2009-09-23 Yan Libin ???? Aaron Pratt ????? 2009-09-23 03:36:19 ???? GRADSUSR ??? ??? Reading HDF-EOS files in GrADS Hello, Is there a way to open HDF-EOS files in GrADS. I have tried to find information pertaining to this online, but have so far been unable to find anything. I would like to be able to open HDF-EOS formatted files from MODIS, CloudSat, CALIPSO, etc. (I believe HDF-EOS is the standard format for most of NASA's satellite data products. Aaron Pratt,PhD NASA/ORAU Post-Doctoral Fellow Goddard Space Flight Center Greenbelt, MD 20774 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090923/0faec41d/attachment.html From hc.nnamchi at LASG.IAP.AC.CN Tue Sep 22 22:53:06 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Wed, 23 Sep 2009 10:53:06 +0800 Subject: GS files in GrADS 2.0.a5.oga.5 In-Reply-To: <77fcd6b20909220700t746f9c7fqdfd842a5982c8ba1@mail.gmail.com> Message-ID: Dear Arlindo, The script file started working when I changed the environment variables: GADDIR and GASCRP. They were on "dat" and "lib" as shown on the GrADS page (http://www.iges.org/grads/downloads.html) because I uninstalled ver 1.8 before installing GrADS 2.0.a5.oga.5. What made the script files to start working on my system (Windos XP) was changing: GADDIR to C:\OpenGrADS\Contents\Resources\SupportData GASCRP to C:\OpenGrADS\Contents\Resources\Scripts Best regards, Hyacinth -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090923/42081e16/attachment.html From sachinghude at TROPMET.RES.IN Wed Sep 23 00:31:38 2009 From: sachinghude at TROPMET.RES.IN (Sachin Ghude) Date: Wed, 23 Sep 2009 11:01:38 +0630 Subject: How to calculate total column In-Reply-To: <77fcd6b20909220648m3cb51e89nff0096a16bac38aa@mail.gmail.com> Message-ID: hi! I am having model simulated vertical distribution of NO2 (from 994.600 hPa - 118.000 hPa) over Indian Region. NO2 is in voiume mixing ratio. I want to calculate total column NO2 between 994.600 - 228.250 hPa. I am using following steps in GRADS to calculate NO2 tropospheric amount in molecules per cm2. It is sowing values in the expected range. But, could you please tell whether I am doing correct or not? 'define a=6.022e23/28.97' (where, 6.022e23 is Avogadro's Number, 28.97 is molecular mass of air) 'set lev 994.6 'define b=vint(lev,vmr_no2,228.250)/9.8' 'define c=a*b' 'd c' Thanks in advance Sachin Ghude > > d no2(z=1) no2(z=2) ... > ? > If "no2" is mixing ratio then typically you have to multiply the integrand by rho dz = dp/g, where "dp" is the pressure thickness of each layer, g ~ 9.81.? > > ?? ?Arlindo > > -- > Arlindo da Silva > dasilva at alum.mit.edu ------- End of Original Message ------- ---------------------------------------------------------------------------------- Dr. Sachin D. Ghude, Scientist(C) Indian Institute of Tropical Meteorology; www.tropmet.res.in Physical Meteorology and Aerology Division, NCL, P.O., Pashan Rd., Pune-411 008 Off. Ph. no. 91 20 25893600(Ext-350); Fax: 91 20 25893825 Res 91 20 25899839 Mobile: 91 9373307978 ---------- Original Message ----------- From: Arlindo da Silva To: GRADSUSR at LIST.CINECA.IT Sent: Wed, 1 Jul 2009 14:45:13 -0400 Subject: Re: How to calculate total column > 2009/7/1 Libin Yan > -- Arlindo da Silva dasilva at alum.mit.edu ------- End of Forwarded Message ------- ---------------------------------------------------------------------------------- Dr. Sachin D. Ghude, Scientist(C) Indian Institute of Tropical Meteorology; www.tropmet.res.in Physical Meteorology and Aerology Division, NCL, P.O., Pashan Rd., Pune-411 008 Off. Ph. no. +91 20 25893600(Ext-350); Fax: +91 20 25893825 Res +91 20 25899839 Mobile:+91 9373307978 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090923/6b9cc4ac/attachment.html From fdaryabor at GOOGLEMAIL.COM Wed Sep 23 00:35:53 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Wed, 23 Sep 2009 12:35:53 +0800 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <79aecae70909180757x487d52e9j1e7a4709672be3b0@mail.gmail.com> Message-ID: Hi Mike Tanks so much for your replay but when I use 'ncks' I face to following masage. Could you please guide me. ga-> open /home2/fdaryabor/Documents/V.ctl Scanning description file: /home2/fdaryabor/Documents/V.ctl Data file /home2/fdaryabor/Documents/v.dat is open as file 2 ga-> q file 2 File 2 : evaporation mines prescription Descriptor: /home2/fdaryabor/Documents/V.ctl Binary: /home2/fdaryabor/Documents/v.dat Type = Gridded Xsize = 360 Ysize = 180 Zsize = 1 Tsize = 12 Esize = 1 Number of Variables = 1 v 0 1 v ga-> set lon 0 360 LON set to 0 360 ga-> set lat 180 359 LAT set to 180 359 ga-> set lev 0 0 LEV set to 0 0 ga-> set t 1 12 Time values set: 1960:1:16:5 1960:12:16:5 ga-> define uwind=u Define memory allocation size = 6238080 bytes ga-> define vwind=v.2 Define memory allocation size = 6238080 bytes ga-> set sdfwrite /home2/fdaryabor/Documents/temp.nc SDFWrite file name = /home2/fdaryabor/Documents/temp.nc SDFWrite will replace an existing file ga-> sdfwrite uwind Wrote variable uwind to /home2/fdaryabor/Documents/temp.nc ga-> !cp /home2/fdaryabor/Documents/temp.nc/home2/fdaryabor/Documents/VAR.nc ga-> sdfwrite vwind Wrote variable vwind to /home2/fdaryabor/Documents/temp.nc *ga-> ncks -A -h /home2/fdaryabor/Documents/temp.nc/home2/fdaryabor/Documents/VAR.nc Unknown command: ncks* Best Regards for you F.Daryabor On Fri, Sep 18, 2009 at 10:57 PM, Mike Bosilovich wrote: > I just had a similar question, and asked Jennifer offline. So, what to > do is to build a call to ncks into your script, and it can append data > onto a file. In my case I loop over many variables, so the file in > sdfwrite is temp.nc, then I use ncks to append to the actual output > file I want. I tried to add som script below that may work for you. > > On Thu, Sep 17, 2009 at 3:17 AM, Farshid Daryabor > wrote: > > Hi all > > I could use 'sdfwrite', now I want to input 2 variables? 'u' and 'v' in > one > > netcdf file.? I write a script for execute , after 'set sdfwrite > > /hom2/../VAR.nc' when I type 'sdfwrite' command which is 'sdfwrite uwind > > vwind.2' for writing 2 variables? in? netcdf file, it only gives me one > of > > them not both. Please guide me. > > > > > > 'open /home2/fdaryabor/Documents/U.ctl' > > 'open /home2/fdaryabor/Documents/V.ctl' > > 'set lon 0 360' > > 'set lat 180 359' > > 'set lev 0 0' > > 'set t 1 last' > > 'set e 1 last' > > 'define uwind=u' > > 'define vwind=v.2' > > *'set sdfwrite /home2/fdaryabor/Documents/VAR.nc' > > 'set sdfwrite temp.nc' > > > *'sdfwrite uwind vwind.2' > > 'sdfwrite uwind' > '!cp temp.nc /home2/fdaryabor/Documents/VAR.nc' > 'sdfwrite vwind' > 'ncks -A -h temp.nc /home2/fdaryabor/Documents/VAR.nc' > > > If there's any looping involved, then the !cp will over write, so only > do that on the first iteration of the loop to initialize the file, and > append all the rest. -A does the append, and -h prevents a history > line in the netcdf metadata. I was looping over many vars, and this > history was getting too big. > > Hope this helps and have a great weekend!! > > Mike > > > > > Best Regards > > F.Daryabor > > > > On Wed, Sep 16, 2009 at 12:55 PM, Farshid Daryabor > > wrote: > >> > >> Hi Eric Altshuler > >> Thanks so much for your guide. I try download grads 2.0.a3. > >> Best Regards > >> F.Daryabor > >> > >> On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler > >> wrote: > >>> > >>> Hello Farshid, > >>> > >>> sdfwrite is not a script. It's a built-in command, and you need grads > >>> 2.0.a3 or higher to use it. You mentioned that you use the grads > executable > >>> 'gradsc'. This means you are using an old version of grads. Beginning > with > >>> grads 2.0, the 'gradsc' executable does not exist anymore. There are > only > >>> two grads executables, 'grads' and 'gradsdap'. Get the latest version > of > >>> grads; the sdfwrite command will be available. > >>> > >>> Best regards, > >>> > >>> Eric L. Altshuler > >>> Assistant Research Scientist > >>> Center for Ocean-Land-Atmosphere Studies > >>> 4041 Powder Mill Road, Suite 302 > >>> Calverton, MD 20705-3106 > >>> USA > >>> > >>> E-mail: ela at cola.iges.org > >>> Phone: (301) 902-1257 > >>> Fax: (301) 595-9793 > >>> > >>> ----- Original Message ----- > >>> From: "Farshid Daryabor" > >>> To: GRADSUSR at LIST.CINECA.IT > >>> Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada > Eastern > >>> Subject: Re: command in GrADS 2.0.a5.oga.5 > >>> > >>> Hi > >>> I try for downloading 'sdfwrite' script from " > >>> http://www.iges.org/grads/gadoc/library.html " but can't find it, > because > >>> when I open 'my_data.ctl' in './gradsc' I face to following massage: > >>> > >>> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > >>> Scanning description file: > >>> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > >>> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file 1 > >>> LON set to 0 360 > >>> LAT set to 180 359 > >>> LEV set to 0 0 > >>> Time values set: 1960:1:16:5 1960:1:16:5 > >>> ga-> set lon 98 120 > >>> LON set to 98 120 > >>> ga-> set lat -10 20 > >>> LAT set to -10 20 > >>> ga-> set t 05z16jan1960 1mo > >>> Time values set: 1960:5:16:5 1960:1:16:5 > >>> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc > >>> SET error: Invalid operand > >>> Operand = sdfwrite /home/arya/desktop/ emp.nc > >>> I think must download "sdfwrite" script, please you help me, and give > me > >>> straight address for find it. > >>> Best Regards > >>> F.Daryabor > >>> > >>> > >>> > >>> On Tue, Sep 15, 2009 at 4:03 PM, ??? < rust123 at yahoo.cn > wrote: > >>> > >>> > >>> > >>> > >>> > >>> hello,everyone > >>> what are the shortcut keys of the copy and paste command in GrADS > >>> 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used in > the > >>> windows xp. > >>> > >>> > >>> > >>> > >>> ???? hersala < hersala at GMAIL.COM > > >>> ???? GRADSUSR at LIST.CINECA.IT > >>> ???? 2009/9/15(??), ?? ?12:32:44 > >>> ??? Re: GS files in GrADS 2.0.a5.oga.5 > >>> > >>> Hi Hyacinth: > >>> When I use my own scripts or from another person, I save them in the > same > >>> folder from where the data is read by GrADS, that is win32 folder. > >>> I hope this help you. > >>> Bye, > >>> Hern?n > >>> > >>> > >>> 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > > >>> > >>> > >>> Dear Colleagues, > >>> > >>> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( > >>> http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I > notice > >>> that it does not recognise the in-built .gs files like cbar.gs , > cbarn.gs > >>> etc, although I have confirmed that they are in the "scripts" file. > >>> > >>> Does anyone know what could be wrong, where should I place the .gs > files? > >>> > >>> > >>> Thanks, > >>> hyacinth > >>> > >>> > >>> > >>> > >>> -- > >>> > >>> Hyacinth C. Nnamchi > >>> TWAS-CAS Fellow > >>> State Key Laboratory of Numerical Modeling for > >>> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) > >>> Institute of Atmospheric Physics (IAP) > >>> Chinese Academy of Sciences (CAS) > >>> P.O.Box 9804, Beijing 100029, China > >>> Tel: +86-13488719702 > >>> Fax: +86-10-82995172 > >>> E-mail:hc.nnamchi at lasg.iap.ac.cn > >>> > >>> > >>> > >>> ??????? ?????????? ?? > >> > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090923/55698222/attachment.html From aspratt2000 at YAHOO.COM Wed Sep 23 01:18:42 2009 From: aspratt2000 at YAHOO.COM (Aaron Pratt) Date: Wed, 23 Sep 2009 01:18:42 -0400 Subject: Using GrADS to open HDF-EOS In-Reply-To: <9b8832d50909222135k2bd51684qdb0cc531049eb615@mail.gmail.com> Message-ID: Is there a way to use Windows-based GrADS (or GrADSnc, GrADS-DODS, GrADS-HDF, etc) to open HDF-EOS files associated with MODIS, CloudSat, and CALIPSO? Or should they be converted into NetCDF files? Thanks in advance for any information that anyone has on this; it would be greatly appreciated. Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090923/95e28f86/attachment.html From spc_meteor at YAHOO.COM.BR Wed Sep 23 08:12:32 2009 From: spc_meteor at YAHOO.COM.BR (Saulo Carvalho) Date: Wed, 23 Sep 2009 05:12:32 -0700 Subject: Doing templates from .nc files Message-ID: Hello everybody, I'm working with avhrr data files available in ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my surprise,?when I make a .ctl file in order to template the .nc's, it?doesn' t work. As these files has?4 variables, it may have a problem in making the template. Is there an alternative way to solve this problem? ?________________________________________ Saulo Carvalho SEMA Diretoria de Recursos H?dricos ____________________________________________________________________________________ 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/20090923/f677a2c4/attachment.html From mike.bosilovich at GMAIL.COM Wed Sep 23 10:39:53 2009 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Wed, 23 Sep 2009 10:39:53 -0400 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <9b8832d50909222135k2bd51684qdb0cc531049eb615@mail.gmail.com> Message-ID: ncks is a unix command, so you need the ! infront, like !cp Also, you need to make sure that ncks is installed and in the $path. Good Luck! Mike On Wed, Sep 23, 2009 at 12:35 AM, Farshid Daryabor wrote: > > Hi Mike > Tanks so much for your replay but when I use 'ncks' I face to following > masage. > Could you please guide me. > ga-> open /home2/fdaryabor/Documents/V.ctl > Scanning description file:? /home2/fdaryabor/Documents/V.ctl > Data file /home2/fdaryabor/Documents/v.dat is open as file 2 > ga-> q file 2 > File 2 : evaporation mines prescription > ? Descriptor: /home2/fdaryabor/Documents/V.ctl > ? Binary: /home2/fdaryabor/Documents/v.dat > ? Type = Gridded > ? Xsize = 360? Ysize = 180? Zsize = 1? Tsize = 12? Esize = 1 > ? Number of Variables = 1 > ? ? ? ? v? 0? 1? v > ga-> set lon 0 360 > LON set to 0 360 > ga-> set lat 180 359 > LAT set to 180 359 > ga-> set lev 0 0 > LEV set to 0 0 > ga-> set t 1 12 > Time values set: 1960:1:16:5 1960:12:16:5 > ga-> define uwind=u > Define memory allocation size = 6238080 bytes > ga-> define vwind=v.2 > Define memory allocation size = 6238080 bytes > ga-> set sdfwrite /home2/fdaryabor/Documents/temp.nc > SDFWrite file name = /home2/fdaryabor/Documents/temp.nc > SDFWrite will replace an existing file > ga-> sdfwrite uwind > Wrote variable uwind to /home2/fdaryabor/Documents/temp.nc > ga-> !cp /home2/fdaryabor/Documents/temp.nc > /home2/fdaryabor/Documents/VAR.nc > ga-> sdfwrite vwind > Wrote variable vwind to /home2/fdaryabor/Documents/temp.nc > ga-> ncks -A -h /home2/fdaryabor/Documents/temp.nc > /home2/fdaryabor/Documents/VAR.nc > Unknown command: ncks > > > > > Best Regards for you > F.Daryabor > On Fri, Sep 18, 2009 at 10:57 PM, Mike Bosilovich > wrote: >> >> I just had a similar question, and asked Jennifer offline. So, what to >> do is to build a call to ncks into your script, and it can append data >> onto a file. In my case I loop over many variables, so the file in >> sdfwrite is temp.nc, then I use ncks to append to the actual output >> file I want. I tried to add som script below that may work for you. >> >> On Thu, Sep 17, 2009 at 3:17 AM, Farshid Daryabor >> wrote: >> > Hi all >> > I could use 'sdfwrite', now I want to input 2 variables?? ? 'u' and 'v' in >> > one >> > netcdf file.?? ? I write a script for execute , after 'set sdfwrite >> > /hom2/../VAR.nc' when I type 'sdfwrite' command which is 'sdfwrite uwind >> > vwind.2' for writing 2 variables?? ? in?? ? netcdf file, it only gives me >> > one of >> > them not both. Please guide me. >> > >> > >> > 'open /home2/fdaryabor/Documents/U.ctl' >> > 'open /home2/fdaryabor/Documents/V.ctl' >> > 'set lon 0 360' >> > 'set lat 180 359' >> > 'set lev 0 0' >> > 'set t 1 last' >> > 'set e 1 last' >> > 'define uwind=u' >> > 'define vwind=v.2' >> > *'set sdfwrite /home2/fdaryabor/Documents/VAR.nc' >> >> 'set sdfwrite temp.nc' >> >> > *'sdfwrite uwind vwind.2' >> >> 'sdfwrite uwind' >> '!cp temp.nc /home2/fdaryabor/Documents/VAR.nc' >> 'sdfwrite vwind' >> 'ncks -A -h temp.nc /home2/fdaryabor/Documents/VAR.nc' >> >> >> If there's any looping involved, then the !cp will over write, so only >> do that on the first iteration of the loop to initialize the file, and >> append all the rest. ? -A does the append, and -h ? prevents a history >> line in the netcdf metadata. I was looping over many vars, and this >> history was getting too big. >> >> Hope this helps and have a great weekend!! >> >> Mike >> >> > >> > Best Regards >> > F.Daryabor >> > >> > On Wed, Sep 16, 2009 at 12:55 PM, Farshid Daryabor >> > wrote: >> >> >> >> Hi Eric Altshuler >> >> Thanks so much for your guide. I try download grads 2.0.a3. >> >> Best Regards >> >> F.Daryabor >> >> >> >> On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler >> >> wrote: >> >>> >> >>> Hello Farshid, >> >>> >> >>> sdfwrite is not a script. It's a built-in command, and you need grads >> >>> 2.0.a3 or higher to use it. You mentioned that you use the grads >> >>> executable >> >>> 'gradsc'. This means you are using an old version of grads. Beginning >> >>> with >> >>> grads 2.0, the 'gradsc' executable does not exist anymore. There are >> >>> only >> >>> two grads executables, 'grads' and 'gradsdap'. Get the latest version >> >>> of >> >>> grads; the sdfwrite command will be available. >> >>> >> >>> Best regards, >> >>> >> >>> Eric L. Altshuler >> >>> Assistant Research Scientist >> >>> Center for Ocean-Land-Atmosphere Studies >> >>> 4041 Powder Mill Road, Suite 302 >> >>> Calverton, MD 20705-3106 >> >>> USA >> >>> >> >>> E-mail: ela at cola.iges.org >> >>> Phone: (301) 902-1257 >> >>> Fax: (301) 595-9793 >> >>> >> >>> ----- Original Message ----- >> >>> From: "Farshid Daryabor" >> >>> To: GRADSUSR at LIST.CINECA.IT >> >>> Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada >> >>> Eastern >> >>> Subject: Re: command in GrADS 2.0.a5.oga.5 >> >>> >> >>> Hi >> >>> I try for downloading 'sdfwrite' script from " >> >>> http://www.iges.org/grads/gadoc/library.html " but can't find it, >> >>> because >> >>> when I open 'my_data.ctl' in './gradsc' I face to following massage: >> >>> >> >>> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >> >>> Scanning description file: >> >>> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl >> >>> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as file >> >>> 1 >> >>> LON set to 0 360 >> >>> LAT set to 180 359 >> >>> LEV set to 0 0 >> >>> Time values set: 1960:1:16:5 1960:1:16:5 >> >>> ga-> set lon 98 120 >> >>> LON set to 98 120 >> >>> ga-> set lat -10 20 >> >>> LAT set to -10 20 >> >>> ga-> set t 05z16jan1960 1mo >> >>> Time values set: 1960:5:16:5 1960:1:16:5 >> >>> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc >> >>> SET error: Invalid operand >> >>> Operand = sdfwrite /home/arya/desktop/ emp.nc >> >>> I think must download "sdfwrite" script, please you help me, and give >> >>> me >> >>> straight address for find it. >> >>> Best Regards >> >>> F.Daryabor >> >>> >> >>> >> >>> >> >>> On Tue, Sep 15, 2009 at 4:03 PM, ????????? < rust123 at yahoo.cn > wrote: >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> hello,everyone >> >>> what are the shortcut keys of the copy and paste command in GrADS >> >>> 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used >> >>> in the >> >>> windows xp. >> >>> >> >>> >> >>> >> >>> >> >>> ???????????? hersala < hersala at GMAIL.COM > >> >>> ???????????? GRADSUSR at LIST.CINECA.IT >> >>> ???????????? 2009/9/15(??????), ????? ???12:32:44 >> >>> ????????? Re: GS files in GrADS 2.0.a5.oga.5 >> >>> >> >>> Hi Hyacinth: >> >>> When I use my own scripts or from another person, I save them in the >> >>> same >> >>> folder from where the data is read by GrADS, that is win32 folder. >> >>> I hope this help you. >> >>> Bye, >> >>> Hern???n >> >>> >> >>> >> >>> 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > >> >>> >> >>> >> >>> Dear Colleagues, >> >>> >> >>> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( >> >>> http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I >> >>> notice >> >>> that it does not recognise the in-built .gs files like cbar.gs , >> >>> cbarn.gs >> >>> etc, although I have confirmed that they are in the "scripts" file. >> >>> >> >>> Does anyone know what could be wrong, where should I place the .gs >> >>> files? >> >>> >> >>> >> >>> Thanks, >> >>> hyacinth >> >>> >> >>> >> >>> >> >>> >> >>> -- >> >>> >> >>> Hyacinth C. Nnamchi >> >>> TWAS-CAS Fellow >> >>> State Key Laboratory of Numerical Modeling for >> >>> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) >> >>> Institute of Atmospheric Physics (IAP) >> >>> Chinese Academy of Sciences (CAS) >> >>> P.O.Box 9804, Beijing 100029, China >> >>> Tel: +86-13488719702 >> >>> Fax: +86-10-82995172 >> >>> E-mail:hc.nnamchi at lasg.iap.ac.cn >> >>> >> >>> >> >>> >> >>> ???????????????????? ????????????????????????????? ?????? >> >> >> > >> > > > From Charles.Seman at NOAA.GOV Wed Sep 23 12:16:16 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Wed, 23 Sep 2009 12:16:16 -0400 Subject: Doing templates from .nc files In-Reply-To: <981197.36794.qm@web110702.mail.gq1.yahoo.com> Message-ID: Saulo, Do you have access to the Unix utility "ncrcat"? http://nco.sourceforge.net/nco.html#ncrcat-netCDF-Record-Concatenator I hope this helps, Chuck Saulo Carvalho wrote: > Hello everybody, > > > I'm working with avhrr data files available in > ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my > surprise, when I make a .ctl file in order to template the .nc's, > it doesn' t work. As these files has 4 variables, it may have a > problem in making the template. > > > Is there an alternative way to solve this problem? > > > ________________________________________ > Saulo Carvalho > > SEMA > Diretoria de Recursos H?dricos > > ------------------------------------------------------------------------ > Veja quais s?o os assuntos do momento no Yahoo! + Buscados: Top 10 > > - Celebridades > > - M?sica > > - Esportes > -- 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 Charles.Seman at NOAA.GOV Wed Sep 23 12:20:39 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Wed, 23 Sep 2009 12:20:39 -0400 Subject: Doing templates from .nc files In-Reply-To: <4ABA49D0.2080602@noaa.gov> Message-ID: Saulo, Sorry about incomplete information: http://nco.sourceforge.net/#Definition states that "NCO works well on most modern operating systems".... Chuck Charles Seman wrote: > Saulo, > > Do you have access to the Unix utility "ncrcat"? > http://nco.sourceforge.net/nco.html#ncrcat-netCDF-Record-Concatenator > > I hope this helps, > Chuck > > Saulo Carvalho wrote: >> Hello everybody, >> >> >> I'm working with avhrr data files available in >> ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my surprise, >> when I make a .ctl file in order to template the .nc's, it doesn' t >> work. As these files has 4 variables, it may have a problem in making >> the template. >> >> >> Is there an alternative way to solve this problem? >> >> >> ________________________________________ >> Saulo Carvalho >> >> SEMA >> Diretoria de Recursos H?dricos >> >> ------------------------------------------------------------------------ >> Veja quais s?o os assuntos do momento no Yahoo! + Buscados: Top 10 >> >> - Celebridades >> >> - M?sica >> >> - Esportes >> >> > -- 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 mike.bosilovich at GMAIL.COM Wed Sep 23 12:59:47 2009 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Wed, 23 Sep 2009 12:59:47 -0400 Subject: Using GrADS to open HDF-EOS In-Reply-To: Message-ID: It's not clear which data you are looking at, level 2 or level 3. The descriptor file below I used to analyze the level 3 global 5km MODIS LST product. I don't think level 2 is possible. When i've wanted to analyze the level 2 granules in grads, I had to first convert to a regular grid. I think HDFView will do that, but not in a batch way. I hope that someone has a better answer than mine! Mike DSET MOD11C1.A2001%m2%d2.004.hdf title MODIS Land Surface Temperature (LST) CMG v4 DTYPE hdfsds OPTIONS yrev template unpack scale_factor add_offset undef 0 _FillValue XDEF 7200 linear -180 0.05 YDEF 3600 linear -90 0.05 ZDEF 1 linear 1 1 TDEF 115 linear 04jul2001 1dy VARS 6 LST_Day_CMG=>LSTDay 0 y,x Daily daytime 3min CMG Land-surface Temp LST_Night_CMG=>LSTNite 0 y,x Daily nighttime 3min CMG Land-surface Temp QC_Day=>QCDay 0 y,x Quality control for daytime LST and emissivity QC_Night=>QCNite 0 y,x Quality control for nighttime LST and emissivity Day_view_time=>DayTime 0 y,x Time of daytime LST observation (UTC) Night_view_time=>NiteTime 0 y,x Time of nighttime LST observation (UTC) ENDVARS On Wed, Sep 23, 2009 at 1:18 AM, Aaron Pratt wrote: > Is there a way to use Windows-based GrADS (or GrADSnc, GrADS-DODS, > GrADS-HDF, etc) to open HDF-EOS files associated with MODIS, CloudSat, and > CALIPSO? Or should they be converted into NetCDF files? Thanks in advance > for any information that anyone has on this; it would be greatly > appreciated. > > > > Aaron From Chris.Lynnes at NASA.GOV Wed Sep 23 13:51:34 2009 From: Chris.Lynnes at NASA.GOV (Christopher Lynnes) Date: Wed, 23 Sep 2009 13:51:34 -0400 Subject: Using GrADS to open HDF-EOS In-Reply-To: <79aecae70909230959i399e4d1bv7b821a000bae8d9a@mail.gmail.com> Message-ID: On Sep 23, 2009, at 12:59 PM, Mike Bosilovich wrote: > It's not clear which data you are looking at, level 2 or level 3. The > descriptor file below I used to analyze the level 3 global 5km MODIS > LST product. I don't think level 2 is possible. > > When i've wanted to analyze the level 2 granules in grads, I had to > first convert to a regular grid. I think HDFView will do that, but not > in a batch way. > > I hope that someone has a better answer than mine! I don't have any better news, but a little more detail. The Cloudsat and CALIPSO are both Level 1B or 2, meaning satellite swath / vertical profile (not grid), and so are not well suited to GrADS, where the "Gr" stands for "Grid" 8-). There may be a way to define an X-Y grid with X being along-track distance and Y the vertical height / pressure level, but I admit that is beyond my ken. Converting to NetCDF/CF-1, unfortunately, does not solve this. (Though if you could properly convert to NetCDF/CF-1, the IDV tool could be used instead; however the reformatting of the geolocation aspect is a tricky thing.) If you want to *visualize* Cloudsat or CALIPSO swath/profile data, you can do that online at our A-Train Data Depot: http://gdata1.sci.gsfc.nasa.gov/daac-bin/G3/gui.cgi?instance_id=atrain Analysis and manipulation, alas, requires more work on your part... > > Mike > > DSET MOD11C1.A2001%m2%d2.004.hdf > title MODIS Land Surface Temperature (LST) CMG v4 > DTYPE hdfsds > OPTIONS yrev template > unpack scale_factor add_offset > undef 0 _FillValue > XDEF 7200 linear -180 0.05 > YDEF 3600 linear -90 0.05 > ZDEF 1 linear 1 1 > TDEF 115 linear 04jul2001 1dy > VARS 6 > LST_Day_CMG=>LSTDay 0 y,x Daily daytime 3min CMG Land-surface Temp > LST_Night_CMG=>LSTNite 0 y,x Daily nighttime 3min CMG Land-surface > Temp > QC_Day=>QCDay 0 y,x Quality control for daytime LST and emissivity > QC_Night=>QCNite 0 y,x Quality control for nighttime LST and > emissivity > Day_view_time=>DayTime 0 y,x Time of daytime LST observation (UTC) > Night_view_time=>NiteTime 0 y,x Time of nighttime LST observation > (UTC) > ENDVARS > > > On Wed, Sep 23, 2009 at 1:18 AM, Aaron Pratt > wrote: >> Is there a way to use Windows-based GrADS (or GrADSnc, GrADS-DODS, >> GrADS-HDF, etc) to open HDF-EOS files associated with MODIS, >> CloudSat, and >> CALIPSO? Or should they be converted into NetCDF files? Thanks in >> advance >> for any information that anyone has on this; it would be greatly >> appreciated. >> >> >> >> Aaron -- Christopher Lynnes NASA/GSFC, Code 610.2 301-614-5185 From Ajaya.Mohan at EC.GC.CA Wed Sep 23 19:13:46 2009 From: Ajaya.Mohan at EC.GC.CA (Ajaya Mohan) Date: Wed, 23 Sep 2009 16:13:46 -0700 Subject: Doing templates from .nc files In-Reply-To: <981197.36794.qm@web110702.mail.gq1.yahoo.com> Message-ID: Try this, I am using Version 1.9b4, it should work.... dset ^avhrr-only-v2.%y4%m2%d2.nc options template dtype netcdf undef -9.96921e+36 _FillValue unpack scale_factor add_offset title Daily-OI-V2, final, Data (Ship, Buoy, AVHRR, GSFC-ice) xdef 1440 linear 0.125 0.25 ydef 720 linear -89.875 0.25 zdef 1 linear 1 1 tdef 40 linear 00Z10SEP1982 1dy vars 4 sst=>sst 0 t,z,y,x Daily sea surface temperature anom=>anom 0 t,z,y,x Daily sea surface temperature anomalies err=>err 0 t,z,y,x Estimated error standard deviation of analysed_sst ice=>ice 0 t,z,y,x Sea ice concentration endvars ajaya Saulo Carvalho wrote: > Hello everybody, > > > I'm working with avhrr data files available in > ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my > surprise, when I make a .ctl file in order to template the .nc's, > it doesn' t work. As these files has 4 variables, it may have a problem > in making the template. > > > Is there an alternative way to solve this problem? > > > ________________________________________ > Saulo Carvalho > > > SEMA > Diretoria de Recursos H?dricos From jgmsantos at GMAIL.COM Wed Sep 23 19:53:47 2009 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Wed, 23 Sep 2009 20:53:47 -0300 Subject: Doing templates from .nc files In-Reply-To: <4ABAABAA.9070504@ec.gc.ca> Message-ID: You have to do: sdfopen uwnd.1990.nc uwnd.%y4.nc 200 d your_variable uwnd.%y4.nc = your template 200 = number times you want This resolve your problem. Guilherme. 2009/9/23 Ajaya Mohan > Try this, I am using Version 1.9b4, it should work.... > > > dset ^avhrr-only-v2.%y4%m2%d2.nc > options template > dtype netcdf > undef -9.96921e+36 _FillValue > unpack scale_factor add_offset > title Daily-OI-V2, final, Data (Ship, Buoy, AVHRR, GSFC-ice) > xdef 1440 linear 0.125 0.25 > ydef 720 linear -89.875 0.25 > zdef 1 linear 1 1 > tdef 40 linear 00Z10SEP1982 1dy > vars 4 > sst=>sst 0 t,z,y,x Daily sea surface temperature > anom=>anom 0 t,z,y,x Daily sea surface temperature anomalies > err=>err 0 t,z,y,x Estimated error standard deviation of analysed_sst > ice=>ice 0 t,z,y,x Sea ice concentration > endvars > > ajaya > > > Saulo Carvalho wrote: > >> Hello everybody, >> >> >> I'm working with avhrr data files available in >> ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my >> surprise, when I make a .ctl file in order to template the .nc's, >> it doesn' t work. As these files has 4 variables, it may have a problem >> in making the template. >> >> >> Is there an alternative way to solve this problem? >> >> >> ________________________________________ >> Saulo Carvalho >> >> >> SEMA >> Diretoria de Recursos H?dricos >> > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento 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 3185 8529 / Celular: +55 12 91678770 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/20090923/563f9d2a/attachment.html From Ajaya.Mohan at EC.GC.CA Wed Sep 23 20:13:24 2009 From: Ajaya.Mohan at EC.GC.CA (Ajaya Mohan) Date: Wed, 23 Sep 2009 17:13:24 -0700 Subject: Doing templates from .nc files In-Reply-To: <4ABAABAA.9070504@ec.gc.ca> Message-ID: Use this as a template. Copy the following in a ctl file and use open for the avhrr sst from ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/ Of course, tdef represents time of the data you want to use ajaya Ajaya Mohan wrote: > Try this, I am using Version 1.9b4, it should work.... > > > dset ^avhrr-only-v2.%y4%m2%d2.nc > options template > dtype netcdf > undef -9.96921e+36 _FillValue > unpack scale_factor add_offset > title Daily-OI-V2, final, Data (Ship, Buoy, AVHRR, GSFC-ice) > xdef 1440 linear 0.125 0.25 > ydef 720 linear -89.875 0.25 > zdef 1 linear 1 1 > tdef 40 linear 00Z10SEP1982 1dy > vars 4 > sst=>sst 0 t,z,y,x Daily sea surface temperature > anom=>anom 0 t,z,y,x Daily sea surface temperature anomalies > err=>err 0 t,z,y,x Estimated error standard deviation of analysed_sst > ice=>ice 0 t,z,y,x Sea ice concentration > endvars > > ajaya > > Saulo Carvalho wrote: >> Hello everybody, >> >> >> I'm working with avhrr data files available in >> ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my surprise, >> when I make a .ctl file in order to template the .nc's, it doesn' t >> work. As these files has 4 variables, it may have a problem in making >> the template. >> >> >> Is there an alternative way to solve this problem? >> >> >> ________________________________________ >> Saulo Carvalho >> >> >> SEMA >> Diretoria de Recursos H?dricos > > > From fdaryabor at GOOGLEMAIL.COM Wed Sep 23 22:28:09 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 24 Sep 2009 10:28:09 +0800 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <79aecae70909230739k62e3d28dyc70dea14d4aec575@mail.gmail.com> Message-ID: Hi Mike Thanks so much for your guide I try for it. Best Regards for you F.Daryabor On Wed, Sep 23, 2009 at 10:39 PM, Mike Bosilovich wrote: > ncks is a unix command, so you need the ! infront, like !cp > > Also, you need to make sure that ncks is installed and in the $path. > > Good Luck! > > Mike > > On Wed, Sep 23, 2009 at 12:35 AM, Farshid Daryabor > wrote: > > > > Hi Mike > > Tanks so much for your replay but when I use 'ncks' I face to following > > masage. > > Could you please guide me. > > ga-> open /home2/fdaryabor/Documents/V.ctl > > Scanning description file:? /home2/fdaryabor/Documents/V.ctl > > Data file /home2/fdaryabor/Documents/v.dat is open as file 2 > > ga-> q file 2 > > File 2 : evaporation mines prescription > > ? Descriptor: /home2/fdaryabor/Documents/V.ctl > > ? Binary: /home2/fdaryabor/Documents/v.dat > > ? Type = Gridded > > ? Xsize = 360? Ysize = 180? Zsize = 1? Tsize = 12? Esize = 1 > > ? Number of Variables = 1 > > ? ? ? ? v? 0? 1? v > > ga-> set lon 0 360 > > LON set to 0 360 > > ga-> set lat 180 359 > > LAT set to 180 359 > > ga-> set lev 0 0 > > LEV set to 0 0 > > ga-> set t 1 12 > > Time values set: 1960:1:16:5 1960:12:16:5 > > ga-> define uwind=u > > Define memory allocation size = 6238080 bytes > > ga-> define vwind=v.2 > > Define memory allocation size = 6238080 bytes > > ga-> set sdfwrite /home2/fdaryabor/Documents/temp.nc > > SDFWrite file name = /home2/fdaryabor/Documents/temp.nc > > SDFWrite will replace an existing file > > ga-> sdfwrite uwind > > Wrote variable uwind to /home2/fdaryabor/Documents/temp.nc > > ga-> !cp /home2/fdaryabor/Documents/temp.nc > > /home2/fdaryabor/Documents/VAR.nc > > ga-> sdfwrite vwind > > Wrote variable vwind to /home2/fdaryabor/Documents/temp.nc > > ga-> ncks -A -h /home2/fdaryabor/Documents/temp.nc > > /home2/fdaryabor/Documents/VAR.nc > > Unknown command: ncks > > > > > > > > > > Best Regards for you > > F.Daryabor > > On Fri, Sep 18, 2009 at 10:57 PM, Mike Bosilovich > > wrote: > >> > >> I just had a similar question, and asked Jennifer offline. So, what to > >> do is to build a call to ncks into your script, and it can append data > >> onto a file. In my case I loop over many variables, so the file in > >> sdfwrite is temp.nc, then I use ncks to append to the actual output > >> file I want. I tried to add som script below that may work for you. > >> > >> On Thu, Sep 17, 2009 at 3:17 AM, Farshid Daryabor > >> wrote: > >> > Hi all > >> > I could use 'sdfwrite', now I want to input 2 variables? ? 'u' and 'v' > in > >> > one > >> > netcdf file.? ? I write a script for execute , after 'set sdfwrite > >> > /hom2/../VAR.nc' when I type 'sdfwrite' command which is 'sdfwrite > uwind > >> > vwind.2' for writing 2 variables? ? in? ? netcdf file, it only gives > me > >> > one of > >> > them not both. Please guide me. > >> > > >> > > >> > 'open /home2/fdaryabor/Documents/U.ctl' > >> > 'open /home2/fdaryabor/Documents/V.ctl' > >> > 'set lon 0 360' > >> > 'set lat 180 359' > >> > 'set lev 0 0' > >> > 'set t 1 last' > >> > 'set e 1 last' > >> > 'define uwind=u' > >> > 'define vwind=v.2' > >> > *'set sdfwrite /home2/fdaryabor/Documents/VAR.nc' > >> > >> 'set sdfwrite temp.nc' > >> > >> > *'sdfwrite uwind vwind.2' > >> > >> 'sdfwrite uwind' > >> '!cp temp.nc /home2/fdaryabor/Documents/VAR.nc' > >> 'sdfwrite vwind' > >> 'ncks -A -h temp.nc /home2/fdaryabor/Documents/VAR.nc' > >> > >> > >> If there's any looping involved, then the !cp will over write, so only > >> do that on the first iteration of the loop to initialize the file, and > >> append all the rest. ? -A does the append, and -h ? prevents a history > >> line in the netcdf metadata. I was looping over many vars, and this > >> history was getting too big. > >> > >> Hope this helps and have a great weekend!! > >> > >> Mike > >> > >> > > >> > Best Regards > >> > F.Daryabor > >> > > >> > On Wed, Sep 16, 2009 at 12:55 PM, Farshid Daryabor > >> > wrote: > >> >> > >> >> Hi Eric Altshuler > >> >> Thanks so much for your guide. I try download grads 2.0.a3. > >> >> Best Regards > >> >> F.Daryabor > >> >> > >> >> On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler > >> >> wrote: > >> >>> > >> >>> Hello Farshid, > >> >>> > >> >>> sdfwrite is not a script. It's a built-in command, and you need > grads > >> >>> 2.0.a3 or higher to use it. You mentioned that you use the grads > >> >>> executable > >> >>> 'gradsc'. This means you are using an old version of grads. > Beginning > >> >>> with > >> >>> grads 2.0, the 'gradsc' executable does not exist anymore. There are > >> >>> only > >> >>> two grads executables, 'grads' and 'gradsdap'. Get the latest > version > >> >>> of > >> >>> grads; the sdfwrite command will be available. > >> >>> > >> >>> Best regards, > >> >>> > >> >>> Eric L. Altshuler > >> >>> Assistant Research Scientist > >> >>> Center for Ocean-Land-Atmosphere Studies > >> >>> 4041 Powder Mill Road, Suite 302 > >> >>> Calverton, MD 20705-3106 > >> >>> USA > >> >>> > >> >>> E-mail: ela at cola.iges.org > >> >>> Phone: (301) 902-1257 > >> >>> Fax: (301) 595-9793 > >> >>> > >> >>> ----- Original Message ----- > >> >>> From: "Farshid Daryabor" > >> >>> To: GRADSUSR at LIST.CINECA.IT > >> >>> Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada > >> >>> Eastern > >> >>> Subject: Re: command in GrADS 2.0.a5.oga.5 > >> >>> > >> >>> Hi > >> >>> I try for downloading 'sdfwrite' script from " > >> >>> http://www.iges.org/grads/gadoc/library.html " but can't find it, > >> >>> because > >> >>> when I open 'my_data.ctl' in './gradsc' I face to following massage: > >> >>> > >> >>> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > >> >>> Scanning description file: > >> >>> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > >> >>> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as > file > >> >>> 1 > >> >>> LON set to 0 360 > >> >>> LAT set to 180 359 > >> >>> LEV set to 0 0 > >> >>> Time values set: 1960:1:16:5 1960:1:16:5 > >> >>> ga-> set lon 98 120 > >> >>> LON set to 98 120 > >> >>> ga-> set lat -10 20 > >> >>> LAT set to -10 20 > >> >>> ga-> set t 05z16jan1960 1mo > >> >>> Time values set: 1960:5:16:5 1960:1:16:5 > >> >>> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc > >> >>> SET error: Invalid operand > >> >>> Operand = sdfwrite /home/arya/desktop/ emp.nc > >> >>> I think must download "sdfwrite" script, please you help me, and > give > >> >>> me > >> >>> straight address for find it. > >> >>> Best Regards > >> >>> F.Daryabor > >> >>> > >> >>> > >> >>> > >> >>> On Tue, Sep 15, 2009 at 4:03 PM, ??? < rust123 at yahoo.cn > wrote: > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> hello,everyone > >> >>> what are the shortcut keys of the copy and paste command in GrADS > >> >>> 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used > >> >>> in the > >> >>> windows xp. > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> ???? hersala < hersala at GMAIL.COM > > >> >>> ???? GRADSUSR at LIST.CINECA.IT > >> >>> ???? 2009/9/15(??), ?? ?12:32:44 > >> >>> ??? Re: GS files in GrADS 2.0.a5.oga.5 > >> >>> > >> >>> Hi Hyacinth: > >> >>> When I use my own scripts or from another person, I save them in the > >> >>> same > >> >>> folder from where the data is read by GrADS, that is win32 folder. > >> >>> I hope this help you. > >> >>> Bye, > >> >>> Hern?n > >> >>> > >> >>> > >> >>> 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > > >> >>> > >> >>> > >> >>> Dear Colleagues, > >> >>> > >> >>> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( > >> >>> http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I > >> >>> notice > >> >>> that it does not recognise the in-built .gs files like cbar.gs , > >> >>> cbarn.gs > >> >>> etc, although I have confirmed that they are in the "scripts" file. > >> >>> > >> >>> Does anyone know what could be wrong, where should I place the .gs > >> >>> files? > >> >>> > >> >>> > >> >>> Thanks, > >> >>> hyacinth > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> > >> >>> Hyacinth C. Nnamchi > >> >>> TWAS-CAS Fellow > >> >>> State Key Laboratory of Numerical Modeling for > >> >>> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) > >> >>> Institute of Atmospheric Physics (IAP) > >> >>> Chinese Academy of Sciences (CAS) > >> >>> P.O.Box 9804, Beijing 100029, China > >> >>> Tel: +86-13488719702 > >> >>> Fax: +86-10-82995172 > >> >>> E-mail:hc.nnamchi at lasg.iap.ac.cn > >> >>> > >> >>> > >> >>> > >> >>> ??????? ?????????? ?? > >> >> > >> > > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/267d95ac/attachment.html From zjuyanlibin at 163.COM Wed Sep 23 22:54:54 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Thu, 24 Sep 2009 10:54:54 +0800 Subject: =?utf-8?B?UmU6IFJlOiBVc2luZyBHckFEUyB0byBvcGVuIEhERi1FT1M=?= Message-ID: Dear Mike, How can i get level3 global 5km MODIS LST product? Thank you in advance. Libin Yan 2009-09-24 Yan Libin ???? Mike Bosilovich ????? 2009-09-24 00:59:52 ???? GRADSUSR ??? ??? Re: Using GrADS to open HDF-EOS It's not clear which data you are looking at, level 2 or level 3. The descriptor file below I used to analyze the level 3 global 5km MODIS LST product. I don't think level 2 is possible. When i've wanted to analyze the level 2 granules in grads, I had to first convert to a regular grid. I think HDFView will do that, but not in a batch way. I hope that someone has a better answer than mine! Mike DSET MOD11C1.A2001%m2%d2.004.hdf title MODIS Land Surface Temperature (LST) CMG v4 DTYPE hdfsds OPTIONS yrev template unpack scale_factor add_offset undef 0 _FillValue XDEF 7200 linear -180 0.05 YDEF 3600 linear -90 0.05 ZDEF 1 linear 1 1 TDEF 115 linear 04jul2001 1dy VARS 6 LST_Day_CMG=>LSTDay 0 y,x Daily daytime 3min CMG Land-surface Temp LST_Night_CMG=>LSTNite 0 y,x Daily nighttime 3min CMG Land-surface Temp QC_Day=>QCDay 0 y,x Quality control for daytime LST and emissivity QC_Night=>QCNite 0 y,x Quality control for nighttime LST and emissivity Day_view_time=>DayTime 0 y,x Time of daytime LST observation (UTC) Night_view_time=>NiteTime 0 y,x Time of nighttime LST observation (UTC) ENDVARS On Wed, Sep 23, 2009 at 1:18 AM, Aaron Pratt wrote: > Is there a way to use Windows-based GrADS (or GrADSnc, GrADS-DODS, > GrADS-HDF, etc) to open HDF-EOS files associated with MODIS, CloudSat, and > CALIPSO? Or should they be converted into NetCDF files? Thanks in advance > for any information that anyone has on this; it would be greatly > appreciated. > > > > Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/f608e5df/attachment.html From fdaryabor at GOOGLEMAIL.COM Thu Sep 24 00:09:13 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 24 Sep 2009 12:09:13 +0800 Subject: sdfwrite [was: Re: command in GrADS 2.0.a5.oga.5] In-Reply-To: <79aecae70909230739k62e3d28dyc70dea14d4aec575@mail.gmail.com> Message-ID: Hi Mike when I create a new netcdf file and check variable and attributes "time" in comparing the previous netcdf files is too big do you have any command. Thanks. &&&&&&&&&&&&&&&&&&&&&&&&&& time for the new netcdf files (the VAR.nc including the u and v components ): &&&&&&&&&&&&&&&&&&&&&&&&&& " time = 0, 44640, 86400, 131040, 174240, 218880, 262080, 306720, 351360, 394560, 439200, 482400 ;" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& time for the previous netcdf files (the "u.nc" and "v.nc" files) : &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& "time = 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5 ;" &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& the control files for u and v are: &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& dset ^v.dat title v-component velocity undef -9999 xdef 360 linear 360 1 ydef 180 linear 180 1 zdef 1 levels 0 tdef 12 linear 05z16Jan1960 1mo vars 1 v 0 1 v endvars &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& dset ^u.dat title u-component velocity undef -9999 xdef 360 linear 360 1 ydef 180 linear 180 1 zdef 1 levels 0 tdef 12 linear 05z16Jan1960 1mo vars 1 v 0 1 v endvars ++++++++++++++++++++++++++++++++++= Best Regards F.Daryabor On Wed, Sep 23, 2009 at 10:39 PM, Mike Bosilovich wrote: > ncks is a unix command, so you need the ! infront, like !cp > > Also, you need to make sure that ncks is installed and in the $path. > > Good Luck! > > Mike > > On Wed, Sep 23, 2009 at 12:35 AM, Farshid Daryabor > wrote: > > > > Hi Mike > > Tanks so much for your replay but when I use 'ncks' I face to following > > masage. > > Could you please guide me. > > ga-> open /home2/fdaryabor/Documents/V.ctl > > Scanning description file:? /home2/fdaryabor/Documents/V.ctl > > Data file /home2/fdaryabor/Documents/v.dat is open as file 2 > > ga-> q file 2 > > File 2 : evaporation mines prescription > > ? Descriptor: /home2/fdaryabor/Documents/V.ctl > > ? Binary: /home2/fdaryabor/Documents/v.dat > > ? Type = Gridded > > ? Xsize = 360? Ysize = 180? Zsize = 1? Tsize = 12? Esize = 1 > > ? Number of Variables = 1 > > ? ? ? ? v? 0? 1? v > > ga-> set lon 0 360 > > LON set to 0 360 > > ga-> set lat 180 359 > > LAT set to 180 359 > > ga-> set lev 0 0 > > LEV set to 0 0 > > ga-> set t 1 12 > > Time values set: 1960:1:16:5 1960:12:16:5 > > ga-> define uwind=u > > Define memory allocation size = 6238080 bytes > > ga-> define vwind=v.2 > > Define memory allocation size = 6238080 bytes > > ga-> set sdfwrite /home2/fdaryabor/Documents/temp.nc > > SDFWrite file name = /home2/fdaryabor/Documents/temp.nc > > SDFWrite will replace an existing file > > ga-> sdfwrite uwind > > Wrote variable uwind to /home2/fdaryabor/Documents/temp.nc > > ga-> !cp /home2/fdaryabor/Documents/temp.nc > > /home2/fdaryabor/Documents/VAR.nc > > ga-> sdfwrite vwind > > Wrote variable vwind to /home2/fdaryabor/Documents/temp.nc > > ga-> ncks -A -h /home2/fdaryabor/Documents/temp.nc > > /home2/fdaryabor/Documents/VAR.nc > > Unknown command: ncks > > > > > > > > > > Best Regards for you > > F.Daryabor > > On Fri, Sep 18, 2009 at 10:57 PM, Mike Bosilovich > > wrote: > >> > >> I just had a similar question, and asked Jennifer offline. So, what to > >> do is to build a call to ncks into your script, and it can append data > >> onto a file. In my case I loop over many variables, so the file in > >> sdfwrite is temp.nc, then I use ncks to append to the actual output > >> file I want. I tried to add som script below that may work for you. > >> > >> On Thu, Sep 17, 2009 at 3:17 AM, Farshid Daryabor > >> wrote: > >> > Hi all > >> > I could use 'sdfwrite', now I want to input 2 variables? ? 'u' and 'v' > in > >> > one > >> > netcdf file.? ? I write a script for execute , after 'set sdfwrite > >> > /hom2/../VAR.nc' when I type 'sdfwrite' command which is 'sdfwrite > uwind > >> > vwind.2' for writing 2 variables? ? in? ? netcdf file, it only gives > me > >> > one of > >> > them not both. Please guide me. > >> > > >> > > >> > 'open /home2/fdaryabor/Documents/U.ctl' > >> > 'open /home2/fdaryabor/Documents/V.ctl' > >> > 'set lon 0 360' > >> > 'set lat 180 359' > >> > 'set lev 0 0' > >> > 'set t 1 last' > >> > 'set e 1 last' > >> > 'define uwind=u' > >> > 'define vwind=v.2' > >> > *'set sdfwrite /home2/fdaryabor/Documents/VAR.nc' > >> > >> 'set sdfwrite temp.nc' > >> > >> > *'sdfwrite uwind vwind.2' > >> > >> 'sdfwrite uwind' > >> '!cp temp.nc /home2/fdaryabor/Documents/VAR.nc' > >> 'sdfwrite vwind' > >> 'ncks -A -h temp.nc /home2/fdaryabor/Documents/VAR.nc' > >> > >> > >> If there's any looping involved, then the !cp will over write, so only > >> do that on the first iteration of the loop to initialize the file, and > >> append all the rest. ? -A does the append, and -h ? prevents a history > >> line in the netcdf metadata. I was looping over many vars, and this > >> history was getting too big. > >> > >> Hope this helps and have a great weekend!! > >> > >> Mike > >> > >> > > >> > Best Regards > >> > F.Daryabor > >> > > >> > On Wed, Sep 16, 2009 at 12:55 PM, Farshid Daryabor > >> > wrote: > >> >> > >> >> Hi Eric Altshuler > >> >> Thanks so much for your guide. I try download grads 2.0.a3. > >> >> Best Regards > >> >> F.Daryabor > >> >> > >> >> On Tue, Sep 15, 2009 at 11:49 AM, Eric Altshuler > >> >> wrote: > >> >>> > >> >>> Hello Farshid, > >> >>> > >> >>> sdfwrite is not a script. It's a built-in command, and you need > grads > >> >>> 2.0.a3 or higher to use it. You mentioned that you use the grads > >> >>> executable > >> >>> 'gradsc'. This means you are using an old version of grads. > Beginning > >> >>> with > >> >>> grads 2.0, the 'gradsc' executable does not exist anymore. There are > >> >>> only > >> >>> two grads executables, 'grads' and 'gradsdap'. Get the latest > version > >> >>> of > >> >>> grads; the sdfwrite command will be available. > >> >>> > >> >>> Best regards, > >> >>> > >> >>> Eric L. Altshuler > >> >>> Assistant Research Scientist > >> >>> Center for Ocean-Land-Atmosphere Studies > >> >>> 4041 Powder Mill Road, Suite 302 > >> >>> Calverton, MD 20705-3106 > >> >>> USA > >> >>> > >> >>> E-mail: ela at cola.iges.org > >> >>> Phone: (301) 902-1257 > >> >>> Fax: (301) 595-9793 > >> >>> > >> >>> ----- Original Message ----- > >> >>> From: "Farshid Daryabor" > >> >>> To: GRADSUSR at LIST.CINECA.IT > >> >>> Sent: Tuesday, September 15, 2009 5:19:37 AM GMT -05:00 US/Canada > >> >>> Eastern > >> >>> Subject: Re: command in GrADS 2.0.a5.oga.5 > >> >>> > >> >>> Hi > >> >>> I try for downloading 'sdfwrite' script from " > >> >>> http://www.iges.org/grads/gadoc/library.html " but can't find it, > >> >>> because > >> >>> when I open 'my_data.ctl' in './gradsc' I face to following massage: > >> >>> > >> >>> ga-> open /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > >> >>> Scanning description file: > >> >>> /home/Arya/fDaryabor/Roms_tools/Run/binary2netcdf.ctl > >> >>> Data file /home/Arya/fDaryabor/Roms_tools/Run/emp.dat is open as > file > >> >>> 1 > >> >>> LON set to 0 360 > >> >>> LAT set to 180 359 > >> >>> LEV set to 0 0 > >> >>> Time values set: 1960:1:16:5 1960:1:16:5 > >> >>> ga-> set lon 98 120 > >> >>> LON set to 98 120 > >> >>> ga-> set lat -10 20 > >> >>> LAT set to -10 20 > >> >>> ga-> set t 05z16jan1960 1mo > >> >>> Time values set: 1960:5:16:5 1960:1:16:5 > >> >>> ga-> set sdfwrite /home/Arya/Desktop/EMP.nc > >> >>> SET error: Invalid operand > >> >>> Operand = sdfwrite /home/arya/desktop/ emp.nc > >> >>> I think must download "sdfwrite" script, please you help me, and > give > >> >>> me > >> >>> straight address for find it. > >> >>> Best Regards > >> >>> F.Daryabor > >> >>> > >> >>> > >> >>> > >> >>> On Tue, Sep 15, 2009 at 4:03 PM, ??? < rust123 at yahoo.cn > wrote: > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> hello,everyone > >> >>> what are the shortcut keys of the copy and paste command in GrADS > >> >>> 2.0.a5.oga.5,thank you in advance.the shfit+insert could not be used > >> >>> in the > >> >>> windows xp. > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> ???? hersala < hersala at GMAIL.COM > > >> >>> ???? GRADSUSR at LIST.CINECA.IT > >> >>> ???? 2009/9/15(??), ?? ?12:32:44 > >> >>> ??? Re: GS files in GrADS 2.0.a5.oga.5 > >> >>> > >> >>> Hi Hyacinth: > >> >>> When I use my own scripts or from another person, I save them in the > >> >>> same > >> >>> folder from where the data is read by GrADS, that is win32 folder. > >> >>> I hope this help you. > >> >>> Bye, > >> >>> Hern?n > >> >>> > >> >>> > >> >>> 2009/9/13 Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn > > >> >>> > >> >>> > >> >>> Dear Colleagues, > >> >>> > >> >>> I am using GrADS 2.0.a5.oga.5 from the Opengrads download page ( > >> >>> http://sourceforge.net/projects/opengrads/files/ ) on MS Windows.I > >> >>> notice > >> >>> that it does not recognise the in-built .gs files like cbar.gs , > >> >>> cbarn.gs > >> >>> etc, although I have confirmed that they are in the "scripts" file. > >> >>> > >> >>> Does anyone know what could be wrong, where should I place the .gs > >> >>> files? > >> >>> > >> >>> > >> >>> Thanks, > >> >>> hyacinth > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> > >> >>> Hyacinth C. Nnamchi > >> >>> TWAS-CAS Fellow > >> >>> State Key Laboratory of Numerical Modeling for > >> >>> Atmospheric Sciences and Geophysical Fluid Dynamics (LASG) > >> >>> Institute of Atmospheric Physics (IAP) > >> >>> Chinese Academy of Sciences (CAS) > >> >>> P.O.Box 9804, Beijing 100029, China > >> >>> Tel: +86-13488719702 > >> >>> Fax: +86-10-82995172 > >> >>> E-mail:hc.nnamchi at lasg.iap.ac.cn > >> >>> > >> >>> > >> >>> > >> >>> ??????? ?????????? ?? > >> >> > >> > > >> > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/13ebc474/attachment.html From munia_c at YAHOO.CO.IN Thu Sep 24 05:44:41 2009 From: munia_c at YAHOO.CO.IN (tanusri chakraborty) Date: Thu, 24 Sep 2009 02:44:41 -0700 Subject: grads script Message-ID: sir/madam, ? I am doing research in IITM,Pune,India. I want do some ploting on grads.. the problem is that I want to open more than two nc file which contaning same variable say OLR. so i want to average that variable from those different file ?grid wise and plot one average graph. ? ? ? ? ? Thanking you. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Tanusri Chakraborty ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Research Fellow ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? IITM,Pune -- Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/7733ce8b/attachment.html From sushantpuranik at GMAIL.COM Thu Sep 24 06:23:43 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Thu, 24 Sep 2009 15:53:43 +0530 Subject: grads script In-Reply-To: <691960.26863.qm@web8314.mail.in.yahoo.com> Message-ID: try this d (ave(var,t=1,t=ending time,interval)+ave(var,t=2,t=ending time,interval))/2 On Thu, Sep 24, 2009 at 3:14 PM, tanusri chakraborty wrote: > sir/madam, > I am doing research in IITM,Pune,India. I want do some ploting on grads. > the > problem is that I want to open more than two nc file which contaning same > variable say > OLR. so i want to average that variable from those different file grid > wise and plot > one average graph. > Thanking you. > Tanusri Chakraborty > Research Fellow > IITM,Pune > -- > > > ------------------------------ > Yahoo! India has a new look. Take a sneak peek > . > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/16f41011/attachment.html From Isabella.Bovolo at NEWCASTLE.AC.UK Thu Sep 24 08:14:47 2009 From: Isabella.Bovolo at NEWCASTLE.AC.UK (Isabella Bovolo) Date: Thu, 24 Sep 2009 13:14:47 +0100 Subject: Template files In-Reply-To: <72e8bd3d0909240323v6110c1cbib8929bd3d3d45711@mail.gmail.com> Message-ID: Dear Grads users, I am trying to use a template file so that I can do monthly averages of daily data held in individual files but I cannot seem to plot any of the individual files (and therefore cannot do averaging) as they do not open correctly. The filenames I have are of the type: gpfs1958010100cp_24h.grb. Grads appears to be trying to open the template filename and I get the error below. Do you have any suggestions please? Am I using the wrong commands? (Apologies if this is a simple question). ga-> set t 1 Time values set: 1958:1:1:0 1958:1:1:0 ga-> d cp Low Level I/O Error: Read error on data file Data file name = gpfs%y4%m2%d200cp_24h.ctl Error reading 360 bytes at location 0 Data Request Error: Error for variable 'cp' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = cp My template file is the following: DSET ^gpfs%y4%m2%d2%h2cp_24h.grbA OPTIONS template undef 9.999E+20 xdef 360 linear 0.000000 1.000000 ydef 181 linear -90.000000 1 zdef 1 linear 1 1 TDEF 5 LINEAR 00Z1Jan1958 1dy vars 1 cp 0 143,1,0 Convective precipitation (accum.) (m) ENDVARS Many thanks, Isabella ------- Dr. C. Isabella Bovolo Email: Isabella.Bovolo at ncl.ac.uk Tel: +44 191 222 8599 Fax: +44 191 222 6669 School of Civil Engineering and Geosciences, Newcastle University, NE1 7RU, England, UK From oscar at CENPAT.EDU.AR Thu Sep 24 08:50:05 2009 From: oscar at CENPAT.EDU.AR (Oscar Andres Frumento) Date: Thu, 24 Sep 2009 09:50:05 -0300 Subject: Template files In-Reply-To: Message-ID: Isabella, try to rename your "template" file as follows: gpfs%y4%m2%d200cp_24h.grb your time step is day, so hour field shoul be fixed. hope this help, regards, oscar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/07ec5f36/attachment.html From claudiomet at GMAIL.COM Thu Sep 24 09:06:16 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Thu, 24 Sep 2009 09:06:16 -0400 Subject: grads script In-Reply-To: <691960.26863.qm@web8314.mail.in.yahoo.com> Message-ID: Hi Tanusri ! When you work with multiple files, each variable of a file can be poltted adding a point and a numbre of a file opened, for example: If you wanto to plot geopotential heights of a file 1 just do: d hgt.1 If you want to plot geopotential heights of file 2 in level 500 Hpa just do: d hgt.2(lev=500) If you want to plot geopoential heights of file 3 in level 500 and time 2 justo do: d hgt.3(lev=500,time=2) If you want to plot gepotential heights of file 4 in level 500, time 3, lon -33 and lat -70, justo do: d hgt.4(lev=500, time=3, lon=-33,lat=-70) If you want to plot gepotential heights of file 5 in level 500, time 3 and the lon and lat applied to file 4, justo do: d hgt.5(lev=500, time=3, lon.4,lat.4) Best regards Tanusri 2009/9/24 tanusri chakraborty > sir/madam, > I am doing research in IITM,Pune,India. I want do some ploting on grads. > the > problem is that I want to open more than two nc file which contaning same > variable say > OLR. so i want to average that variable from those different file grid > wise and plot > one average graph. > Thanking you. > Tanusri Chakraborty > Research Fellow > IITM,Pune > -- > > > ------------------------------ > Yahoo! India has a new look. Take a sneak peek > . > -- 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/20090924/ffaf53d2/attachment.html From oscar at CENPAT.EDU.AR Thu Sep 24 10:02:55 2009 From: oscar at CENPAT.EDU.AR (Oscar Andres Frumento) Date: Thu, 24 Sep 2009 11:02:55 -0300 Subject: Template files In-Reply-To: Message-ID: Isabella, what is the original ctl file? how many files do you have to open? can you display cp variable opening only 1 file? oscar From Isabella.Bovolo at NEWCASTLE.AC.UK Thu Sep 24 10:25:56 2009 From: Isabella.Bovolo at NEWCASTLE.AC.UK (Isabella Bovolo) Date: Thu, 24 Sep 2009 15:25:56 +0100 Subject: Template files In-Reply-To: <4ABB51DF.1689.A12C7A@oscar.cenpat.edu.ar> Message-ID: Dear Oscar, thank you for your reply. I have the following files to use as an example (currently 5 days but I would like to be able to repeat the procedure for several months/years of data): gpfs1958010100cp_24h.ctl gpfs1958010100cp_24h.grb gpfs1958010100cp_24h.grb.idx gpfs1958010200cp_24h.ctl gpfs1958010200cp_24h.grb gpfs1958010200cp_24h.grb.idx gpfs1958010300cp_24h.ctl gpfs1958010300cp_24h.grb gpfs1958010300cp_24h.grb.idx gpfs1958010400cp_24h.ctl gpfs1958010400cp_24h.grb gpfs1958010400cp_24h.grb.idx gpfs1958010500cp_24h.ctl gpfs1958010500cp_24h.grb gpfs1958010500cp_24h.grb.idx The control file of gpfs1958010100cp_24h.ctl is: dset ^gpfs1958101000cp_24h.grb index ^gpfs1958101000cp_24h.grb.idx undef 9.999E+20 title ^gpfs1958101000cp_24h.grb * produced by /usr/local/badcdat/bin/badcGrib.py dtype grib 255 options yrev ydef 181 linear -90.000000 1 xdef 360 linear 0.000000 1.000000 tdef 1 linear 00Z11oct1958 1dy zdef 1 linear 1 1 vars 1 cp 0 143,1,0 Convective precipitation (accum.) (m) ENDVARS I can open each file individually and plot the contents of each file: ga-> query file 1 File 1 : ^gpfs1958010200cp_24h.grb Descriptor: gpfs1958010200cp_24h.ctl Binary: gpfs1958010200cp_24h.grb Type = Gridded Xsize = 360 Ysize = 181 Zsize = 1 Tsize = 1 Esize = 1 Number of Variables = 1 cp 0 143 Convective precipitation (accum.) (m) ga-> d cp.1 Contouring: 0 to 0.07 interval 0.01 But when I try to open more than one file at once, I cannot seem to be able to plot any content except that of the first file: File 1 : ^gpfs1958010200cp_24h.grb Descriptor: gpfs1958010200cp_24h.ctl Binary: gpfs1958010200cp_24h.grb Type = Gridded Xsize = 360 Ysize = 181 Zsize = 1 Tsize = 1 Esize = 1 Number of Variables = 1 cp 0 143 Convective precipitation (accum.) (m) ga-> q file 2 File 2 : ^gpfs1958010300cp_24h.grb Descriptor: gpfs1958010300cp_24h.ctl Binary: gpfs1958010300cp_24h.grb Type = Gridded Xsize = 360 Ysize = 181 Zsize = 1 Tsize = 1 Esize = 1 Number of Variables = 1 cp 0 143 Convective precipitation (accum.) (m) ga-> d cp.1 Contouring: 0 to 0.07 interval 0.01 ga-> d cp.2 Data Request Warning: Request is completely outside file limits Entire grid contents are set to missing data Grid limits of file: X = 1 360 Y = 1 181 Z = 1 1 T = 1 1 E = 1 1 Grid limits of request: X = 1 361 Y = 1 181 Z = 1 1 T = 0 0 E = 1 1 Warning issued for variable = cp.2 Cannot contour grid - all undefined values (Note I can plot the second file if I open just that file:) ga-> open gpfs1958010300cp_24h Scanning description file: gpfs1958010300cp_24h Data file gpfs1958010300cp_24h.grb is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 1 1 Time values set: 1958:1:4:0 1958:1:4:0 E set to 1 1 ga-> d cp Contouring: 0 to 0.07 interval 0.01 Isabella On Thu, 24 Sep 2009, Oscar Andres Frumento wrote: > Isabella, > > what is the original ctl file? > how many files do you have to open? > can you display cp variable opening only 1 file? > > oscar > From oscar at CENPAT.EDU.AR Thu Sep 24 13:19:53 2009 From: oscar at CENPAT.EDU.AR (Oscar Andres Frumento) Date: Thu, 24 Sep 2009 14:19:53 -0300 Subject: Template files In-Reply-To: Message-ID: Isabella, it seems that the actual ctl file miss several lines; furthermore, you should have to build an "idx" file from the "new" ctl file using the command "gribmap". DSET ^gpfs%y4%m2%d2%h2cp_24h.grbA OPTIONS template undef 9.999E+20 xdef 360 linear 0.000000 1.000000 ydef 181 linear -90.000000 1 zdef 1 linear 1 1 TDEF 5 LINEAR 00Z1Jan1958 1dy vars 1 cp 0 143,1,0 Convective precipitation (accum.) (m) ENDVARS your ctl file have to look like the following one: dset ^gpfs%y4&m2%d200cp_24h.grb index ^template_grb.idx undef 9.999E+20 title ^gpfs1958101000cp_24h.grb * produced by /usr/local/badcdat/bin/badcGrib.py dtype grib 255 options yrev template ydef 181 linear -90.000000 1 xdef 360 linear 0.000000 1.000000 tdef nnn linear 00Z11oct1958 1dy zdef 1 linear 1 1 vars 1 cp 0 143,1,0 Convective precipitation (accum.) (m) ENDVARS nnn is the number of times you are going to use in the complete set of files, ie, one year of data nnn = 365. oscar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/d0e2fd0c/attachment.html From gzepka at DGE.INPE.BR Thu Sep 24 14:03:29 2009 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Thu, 24 Sep 2009 15:03:29 -0300 Subject: working with 2 different files Message-ID: Hello users I want to plot the difference between two temperature fields from different .ctl files (file 1: resolution = 20 km; longitude range = 277 to 334.2 degrees; latitude range = -50.2 to 12.2; file 2: resolution = 10 km; longitude range = -50.159 to -44.075 degrees; latitude range = -25.031 to -20.783). My first problem is to set the longitude for the file 1, which must be defined in terms of a difference from 360 degrees, while the file 2 mantains its coordinates. When I set the longitude, how can I specify which file I am altering it? In order to calculate the temperature difference I extrapolate the resolution of the file 2 to 20 km using the regrid function. In this moment lots of errors appear. I am trying to do something like that: ga-> d tp2m.1 - regrid2(tmp2m.2,0.1962580,0.1962580,bl) Please, any help will be good. Thanks. Gisele -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12245-970 Phone ++55(12)39456841 From tatiane.felinto at GMAIL.COM Thu Sep 24 15:13:12 2009 From: tatiane.felinto at GMAIL.COM (tatiane felinto) Date: Thu, 24 Sep 2009 16:13:12 -0300 Subject: lats4d? Message-ID: Hello users I have a file with resolution of 1.125X1.125 with 23 levels and spacing in x between 140W to 30E and 90S and between the 30N. I want to do a regridding to a grid 0.25X0.25 and reduce the number of levels. I tried using lats4d and gave the following command: gradsnc -blc 'run lats4d.gs -i /media/TATIANE/era40/temp/t_1980.ctl -o t25_1980 -format grads_grib -mxtimes 1464 -levs 1000 850 -time 00z01jan1980 18z31jan1980 -de era025.ctl -func re(@,0.25,0.25,bl) -v -q' This command runs without errors, creating the .grb,. ctl and .gmp..... However, when viewing the picture, note that the information is not correct. Does anyone have any idea how can I solve this problem? Below the two ctl used on the command line and the message of the grads. Attached is a picture generated with the result of regrid. Ah ... I am using the grads1.9.0-rc1 Thanks Tatiane Felinto t_1980.ctl dset ^t_1980.grb title temperature undef 1e+20 dtype grib index ^t_1980.gmp xdef 188 linear -180.000000 1.125000 ydef 108 linear -90.000000 1.125000 zdef 23 levels 1000 925 850 775 700 600 500 400 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1 tdef 1464 linear 0Z1jan1980 6hr vars 1 t 23 1,100 ** (profile) Temperature K [] endvars ************************************************************************************* era025.ctl DSET nofile title Template GrADS for regridding options template undef 1e+20 xdef 301 linear -95 0.25 ydef 301 linear -60 0.25 zdef 1 levels 1000 tdef 124 linear 00z1jan1980 6hr vars 1 var 0 0 generic sfc variable endvars *************************************************************************************************** Grid Analysis and Display System (GrADS) Version 1.9.0-rc1 Copyright (c) 1988-2007 by Brian Doty and IGES Center for Ocean-Land-Atmosphere Studies (COLA) Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v1.9.0-rc1 32-bit little-endian readline sdf/xdf netcdf lats athena printim Issue 'q config' command for more information. Format error in user defined function table: Processing function name: File name is: /usr/local/grads/udf/udft GX Package Initialization: Size = 11 8.5 Running in Batch mode lats4d: Version 2.0.1 of 12 Jan 2009 No hardcopy metafile open All files closed; all defined objects released All GrADS attributes have been reinitialized lats4d: Data file is File 1 : file created by grads using lats4d available from http://dao.gsfc.nasa.gov/software/grads/lats4d/ Descriptor: /media/TATIANE/era40/temp/t_1980.ctl Binary: /media/TATIANE/era40/temp/t_1980.grb Type = Gridded Xsize = 188 Ysize = 108 Zsize = 23 Tsize = 1464 Number of Variables = 1 t 23 1 ** (profile) Temperature K [] lats4d: Dimension environment file is File 2 : Template GrADS for regridding Descriptor: era025.ctl Binary: nofile Type = Gridded Xsize = 301 Ysize = 301 Zsize = 1 Tsize = 124 Number of Variables = 1 var 0 0 generic sfc variable lats4d: creating LATS PARAMETER TABLE file .grads.lats.table lats4d: time range: 00Z01JAN1980 18Z31JAN1980 by 1, delta t: 6 hourly lats4d: vertical levels: 1000 850 lats4d: using PRESSURE for vertical coordinate lats4d: latitudinal range: -60 15 lats4d: longitudinal range: -95 -20 lats4d: Function expression: re(@,0.25,0.25,bl) lats4d: upper air variables: t lats4d: writing to grads_grib file t25_1980.grb on 00Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z31JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z31JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z31JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z31JAN1980 t=0, month is Message-ID: The last command given below is not valid: d hgt.5(lev=500, time=3, lon.4,lat.4) First: the time specification should be t=3, not time=3. Using "time=" requires an absolute time specification, such as "time=00z24sep2009". Second: lon.4 and lat.4 are not dimension specifications. The command should be something like this: d hgt.5(lev=500,t=3,lon=,lat=) ----- Original Message ----- From: "claudio cortes" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, September 24, 2009 9:06:16 AM GMT -05:00 US/Canada Eastern Subject: Re: grads script Hi Tanusri ! When you work with multiple files, each variable of a file can be poltted adding a point and a numbre of a file opened, for example: If you wanto to plot geopotential heights of a file 1 just do: d hgt.1 If you want to plot geopotential heights of file 2 in level 500 Hpa just do: d hgt.2(lev=500) If you want to plot geopoential heights of file 3 in level 500 and time 2 justo do: d hgt.3(lev=500,time=2) If you want to plot gepotential heights of file 4 in level 500, time 3, lon -33 and lat -70, justo do: d hgt.4(lev=500, time=3, lon=-33,lat=-70) If you want to plot gepotential heights of file 5 in level 500, time 3 and the lon and lat applied to file 4, justo do: d hgt.5(lev=500, time=3, lon.4,lat.4) Best regards Tanusri 2009/9/24 tanusri chakraborty < munia_c at yahoo.co.in > sir/madam, I am doing research in IITM,Pune,India. I want do some ploting on grads. the problem is that I want to open more than two nc file which contaning same variable say OLR. so i want to average that variable from those different file grid wise and plot one average graph. Thanking you. Tanusri Chakraborty Research Fellow IITM,Pune -- Yahoo! India has a new look. Take a sneak peek . -- 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 ela at COLA.IGES.ORG Thu Sep 24 18:41:57 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Thu, 24 Sep 2009 18:41:57 -0400 Subject: lats4d? In-Reply-To: <181917450.88791253832092637.JavaMail.root@mail.iges.org> Message-ID: Hello Tatiane, There is one very significant error message that you may have missed: ... Format error in user defined function table: Processing function name: File name is: /usr/local/grads/udf/udft ... I am not familiar with setting up UDFs but the presence of this error message means something is going wrong. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "tatiane felinto" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, September 24, 2009 3:13:12 PM GMT -05:00 US/Canada Eastern Subject: lats4d? Hello users I have a file with resolution of 1.125X1.125 with 23 levels and spacing in x between 140W to 30E and 90S and between the 30N. I want to do a regridding to a grid 0.25X0.25 and reduce the number of levels. I tried using lats4d and gave the following command: gradsnc -blc 'run lats4d.gs -i /media/TATIANE/era40/temp/t_1980.ctl -o t25_1980 -format grads_grib -mxtimes 1464 -levs 1000 850 -time 00z01jan1980 18z31jan1980 -de era025.ctl -func re(@,0.25,0.25,bl) -v -q' This command runs without errors, creating the .grb,. ctl and .gmp..... However, when viewing the picture, note that the information is not correct. Does anyone have any idea how can I solve this problem? Below the two ctl used on the command line and the message of the grads. Attached is a picture generated with the result of regrid. Ah ... I am using the grads1.9.0-rc1 Thanks Tatiane Felinto t_1980.ctl dset ^t_1980.grb title temperature undef 1e+20 dtype grib index ^t_1980.gmp xdef 188 linear -180.000000 1.125000 ydef 108 linear -90.000000 1.125000 zdef 23 levels 1000 925 850 775 700 600 500 400 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1 tdef 1464 linear 0Z1jan1980 6hr vars 1 t 23 1,100 ** (profile) Temperature K [] endvars ************************************************************************************* era025.ctl DSET nofile title Template GrADS for regridding options template undef 1e+20 xdef 301 linear -95 0.25 ydef 301 linear -60 0.25 zdef 1 levels 1000 tdef 124 linear 00z1jan1980 6hr vars 1 var 0 0 generic sfc variable endvars *************************************************************************************************** Grid Analysis and Display System (GrADS) Version 1.9.0-rc1 Copyright (c) 1988-2007 by Brian Doty and IGES Center for Ocean-Land-Atmosphere Studies (COLA) Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v1.9.0-rc1 32-bit little-endian readline sdf/xdf netcdf lats athena printim Issue 'q config' command for more information. Format error in user defined function table: Processing function name: File name is: /usr/local/grads/udf/udft GX Package Initialization: Size = 11 8.5 Running in Batch mode lats4d: Version 2.0.1 of 12 Jan 2009 No hardcopy metafile open All files closed; all defined objects released All GrADS attributes have been reinitialized lats4d: Data file is File 1 : file created by grads using lats4d available from http://dao.gsfc.nasa.gov/software/grads/lats4d/ Descriptor: /media/TATIANE/era40/temp/t_1980.ctl Binary: /media/TATIANE/era40/temp/t_1980.grb Type = Gridded Xsize = 188 Ysize = 108 Zsize = 23 Tsize = 1464 Number of Variables = 1 t 23 1 ** (profile) Temperature K [] lats4d: Dimension environment file is File 2 : Template GrADS for regridding Descriptor: era025.ctl Binary: nofile Type = Gridded Xsize = 301 Ysize = 301 Zsize = 1 Tsize = 124 Number of Variables = 1 var 0 0 generic sfc variable lats4d: creating LATS PARAMETER TABLE file .grads.lats.table lats4d: time range: 00Z01JAN1980 18Z31JAN1980 by 1, delta t: 6 hourly lats4d: vertical levels: 1000 850 lats4d: using PRESSURE for vertical coordinate lats4d: latitudinal range: -60 15 lats4d: longitudinal range: -95 -20 lats4d: Function expression: re(@,0.25,0.25,bl) lats4d: upper air variables: t lats4d: writing to grads_grib file t25_1980.grb on 00Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z01JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z02JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z03JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z04JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z05JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z06JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z07JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z08JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z09JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z10JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z11JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z12JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z13JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z14JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z15JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z16JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z17JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z18JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z19JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z20JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z21JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z22JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z23JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z24JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z25JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z26JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z27JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z28JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z29JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z30JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 00Z31JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 06Z31JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 12Z31JAN1980 lats4d: writing to grads_grib file t25_1980.grb on 18Z31JAN1980 t=0, month is Message-ID: oh! thats right, thanks for the correction. 2009/9/24 Eric Altshuler : > The last command given below is not valid: > > d hgt.5(lev=500, time=3, lon.4,lat.4) > > First: the time specification should be t=3, not time=3. Using "time=" requires an absolute time specification, such as "time=00z24sep2009". > Second: lon.4 and lat.4 are not dimension specifications. The command should be something like this: > > d hgt.5(lev=500,t=3,lon=,lat=) > > ----- Original Message ----- > From: "claudio cortes" > To: GRADSUSR at LIST.CINECA.IT > Sent: Thursday, September 24, 2009 9:06:16 AM GMT -05:00 US/Canada Eastern > Subject: Re: grads script > > Hi Tanusri ! > > When you work with multiple files, each variable of a file can be poltted adding a point and a numbre of a file opened, for example: > > If you wanto to plot geopotential heights of a file 1 just do: > > d hgt.1 > > If you want to plot geopotential heights of file 2 in level 500 Hpa just do: > > d hgt.2(lev=500) > > If you want to plot geopoential heights of file 3 in level 500 and time 2 justo do: > > d hgt.3(lev=500,time=2) > > If you want to plot gepotential heights of file 4 in level 500, time 3, lon -33 and lat -70, justo do: > > d hgt.4(lev=500, time=3, lon=-33,lat=-70) > > If you want to plot gepotential heights of file 5 in level 500, time 3 and the lon and lat applied to file 4, justo do: > > d hgt.5(lev=500, time=3, lon.4,lat.4) > > Best regards Tanusri > > > > 2009/9/24 tanusri chakraborty < munia_c at yahoo.co.in > > > > > sir/madam, > I am doing research in IITM,Pune,India. I want do some ploting on grads. the > problem is that I want to open more than two nc file which contaning same variable say > OLR. so i want to average that variable from those different file grid wise and plot > one average graph. > Thanking you. > Tanusri Chakraborty > Research Fellow > IITM,Pune > -- > > > > > > > Yahoo! India has a new look. Take a sneak peek . > > > -- > 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) > -- 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 yi_zhou01 at YAHOO.CA Thu Sep 24 21:25:53 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Thu, 24 Sep 2009 18:25:53 -0700 Subject: create a ctl for a subset of NARR data Message-ID: Hi group member, Could you please help me to solve the problem? > My grads version: Grads2.0a3 under Window XP 2002 > >I download a subset data of NARR A (every 3 hours time step per day) from: http://nomads.ncdc.noaa.gov/cgi-bin/ncdc-ui/define-collection.pl?model_sys=narr&model_name=narr-a&grid_name=221 In order to simplification, I just download one variable (hgtpre), and one level (500hpa), when I use g2ctl.pl to create .ctl file, it shows that: either ls.grb is missing or not a grib file or wgrib2 is not on your path or wgrib2 is too old. Please tell me how to deal with this problem, thanks a lot. BTW, I attached my grib data as well, please try it for me. Best regards, Emily, York University, Toronto, Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090924/e6da4816/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: ls.grb Type: application/octet-stream Size: 142846 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090924/e6da4816/attachment.obj From ela at COLA.IGES.ORG Thu Sep 24 22:46:30 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Thu, 24 Sep 2009 22:46:30 -0400 Subject: create a ctl for a subset of NARR data In-Reply-To: <477904021.89191253846505889.JavaMail.root@mail.iges.org> Message-ID: Hi Emily, Your file is a GRIB1 file, but you are trying to use GRIB2 tools (g2ctl and wgrib2). You need grib2ctl.pl (download it from http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html) and wgrib (the wgrib executable is included in GrADS binary distributions, see http://grads.iges.org/grads/downloads.html, or you can build it from source which is at http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html). Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, September 24, 2009 9:25:53 PM GMT -05:00 US/Canada Eastern Subject: create a ctl for a subset of NARR data Hi group member, Could you please help me to solve the problem? > My grads version: Grads2.0a3 under Window XP 2002 > >I download a subset data of NARR A (every 3 hours time step per day) from: http://nomads.ncdc.noaa.gov/cgi-bin/ncdc-ui/define-collection.pl?model_sys=narr&model_name=narr-a&grid_name=221 In order to simplification, I just download one variable (hgtpre), and one level (500hpa), when I use g2ctl.pl to create .ctl file, it shows that: either ls.grb is missing or not a grib file or wgrib2 is not on your path or wgrib2 is too old. Please tell me how to deal with this problem, thanks a lot. BTW, I attached my grib data as well, please try it for me. Best regards, Emily, York University, Toronto, Canada From lbyerle at YAHOO.COM Thu Sep 24 23:28:23 2009 From: lbyerle at YAHOO.COM (Lee Byerle) Date: Thu, 24 Sep 2009 20:28:23 -0700 Subject: lats4d? In-Reply-To: <2027142107.88811253832117102.JavaMail.root@mail.iges.org> Message-ID: While the udft may not be pointed to correctly, from my experience using lats4d it is a stand-alone script, not dependent upon udf in udf table. Lee On Sep 24, 2009, at 3:41 PM, Eric Altshuler wrote: > Hello Tatiane, > > There is one very significant error message that you may have missed: > > ... > Format error in user defined function table: > Processing function name: > File name is: /usr/local/grads/udf/udft > ... > > I am not familiar with setting up UDFs but the presence of this > error message means something is going wrong. > > Best regards, > > Eric L. Altshuler > Assistant Research Scientist > Center for Ocean-Land-Atmosphere Studies > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705-3106 > USA > > E-mail: ela at cola.iges.org > Phone: (301) 902-1257 > Fax: (301) 595-9793 > > ----- Original Message ----- > From: "tatiane felinto" > To: GRADSUSR at LIST.CINECA.IT > Sent: Thursday, September 24, 2009 3:13:12 PM GMT -05:00 US/Canada > Eastern > Subject: lats4d? > > Hello users > > I have a file with resolution of 1.125X1.125 with 23 levels and > spacing in x between 140W to 30E and 90S and between the 30N. I want > to do a regridding to a grid 0.25X0.25 and reduce the number of > levels. I tried using lats4d and gave the following command: > > > gradsnc -blc 'run lats4d.gs -i /media/TATIANE/era40/temp/t_1980.ctl -o > t25_1980 -format grads_grib -mxtimes 1464 -levs 1000 850 -time > 00z01jan1980 18z31jan1980 -de era025.ctl -func re(@,0.25,0.25,bl) -v > -q' > > > This command runs without errors, creating the .grb,. ctl and > .gmp..... However, when viewing the picture, note that the > information is not correct. Does anyone have any idea how can I solve > this problem? Below the two ctl used on the command line and the > message of the grads. Attached is a picture generated with the result > of regrid. > > Ah ... I am using the grads1.9.0-rc1 > > Thanks > > Tatiane Felinto > > t_1980.ctl > > dset ^t_1980.grb > title temperature > undef 1e+20 > dtype grib > index ^t_1980.gmp > xdef 188 linear -180.000000 1.125000 > ydef 108 linear -90.000000 1.125000 > zdef 23 levels > 1000 925 850 775 700 600 500 400 300 250 > 200 150 100 70 50 30 20 10 7 5 > 3 2 1 > tdef 1464 linear 0Z1jan1980 6hr > vars 1 > t 23 1,100 ** (profile) Temperature K [] > endvars > > > ********************************************************************** > *************** > > era025.ctl > > DSET nofile > title Template GrADS for regridding > options template > undef 1e+20 > xdef 301 linear -95 0.25 > ydef 301 linear -60 0.25 > zdef 1 levels 1000 > tdef 124 linear 00z1jan1980 6hr > vars 1 > var 0 0 generic sfc variable > endvars > > > ********************************************************************** > ***************************** > Grid Analysis and Display System (GrADS) Version 1.9.0-rc1 > Copyright (c) 1988-2007 by Brian Doty and IGES > Center for Ocean-Land-Atmosphere Studies (COLA) > Institute for Global Environment and Society (IGES) > GrADS comes with ABSOLUTELY NO WARRANTY > See file COPYRIGHT for more information > > Config: v1.9.0-rc1 32-bit little-endian readline sdf/xdf netcdf lats > athena printim > > Issue 'q config' command for more information. > > Format error in user defined function table: > Processing function name: > File name is: /usr/local/grads/udf/udft > GX Package Initialization: Size = 11 8.5 > Running in Batch mode > lats4d: Version 2.0.1 of 12 Jan 2009 > No hardcopy metafile open > All files closed; all defined objects released > All GrADS attributes have been reinitialized > lats4d: Data file is > File 1 : file created by grads using lats4d available from > http://dao.gsfc.nasa.gov/software/grads/lats4d/ > Descriptor: /media/TATIANE/era40/temp/t_1980.ctl > Binary: /media/TATIANE/era40/temp/t_1980.grb > Type = Gridded > Xsize = 188 Ysize = 108 Zsize = 23 Tsize = 1464 > Number of Variables = 1 > t 23 1 ** (profile) Temperature K [] > > lats4d: Dimension environment file is > File 2 : Template GrADS for regridding > Descriptor: era025.ctl > Binary: nofile > Type = Gridded > Xsize = 301 Ysize = 301 Zsize = 1 Tsize = 124 > Number of Variables = 1 > var 0 0 generic sfc variable > > lats4d: creating LATS PARAMETER TABLE file .grads.lats.table > lats4d: time range: 00Z01JAN1980 18Z31JAN1980 by 1, delta t: 6 hourly > lats4d: vertical levels: 1000 850 > lats4d: using PRESSURE for vertical coordinate > lats4d: latitudinal range: -60 15 > lats4d: longitudinal range: -95 -20 > lats4d: Function expression: re(@,0.25,0.25,bl) > lats4d: upper air variables: t > lats4d: writing to grads_grib file t25_1980.grb on 00Z01JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z01JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z01JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z01JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z02JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z02JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z02JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z02JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z03JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z03JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z03JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z03JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z04JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z04JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z04JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z04JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z05JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z05JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z05JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z05JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z06JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z06JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z06JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z06JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z07JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z07JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z07JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z07JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z08JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z08JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z08JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z08JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z09JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z09JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z09JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z09JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z10JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z10JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z10JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z10JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z11JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z11JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z11JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z11JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z12JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z12JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z12JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z12JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z13JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z13JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z13JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z13JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z14JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z14JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z14JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z14JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z15JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z15JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z15JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z15JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z16JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z16JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z16JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z16JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z17JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z17JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z17JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z17JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z18JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z18JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z18JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z18JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z19JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z19JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z19JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z19JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z20JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z20JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z20JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z20JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z21JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z21JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z21JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z21JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z22JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z22JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z22JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z22JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z23JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z23JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z23JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z23JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z24JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z24JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z24JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z24JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z25JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z25JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z25JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z25JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z26JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z26JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z26JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z26JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z27JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z27JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z27JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z27JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z28JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z28JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z28JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z28JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z29JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z29JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z29JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z29JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z30JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z30JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z30JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z30JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 00Z31JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 06Z31JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 12Z31JAN1980 > lats4d: writing to grads_grib file t25_1980.grb on 18Z31JAN1980 > t=0, month is > gribmap: Scanning binary GRIB file(s): > gribmap: Opening GRIB file t25_1980.grb > gribmap: Reached EOF > gribmap: Writing the map... > > LATS_GRIB: SUCCESS -- gribmap for GrADS/VCS seems to have worked... > > lats4d: created grads_grib file t25_1980.grb > lats4d: exiting from GrADS... > No hardcopy metafile open > GX package terminated From sushantpuranik at GMAIL.COM Fri Sep 25 03:35:01 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Fri, 25 Sep 2009 13:05:01 +0530 Subject: How to make composite plots In-Reply-To: <200909222020444681350@163.com> Message-ID: Thank you for hint. I tried d (ave(var,t=1,t=360,12)+ave(var,t=2,t=360,12)+ave(var,t=3,t=360,12))/3 after that i checked the result it gives average of three days only not for three months. Since i has ECMWF data at 6 hour interval in the monthly form (each file contain 1 month data). So i tried as per your suggestion but it gives ave of first three days of first file only and not for the three years file. Also i am facing the following problem [Sushant at localhost ~]$ gradsnc Grid Analysis and Display System (GrADS) Version 1.8SL11 Copyright (c) 1988-2001 by Brian Doty Center for Ocean-Land-Atmosphere Studies Institute for Global Environment and Society All Rights Reserved Config: v1.8SL11 32-bit little-endian readline sdf/xdf netcdf lats printim Issue 'q config' command for more information. Landscape mode? (no for portrait): GX Package Initialization: Size = 11 8.5 ga-> c *ga-> sdfopen /home/Sushant/Desktop/ECMWFdata/May2002data/u.nc * Scanning self-describing file: /home/Sushant/Desktop/ECMWFdata/May2002data/ u.nc Found 1 data variables in SDF file. Found displayable variable u with 29 levels in SDF file. SDF file /home/Sushant/Desktop/ECMWFdata/May2002data/u.nc is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 50 50 Time values set: 2002:5:1:0 2002:5:1:0 *ga-> sdfopen /home/Sushant/Desktop/ECMWFdata/May2001data/u.nc * Scanning self-describing file: /home/Sushant/Desktop/ECMWFdata/May2001data/ u.nc Found 1 data variables in SDF file. Found displayable variable u with 29 levels in SDF file. SDF file /home/Sushant/Desktop/ECMWFdata/May2001data/u.nc is open as file 2 ga-> set lev 1000 LEV set to 1000 1000 ga-> d u Contouring: -20 to 20 interval 5 ga-> c ga-> d u.2 *Data Request Warning: Request beyond file limits Entire grid contents are set to missing data Dimension ranges are: X = 1 240 Y = 1 121 Z = 29 29 T = 1461 124 Warning issued for variable = u.2 Cannot contour grid - all undefined values * ga-> c Now can you please solve this problem. Thank you again Sushant On Tue, Sep 22, 2009 at 5:50 PM, Yan Libin wrote: > d ave(var,t=1,t=360,12) > > d (ave(var,t=1,t=360,12)+ave(var,t=2,t=360,12)+ave(var,t=3,t=360,12))/3 > > > 2009-09-22 > ------------------------------ > Yan Libin > ------------------------------ > *????* sushant puranik > *?????* 2009-09-22 20:18:04 > *????* GRADSUSR > *???* > *???* How to make composite plots > Hello sir > I wish to make composite plot for 20 year period for each month (monthly > mean composite) and also want to make composite for season (seasonal > composite)(Dec-March). > Can you please give me help in this regard. > > > Thanking you > > Sushant > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090925/ac85913c/attachment.html From akhtarme at YAHOO.COM Fri Sep 25 06:06:01 2009 From: akhtarme at YAHOO.COM (Muhammad AKHTAR) Date: Fri, 25 Sep 2009 03:06:01 -0700 Subject: Regarding .CDF file display in grads In-Reply-To: <122503.31373.qm@web112418.mail.gq1.yahoo.com> Message-ID: Hi Dear, Mr. Dr. Muhammad Akhtar has been died on 02.009.2009. he was on bed for the last four months. May his soul be in peace. plz pray for his soul. Regards --- On Mon, 8/31/09, mizanur rahman wrote: > From: mizanur rahman > Subject: Regarding .CDF file display in grads > To: GRADSUSR at LIST.CINECA.IT > Date: Monday, August 31, 2009, 1:36 PM > > > > > > > > > > > > Dear > sir > I would like to introduce myself to you. I am a researcher > in > the field of Meteorology. I downloaded CRU data from > ICTP web > site that is linked with the CRU web site. This CRU data is > CRUPRE.CDF fomat. How do display .CRF file in Grads? > I know how to display .nc file in grads but I tried several > times to > display in grads to .CDF file but I could not success. > Please let > me know how to display .CDF file in grads. > > Best > wishes > > Rahman > > Bangladesh > > > > > > From koletsis at METEO.NOA.GR Fri Sep 25 09:48:01 2009 From: koletsis at METEO.NOA.GR (Ioannis Koletsis) Date: Fri, 25 Sep 2009 16:48:01 +0300 Subject: Plotting station data Message-ID: Dear Grads users, I want to plot barbs from a .txt file with the following structure: lat | lon | u | v | date Which is the easiest way to crete the .dat file in order to plot the wind barbs? I have already a fortan file and the relative .ctl file, which created by Dr. Wang Xiucheng (attached files), but I have problem in compilation process, due to the recordtype=stream command Also, I have f90 and f77 platform...... Can you please give me any help?? Thanks in advance Ioannis ----------------------------------------------------------------------------------- Ioannis Koletsis National Observatory of Athens Institute for Environmental Research Lofos Koufou 15236-Penteli Athens-Greece Tel: (+30) 210 8109140 e-mail: koletsis at meteo.noa.gr ikoletsis at gmail.com ----------------------------------------------------------------------------------------------------- http://www.noa.gr/forecast (NOA Weather forecasts in English) http://www.meteo.gr (NOA Weather forecasts in Greek) ----------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090925/eb9a9e76/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: quikscat.f Type: application/octet-stream Size: 1013 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090925/eb9a9e76/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: quikscat.ctl Type: application/octet-stream Size: 206 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090925/eb9a9e76/attachment-0001.obj From Isabella.Bovolo at NEWCASTLE.AC.UK Fri Sep 25 10:32:21 2009 From: Isabella.Bovolo at NEWCASTLE.AC.UK (Isabella Bovolo) Date: Fri, 25 Sep 2009 15:32:21 +0100 Subject: Entire Grid Undefined In-Reply-To: Message-ID: Dear all, I am trying to open multiple grib files (on a regular grid) and display the contents using grads but it seems I can only display the contents of the first file that is opened. Trying to display other files results in an error, 'Cannot contour grid - all undefined values' and the display screen reads 'Entire Grid Undefined'. I've checked that all the files display correctly on their own (ie if opened as the first file). Also I've managed to open multiple .nc files correctly. Can anyone help with this error please? I am using grads on cygwin and the following is an example of my session. $ grads Grid Analysis and Display System (GrADS) Version 2.0.a7 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 little-endian readline printim grib2 netcdf hdf4-sds hdf5 athena geotiff Issue 'q config' command for more information. Landscape mode? ('n' for portrait): GX Package Initialization: Size = 11 8.5 ga-> open gpfs196401modacp.ctl Scanning description file: gpfs196401modacp.ctl Data file gpfs196401modacp.grb is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 1 1 Time values set: 1964:1:15:12 1964:1:15:12 E set to 1 1 ga-> open gpfs196402modacp.ctl Scanning description file: gpfs196402modacp.ctl Data file gpfs196402modacp.grb is open as file 2 ga-> q file 1 File 1 : ^gpfs196401modacp.grb Descriptor: gpfs196401modacp.ctl Binary: gpfs196401modacp.grb Type = Gridded Xsize = 360 Ysize = 181 Zsize = 1 Tsize = 1 Esize = 1 Number of Variables = 1 cp 0 143 Convective precipitation (accum.) (m) ga-> q file 2 File 2 : ^gpfs196402modacp.grb Descriptor: gpfs196402modacp.ctl Binary: gpfs196402modacp.grb Type = Gridded Xsize = 360 Ysize = 181 Zsize = 1 Tsize = 1 Esize = 1 Number of Variables = 1 cp 0 143 Convective precipitation (accum.) (m) ga-> d cp.1 Contouring: -0 to 0.005 interval 0.0005 ga-> d cp.2 Data Request Warning: Request is completely outside file limits Entire grid contents are set to missing data Grid limits of file: X = 1 360 Y = 1 181 Z = 1 1 T = 1 1 E = 1 1 Grid limits of request: X = 1 361 Y = 1 181 Z = 1 1 T = 0 0 E = 1 1 Warning issued for variable = cp.2 Cannot contour grid - all undefined values Thank you for any help. Best wishes, Isabella ------- Dr. C. Isabella Bovolo Email: Isabella.Bovolo at ncl.ac.uk Tel: +44 191 222 8599 Fax: +44 191 222 6669 School of Civil Engineering and Geosciences, Newcastle University, NE1 7RU, England, UK From jma at COLA.IGES.ORG Fri Sep 25 10:45:54 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 25 Sep 2009 10:45:54 -0400 Subject: Entire Grid Undefined In-Reply-To: Message-ID: On Sep 25, 2009, at 10:32 AM, Isabella Bovolo wrote: > > Grid limits of file: X = 1 360 Y = 1 181 Z = 1 1 T = 1 1 E > = 1 1 > Grid limits of request: X = 1 361 Y = 1 181 Z = 1 1 T = 0 0 E > = 1 1 Your time dimension is set to the first time of the first file, but your second file is not defined at that time. An excerpt from the doc page http://iges.org/grads/gadoc/variable.html : "When you specify a dimension in grid units, GrADS always converts it to world coordinates. In general, this conversion is done using the scaling of the default file. The only exception to this rule is in this case, when a grid coordinate (x, y, z, t, or e) is supplied within a dimexpr as part of a variable specification. In the case of this special exception, the conversion is done using the scaling for the file that variable is to be taken from." ga-> d cp.2(t=1) should give you the display you're looking for. Your life would be a lot easier if you aggregate these data files together into a single using templating. http://iges.org/grads/gadoc/templates.html -- 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/20090925/654d8ea7/attachment.html From Isabella.Bovolo at NEWCASTLE.AC.UK Fri Sep 25 10:51:58 2009 From: Isabella.Bovolo at NEWCASTLE.AC.UK (Isabella Bovolo) Date: Fri, 25 Sep 2009 15:51:58 +0100 Subject: Entire Grid Undefined In-Reply-To: <6AD2C784-E3DD-40B5-8528-DA0DABE1CF2D@cola.iges.org> Message-ID: Dear Jennifer, thank you very much for your useful reply. Isabella ------- Dr. C. Isabella Bovolo Email: Isabella.Bovolo at ncl.ac.uk Tel: +44 191 222 8599 Fax: +44 191 222 6669 School of Civil Engineering and Geosciences, Newcastle University, NE1 7RU, England, UK On Fri, 25 Sep 2009, Jennifer Adams wrote: > > On Sep 25, 2009, at 10:32 AM, Isabella Bovolo wrote: > >> >> Grid limits of file: X = 1 360 Y = 1 181 Z = 1 1 T = 1 1 E >> = 1 1 >> Grid limits of request: X = 1 361 Y = 1 181 Z = 1 1 T = 0 0 E >> = 1 1 > > Your time dimension is set to the first time of the first file, but > your second file is not defined at that time. > > An excerpt from the doc page http://iges.org/grads/gadoc/variable.html : > "When you specify a dimension in grid units, GrADS always converts it > to world coordinates. In general, this conversion is done using the > scaling of the default file. The only exception to this rule is in > this case, when a grid coordinate (x, y, z, t, or e) is supplied > within a dimexpr as part of a variable specification. In the case of > this special exception, the conversion is done using the scaling for > the file that variable is to be taken from." > > ga-> d cp.2(t=1) > > should give you the display you're looking for. > > Your life would be a lot easier if you aggregate these data files > together into a single using templating. > http://iges.org/grads/gadoc/templates.html > > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > From Charles.Seman at NOAA.GOV Fri Sep 25 18:59:17 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Fri, 25 Sep 2009 18:59:17 -0400 Subject: How to make composite plots In-Reply-To: <72e8bd3d0909250035j7be991e9o291d0941ef44aea7@mail.gmail.com> Message-ID: Sushant, Please see http://grads.iges.org/grads/gadoc/gradcomdmodify.html which shows how to make a climatology, and then if desired, to modify it for calculating anomalies... I hope this helps, Chuck sushant puranik wrote: > Thank you for hint. > I tried > d (ave(var,t=1,t=360,12)+ave(var,t=2,t=360,12)+ave(var,t=3,t=360,12))/3 > after that i checked the result it gives average of three days only > not for three months. > > Since i has ECMWF data at 6 hour interval in the monthly form (each > file contain 1 month data). > So i tried as per your suggestion but it gives ave of first three days > of first file only and not for the three years file. > > Also i am facing the following problem > > [Sushant at localhost ~]$ gradsnc > > Grid Analysis and Display System (GrADS) Version 1.8SL11 > Copyright (c) 1988-2001 by Brian Doty > Center for Ocean-Land-Atmosphere Studies > Institute for Global Environment and Society > All Rights Reserved > > Config: v1.8SL11 32-bit little-endian readline sdf/xdf netcdf lats printim > > Issue 'q config' command for more information. > > Landscape mode? (no for portrait): > GX Package Initialization: Size = 11 8.5 > ga-> c > *ga-> sdfopen /home/Sushant/Desktop/ECMWFdata/May2002data/u.nc > * > Scanning self-describing file: > /home/Sushant/Desktop/ECMWFdata/May2002data/u.nc > Found 1 data variables in SDF file. > Found displayable variable u with 29 levels in SDF file. > SDF file /home/Sushant/Desktop/ECMWFdata/May2002data/u.nc > is open as file 1 > LON set to 0 360 > LAT set to -90 90 > LEV set to 50 50 > Time values set: 2002:5:1:0 2002:5:1:0 > *ga-> sdfopen /home/Sushant/Desktop/ECMWFdata/May2001data/u.nc > * > Scanning self-describing file: > /home/Sushant/Desktop/ECMWFdata/May2001data/u.nc > Found 1 data variables in SDF file. > Found displayable variable u with 29 levels in SDF file. > SDF file /home/Sushant/Desktop/ECMWFdata/May2001data/u.nc > is open as file 2 > ga-> set lev 1000 > LEV set to 1000 1000 > ga-> d u > Contouring: -20 to 20 interval 5 > ga-> c > ga-> d u.2 > *Data Request Warning: Request beyond file limits > Entire grid contents are set to missing data > Dimension ranges are: X = 1 240 Y = 1 121 Z = 29 29 T = 1461 124 > Warning issued for variable = u.2 > Cannot contour grid - all undefined values * > ga-> c > > Now can you please solve this problem. > > > > Thank you again > > > Sushant > > > On Tue, Sep 22, 2009 at 5:50 PM, Yan Libin > wrote: > > d ave(var,t=1,t=360,12) > d > (ave(var,t=1,t=360,12)+ave(var,t=2,t=360,12)+ave(var,t=3,t=360,12))/3 > 2009-09-22 > ------------------------------------------------------------------------ > Yan Libin > ------------------------------------------------------------------------ > *????* sushant puranik > *?????* 2009-09-22 20:18:04 > *????* GRADSUSR > *???* > *???* How to make composite plots > Hello sir > I wish to make composite plot for 20 year period for each month > (monthly mean composite) and also want to make composite for > season (seasonal composite)(Dec-March). > Can you please give me help in this regard. > > > Thanking you > > Sushant > > -- 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 spc_meteor at YAHOO.COM.BR Fri Sep 25 23:16:59 2009 From: spc_meteor at YAHOO.COM.BR (Saulo Carvalho) Date: Fri, 25 Sep 2009 20:16:59 -0700 Subject: Res: Doing templates from .nc files In-Reply-To: <4ABAABAA.9070504@ec.gc.ca> Message-ID: Ajaya, Now it's working. Thanks! ________________________________________ Saulo Carvalho SEMA Diretoria de Recursos H?dricos ________________________________ De: Ajaya Mohan Para: GRADSUSR at LIST.CINECA.IT Enviadas: Quarta-feira, 23 de Setembro de 2009 20:13:46 Assunto: Re: Doing templates from .nc files Try this, I am using Version 1.9b4, it should work.... dset ^avhrr-only-v2.%y4%m2%d2.nc options template dtype netcdf undef -9.96921e+36 _FillValue unpack scale_factor add_offset title Daily-OI-V2, final, Data (Ship, Buoy, AVHRR, GSFC-ice) xdef 1440 linear 0.125 0.25 ydef 720 linear -89.875 0.25 zdef 1 linear 1 1 tdef 40 linear 00Z10SEP1982 1dy vars 4 sst=>sst 0 t,z,y,x Daily sea surface temperature anom=>anom 0 t,z,y,x Daily sea surface temperature anomalies err=>err 0 t,z,y,x Estimated error standard deviation of analysed_sst ice=>ice 0 t,z,y,x Sea ice concentration endvars ajaya Saulo Carvalho wrote: > Hello everybody, > > > I'm working with avhrr data files available in > ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my > surprise, when I make a .ctl file in order to template the .nc's, > it doesn' t work. As these files has 4 variables, it may have a problem > in making the template. > > > Is there an alternative way to solve this problem? > > > ________________________________________ > Saulo Carvalho > > > SEMA > Diretoria de Recursos H?dricos ____________________________________________________________________________________ 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/20090925/71fd4842/attachment.html From arabonis at YAHOO.COM Sat Sep 26 11:21:34 2009 From: arabonis at YAHOO.COM (Jean Pierre Arabonis) Date: Sat, 26 Sep 2009 08:21:34 -0700 Subject: Nomads GDS In-Reply-To: <545524.38284.qm@web110707.mail.gq1.yahoo.com> Message-ID: Good Day all ?? Has anyone else been having problems with the nomads GDS server: http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/ For the last few days I have been having problems accessing it with both grads 1.8 and 2.6 where I can see the file etc but when I actiually try to display something it freezes. ?I have contacted them but their helpdesk seems to think its fine. ?Other gds sites work. Any Ideas ? Jean Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090926/665fd306/attachment.html From arlindo.dasilva at GMAIL.COM Sat Sep 26 18:18:15 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 26 Sep 2009 15:18:15 -0700 Subject: GS files in GrADS 2.0.a5.oga.5 In-Reply-To: <10088079.281711253674386356.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: On Tue, Sep 22, 2009 at 7:53 PM, Hyacinth Cyprain Nnamchi < hc.nnamchi at lasg.iap.ac.cn> wrote: > > Dear Arlindo, > The script file started working when I changed the environment variables: > GADDIR and GASCRP. They were on "dat" and "lib" as shown on the GrADS page ( > http://www.iges.org/grads/downloads.html) because I uninstalled ver 1.8 > before installing GrADS 2.0.a5.oga.5. > > What made the script files to start working on my system (Windos XP) was > changing: > GADDIR to C:\OpenGrADS\Contents\Resources\SupportData > GASCRP to C:\OpenGrADS\Contents\Resources\Scripts > > This makes sense. As I said, no need to define these as it will detect it automatically (unless you have it set, in which case it will use what you supply.) Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090926/9e9a3114/attachment.html From yi_zhou01 at YAHOO.CA Mon Sep 28 13:47:40 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Mon, 28 Sep 2009 10:47:40 -0700 Subject: display hgt.200812.nc Message-ID: Hi group members, I face a problem when I display 500 hpa geopotential height chart, it shows wrong data. My gs file is: 'reinit' 'open d:\gradsfile\ncdata\hgt200812.ddf' 'set grads off' 'set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' ==================== My ddf is as below: DSET d:\gradsfile\ncdata\hgt.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor add_offset PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ?650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 hgt 29 t,z,y,x? geopotential_height lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars ============= My grads version: Grads 2.0 a3, window xp I notice that the contours laber values are like -25900, -25800..... I think the value is wrong. Then I check ncdump information, the hgt value from ncdump also shows like -25900,..... Is there some one knowing what wrong with this?Thanks very much. Regards, Emily York University, Toronto, Canada. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090928/a26002bf/attachment.html From klevey at CUSTOMWEATHER.COM Mon Sep 28 13:59:05 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Mon, 28 Sep 2009 10:59:05 -0700 Subject: display hgt.200812.nc (netcdf offsets and scaling factors) In-Reply-To: <483436.43653.qm@web88106.mail.re2.yahoo.com> Message-ID: MON 28SEP09: 1055PDT Dear Emily, Not sure what dataset you are using, but here is a ncdump of a NCEP Reanalysis netcdf file of SLP: ncdump -c slp.2009.nc netcdf slp.2009 { dimensions: lon = 144 ; lat = 73 ; time = UNLIMITED ; // (261 currently) variables: float lat(lat) ; lat:units = "degrees_north" ; lat:actual_range = 90.f, -90.f ; lat:long_name = "Latitude" ; float lon(lon) ; lon:units = "degrees_east" ; lon:long_name = "Longitude" ; lon:actual_range = 0.f, 357.5f ; double time(time) ; time:units = "hours since 1-1-1 00:00:0.0" ; time:long_name = "Time" ; time:actual_range = 17601816., 17608056. ; time:delta_t = "0000-00-01 00:00:00" ; time:avg_period = "0000-00-01 00:00:00" ; short slp(time, lat, lon) ; slp:long_name = "mean Daily Sea Level Pressure" ; slp:valid_range = 87000.f, 115000.f ; slp:actual_range = 93602.5f, 110540.f ; slp:units = "Pascals" ; slp:add_offset = 119765.f ; slp:scale_factor = 1.f ; slp:missing_value = 32766s ; slp:precision = 0s ; slp:least_significant_digit = -1s ; slp:GRIB_id = 2s ; slp:GRIB_name = "PRMSL" ; slp:var_desc = "Sea Level Pressure\n", "P" ; slp:dataset = "NCEP Reanalysis Daily Averages" ; slp:level_desc = "Sea Level\n", "I" ; slp:statistic = "Mean\n", "M" ; slp:parent_stat = "Individual Obs\n", "I" ; // global attributes: :Conventions = "COARDS" ; :title = "mean daily NMC reanalysis (2009)" ; :history = "created 2009/01 by Hoop (netCDF2.3)" ; :description = "Data is from NMC initialized reanalysis\n", "(4x/day). It consists of most variables interpolated to\n", "pressure surfaces from model (sigma) surfaces." ; :platform = "Model" ; What one has to do to get the correct value is apply both the scale factor and offset value to the data, so for example, if I wanted to display SLP, I'd need to do this for example: 'define mslp1 = slp + 119765' actual value = value * scaling factor + offset, in the example above, the scaling factor is 1, hence I merely added the offset. Your netcdf file probably has these values which you merely need to apply as shown above. 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 Sep 28, 2009, at 09/28/09 - 10:47 AM, Emily wrote: > Hi group members, > > I face a problem when I display 500 hpa geopotential height chart, > it shows wrong data. > > My gs file is: > 'reinit' > 'open d:\gradsfile\ncdata\hgt200812.ddf' > 'set grads off' > 'set grid off' > 'set lon 220 310' > 'set lat 20 60' > 'set lev 500' > 'set time 09z28dec2008' > 'd hgt' > ==================== > My ddf is as below: > DSET d:\gradsfile\ncdata\hgt.200812.nc > DTYPE netcdf > TITLE NARR 4D field Lambert Conformal Conic projection > UNDEF 32766 missing_value > UNPACK scale_factor add_offset > PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 > XDEF 615 linear 150 0.3333 > YDEF 255 linear 2 0.3333 > ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, > 750, 725, 700, > 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, > 150, 125, 100 > tdef 248 linear 00:00z01dec2008 3hr > vars 3 > hgt 29 t,z,y,x geopotential_height > lat=>glat 0 y,x Latitude > lon=>glon 0 y,x Longitude > endvars > ============= > My grads version: Grads 2.0 a3, > window xp > > I notice that the contours laber values are like -25900, -25800..... > I think the value is wrong. Then I check ncdump information, the hgt > value from ncdump also shows like -25900,..... > > Is there some one knowing what wrong with this?Thanks very much. > > Regards, > > Emily > York University, Toronto, Canada. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090928/674bb328/attachment.html From claudiomet at GMAIL.COM Mon Sep 28 15:02:28 2009 From: claudiomet at GMAIL.COM (claudio cortes) Date: Mon, 28 Sep 2009 15:02:28 -0400 Subject: display hgt.200812.nc In-Reply-To: <483436.43653.qm@web88106.mail.re2.yahoo.com> Message-ID: try sdfopen instead open 2009/9/28 Emily > Hi group members, > > I face a problem when I display 500 hpa geopotential height chart, it shows > wrong data. > > My gs file is: > 'reinit' > 'open d:\gradsfile\ncdata\hgt200812.ddf' > 'set grads off' > 'set grid off' > 'set lon 220 310' > 'set lat 20 60' > 'set lev 500' > 'set time 09z28dec2008' > 'd hgt' > ==================== > My ddf is as below: > DSET d:\gradsfile\ncdata\hgt.200812.nc > DTYPE netcdf > TITLE NARR 4D field Lambert Conformal Conic projection > UNDEF 32766 missing_value > UNPACK scale_factor add_offset > PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 > XDEF 615 linear 150 0.3333 > YDEF 255 linear 2 0.3333 > ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, > 700, > 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, > 100 > tdef 248 linear 00:00z01dec2008 3hr > vars 3 > hgt 29 t,z,y,x geopotential_height > lat=>glat 0 y,x Latitude > lon=>glon 0 y,x Longitude > endvars > ============= > My grads version: Grads 2.0 a3, > window xp > > I notice that the contours laber values are like -25900, -25800..... I > think the value is wrong. Then I check ncdump information, the hgt value > from ncdump also shows like -25900,..... > > Is there some one knowing what wrong with this?Thanks very much. > > Regards, > > Emily > York University, Toronto, Canada. > > > -- 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/20090928/f287ffae/attachment.html From Javier.Corripio at UIBK.AC.AT Mon Sep 28 15:03:50 2009 From: Javier.Corripio at UIBK.AC.AT (Javier G. Corripio) Date: Mon, 28 Sep 2009 21:03:50 +0200 Subject: fwrite wrap data Message-ID: Dear all, I would appreciate some advice with fwrite. I am trying to write some data which is a subset of a larger grib. It seems that the data is wrapped around in a peculiar way when using fwrite. Here I show and example for clarity, the topography of the Alps from the GFS (hgtsfc). When using the data written by fwrite it will display with the eastern end on the northwestern corner The ctl files seems to be OK, so I wonder if I failed to specify any settings for fwrite. These are the commands: open gfs.ctl set lon 0 20 set lat 40 50 d hgtsfc;************** first map correct set gxout fwrite set fwrite alpsset.dat d hgtsfc disaple fwrite reinit open alpsset.ctl d topo;**************** second map wrapped around ctl file for subset: ga-> q ctlinfo dset alpsset.dat title undef 9.999e+20 xdef 40 linear 0 0.5 ydef 20 linear 40 0.5 zdef 1 linear 1013 1 tdef 1 linear 00Z04SEP2009 60mn vars 1 topo 0 1,1,0,0 surface height (m) [] endvars original ctl file: ga-> q ctlinfo 2 dset gfs title gfs undef 9.999e+20 xdef 720 linear 0 0.5 ydef 361 linear -90 0.5 zdef 26 levels 1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100 70 50 30 20 10 tdef 51 linear 00Z28SEP2009 180mn vars 52 ..... endvars Image of what it should be and what I obtained: http://tinyurl.com/y8f2xcq or in a schematic way, THIS: * **** ******** ************ ***************** **************************** ***************** ************ ******** **** * BECOMES THIS: *** ************** *** * **** ******** ************ ************** ************** ************** ************ ******** **** * Thanks a lot for any help. Javier From michael.l.sestak at NAVY.MIL Mon Sep 28 16:17:31 2009 From: michael.l.sestak at NAVY.MIL (Sestak, Michael L CIV 63134) Date: Mon, 28 Sep 2009 13:17:31 -0700 Subject: fwrite wrap data In-Reply-To: <20090928190508.04A5F201BF@mx2.cineca.it> Message-ID: When using fwrite you should use 'set x' and 'set y' instead of 'set lat' and 'set lon' so the number of grid points in each dimension is certain. With set lat and set lon, what a person thinks is the last x grid position may not be written due to roundoff error, especially for fine resolution grids. Michael Sestak Fleet Numerical Meteorology and Oceanography Center Monterey, CA From: Javier G. Corripio Sent: Mon 9/28/2009 12:03 To: GRADSUSR at LIST.CINECA.IT Subject: fwrite wrap data Dear all, I would appreciate some advice with fwrite. I am trying to write some data which is a subset of a larger grib. It seems that the data is wrapped around in a peculiar way when using fwrite. Here I show and example for clarity, the topography of the Alps from the GFS (hgtsfc). When using the data written by fwrite it will display with the eastern end on the northwestern corner The ctl files seems to be OK, so I wonder if I failed to specify any settings for fwrite. These are the commands: open gfs.ctl set lon 0 20 set lat 40 50 d hgtsfc;************** first map correct set gxout fwrite set fwrite alpsset.dat d hgtsfc disaple fwrite reinit open alpsset.ctl d topo;**************** second map wrapped around ctl file for subset: ga-> q ctlinfo dset alpsset.dat title undef 9.999e+20 xdef 40 linear 0 0.5 ydef 20 linear 40 0.5 zdef 1 linear 1013 1 tdef 1 linear 00Z04SEP2009 60mn vars 1 topo 0 1,1,0,0 surface height (m) [] endvars original ctl file: ga-> q ctlinfo 2 dset gfs title gfs undef 9.999e+20 xdef 720 linear 0 0.5 ydef 361 linear -90 0.5 zdef 26 levels 1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100 70 50 30 20 10 tdef 51 linear 00Z28SEP2009 180mn vars 52 ..... endvars Image of what it should be and what I obtained: http://tinyurl.com/y8f2xcq or in a schematic way, THIS: * **** ******** ************ ***************** **************************** ***************** ************ ******** **** * BECOMES THIS: *** ************** *** * **** ******** ************ ************** ************** ************** ************ ******** **** * Thanks a lot for any help. Javier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090928/6540157e/attachment.html From ela at COLA.IGES.ORG Mon Sep 28 16:37:36 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Mon, 28 Sep 2009 16:37:36 -0400 Subject: fwrite wrap data In-Reply-To: <1063202680.97351254170144701.JavaMail.root@mail.iges.org> Message-ID: From yi_zhou01 at YAHOO.CA Mon Sep 28 16:40:21 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Mon, 28 Sep 2009 13:40:21 -0700 Subject: display hgt.200812.nc In-Reply-To: <5f3ba4e00909281202u2a7571fbhbda2b9cf73cff2c0@mail.gmail.com> Message-ID: Hi Claudio, Kevin M Levey already figured out this problem for me. Thanks. Regards, Emily --- On Mon, 9/28/09, claudio cortes wrote: From: claudio cortes Subject: Re: display hgt.200812.nc To: GRADSUSR at LIST.CINECA.IT Received: Monday, September 28, 2009, 3:02 PM try sdfopen instead open 2009/9/28 Emily Hi group members, I face a problem when I display 500 hpa geopotential height chart, it shows wrong data. My gs file is: 'reinit' 'open d:\gradsfile\ncdata\hgt200812.ddf' 'set grads off' 'set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' ==================== My ddf is as below: DSET d:\gradsfile\ncdata\hgt.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor add_offset PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ?650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 hgt 29 t,z,y,x? geopotential_height lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars ============= My grads version: Grads 2.0 a3, window xp I notice that the contours laber values are like -25900, -25800..... I think the value is wrong. Then I check ncdump information, the hgt value from ncdump also shows like -25900,..... Is there some one knowing what wrong with this?Thanks very much. Regards, Emily York University, Toronto, Canada. ? -- 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/20090928/1924c638/attachment.html From Javier.Corripio at UIBK.AC.AT Mon Sep 28 17:05:31 2009 From: Javier.Corripio at UIBK.AC.AT (Javier G. Corripio) Date: Mon, 28 Sep 2009 23:05:31 +0200 Subject: fwrite wrap data Message-ID: Thanks a lot! Spot on, Erik, it was that extra column multiplied by every row that made all the trouble. And thanks Michael, when I checked by q dim on a higher resolution set, set lat and set lon gives fractional values for X and Y which may cause trouble later. I owe you two a pint of beer (or many more) if we ever met. Cheers. Javier On Mon, 28 Sep 2009 16:37:36 -0400, Eric Altshuler wrote: >From looking at the plots, it seems that this is more than just a wraparound problem. The fields show significant differences aside from the wraparound. One possible problem might be the number of grid points in the xdef and ydef lines in the ctl file for the subset. The dimensions should be 41 and 21 rather than 40 and 20. > >Best regards, > >Eric L. Altshuler >Assistant Research Scientist >Center for Ocean-Land-Atmosphere Studies >4041 Powder Mill Road, Suite 302 >Calverton, MD 20705-3106 >USA > >E-mail: ela at cola.iges.org >Phone: (301) 902-1257 >Fax: (301) 595-9793 > >----- Original Message ----- >From: "Michael L CIV 63134 Sestak" >To: GRADSUSR at LIST.CINECA.IT >Sent: Monday, September 28, 2009 4:17:31 PM GMT -05:00 US/Canada Eastern >Subject: Re: fwrite wrap data > > > >When using fwrite you should use 'set x' and 'set y' instead of 'set lat' and 'set lon' so the number of grid points in each dimension is certain. With set lat and set lon, what a person thinks is the last x grid position may not be written due to roundoff error, especially for fine resolution grids. > >Michael Sestak >Fleet Numerical Meteorology and Oceanography Center >Monterey, CA > > > >From: Javier G. Corripio >Sent: Mon 9/28/2009 12:03 >To: GRADSUSR at LIST.CINECA.IT >Subject: fwrite wrap data > > >Dear all, > >I would appreciate some advice with fwrite. > >I am trying to write some data which is a subset of a larger grib. It seems that the data is wrapped >around in a peculiar way when using fwrite. > >Here I show and example for clarity, the topography of the Alps from the GFS (hgtsfc). When using >the data written by fwrite it will display with the eastern end on the northwestern corner > >The ctl files seems to be OK, so I wonder if I failed to specify any settings for fwrite. > >These are the commands: > >open gfs.ctl >set lon 0 20 >set lat 40 50 >d hgtsfc;************** first map correct >set gxout fwrite >set fwrite alpsset.dat >d hgtsfc >disaple fwrite >reinit >open alpsset.ctl >d topo;**************** second map wrapped around > > >ctl file for subset: > >ga-> q ctlinfo >dset alpsset.dat >title >undef 9.999e+20 >xdef 40 linear 0 0.5 >ydef 20 linear 40 0.5 >zdef 1 linear 1013 1 >tdef 1 linear 00Z04SEP2009 60mn >vars 1 >topo 0 1,1,0,0 surface height (m) [] >endvars > > > >original ctl file: > >ga-> q ctlinfo 2 >dset gfs >title gfs >undef 9.999e+20 >xdef 720 linear 0 0.5 >ydef 361 linear -90 0.5 >zdef 26 levels 1000 975 950 925 900 850 800 750 > 700 650 600 550 500 450 400 350 300 250 > 200 150 100 70 50 30 20 10 >tdef 51 linear 00Z28SEP2009 180mn >vars 52 >..... >endvars > >Image of what it should be and what I obtained: > >http://tinyurl.com/y8f2xcq > > >or in a schematic way, > >THIS: > >* >**** >******** >************ >***************** >**************************** >***************** >************ >******** >**** >* > > >BECOMES THIS: > >*** >************** >*** >* >**** >******** >************ >************** >************** >************** >************ >******** >**** >* > > >Thanks a lot for any help. > >Javier From ela at COLA.IGES.ORG Mon Sep 28 18:45:41 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Mon, 28 Sep 2009 18:45:41 -0400 Subject: fwrite wrap data In-Reply-To: <1284500319.97951254177869415.JavaMail.root@mail.iges.org> Message-ID: Javier, There is another situation where unwanted behavior can occur with fwrite. If you fwrite a global grid, be sure to set the dimension environment using 'set x' and 'set y' before doing the fwrite. For example, with a 0.5 degree (720x361) global grid, when you open the file in grads (and if it's the first file you open in a grads session), the initial dimension environment will be set to the following by default: lon: 0 to 360 (X from 1 to 721) lat: -90 to 90 (Y from 1 to 361) If you fwrite without changing the dimension environment, the resulting file will have 721x361 elements because the data for lon=0 (X=1) will be duplicated as an extra column (lon=360, X=721). To prevent this behavior and obtain a 720x361 array in the fwrite file, do this before the fwrite: set x 1 720 This will (in this case) set lon from 0 to 359.5 and prevent the wraparound behavior. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Javier G. Corripio" To: GRADSUSR at LIST.CINECA.IT Sent: Monday, September 28, 2009 5:05:31 PM GMT -05:00 US/Canada Eastern Subject: Re: fwrite wrap data Thanks a lot! Spot on, Erik, it was that extra column multiplied by every row that made all the trouble. And thanks Michael, when I checked by q dim on a higher resolution set, set lat and set lon gives fractional values for X and Y which may cause trouble later. I owe you two a pint of beer (or many more) if we ever met. Cheers. Javier On Mon, 28 Sep 2009 16:37:36 -0400, Eric Altshuler wrote: >From looking at the plots, it seems that this is more than just a wraparound problem. The fields show significant differences aside from the wraparound. One possible problem might be the number of grid points in the xdef and ydef lines in the ctl file for the subset. The dimensions should be 41 and 21 rather than 40 and 20. > >Best regards, > >Eric L. Altshuler >Assistant Research Scientist >Center for Ocean-Land-Atmosphere Studies >4041 Powder Mill Road, Suite 302 >Calverton, MD 20705-3106 >USA > >E-mail: ela at cola.iges.org >Phone: (301) 902-1257 >Fax: (301) 595-9793 > >----- Original Message ----- >From: "Michael L CIV 63134 Sestak" >To: GRADSUSR at LIST.CINECA.IT >Sent: Monday, September 28, 2009 4:17:31 PM GMT -05:00 US/Canada Eastern >Subject: Re: fwrite wrap data > > > >When using fwrite you should use 'set x' and 'set y' instead of 'set lat' and 'set lon' so the number of grid points in each dimension is certain. With set lat and set lon, what a person thinks is the last x grid position may not be written due to roundoff error, especially for fine resolution grids. > >Michael Sestak >Fleet Numerical Meteorology and Oceanography Center >Monterey, CA > > > >From: Javier G. Corripio >Sent: Mon 9/28/2009 12:03 >To: GRADSUSR at LIST.CINECA.IT >Subject: fwrite wrap data > > >Dear all, > >I would appreciate some advice with fwrite. > >I am trying to write some data which is a subset of a larger grib. It seems that the data is wrapped >around in a peculiar way when using fwrite. > >Here I show and example for clarity, the topography of the Alps from the GFS (hgtsfc). When using >the data written by fwrite it will display with the eastern end on the northwestern corner > >The ctl files seems to be OK, so I wonder if I failed to specify any settings for fwrite. > >These are the commands: > >open gfs.ctl >set lon 0 20 >set lat 40 50 >d hgtsfc;************** first map correct >set gxout fwrite >set fwrite alpsset.dat >d hgtsfc >disaple fwrite >reinit >open alpsset.ctl >d topo;**************** second map wrapped around > > >ctl file for subset: > >ga-> q ctlinfo >dset alpsset.dat >title >undef 9.999e+20 >xdef 40 linear 0 0.5 >ydef 20 linear 40 0.5 >zdef 1 linear 1013 1 >tdef 1 linear 00Z04SEP2009 60mn >vars 1 >topo 0 1,1,0,0 surface height (m) [] >endvars > > > >original ctl file: > >ga-> q ctlinfo 2 >dset gfs >title gfs >undef 9.999e+20 >xdef 720 linear 0 0.5 >ydef 361 linear -90 0.5 >zdef 26 levels 1000 975 950 925 900 850 800 750 > 700 650 600 550 500 450 400 350 300 250 > 200 150 100 70 50 30 20 10 >tdef 51 linear 00Z28SEP2009 180mn >vars 52 >..... >endvars > >Image of what it should be and what I obtained: > >http://tinyurl.com/y8f2xcq > > >or in a schematic way, > >THIS: > >* >**** >******** >************ >***************** >**************************** >***************** >************ >******** >**** >* > > >BECOMES THIS: > >*** >************** >*** >* >**** >******** >************ >************** >************** >************** >************ >******** >**** >* > > >Thanks a lot for any help. > >Javier From emirzaei at GMAIL.COM Tue Sep 29 00:40:42 2009 From: emirzaei at GMAIL.COM (ebrahim mirzaei) Date: Tue, 29 Sep 2009 08:10:42 +0330 Subject: display hgt.200812.nc In-Reply-To: <483436.43653.qm@web88106.mail.re2.yahoo.com> Message-ID: Hi Emily,If your data is netCDF, why don't you use sdfopen without .ddf or .ctl file: 'reinit' 'open d:\gradsfile\ncdata\hgt.200812.nc' 'set grads off' 'set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' On Mon, Sep 28, 2009 at 9:17 PM, Emily wrote: > Hi group members, > > I face a problem when I display 500 hpa geopotential height chart, it shows > wrong data. > > My gs file is: > 'reinit' > 'open d:\gradsfile\ncdata\hgt200812.ddf' > 'set grads off' > 'set grid off' > 'set lon 220 310' > 'set lat 20 60' > 'set lev 500' > 'set time 09z28dec2008' > 'd hgt' > ==================== > My ddf is as below: > DSET d:\gradsfile\ncdata\hgt.200812.nc > DTYPE netcdf > TITLE NARR 4D field Lambert Conformal Conic projection > UNDEF 32766 missing_value > UNPACK scale_factor add_offset > PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 > XDEF 615 linear 150 0.3333 > YDEF 255 linear 2 0.3333 > ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, > 700, > 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, > 100 > tdef 248 linear 00:00z01dec2008 3hr > vars 3 > hgt 29 t,z,y,x geopotential_height > lat=>glat 0 y,x Latitude > lon=>glon 0 y,x Longitude > endvars > ============= > My grads version: Grads 2.0 a3, > window xp > > I notice that the contours laber values are like -25900, -25800..... I > think the value is wrong. Then I check ncdump information, the hgt value > from ncdump also shows like -25900,..... > > Is there some one knowing what wrong with this?Thanks very much. > > Regards, > > Emily > York University, Toronto, Canada. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/0722cf7b/attachment.html From emirzaei at GMAIL.COM Tue Sep 29 00:42:10 2009 From: emirzaei at GMAIL.COM (ebrahim mirzaei) Date: Tue, 29 Sep 2009 08:12:10 +0330 Subject: Fwd: correctionnnn ;-) Message-ID: ---------- Forwarded message ---------- From: ebrahim mirzaei Date: Tue, Sep 29, 2009 at 8:10 AM Subject: Re: display hgt.200812.nc To: GRADSUSR at list.cineca.it Hi Emily,If your data is netCDF, why don't you use sdfopen without .ddf or .ctl file: 'reinit' 'sdfopen d:\gradsfile\ncdata\hgt.200812.nc' 'set grads off' 'set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' On Mon, Sep 28, 2009 at 9:17 PM, Emily wrote: > Hi group members, > > I face a problem when I display 500 hpa geopotential height chart, it shows > wrong data. > > My gs file is: > 'reinit' > 'open d:\gradsfile\ncdata\hgt200812.ddf' > 'set grads off' > 'set grid off' > 'set lon 220 310' > 'set lat 20 60' > 'set lev 500' > 'set time 09z28dec2008' > 'd hgt' > ==================== > My ddf is as below: > DSET d:\gradsfile\ncdata\hgt.200812.nc > DTYPE netcdf > TITLE NARR 4D field Lambert Conformal Conic projection > UNDEF 32766 missing_value > UNPACK scale_factor add_offset > PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 > XDEF 615 linear 150 0.3333 > YDEF 255 linear 2 0.3333 > ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, > 700, > 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, > 100 > tdef 248 linear 00:00z01dec2008 3hr > vars 3 > hgt 29 t,z,y,x geopotential_height > lat=>glat 0 y,x Latitude > lon=>glon 0 y,x Longitude > endvars > ============= > My grads version: Grads 2.0 a3, > window xp > > I notice that the contours laber values are like -25900, -25800..... I > think the value is wrong. Then I check ncdump information, the hgt value > from ncdump also shows like -25900,..... > > Is there some one knowing what wrong with this?Thanks very much. > > Regards, > > Emily > York University, Toronto, Canada. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/7feb1ea9/attachment.html From eliavs at GMAIL.COM Tue Sep 29 05:11:20 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Tue, 29 Sep 2009 11:11:20 +0200 Subject: using gifsicle as part of a script Message-ID: Hi i an trying to use gifsicle as part of a script here i attached the whole script, the problem is the line : *'!p:/gifsicle/gifsicle -b -d 100 f:/movie/animation.gif --insert-before #0 f:/movie/'count'.gif'* does anyone know what i am doing wrong? eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/c2f23521/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: movie.gs Type: application/octet-stream Size: 1090 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090929/c2f23521/attachment.obj From dasilva at ALUM.MIT.EDU Tue Sep 29 10:33:59 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 29 Sep 2009 10:33:59 -0400 Subject: OpenGrADS Bundle v2.0.a7.oga.1 Released! Message-ID: Dear GrADS Users, I have started uploading to sf.net sources and binaries for the OpenGrADS Bundle based on COLA's *2.0.a7* release: https://sourceforge.net/projects/opengrads/files/ Look under grads2/2.0.a7.oga.1 The OpenGrADS Bundle is a new way of packaging GrADS builds that is somewhat inspired by my experience with the Win32 Superpacks. The idea is to have a single package that require no (minimum?) configuration and that is easily relocatable (say to a USB memory stick). The structure of an OpenGrADS Bundle is described here: http://opengrads.org/wiki/index.php?title=The_OpenGrADS_Bundle Once you download the tarball take a look at the INSTALL file. You can install it as a Bundle (highly recommended) or simply install the binaries the same way you did in the past. Note: The Windows build will be available soon, for now only Mac OS X, Linux and shortly FreeBSD. *Note for Mac OS X users: *Unless I hear from you, I am not intending to post a PowerPC build. Let me know if you would need a PPC build of the OpenGrADS Bundle. See below for additional information on this releae. * * Cheers! Arlindo da SIlva On behalf of the OpenGrADS Development team * The OpenGrADS Bundle Distribution* * ---------------------------------* * * * http://opengrads.org* * * * GrADS Version 2.0.a7.oga.1* * Released 27 September 2009* * * *This version is based on COLA's 2.0.a7 release which includes a new* *interface for the native HDF-5 format, options for templating on Julian Day * *and time axis, new funtion eloop, in addition to some bug fixes. See* *the ChangeLog for details.* * * *Several important OpenGrADS additions are available with this version:* * * *- grads is now built with NetCDF v4.0.1beta3 which includes support* * for NetCDF-4/HDF-5 (similar to gradsnc4 in v1.9.0-rc1) and has* * built in OPeNDAP support.* * * *- gradsdap is no longer provided as its functionality is now included * * in the single executable *grads*.* * * *- this is an OpenGrADS Bundle release, a relocatable, minimum* * configuration package that has all that you need to run GrADS. See* * INSTALL for additonal information.* * * *- we have introduced option -C to enable colorized text* * * *- preview release of the OpenGrADS Extensions; the same extensions * * available in GrADS v1.9.0-rc1 are now available with GrADS v2.0.* * * * Caveat: as COLA is yet to publish the official API for User Defined* * functions in GrADS v2.0 we have adopted here an API that* * is based on our work vith v1.9.0-rc1. This is a very low-level* * API that is *not* endorsed by COLA. As such, it is *not* advisable * * that users adopt this API to write their own extensions.* * * *- These extensions are still being fully tested. Please report any problems * * you encounter. Use them at your own risk.* * * *- The following extensions are included: see below.* * * * * *Documentation and Additional Information* *----------------------------------------* * * *Consult * * OpenGrADS Website: http://opengrads.org* * GrADS Website: http://grads.iges.org/grads* * * * * * * * User* * Defined* * COMMAND Short Description Function at Library * * ---------- ----------------------------------- -------------------------- * * ------- Environment Variables ------ @ * * printenv Expand environment variables c_xenv@^env.gex* * runenv Expand env vars and run command c_env@^env.gex* * @ Expand env vars and run command c_env@^env.gex* * getenv Get value of environment variable c_getenv@^env.gex* * setenv Set value of environment variable c_setenv@^env.gex* * ---------- GxYAT Extensions -------- @ * * gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex* * set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex* * ---------- Simple Examples --------- @ * * hello Hello, World! sample command c_hello@^libhello.gex* * ---- Interprocess Communication ---- @ * * ipc_verb IPC verbose toggle c_Verb@^libipc.gex* * ipc_open Open stream for save/load c_Open@^libipc.gex* * ipc_close Close stream c_Close@^libipc.gex* * ipc_save Save expression to stream c_Save@^libipc.gex* * ipc_define Define variable (obsolete) c_Define@^libipc.gex* * ipc_error Print IPC error message c_Error@^libipc.gex* * ----- Mike Fiorino's Extensions ---- @ * * mfhilo Find max/min or H/L in 2D field c_mfhilo@^libmf.gex* * tcprop Properties radinf from central lon/lat c_tcprop@^libmf.gex* * grhist histogram of expr c_grhist@^libmf.gex* * -------- Shapefile Extensions ------ @ * * shp_lines Draw lines from shapefile c_lines@^shape.gex* * shp_polyf Draw polygons from shapefile c_polyf@^shape.gex* * ---------- ----------------------------------- -------------------------- * * * * User* * Defined* * FUNCTION Short Description Function at Library * * ---------- ----------------------------------- -------------------------- * * ----- Ben-Jei Tsuang Functions ----- @ * * lt Local time f_bjt@^libbjt.gex* * jd Julian day f_bjt@^libbjt.gex* * cosz Cosine solar zenith angle f_bjt@^libbjt.gex* * dayratio Daylight ratio f_bjt@^libbjt.gex* * if Conditional function f_bjt@^libbjt.gex* * maxv Maximum value f_bjt@^libbjt.gex* * minv Minimum value f_bjt@^libbjt.gex* * which Label gridpoints f_bjt@^libbjt.gex* * ftest F-test f_bjt@^libbjt.gex* * ttest T-test f_bjt@^libbjt.gex* * tfit Point linear regression f_bjt@^libbjt.gex* * fit Global linear regression f_bjt@^libbjt.gex* * tcorr2 Time correlation f_bjt@^libbjt.gex* * tregr2 Point linear regression f_bjt@^libbjt.gex* * tmave2 Time averaging w/masking f_bjt@^libbjt.gex* * madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex* * madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex* * madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex* * muadv Zonal advection f_bjt@^libbjt.gex* * mvadv Meridional advection f_bjt@^libbjt.gex* * mwadv Vertical advection f_bjt@^libbjt.gex* * satvap Saturated vapor pressure f_bjt@^libbjt.gex* * dew Dew point temperature f_bjt@^libbjt.gex* * lw Thermal infrared fluxes f_bjt@^libbjt.gex* * lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex* * pinterp Pressure interpolation f_bjt@^libbjt.gex* * zinterp Height interpolation f_bjt@^libbjt.gex* * line Draws a line f_bjt@^libbjt.gex* * vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex* * --------- Psi/Chi Functions -------- @ * * fish Poisson solver f_fish@^fish.gex* * fish_psi Compute streamfunction f_psichi@^fish.gex* * fish_chi Compute velocity potential f_psichi@^fish.gex* * fish_vor Compute vorticity f_psichi@^fish.gex* * fish_div Compute divergence f_psichi@^fish.gex* * -- Saakeskus Function Collection -- @ * * dewpt Dew-point temperature f_gsudf@^gsudf.gex* * ept Equivalent potential temperature f_gsudf@^gsudf.gex* * epi Potential Instability f_gsudf@^gsudf.gex* * plcl Pressure at LCL f_gsudf@^gsudf.gex* * shear Wind Shear f_gsudf@^gsudf.gex* * srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex* * srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex* * tlcl Temperature at LCL f_gsudf@^gsudf.gex* * tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex* * ttindex Total Totals Index f_gsudf@^gsudf.gex* * wchill Wind Chill Index (New) f_gsudf@^gsudf.gex* * ---------- Simple Examples --------- @ * * hello Hello, World! sample function f_hello@^libhello.gex* * ---- Interprocess Communication ---- @ * * ipc_save Save expression to stream f_Save@^libipc.gex* * ipc_load Load variable from file f_Load@^libipc.gex* * ----- Mike Fiorino's Extensions ---- @ * * smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex* * uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex* * re2 General interpolator (regrid2) f_re2@^libmf.gex* * esmrf Saturation vapor pressure (old MRF) f_esmrf@^libmf.gex* * linreg Linear regression: mx + b f_linreg@^libmf.gex* * -------- Regridding Functions ------ @ * * re General interpolator ffre@^re.gex* * re_ General interpolator (verbose) ffre_dbg@^re.gex* * regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex* * geos Interpolation to GEOS-5 Grids f_gsudf@^gsudf.gex* * reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex* * -------- Spherical Harmonics ------- @ * * sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex* * sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex* * ---------- ----------------------------------- -------------------------- * * * -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/4ed2a9f0/attachment.html From arlindo.dasilva at GMAIL.COM Tue Sep 29 10:52:38 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 29 Sep 2009 10:52:38 -0400 Subject: lats4d? In-Reply-To: Message-ID: On Thu, Sep 24, 2009 at 3:13 PM, tatiane felinto wrote: > Hello users > > I have a file with resolution of 1.125X1.125 with 23 levels and > spacing in x between 140W to 30E and 90S and between the 30N. I want > to do a regridding to a grid 0.25X0.25 and reduce the number of > levels. I tried using lats4d and gave the following command: > > > gradsnc -blc 'run lats4d.gs -i /media/TATIANE/era40/temp/t_1980.ctl -o > t25_1980 -format grads_grib -mxtimes 1464 -levs 1000 850 -time > 00z01jan1980 18z31jan1980 -de era025.ctl -func re(@,0.25,0.25,bl) -v > -q' > > > This command runs without errors, creating the .grb,. ctl and > .gmp..... However, when viewing the picture, note that the > information is not correct. Help me out here. How is it not correct? Please send a similar plot for the un-interpolated data. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/08890bbf/attachment.html From yi_zhou01 at YAHOO.CA Tue Sep 29 11:48:18 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Tue, 29 Sep 2009 08:48:18 -0700 Subject: display hgt.200812.nc In-Reply-To: <45dcd84d0909282140m57aaff3ka39e36818ee61871@mail.gmail.com> Message-ID: Hi, Yi (Emily) Zhou 601-2980 Don Mills Road Toronto, ON. M2J 3B9 Phone: 416-628-5971 Email: yi_zhou01 at yahoo.ca --- On Tue, 9/29/09, ebrahim mirzaei wrote: From: ebrahim mirzaei Subject: Re: display hgt.200812.nc To: GRADSUSR at LIST.CINECA.IT Received: Tuesday, September 29, 2009, 12:40 AM Hi?Emily,If your data is netCDF, why don't you use sdfopen without .ddf or .ctl file: 'reinit''open?d:\gradsfile\ncdata\hgt.200812.nc' 'set grads off''set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' On Mon, Sep 28, 2009 at 9:17 PM, Emily wrote: Hi group members, I face a problem when I display 500 hpa geopotential height chart, it shows wrong data. My gs file is: 'reinit' 'open d:\gradsfile\ncdata\hgt200812.ddf' 'set grads off' 'set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' ==================== My ddf is as below: DSET d:\gradsfile\ncdata\hgt.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor add_offset PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ?650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 hgt 29 t,z,y,x? geopotential_height lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars ============= My grads version: Grads 2.0 a3, window xp I notice that the contours laber values are like -25900, -25800..... I think the value is wrong. Then I check ncdump information, the hgt value from ncdump also shows like -25900,..... Is there some one knowing what wrong with this?Thanks very much. Regards, Emily York University, Toronto, Canada. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/5fbecf1c/attachment.html From yi_zhou01 at YAHOO.CA Tue Sep 29 11:51:03 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Tue, 29 Sep 2009 08:51:03 -0700 Subject: display hgt.200812.nc In-Reply-To: <45dcd84d0909282140m57aaff3ka39e36818ee61871@mail.gmail.com> Message-ID: Hi Ebrahim, The hgt.200812.nc is another kind of data set, 8 times per day. It is a pre-projection format, so I can not open it use sdfopen. Regards, Emily --- On Tue, 9/29/09, ebrahim mirzaei wrote: From: ebrahim mirzaei Subject: Re: display hgt.200812.nc To: GRADSUSR at LIST.CINECA.IT Received: Tuesday, September 29, 2009, 12:40 AM Hi?Emily,If your data is netCDF, why don't you use sdfopen without .ddf or .ctl file: 'reinit''open?d:\gradsfile\ncdata\hgt.200812.nc' 'set grads off''set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' On Mon, Sep 28, 2009 at 9:17 PM, Emily wrote: Hi group members, I face a problem when I display 500 hpa geopotential height chart, it shows wrong data. My gs file is: 'reinit' 'open d:\gradsfile\ncdata\hgt200812.ddf' 'set grads off' 'set grid off' 'set lon 220 310' 'set lat 20 60' 'set lev 500' 'set time 09z28dec2008' 'd hgt' ==================== My ddf is as below: DSET d:\gradsfile\ncdata\hgt.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor add_offset PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ?650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 hgt 29 t,z,y,x? geopotential_height lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars ============= My grads version: Grads 2.0 a3, window xp I notice that the contours laber values are like -25900, -25800..... I think the value is wrong. Then I check ncdump information, the hgt value from ncdump also shows like -25900,..... Is there some one knowing what wrong with this?Thanks very much. Regards, Emily York University, Toronto, Canada. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/6dce5e87/attachment.html From cmunozc at UDEC.CL Tue Sep 29 17:55:48 2009 From: cmunozc at UDEC.CL (Cristian Gonzal =?iso-8859-1?Q?Mu=F1oz_Castillo?=) Date: Tue, 29 Sep 2009 17:55:48 -0400 Subject: about reading a netcdf file Message-ID: Hi everyone, I try to read a netcdf file called "tutorial_ascii.nc" but i wasn't able to in grads version 1.9.0-rc1 32-bit on kubuntu 9.04 I get the following message: Scanning self-describing file: tutorial_ascii.nc SDF file has no discernable X coordinate. my ncdump for this file is: netcdf tutorial_ascii { dimensions: mxstr = 16 ; hdr_arr_len = 3 ; obs_arr_len = 5 ; nhdr = 5 ; nobs = UNLIMITED ; // (2140 currently) variables: char hdr_typ(nhdr, mxstr) ; hdr_typ:long_name = "message type" ; char hdr_sid(nhdr, mxstr) ; hdr_sid:long_name = "station identification" ; char hdr_vld(nhdr, mxstr) ; hdr_vld:long_name = "valid time" ; hdr_vld:units = "YYYYMMDD_HHMMSS UTC" ; float hdr_arr(nhdr, hdr_arr_len) ; hdr_arr:long_name = "array of observation station header values" ; hdr_arr:_fill_value = -9999.f ; hdr_arr:columns = "lat lon elv" ; hdr_arr:lat_long_name = "latitude" ; hdr_arr:lat_units = "degrees_north" ; hdr_arr:lon_long_name = "longitude" ; hdr_arr:lon_units = "degrees_east" ; hdr_arr:elv_long_name = "elevation " ; hdr_arr:elv_units = "meters above sea level (msl)" ; float obs_arr(nobs, obs_arr_len) ; obs_arr:long_name = "array of observation values" ; obs_arr:_fill_value = -9999.f ; obs_arr:columns = "hdr_id gc lvl hgt ob" ; obs_arr:hdr_id_long_name = "index of matching header data" ; obs_arr:gc_long_name = "grib code corresponding to the observation type" ; obs_arr:lvl_long_name = "pressure level (hPa) or accumulation interval (h)" ; obs_arr:hgt_long_name = "height in meters above sea level (msl)" ; obs_arr:ob_long_name = "observation value" ; // global attributes: :FileOrigins = "File tutorial/out/ascii2nc/tutorial_ascii.nc generated 20090819_230043 UTC on host gimli by the ASCII2NC tool" any idea why this happens? regards! -- Cristian G. Mu?oz Castillo Licenciado en Ciencias F?sicas Geof?sico Depto. Geof?sica Facultad Ciencias F?sicas y Matem?ticas Oficina 442 Fono (41) 2203155 Universidad de Concepci?n Concepci?n Chile From spc_meteor at YAHOO.COM.BR Tue Sep 29 19:01:03 2009 From: spc_meteor at YAHOO.COM.BR (Saulo Carvalho) Date: Tue, 29 Sep 2009 16:01:03 -0700 Subject: Res: Doing templates from .nc files In-Reply-To: <4ABAABAA.9070504@ec.gc.ca> Message-ID: Dear Ajaya, In the first time I was made the template, it did work. After that, the colors are only in gray. I followed you suggestion about UNDEF, but the warning's still appearing. It's very strange. Greetings, ________________________________________ Saulo Carvalho (that's my name) SEMA Diretoria de Recursos H?dricos ________________________________ De: Ajaya Mohan Para: GRADSUSR at LIST.CINECA.IT Enviadas: Quarta-feira, 23 de Setembro de 2009 20:13:46 Assunto: Re: Doing templates from .nc files Try this, I am using Version 1.9b4, it should work.... dset ^avhrr-only-v2.%y4%m2%d2.nc options template dtype netcdf undef -9.96921e+36 _FillValue unpack scale_factor add_offset title Daily-OI-V2, final, Data (Ship, Buoy, AVHRR, GSFC-ice) xdef 1440 linear 0.125 0.25 ydef 720 linear -89.875 0.25 zdef 1 linear 1 1 tdef 40 linear 00Z10SEP1982 1dy vars 4 sst=>sst 0 t,z,y,x Daily sea surface temperature anom=>anom 0 t,z,y,x Daily sea surface temperature anomalies err=>err 0 t,z,y,x Estimated error standard deviation of analysed_sst ice=>ice 0 t,z,y,x Sea ice concentration endvars ajaya Saulo Carvalho wrote: > Hello everybody, > > > I'm working with avhrr data files available in > ftp://eclipse.ncdc.noaa.gov/pub/OI-daily-v2/NetCDF/. For my > surprise, when I make a .ctl file in order to template the .nc's, > it doesn' t work. As these files has 4 variables, it may have a problem > in making the template. > > > Is there an alternative way to solve this problem? > > > ________________________________________ > Saulo Carvalho > > > SEMA > Diretoria de Recursos H?dricos ____________________________________________________________________________________ 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/20090929/47b3d4e3/attachment.html From dasilva at ALUM.MIT.EDU Tue Sep 29 21:50:38 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 29 Sep 2009 21:50:38 -0400 Subject: Win32 Superpack v2.0.a7.oga.1 Released! Message-ID: Dear Windows Users, We have upload to sourceforge version 2.0.a7.oga.1 the *Win32 **Superpack *: https://sourceforge.net/projects/opengrads/files/grads2-windows/ (See my previous posting announcing a similar release for Linux to learn about what is new in this release --- the Windows build has all the features of the Linux version). If you have the necessary privileges to install software on your computer I recoomend the Windows installer (*-win32_superpack.exe) which will optionally set your path and create an entry in your [Start] menu, placing links on your Desktop. The [Start] menu entry now also includes links to the bundled HTML documentation, with Tutorial, User's Guide and Command Index (from COLA), and "manual pages" for the OpenGrADS extensions. Try out the MERRA and NOMADS Browsers for a (live) graphical user interface to the MERRA reanalysis and NOAA forecast data (GFS, NAM, RUC, Wave) through OpenDAP (a network connection is required). As before, we are also including a *-win32_superpack.zip package for those users who do not have the admin privileges to install software on their Windows boxes. The contents are exactly the same as the *-win32_pack.exe package and are meant to be relocatable: copy the OpenGrADS directory to a USB mem stick and take it on the road with you. The VBscript wrappers at the top remain experimental; I'd appreciate any feedback from people who actually know VBscripting. For those experienced cygwin users preferring a light weight distribution (and willing to set the necessary environment variables), we are again including tarballs with the binaries and extensions. This version has been verified to work on *Windows 7 RC* (Build 7100). Please any me know of any issues. Enjoy! Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090929/f04ad06a/attachment.html From hc.nnamchi at LASG.IAP.AC.CN Wed Sep 30 08:40:19 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Wed, 30 Sep 2009 20:40:19 +0800 Subject: Win32 Superpack v2.0.a7.oga.1 Released! In-Reply-To: <77fcd6b20909291850l59b37535p9b4494f4ca756c9@mail.gmail.com> Message-ID: Dear Arlindo, Thanks alot for the update and all the useful information. Like, you knew that I was particularly concerned about the cmask function. I have just installed it (on window XP) and tried much of my files and it does work very fine so far. Best regards, hyacinth -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090930/449a6c57/attachment.html From Reto.Stauffer at STUDENT.UIBK.AC.AT Wed Sep 30 09:51:24 2009 From: Reto.Stauffer at STUDENT.UIBK.AC.AT (Reto Stauffer) Date: Wed, 30 Sep 2009 15:51:24 +0200 Subject: Variable Grid possible? Message-ID: Dear Usergroup A few weeks ago you sent me a wonderful hint about the topic "Variable Grid possible?" (you can see the answers below). I did some web-research but i could not find any good help topics. What i understood (about the PDEF function): - I have a data matrix (data-value, longitude, latitude) (for ex. 10x5) - I have a GrADS-internal regular Grid, for example XDEF 5 LINEAR 0 10, YDEF 3 LINEAR 0 10 (-> 5x3) - I compute a interpolation matrix wich describes wich value (from my original 10x5 matrix) should be plotted in my regular grid (5x3). So my i and j matrix need to have the same dimension like my regular grid (5x3). There is also a third matrix (only one-point-interpolation) wich contains my wind rotation values (5x3). In the documentation is written that i have to store the three matrices (i,j,windrotation) into a binary file. But witch binary file type and wich structure? I was also afraid because i could not find any example-datasets in the internet. Does any of you have a better description for the PDEF function or a sample-dataset wich show the features of this PDEF function? It would be great if someone could help me. Greetings Reto Stauffer, Austria -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- Am 10.09.2009 um 20:00 schrieb Jennifer Adams: That kind of data grid (with 2-dimensional coordinate variables) doesn't fit the current gridded data model in GrADS. We have talked about implementing a new data model, quasi-regular data, that would fall somewhere in between regular grids and station data. But that is not likely to be implemented any time soon. For now, interpolating to a regular grid with PDEF is the only way to handle that kind of data directly using GrADS. --Jennifer On Sep 10, 2009, at 11:37 AM, Christopher Lynnes wrote: Jennifer, The PDEF GENERAL capability looks quite useful, but made me wonder if GrADS does or will support variable grids in netCDF, where the data are defined according to the CF-1 convention for two-dimensional latitude and longitude coordinate variables (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.4/cf-conventions.html#id2984605 ). We have a service to convert our AIRS swath data to netCDF files with this convention, which allows tools such as IDV and McIDAS-V to read and project them. However, attempting an sdfopen in grads 2.0.a7.1 leads to the "no discernable X coordinate" error. An example file can be obtained via the URL: http://aurapar2u.ecs.nasa.gov/airspar1/daac-bin/OTF/HTTP_services.cgi?FILENAME=%2Fdata%2Fs4pa%2FAqua_AIRS_Level2%2FAIRX2RET.005%2F2006%2F161%2FAIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.hdf&LABEL=AIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.nc&SHORTNAME=AIRX2RET&SERVICE=NetCDF&VERSION=1.02 On Sep 10, 2009, at 7:58 AM, Jennifer Adams wrote: You can use the PDEF GENERAL (aka PDEF FILE) option to tell GrADS how to map each grid point in your 1-D vector into a 2-D lat/lon grid. Please see http://www.iges.org/grads/gadoc/pdef.html The example at the bottom of the page does something very similar to what you'd like to do. --Jennifer On Sep 9, 2009, at 7:03 AM, Reto Stauffer wrote: Hy there I try to plot some Satellite-Data with Grads. It was "no problem" to produce a netCDF file wich i can import into GrADS and display the test- dataset. But now i have a question up to you. Normaly GrADS plots only onto a linear Grid. My netCDF-File only contains a one-line-vector with longitude and latitude boundries. Is there any possibility to import long/lat as a 2-D matrix wich discribes my own grid? I cannot found any good information about that. Test-Dataset, int [0;10] with own colormap: http://dudecom.ch/satpress/wp-content/uploads/2009/09/20090909_grads_colormapexample-543x400.png If anyone has an idea it wold be great to send me a request. Best regards Reto, Austria -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -- Christopher Lynnes NASA/GSFC, Code 610.2 301-614-5185 -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org From jma at COLA.IGES.ORG Wed Sep 30 10:22:47 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Wed, 30 Sep 2009 10:22:47 -0400 Subject: Variable Grid possible? In-Reply-To: <1254318684.4ac3625cb405b@web-mail1.uibk.ac.at> Message-ID: If you are planning to use PDEF BILIN, then the i, j, and rotation grids are floating point grids, sized according to the XDEF and YDEF records in your descriptor file (in your example, 5x3). The format can be sequential or stream, and the byte order can be big or little- endian -- whatever is easier for you to create. The format specs are provided by you in the PDEF BILIN entry of your descriptor file. With PDEF BILIN, the i and j values you provide are assumed to be non- integers, and four nearest neighbors are bi-linearly interpolated to get the value for each grid point in your rectilinear grid. If you want to use one-point interpolation (map a single grid point in the native grid to a location in the rectilinear grid), then use PDEF GENERAL with the "num" argument equal to 1. In this case, your three grids will contain index values (not i or j but i*isize+j), weights (all 1's), and rotation values. From the PDEF doc: "The num argument in the PDEF GENERAL entry specifies the number of native grid points that will be used to calcuate each interpolated rectilinear grid point value. For each num, the supplementary data file will contain two grids -- both will be the size of the rectilinear grid (as defined by XDEF and YDEF). The first grid contains the index or offset values that point to the native grid value that will be used in the interpolation; the second grid contains the weights for those native grid values. The first grid contains integer values, the second grid contains floating-point values. Finally, the supplementary data file must also contain one grid of floating-point wind rotation values. Thus if num equals 1, there will be 3 grids in fname. If num equals 3, there will be 7 grids infname (3 sets of 2 grids plus the wind rotation grid)." --Jennifer On Sep 30, 2009, at 9:51 AM, Reto Stauffer wrote: > Dear Usergroup > > A few weeks ago you sent me a wonderful hint about the topic > "Variable Grid > possible?" (you can see the answers below). > I did some web-research but i could not find any good help topics. > > What i understood (about the PDEF function): > - I have a data matrix (data-value, longitude, latitude) (for ex. > 10x5) > - I have a GrADS-internal regular Grid, for example XDEF 5 LINEAR 0 > 10, YDEF 3 > LINEAR 0 10 (-> 5x3) > - I compute a interpolation matrix wich describes wich value (from > my original > 10x5 matrix) should be plotted in my regular grid (5x3). So my i and > j matrix > need to have the same dimension like my regular grid (5x3). There is > also a > third matrix (only one-point-interpolation) wich contains my wind > rotation > values (5x3). > > In the documentation is written that i have to store the three > matrices > (i,j,windrotation) into a binary file. But witch binary file type > and wich > structure? I was also afraid because i could not find any example- > datasets in > the internet. > > Does any of you have a better description for the PDEF function or a > sample-dataset wich show the features of this PDEF function? > > It would be great if someone could help me. > > Greetings > Reto Stauffer, Austria > > > > -------------------------------------------------- > -------------------------------------------------- > -------------------------------------------------- > > > > Am 10.09.2009 um 20:00 schrieb Jennifer Adams: > > That kind of data grid (with 2-dimensional coordinate variables) > doesn't fit the > current gridded data model in GrADS. We have talked about > implementing a new > data model, quasi-regular data, that would fall somewhere in between > regular > grids and station data. But that is not likely to be implemented any > time soon. > For now, interpolating to a regular grid with PDEF is the only way > to handle > that kind of data directly using GrADS. > --Jennifer > > On Sep 10, 2009, at 11:37 AM, Christopher Lynnes wrote: > > Jennifer, > The PDEF GENERAL capability looks quite useful, but made me wonder > if GrADS does or will support variable grids in netCDF, where the data > are defined according to the CF-1 convention for two-dimensional > latitude and longitude coordinate variables > (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.4/cf-conventions.html#id2984605 > ). > We have a service to convert our AIRS swath data to netCDF files > with this convention, which allows tools such as IDV and McIDAS-V to > read and project them. However, attempting an sdfopen in grads > 2.0.a7.1 leads to the "no discernable X coordinate" error. > An example file can be obtained via the URL: > http://aurapar2u.ecs.nasa.gov/airspar1/daac-bin/OTF/HTTP_services.cgi?FILENAME=%2Fdata%2Fs4pa%2FAqua_AIRS_Level2%2FAIRX2RET.005%2F2006%2F161%2FAIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.hdf&LABEL=AIRS.2006.06.10.202.L2.RetStd.v5.0.14.0.G07345043455.nc&SHORTNAME=AIRX2RET&SERVICE=NetCDF&VERSION=1.02 > > On Sep 10, 2009, at 7:58 AM, Jennifer Adams wrote: > > You can use the PDEF GENERAL (aka PDEF FILE) option to tell GrADS > how to map each grid point in your 1-D vector into a 2-D lat/lon > grid. Please see http://www.iges.org/grads/gadoc/pdef.html > The example at the bottom of the page does something very similar to > what you'd like to do. > --Jennifer > > On Sep 9, 2009, at 7:03 AM, Reto Stauffer wrote: > > Hy there > > I try to plot some Satellite-Data with Grads. It was "no problem" > to produce a > netCDF file wich i can import into GrADS and display the test- > dataset. > > But now i have a question up to you. Normaly GrADS plots only onto > a linear > Grid. My netCDF-File only contains a one-line-vector with longitude > and > latitude boundries. > > Is there any possibility to import long/lat as a 2-D matrix wich > discribes my > own grid? I cannot found any good information about that. > > Test-Dataset, int [0;10] with own colormap: > http://dudecom.ch/satpress/wp-content/uploads/2009/09/20090909_grads_colormapexample-543x400.png > > If anyone has an idea it wold be great to send me a request. > > Best regards > Reto, Austria > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > > -- > Christopher Lynnes NASA/GSFC, Code 610.2 > 301-614-5185 > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org -- 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/20090930/1831db6f/attachment.html From ousmane at IRI.COLUMBIA.EDU Wed Sep 30 10:58:43 2009 From: ousmane at IRI.COLUMBIA.EDU (Ousmane Ndiaye) Date: Wed, 30 Sep 2009 10:58:43 -0400 Subject: difference between variables on different grid In-Reply-To: <17468880.775841254322005290.JavaMail.root@iripogo1.ldeo.columbia.edu> Message-ID: Hi, I have two files on different grids starting at different times, I want to calculate the difference of their monthly climatology over a common period. I used the function re to regrid the two variables first then calculate their climatology but I cannot compute the difference of the climatology (ie bias). Any help ? Ousmane == 'reinit' 'sdfopen air.mon.mean.nc' 'set lon 0 360' 'set lat -90 90' 'set t 265 516' 'air2=re(air,2.5)' 'set t 265 276' 'define clim1=tloop(ave(air2,t+0,t=516))' *'modify clim1 seasonal' 'set t 1' 'sdfopen tas_A1.nc' 'set dfile 2' 'set lon 0 360' 'set lat -90 90' 'set t 1321 1572' 'tas2=re(tas.2,2.5)' 'set t 1321 1332' 'define clim2=tloop(ave(tas2,t+0,t=1572))' == From Pablo.Santos at NOAA.GOV Wed Sep 30 11:04:47 2009 From: Pablo.Santos at NOAA.GOV (Pablo Santos) Date: Wed, 30 Sep 2009 11:04:47 -0400 Subject: Plotting RTOFS grib2 data in Grads - Problems Message-ID: Hi: I am attempting to plot data from the following file: http://www.ftp.ncep.noaa.gov/data/nccf/com/ofs/prod/ofs.20090930/ofs_atl.t00z.n000.grb.grib2 When I run it through the g2ctl.pl utility I get the output below. Notice the pdef line. Further below I take this output from a .ctl file and run it through the gribmap -i command and get the error message shown complaining about the pdef line. Does anyone know what I need to do to get passed this? Thanks, Pablo [ifps at MFL-LW-WAVES ncep_hourly]$ g2ctl.pl ofs_atl.t00z.n000.grb.grib2 dset ^ofs_atl.t00z.n000.grb.grib2 index ^ofs_atl.t00z.n000.grb.grib2.idx undef 9.999E+20 title ofs_atl.t00z.n000.grb.grib2 * produced by g2ctl v0.0.4n * griddef=1:0:(1200 x 1684):grid_template=204:Curvilinear Orthongonal grid: see lat lon fields in this grib file:winds(grid) dtype grib2 pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl xdef 1300 linear -105.04 0.1325 ydef 1500 linear -25.2 0.0678 tdef 1 linear 00Z29sep2009 1mo zdef 1 linear 1 1 vars 15 LAPPsfc 0,1,0 0,2,202 ** surface Latitude of Presure Point [deg] LAUVsfc 0,1,0 0,2,198 ** surface Latitude of U Wind Component of Velocity [deg] LAVVsfc 0,1,0 0,2,200 ** surface Latitude of V Wind Component of Velocity [deg] LOPPsfc 0,1,0 0,2,203 ** surface Longitude of Presure Point [deg] LOUVsfc 0,1,0 0,2,199 ** surface Longitude of U Wind Component of Velocity [deg] LOVVsfc 0,1,0 0,2,201 ** surface Longitude of V Wind Component of Velocity [deg] MIXHTsfc 0,1,0 0,19,3 ** surface Mixed Layer Depth [m] MNTSFsfc 0,1,0 0,2,6 ** surface Montgomery Stream Function [m^2/s] SALINhl1p5 0,105,1,2 10,4,193 ** 1 hybrid level - 2 hybrid level 3-D Salinity [-] SSHGsfc 0,1,0 10,3,195 ** surface Sea Surface Height Relative to Geoid [m] UBAROocn 0,201,0 10,1,194 ** entire ocean (considered as a single layer) Barotropic U velocity [m/s] UOGRDhl1p5 0,105,1,2 10,1,2 ** 1 hybrid level - 2 hybrid level U-Component of Current [m/s] VBAROocn 0,201,0 10,1,195 ** entire ocean (considered as a single layer) Barotropic V velocity [m/s] VOGRDhl1p5 0,105,1,2 10,1,3 ** 1 hybrid level - 2 hybrid level V-Component of Current [m/s] WTMPChl1p5 0,105,1,2 10,4,192 ** 1 hybrid level - 2 hybrid level 3-D Temperature [degc] ENDVARS [ifps at MFL-LW-WAVES ncep_hourly]$ [ifps at MFL-LW-WAVES ncep_hourly]$ gribmap -i test2.ctl Error opening pdef file: pdef_ncep_12.atl Open Error: Invalid pdef record. --> The invalid description file record is: --> pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl The data file was not opened. [ifps at MFL-LW-WAVES ncep_hourly]$ From Pablo.Santos at NOAA.GOV Wed Sep 30 11:42:56 2009 From: Pablo.Santos at NOAA.GOV (Pablo Santos) Date: Wed, 30 Sep 2009 11:42:56 -0400 Subject: Plotting RTOFS grib2 data in Grads - Problems In-Reply-To: <4AC3738F.3080504@noaa.gov> Message-ID: Well: I was directed to download pdef_ncep_12.atl. Now I got passed that but am getting the following error when I run the control file through the gribmap -i command: gribmap -i test2.ctl grib2map: scanning GRIB2 file: ofs_atl.t00z.n000.grb.grib2 getgridtemplate: GDT Template 3.204 not defined. grib2map error: g2_getfld failed: ierr=10 Any suggestions on how to get passed this. I am looking into converting the file to grib1 and see if I am luckier now. But thought I ask anyhow in case someone knows. Thanks, Pablo Pablo Santos wrote: > Hi: > > I am attempting to plot data from the following file: > > http://www.ftp.ncep.noaa.gov/data/nccf/com/ofs/prod/ofs.20090930/ofs_atl.t00z.n000.grb.grib2 > > > When I run it through the g2ctl.pl utility I get the output below. > Notice the pdef line. Further below I take this output from a .ctl > file and run it through the gribmap -i command and get the error > message shown complaining about the pdef line. Does anyone know what I > need to do to get passed this? > > Thanks, Pablo > > [ifps at MFL-LW-WAVES ncep_hourly]$ g2ctl.pl ofs_atl.t00z.n000.grb.grib2 > dset ^ofs_atl.t00z.n000.grb.grib2 > index ^ofs_atl.t00z.n000.grb.grib2.idx > undef 9.999E+20 > title ofs_atl.t00z.n000.grb.grib2 > * produced by g2ctl v0.0.4n > * griddef=1:0:(1200 x 1684):grid_template=204:Curvilinear Orthongonal > grid: see lat lon fields in this grib file:winds(grid) > > dtype grib2 > pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl > xdef 1300 linear -105.04 0.1325 > ydef 1500 linear -25.2 0.0678 > tdef 1 linear 00Z29sep2009 1mo > zdef 1 linear 1 1 > vars 15 > LAPPsfc 0,1,0 0,2,202 ** surface Latitude of Presure Point [deg] > LAUVsfc 0,1,0 0,2,198 ** surface Latitude of U Wind Component of > Velocity [deg] > LAVVsfc 0,1,0 0,2,200 ** surface Latitude of V Wind Component of > Velocity [deg] > LOPPsfc 0,1,0 0,2,203 ** surface Longitude of Presure Point [deg] > LOUVsfc 0,1,0 0,2,199 ** surface Longitude of U Wind Component of > Velocity [deg] > LOVVsfc 0,1,0 0,2,201 ** surface Longitude of V Wind Component of > Velocity [deg] > MIXHTsfc 0,1,0 0,19,3 ** surface Mixed Layer Depth [m] > MNTSFsfc 0,1,0 0,2,6 ** surface Montgomery Stream Function [m^2/s] > SALINhl1p5 0,105,1,2 10,4,193 ** 1 hybrid level - 2 hybrid level > 3-D Salinity [-] > SSHGsfc 0,1,0 10,3,195 ** surface Sea Surface Height Relative to > Geoid [m] > UBAROocn 0,201,0 10,1,194 ** entire ocean (considered as a single > layer) Barotropic U velocity [m/s] > UOGRDhl1p5 0,105,1,2 10,1,2 ** 1 hybrid level - 2 hybrid level > U-Component of Current [m/s] > VBAROocn 0,201,0 10,1,195 ** entire ocean (considered as a single > layer) Barotropic V velocity [m/s] > VOGRDhl1p5 0,105,1,2 10,1,3 ** 1 hybrid level - 2 hybrid level > V-Component of Current [m/s] > WTMPChl1p5 0,105,1,2 10,4,192 ** 1 hybrid level - 2 hybrid level > 3-D Temperature [degc] > ENDVARS > [ifps at MFL-LW-WAVES ncep_hourly]$ > > [ifps at MFL-LW-WAVES ncep_hourly]$ gribmap -i test2.ctl > Error opening pdef file: pdef_ncep_12.atl > Open Error: Invalid pdef record. > --> The invalid description file record is: > --> pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl > The data file was not opened. > [ifps at MFL-LW-WAVES ncep_hourly]$ > From Wesley.Ebisuzaki at NOAA.GOV Wed Sep 30 11:59:18 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Wed, 30 Sep 2009 11:59:18 -0400 Subject: Plotting RTOFS grib2 data in Grads - Problems In-Reply-To: <4AC3738F.3080504@noaa.gov> Message-ID: Pablo, The file, pdef_ncep_12.atl, can be found at http://nomad1.ncep.noaa.gov/pub/raid3/rtofs_native/daily/ofs.20090928/pdef_ncep_12.atl This is a binary file which has to be saved. (YMMV but my browser pops a window asking whether to save the binary file.) Wesley Ebisuzaki Pablo Santos wrote: > Hi: > > I am attempting to plot data from the following file: > > http://www.ftp.ncep.noaa.gov/data/nccf/com/ofs/prod/ofs.20090930/ofs_atl.t00z.n000.grb.grib2 > > > When I run it through the g2ctl.pl utility I get the output below. > Notice the pdef line. Further below I take this output from a .ctl file > and run it through the gribmap -i command and get the error message > shown complaining about the pdef line. Does anyone know what I need to > do to get passed this? > > Thanks, Pablo > > [ifps at MFL-LW-WAVES ncep_hourly]$ g2ctl.pl ofs_atl.t00z.n000.grb.grib2 > dset ^ofs_atl.t00z.n000.grb.grib2 > index ^ofs_atl.t00z.n000.grb.grib2.idx > undef 9.999E+20 > title ofs_atl.t00z.n000.grb.grib2 > * produced by g2ctl v0.0.4n > * griddef=1:0:(1200 x 1684):grid_template=204:Curvilinear Orthongonal > grid: see lat lon fields in this grib file:winds(grid) > > dtype grib2 > pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl > xdef 1300 linear -105.04 0.1325 > ydef 1500 linear -25.2 0.0678 > tdef 1 linear 00Z29sep2009 1mo > zdef 1 linear 1 1 > vars 15 > LAPPsfc 0,1,0 0,2,202 ** surface Latitude of Presure Point [deg] > LAUVsfc 0,1,0 0,2,198 ** surface Latitude of U Wind Component of > Velocity [deg] > LAVVsfc 0,1,0 0,2,200 ** surface Latitude of V Wind Component of > Velocity [deg] > LOPPsfc 0,1,0 0,2,203 ** surface Longitude of Presure Point [deg] > LOUVsfc 0,1,0 0,2,199 ** surface Longitude of U Wind Component of > Velocity [deg] > LOVVsfc 0,1,0 0,2,201 ** surface Longitude of V Wind Component of > Velocity [deg] > MIXHTsfc 0,1,0 0,19,3 ** surface Mixed Layer Depth [m] > MNTSFsfc 0,1,0 0,2,6 ** surface Montgomery Stream Function [m^2/s] > SALINhl1p5 0,105,1,2 10,4,193 ** 1 hybrid level - 2 hybrid level 3-D > Salinity [-] > SSHGsfc 0,1,0 10,3,195 ** surface Sea Surface Height Relative to > Geoid [m] > UBAROocn 0,201,0 10,1,194 ** entire ocean (considered as a single > layer) Barotropic U velocity [m/s] > UOGRDhl1p5 0,105,1,2 10,1,2 ** 1 hybrid level - 2 hybrid level > U-Component of Current [m/s] > VBAROocn 0,201,0 10,1,195 ** entire ocean (considered as a single > layer) Barotropic V velocity [m/s] > VOGRDhl1p5 0,105,1,2 10,1,3 ** 1 hybrid level - 2 hybrid level > V-Component of Current [m/s] > WTMPChl1p5 0,105,1,2 10,4,192 ** 1 hybrid level - 2 hybrid level 3-D > Temperature [degc] > ENDVARS > [ifps at MFL-LW-WAVES ncep_hourly]$ > > [ifps at MFL-LW-WAVES ncep_hourly]$ gribmap -i test2.ctl > Error opening pdef file: pdef_ncep_12.atl > Open Error: Invalid pdef record. > --> The invalid description file record is: > --> pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl > The data file was not opened. > [ifps at MFL-LW-WAVES ncep_hourly]$ From Wesley.Ebisuzaki at NOAA.GOV Wed Sep 30 12:08:24 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Wed, 30 Sep 2009 12:08:24 -0400 Subject: Plotting RTOFS grib2 data in Grads - Problems In-Reply-To: <4AC37C80.2080802@noaa.gov> Message-ID: Pablo, The "GDT Template ... not defined message" means that you are using a old version of g2clib. Perhaps a new version of GrADS includes the latest g2clib. If not recompile GrADS with the current version of g2clib. (Works for me.) Wesley Ebisuzaki Pablo Santos wrote: > Well: > > I was directed to download pdef_ncep_12.atl. Now I got passed that but > am getting the following error when I run the control file through the > gribmap -i command: > > gribmap -i test2.ctl > grib2map: scanning GRIB2 file: ofs_atl.t00z.n000.grb.grib2 > getgridtemplate: GDT Template 3.204 not defined. > grib2map error: g2_getfld failed: ierr=10 > > Any suggestions on how to get passed this. I am looking into converting > the file to grib1 and see if I am luckier now. But thought I ask anyhow > in case someone knows. > > Thanks, > > Pablo > > Pablo Santos wrote: >> Hi: >> >> I am attempting to plot data from the following file: >> >> http://www.ftp.ncep.noaa.gov/data/nccf/com/ofs/prod/ofs.20090930/ofs_atl.t00z.n000.grb.grib2 >> >> >> >> When I run it through the g2ctl.pl utility I get the output below. >> Notice the pdef line. Further below I take this output from a .ctl >> file and run it through the gribmap -i command and get the error >> message shown complaining about the pdef line. Does anyone know what I >> need to do to get passed this? >> >> Thanks, Pablo >> >> [ifps at MFL-LW-WAVES ncep_hourly]$ g2ctl.pl ofs_atl.t00z.n000.grb.grib2 >> dset ^ofs_atl.t00z.n000.grb.grib2 >> index ^ofs_atl.t00z.n000.grb.grib2.idx >> undef 9.999E+20 >> title ofs_atl.t00z.n000.grb.grib2 >> * produced by g2ctl v0.0.4n >> * griddef=1:0:(1200 x 1684):grid_template=204:Curvilinear Orthongonal >> grid: see lat lon fields in this grib file:winds(grid) >> >> dtype grib2 >> pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl >> xdef 1300 linear -105.04 0.1325 >> ydef 1500 linear -25.2 0.0678 >> tdef 1 linear 00Z29sep2009 1mo >> zdef 1 linear 1 1 >> vars 15 >> LAPPsfc 0,1,0 0,2,202 ** surface Latitude of Presure Point [deg] >> LAUVsfc 0,1,0 0,2,198 ** surface Latitude of U Wind Component of >> Velocity [deg] >> LAVVsfc 0,1,0 0,2,200 ** surface Latitude of V Wind Component of >> Velocity [deg] >> LOPPsfc 0,1,0 0,2,203 ** surface Longitude of Presure Point [deg] >> LOUVsfc 0,1,0 0,2,199 ** surface Longitude of U Wind Component of >> Velocity [deg] >> LOVVsfc 0,1,0 0,2,201 ** surface Longitude of V Wind Component of >> Velocity [deg] >> MIXHTsfc 0,1,0 0,19,3 ** surface Mixed Layer Depth [m] >> MNTSFsfc 0,1,0 0,2,6 ** surface Montgomery Stream Function [m^2/s] >> SALINhl1p5 0,105,1,2 10,4,193 ** 1 hybrid level - 2 hybrid level >> 3-D Salinity [-] >> SSHGsfc 0,1,0 10,3,195 ** surface Sea Surface Height Relative to >> Geoid [m] >> UBAROocn 0,201,0 10,1,194 ** entire ocean (considered as a single >> layer) Barotropic U velocity [m/s] >> UOGRDhl1p5 0,105,1,2 10,1,2 ** 1 hybrid level - 2 hybrid level >> U-Component of Current [m/s] >> VBAROocn 0,201,0 10,1,195 ** entire ocean (considered as a single >> layer) Barotropic V velocity [m/s] >> VOGRDhl1p5 0,105,1,2 10,1,3 ** 1 hybrid level - 2 hybrid level >> V-Component of Current [m/s] >> WTMPChl1p5 0,105,1,2 10,4,192 ** 1 hybrid level - 2 hybrid level >> 3-D Temperature [degc] >> ENDVARS >> [ifps at MFL-LW-WAVES ncep_hourly]$ >> >> [ifps at MFL-LW-WAVES ncep_hourly]$ gribmap -i test2.ctl >> Error opening pdef file: pdef_ncep_12.atl >> Open Error: Invalid pdef record. >> --> The invalid description file record is: >> --> pdef 1200 1684 bilin sequential binary-big pdef_ncep_12.atl >> The data file was not opened. >> [ifps at MFL-LW-WAVES ncep_hourly]$ >> From yi_zhou01 at YAHOO.CA Wed Sep 30 16:02:13 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Wed, 30 Sep 2009 13:02:13 -0700 Subject: fwrite a grib data file from nc data Message-ID: Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ?650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x? grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: ?can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090930/5e5b11ae/attachment.html From ela at COLA.IGES.ORG Wed Sep 30 17:18:18 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Wed, 30 Sep 2009 17:18:18 -0400 Subject: fwrite a grib data file from nc data In-Reply-To: <1524399365.105771254345496036.JavaMail.root@mail.iges.org> Message-ID: Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto From yi_zhou01 at YAHOO.CA Wed Sep 30 21:47:24 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Wed, 30 Sep 2009 18:47:24 -0700 Subject: fwrite a grib data file from nc data In-Reply-To: <1512073072.105791254345498740.JavaMail.root@mail.iges.org> Message-ID: Hi Eric, Thank you for figuring out the bugs. I corrected the problems, and rerun the gs to get a new grd file. However after scaning the discription file, it still can not open the binary file. It shows: open error, cann't open the binary file. My grads version is grads2.0 a3 for window XP. BTW, my vwnd ddf file as below: ================ DSET d:\gradsfile\ncdata\vwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ?650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 vwnd 29 t,z,y,x? grid_northward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =========== Emily, York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 5:18 PM Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090930/5837c685/attachment.html From ela at COLA.IGES.ORG Wed Sep 30 22:20:32 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Wed, 30 Sep 2009 22:20:32 -0400 Subject: fwrite a grib data file from nc data In-Reply-To: <1670465274.106521254363590084.JavaMail.root@mail.iges.org> Message-ID: Hi Emily, What is the size of the binary file? It should be 7*5*4=140 bytes. If it's not that size, check your script for any bugs I may have missed. If it is 140 bytes, then I don't know why grads can't open the binary file. In fact, even if the file exists but has a size of 0 bytes, grads should open it. Make sure the file is actually being created. If it doesn't exist, I have no idea why. Best regards, Eric ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 9:47:24 PM GMT -05:00 US/Canada Eastern Subject: Re: fwrite a grib data file from nc data Hi Eric, Thank you for figuring out the bugs. I corrected the problems, and rerun the gs to get a new grd file. However after scaning the discription file, it still can not open the binary file. It shows: open error, cann't open the binary file. My grads version is grads2.0 a3 for window XP. BTW, my vwnd ddf file as below: ================ DSET d:\gradsfile\ncdata\vwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ? 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 vwnd 29 t,z,y,x? grid_northward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =========== Emily, York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 5:18 PM Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" < yi_zhou01 at YAHOO.CA > To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto From yi_zhou01 at YAHOO.CA Wed Sep 30 22:47:04 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Wed, 30 Sep 2009 19:47:04 -0700 Subject: fwrite a grib data file from nc data In-Reply-To: <1027508556.106541254363632720.JavaMail.root@mail.iges.org> Message-ID: Hi Eric, I check the binary file, it has 28 bytes. So there are something wrong about the fwrite gs file. Emily York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 10:20 PM Hi Emily, What is the size of the binary file? It should be 7*5*4=140 bytes. If it's not that size, check your script for any bugs I may have missed. If it is 140 bytes, then I don't know why grads can't open the binary file. In fact, even if the file exists but has a size of 0 bytes, grads should open it. Make sure the file is actually being created. If it doesn't exist, I have no idea why. Best regards, Eric ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 9:47:24 PM GMT -05:00 US/Canada Eastern Subject: Re: fwrite a grib data file from nc data Hi Eric, Thank you for figuring out the bugs. I corrected the problems, and rerun the gs to get a new grd file. However after scaning the discription file, it still can not open the binary file. It shows: open error, cann't open the binary file. My grads version is grads2.0 a3 for window XP. BTW, my vwnd ddf file as below: ================ DSET d:\gradsfile\ncdata\vwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ? 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 vwnd 29 t,z,y,x?? grid_northward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =========== Emily, York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 5:18 PM Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" < yi_zhou01 at YAHOO.CA > To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090930/8be2dd7b/attachment.html From yi_zhou01 at YAHOO.CA Wed Sep 30 23:21:20 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Wed, 30 Sep 2009 20:21:20 -0700 Subject: fwrite a grib data file from nc data In-Reply-To: <1027508556.106541254363632720.JavaMail.root@mail.iges.org> Message-ID: Hi Eric, I change my fwrite gs file as below: =========== 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind.grd' t0=218 h=1000 while(t0<=222) while(h>=850) 'set dfile 1' 'set lon 283.3' 'set lat 43.66' 'set lev 'h'' 'set t 't0'' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' 'set lev 'h'' 'set t 't0'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' ============ But the binary file size still is 28 bytes. I don't know why. Thanks you in advance for your help. Emily York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 10:20 PM Hi Emily, What is the size of the binary file? It should be 7*5*4=140 bytes. If it's not that size, check your script for any bugs I may have missed. If it is 140 bytes, then I don't know why grads can't open the binary file. In fact, even if the file exists but has a size of 0 bytes, grads should open it. Make sure the file is actually being created. If it doesn't exist, I have no idea why. Best regards, Eric ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 9:47:24 PM GMT -05:00 US/Canada Eastern Subject: Re: fwrite a grib data file from nc data Hi Eric, Thank you for figuring out the bugs. I corrected the problems, and rerun the gs to get a new grd file. However after scaning the discription file, it still can not open the binary file. It shows: open error, cann't open the binary file. My grads version is grads2.0 a3 for window XP. BTW, my vwnd ddf file as below: ================ DSET d:\gradsfile\ncdata\vwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ? 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 vwnd 29 t,z,y,x?? grid_northward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =========== Emily, York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 5:18 PM Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" < yi_zhou01 at YAHOO.CA > To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090930/b694fd38/attachment.html