From ortizbeviamr at GMAIL.COM Mon Jun 1 01:31:13 2009 From: ortizbeviamr at GMAIL.COM (OrtizBevia Maria) Date: Sun, 31 May 2009 22:31:13 -0700 Subject: Clipping the frame to a nps projection map Message-ID: Dear Gradsusr I want to clip the frame to a nps projection map for the North Atlantic. The frame, being rectangular, does not adjust to the limits of the map, a nps section. The comand 'frame off' simply leave de section without frame. Do you know how to fix it?? Regards Maria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090531/a69305c0/attachment.html From sh.maeam at GMAIL.COM Mon Jun 1 08:49:19 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Mon, 1 Jun 2009 20:49:19 +0800 Subject: station map Message-ID: Dear All, I want to draw a station map, firstly, I created a binary file, and wrote a "ctl" file as following: ### dset st_data.dat title station data dtype station stnmap station_data.map undef -999.9 tdef 1 linear 24May2008 7dy vars 1 rain 0 99 rain data endvars ### but the picture's background is the whole world( there is a picture in attachment), and stations values displayed in a small area, when I added "xdef,yedf,zdef" like this: ### ... undef -999.9 xdef 100 linear 100.0 0.05 ydef 100 linear 20.0 0.01 zdef 1 linear 1000.0 tdef 1 linear 24May2008 7dy ... ### however, the background didn't change, Does "xdef" and "ydef"'s range set by default as following? ### ga-> open station.ctl Scanning description file: station.ctl Data file st_data.dat is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 500 500 Time values set: 2008:5:24:0 2008:5:24:0 ga-> q file ### Secondly, I created a background grid file, and I used it to display station values, but I got a error when used command " oacres", the following steps is what I did. ### ga-> open grid.ctl Scanning description file: grid.ctl Data file grid.dat is open as file 1 LON set to 99 106.45 LAT set to 19 20.49 LEV set to 1000 1000 Time values set: 2008:5:24:0 2008:5:24:0 ga-> open station.ctl Scanning description file: station.ctl Data file st_data.dat is open as file 2 ga-> define qq=oacres(r,rain.2) Warning from OACRES: Less than two stations Grid will be all missing values Define memory allocation size = 90000 bytes ga-> d qq Cannot contour grid - all undefined values ### according to the error message:"Warning from OACRES: Less than two stations" , and it occupied so much memory , it seems there are some mistakes in the first step, am I right? if yes, could you tell me what should I do ? and is there any problem in my steps? Thank you. Sincerely. -- Shenghui Student HuNan University . China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090601/05f84b84/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: station.gif Type: image/gif Size: 36966 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090601/05f84b84/attachment.gif From mmahakur at TROPMET.RES.IN Mon Jun 1 09:36:05 2009 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Mon, 1 Jun 2009 20:06:05 +0630 Subject: station map In-Reply-To: <94ce49550906010549t394c7886lbf21fe8ba42dc3f5@mail.gmail.com> Message-ID: Hello, How many stations do you have to inerpolate to such a hi resolution map (0.05 x 0.01)? Try with several scan radii, starting from a bigger for example (I guess there is limit to nos. of radii and minimum value of radii, see if 0.01 is allowed, although I have written!!): qq=oacres(r,rain.2, 5,4,2,1,0.5,0.3 ,0.1,0.08,0.06,0.05,0.04,0.03,0.02,0.01) Default radii are 10,7,4,2,1 http://www.iges.org/grads/gadoc/gradfuncoacres.html -- M. Mahakur ---------- Original Message ----------- From: sh zhou To: GRADSUSR at LIST.CINECA.IT Sent: Mon, 1 Jun 2009 20:49:19 +0800 Subject: station map > Dear All, > > I want to draw a station map, firstly, I created a binary file, and wrote a > "ctl" file as following: > ### > dset st_data.dat > title station data > dtype station > stnmap station_data.map > undef -999.9 > tdef 1 linear 24May2008 7dy > vars 1 > rain 0 99 rain data > endvars > ### > but the picture's background is the whole world( there is a picture in > attachment), and stations values displayed in a small area, when I added > "xdef,yedf,zdef" like this: > > ### > ... > undef -999.9 > xdef 100 linear 100.0 0.05 > ydef 100 linear 20.0 0.01 > zdef 1 linear 1000.0 > tdef 1 linear 24May2008 7dy > ... > ### > however, the background didn't change, Does "xdef" and "ydef"'s range set > by default as following? > ### > ga-> open station.ctl > Scanning description file: station.ctl > Data file st_data.dat is open as file 1 > LON set to 0 360 > LAT set to -90 90 > LEV set to 500 500 > Time values set: 2008:5:24:0 2008:5:24:0 > ga-> q file > ### > > Secondly, I created a background grid file, and I used it to display station > values, but I got a error when used command " oacres", the following steps > is what I did. > > ### > ga-> open grid.ctl > Scanning description file: grid.ctl > Data file grid.dat is open as file 1 > LON set to 99 106.45 > LAT set to 19 20.49 > LEV set to 1000 1000 > Time values set: 2008:5:24:0 2008:5:24:0 > ga-> open station.ctl > Scanning description file: station.ctl > Data file st_data.dat is open as file 2 > ga-> define qq=oacres(r,rain.2) > Warning from OACRES: Less than two stations > Grid will be all missing values > Define memory allocation size = 90000 bytes > ga-> d qq > Cannot contour grid - all undefined values > ### > according to the error message:"Warning from OACRES: Less than two stations" > , and it occupied so much memory , it seems there are some mistakes in the > first step, am I right? if yes, could you tell me what should I do ? and is > there any problem in my steps? > > Thank you. > > Sincerely. > > -- > > Shenghui Student > > HuNan University . China ------- End of Original Message ------- From sh.maeam at GMAIL.COM Mon Jun 1 10:57:50 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Mon, 1 Jun 2009 22:57:50 +0800 Subject: station map In-Reply-To: <20090601132029.M15328@tropmet.res.in> Message-ID: Dear, M. Mahakur, Thank you for your time and replay. Yes, as you said, the resolution I set is too high, and I made a mistake at the same time when set the area location, that the stations' location are out of " background grid". The radii of influence should be set between "0" and "50", my Grads version is 1.8sl11, maybe in other versions are different values. Now, I had set background grid data like this: ### xdef 350 linear 104.61 0.0450 ydef 250 linear 21.98 0.0450 ### then the display seems much better now, but there are so many small lines appeared, why does those small lines appear? In this web page " http://www.iges.org/grads/gadoc/users.html" ( my manual ), I haven't found the reason, If you know, could you tell me? By the way, in my first step, when display station data, the background is the whole word, is that default display? Thank you for your time. Sincerely. 2009/6/1 M.Mahakur > Hello, > > How many stations do you have to inerpolate to such a hi resolution map > (0.05 x 0.01)? > Try with several scan radii, starting from a bigger for example (I guess > there is limit > to nos. of radii and minimum value of radii, see if 0.01 is allowed, > although I have > written!!): > > qq=oacres(r,rain.2, 5,4,2,1,0.5,0.3 > ,0.1,0.08,0.06,0.05,0.04,0.03,0.02,0.01) > > Default radii are 10,7,4,2,1 > > http://www.iges.org/grads/gadoc/gradfuncoacres.html > > -- > M. Mahakur > > ---------- Original Message ----------- > From: sh zhou > To: GRADSUSR at LIST.CINECA.IT > Sent: Mon, 1 Jun 2009 20:49:19 +0800 > Subject: station map > > > Dear All, > > > > I want to draw a station map, firstly, I created a binary file, and > wrote a > > "ctl" file as following: > > ### > > dset st_data.dat > > title station data > > dtype station > > stnmap station_data.map > > undef -999.9 > > tdef 1 linear 24May2008 7dy > > vars 1 > > rain 0 99 rain data > > endvars > > ### > > but the picture's background is the whole world( there is a picture in > > attachment), and stations values displayed in a small area, when I added > > "xdef,yedf,zdef" like this: > > > > ### > > ... > > undef -999.9 > > xdef 100 linear 100.0 0.05 > > ydef 100 linear 20.0 0.01 > > zdef 1 linear 1000.0 > > tdef 1 linear 24May2008 7dy > > ... > > ### > > however, the background didn't change, Does "xdef" and "ydef"'s range > set > > by default as following? > > ### > > ga-> open station.ctl > > Scanning description file: station.ctl > > Data file st_data.dat is open as file 1 > > LON set to 0 360 > > LAT set to -90 90 > > LEV set to 500 500 > > Time values set: 2008:5:24:0 2008:5:24:0 > > ga-> q file > > ### > > > > Secondly, I created a background grid file, and I used it to display > station > > values, but I got a error when used command " oacres", the following > steps > > is what I did. > > > > ### > > ga-> open grid.ctl > > Scanning description file: grid.ctl > > Data file grid.dat is open as file 1 > > LON set to 99 106.45 > > LAT set to 19 20.49 > > LEV set to 1000 1000 > > Time values set: 2008:5:24:0 2008:5:24:0 > > ga-> open station.ctl > > Scanning description file: station.ctl > > Data file st_data.dat is open as file 2 > > ga-> define qq=oacres(r,rain.2) > > Warning from OACRES: Less than two stations > > Grid will be all missing values > > Define memory allocation size = 90000 bytes > > ga-> d qq > > Cannot contour grid - all undefined values > > ### > > according to the error message:"Warning from OACRES: Less than two > stations" > > , and it occupied so much memory , it seems there are some mistakes in > the > > first step, am I right? if yes, could you tell me what should I do ? and > is > > there any problem in my steps? > > > > Thank you. > > > > Sincerely. > > > > -- > > > > Shenghui Student > > > > HuNan University . China > ------- End of Original Message ------- > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090601/db25ff17/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: station.gif Type: image/gif Size: 32308 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090601/db25ff17/attachment.gif From sh.maeam at GMAIL.COM Mon Jun 1 23:05:17 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Tue, 2 Jun 2009 11:05:17 +0800 Subject: station map In-Reply-To: <20090601154330.M40398@tropmet.res.in> Message-ID: Dear M.Mahakur, Thank you, The picture looks very good. The radii influence value I set is 8, and it displayed normally. Thank you for your time, you are so kind hearted. Best wishes. 2009/6/1 M.Mahakur > Hello, > > Yes, for station data the default display domain is global. The small lines > are due to > exitance undef grid boxes. That is due to no. of stations not well > distributed or less. > You can try starting with 2-3 large scan radii, and many small radii later > to have the > fine structures, check if plot is ok after that. you can use > smth9(oacres(....)) also > for a smooth plot (using the 9-point smoother).. > > With Regards, > > -- > M. Mahakur > Forecasting Research Division > INDIAN INSTITUTE OF TROPICAL METEOROLOGY > (Ministry of Earth Sciences, Govt. of India) > Dr. Homi Bhabha Road, NCL Post, Pashan > PUNE - 411 008, INDIA > > > ---------- Original Message ----------- > From: sh zhou > To: GRADSUSR at LIST.CINECA.IT > Sent: Mon, 1 Jun 2009 22:57:50 +0800 > Subject: Re: station map > > > Dear, M. Mahakur, > > > > Thank you for your time and replay. > > Yes, as you said, the resolution I set is too high, and I made a mistake > at > > the same time when set the area location, that the stations' location are > > out of " background grid". > > The radii of influence should be set between "0" and "50", my Grads > version > > is 1.8sl11, maybe in other versions are different values. > > Now, I had set background grid data like this: > > ### > > xdef 350 linear 104.61 0.0450 > > ydef 250 linear 21.98 0.0450 > > ### > > then the display seems much better now, but there are so many small lines > > appeared, why does those small lines appear? > > In this web page " http://www.iges.org/grads/gadoc/users.html" ( my > manual > > ), I haven't found the reason, If you know, could you tell me? > > By the way, in my first step, when display station data, the background > is > > the whole word, is that default display? > > > > Thank you for your time. > > > > Sincerely. > > > > 2009/6/1 M.Mahakur > > > > > Hello, > > > > > > How many stations do you have to inerpolate to such a hi resolution map > > > (0.05 x 0.01)? > > > Try with several scan radii, starting from a bigger for example (I > guess > > > there is limit > > > to nos. of radii and minimum value of radii, see if 0.01 is allowed, > > > although I have > > > written!!): > > > > > > qq=oacres(r,rain.2, 5,4,2,1,0.5,0.3 > > > ,0.1,0.08,0.06,0.05,0.04,0.03,0.02,0.01) > > > > > > Default radii are 10,7,4,2,1 > > > > > > http://www.iges.org/grads/gadoc/gradfuncoacres.html > > > > > > -- > > > M. Mahakur > > > > > > ---------- Original Message ----------- > > > From: sh zhou > > > To: GRADSUSR at LIST.CINECA.IT > > > Sent: Mon, 1 Jun 2009 20:49:19 +0800 > > > Subject: station map > > > > > > > Dear All, > > > > > > > > I want to draw a station map, firstly, I created a binary file, and > > > wrote a > > > > "ctl" file as following: > > > > ### > > > > dset st_data.dat > > > > title station data > > > > dtype station > > > > stnmap station_data.map > > > > undef -999.9 > > > > tdef 1 linear 24May2008 7dy > > > > vars 1 > > > > rain 0 99 rain data > > > > endvars > > > > ### > > > > but the picture's background is the whole world( there is a picture > in > > > > attachment), and stations values displayed in a small area, when I > added > > > > "xdef,yedf,zdef" like this: > > > > > > > > ### > > > > ... > > > > undef -999.9 > > > > xdef 100 linear 100.0 0.05 > > > > ydef 100 linear 20.0 0.01 > > > > zdef 1 linear 1000.0 > > > > tdef 1 linear 24May2008 7dy > > > > ... > > > > ### > > > > however, the background didn't change, Does "xdef" and "ydef"'s range > > > set > > > > by default as following? > > > > ### > > > > ga-> open station.ctl > > > > Scanning description file: station.ctl > > > > Data file st_data.dat is open as file 1 > > > > LON set to 0 360 > > > > LAT set to -90 90 > > > > LEV set to 500 500 > > > > Time values set: 2008:5:24:0 2008:5:24:0 > > > > ga-> q file > > > > ### > > > > > > > > Secondly, I created a background grid file, and I used it to display > > > station > > > > values, but I got a error when used command " oacres", the following > > > steps > > > > is what I did. > > > > > > > > ### > > > > ga-> open grid.ctl > > > > Scanning description file: grid.ctl > > > > Data file grid.dat is open as file 1 > > > > LON set to 99 106.45 > > > > LAT set to 19 20.49 > > > > LEV set to 1000 1000 > > > > Time values set: 2008:5:24:0 2008:5:24:0 > > > > ga-> open station.ctl > > > > Scanning description file: station.ctl > > > > Data file st_data.dat is open as file 2 > > > > ga-> define qq=oacres(r,rain.2) > > > > Warning from OACRES: Less than two stations > > > > Grid will be all missing values > > > > Define memory allocation size = 90000 bytes > > > > ga-> d qq > > > > Cannot contour grid - all undefined values > > > > ### > > > > according to the error message:"Warning from OACRES: Less than two > > > stations" > > > > , and it occupied so much memory , it seems there are some mistakes > in > > > the > > > > first step, am I right? if yes, could you tell me what should I do ? > and > > > is > > > > there any problem in my steps? > > > > > > > > Thank you. > > > > > > > > Sincerely. > > > > > > > > -- > > > > > > > > Shenghui Student > > > > > > > > HuNan University . China > > > ------- End of Original Message ------- > > > > > > > -- > > > > Shenghui Student > > Major: Physics > > HuNan University China > ------- End of Original Message ------- > > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090602/9a59d710/attachment.html From eliavs at GMAIL.COM Tue Jun 2 08:53:16 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Tue, 2 Jun 2009 15:53:16 +0300 Subject: calculating cape Message-ID: hi can i calculate cape from ncep/ncar reanalysis data on grads? eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090602/f055bcfc/attachment.html From zjuyanlibin at 163.COM Tue Jun 2 09:40:58 2009 From: zjuyanlibin at 163.COM (Libin Yan) Date: Tue, 2 Jun 2009 21:40:58 +0800 Subject: calculating cape Message-ID: what is cape? ?????????????????????????????????????? ???? eliav schmulewitz ????? 2009-06-02 21:30:47 ???? GRADSUSR ??? ??? calculating cape hi can i calculate cape from ncep/ncar reanalysis data on grads? eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090602/2043c58e/attachment.html From mmdoka at CSAG.UCT.AC.ZA Tue Jun 2 10:14:47 2009 From: mmdoka at CSAG.UCT.AC.ZA (Marshall Mdoka) Date: Tue, 2 Jun 2009 16:14:47 +0200 Subject: calculating cape In-Reply-To: <128fb9ed0906020553l1e4de457qbcddcddf8cf36d66@mail.gmail.com> Message-ID: eliav schmulewitz wrote: > hi > can i calculate cape from ncep/ncar reanalysis data on grads? > eliav Yes you can. Myself, I am trying to calculate it using the plot-skew script in grads. From jma at COLA.IGES.ORG Tue Jun 2 11:34:52 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 2 Jun 2009 11:34:52 -0400 Subject: NEW RELEASE! GrADS 2.0.a6 Message-ID: Dear All, I have posted a new version of GrADS: 2.0.a6. The GrADS downloads web page (http://iges.org/grads/downloads.html) has been updated with links to the source code and a few pre-compiled binaries. Version 2.0.a6 is mostly a bug fix release, but it does have a couple of nice new features: 1. The user can control the undef value in all GrADS output This feature controls the undefined values printed to screen with the 'gxout stat' and the 'gxout print' output, as well as the undefined values in fwrite, sdfwrite, and geotiff files. The output undef value is controlled with the 'set undef' command. This feature changes the default behavior of GrADS, but it is in keeping with the new undef handling in GrADS 2.0. The default output undef value is -9.99e8. This release works fine with GDS 2.0. I have written a documentation page. Please READ THE DOCUMENTATION! http://grads.iges.org/grads/gadoc/gradcomdsetundef.html 2. The maximum number of user-defined colors has been increased from 99 to 255 To help you get started using 255 colors, I have written two scripts: ftp://grads.iges.org/grads/scripts/rgb255.gs (defines a lot of colors and draws a demo plot) ftp://grads.iges.org/grads/scripts/cbarm.gs (draws a suitable color bar) Please feel free to copy and modify these scripts to suit your own needs. Here is the complete list of changes in 2.0.a6: Features: * Maximum number of user-defined colors increased from 99 to 255. * New commands "set undef" and "query undef" allow the user to control the undefined data value for all forms of GrADS output. This affects all the undefined values printed to screen in the 'gxout stat' and 'gxout print' output, as well as the undefined values in fwrite, sdfwrite, and geotiff files. The default output undef value is -9.99e8. N.B. THIS FEATURE CHANGES THE DEFAULT BEHAVIOR OF GrADS! Bugs: * Fixed geotiff code to write out data in correct format * Fixed the background image option to printim * Fixed gancgrid I/O for variables with dimensions in a funky order (i.e. not ETZYX) * Fixed gancgrid response if request is outside of file's bounds * Fixed 'close' command to properly reset defaults * Fixed gribmap printing debugging and error messages in verbose mode * Replaced library function call SDiscoordvar in gasdf.c Misc: * more informative error messages when request is beyond file's limits * added chsub option to xdfopen-style descriptors * added -n flag to gr2stn for nearest neighbor option * changed hard-coded undefs from -9.99e33 to -9.99e8 * changed hard-coded XYBMAX from 500 to 5000 in gxshad.c * configure and src code changes to get rid of XLIBEMU * fixes to GUI configuration * bug fix in gaio.c to change vars lskip and lgrib to type g2int * changed var type to off_t and fixed? optimization issues for x86_64 builds * changed Pixel to gaPixel * removed pcx11e.* from src directory * changed #include syntax for gabufr.h in grads.h -- 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/20090602/d5eda5a0/attachment.html From pdjakow at GMAIL.COM Tue Jun 2 11:58:42 2009 From: pdjakow at GMAIL.COM (PiotrD) Date: Tue, 2 Jun 2009 17:58:42 +0200 Subject: NEW RELEASE! GrADS 2.0.a6 In-Reply-To: Message-ID: Jennifer Adams wrote: (...) How can i build GrADS with all features available? Configuration Summary - readline disabled - printim disabled - netcdf disabled - hdf4 disabled - grib2 disabled - geotiff disabled - GUI disabled Build Summary + grads enabled - gradsdap (OPeNDAP) disabled + Dynamic linking enabled I need grib2 + printim + gradsdap... Regards Piotr Djakow -- Prognoza modelu numerycznego GFS dla obszaru Polski: http://www.gfspl.rootnode.net From jma at COLA.IGES.ORG Tue Jun 2 12:07:58 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 2 Jun 2009 12:07:58 -0400 Subject: NEW RELEASE! GrADS 2.0.a6 In-Reply-To: <4A254C32.4060605@gmail.com> Message-ID: Hi, Piotr -- Please see http://iges.org/grads/gadoc/supplibs.html for links to the source code for all the libraries you need to enable these features. Alternatively, Arlindo's opengrads site on sourceforge.net has supplib binaries and instructions for building GrADS from source. --Jennifer On Jun 2, 2009, at 11:58 AM, PiotrD wrote: > Jennifer Adams wrote: > > (...) > > > How can i build GrADS with all features available? > > Configuration Summary > - readline disabled > - printim disabled > - netcdf disabled > - hdf4 disabled > - grib2 disabled > - geotiff disabled > - GUI disabled > > Build Summary > > + grads enabled > - gradsdap (OPeNDAP) disabled > > + Dynamic linking enabled > > > > I need grib2 + printim + gradsdap... > > Regards > Piotr Djakow > > -- > Prognoza modelu numerycznego GFS dla obszaru Polski: > http://www.gfspl.rootnode.net -- 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/20090602/6f08f1a6/attachment.html From appopson at YAHOO.FR Tue Jun 2 13:10:09 2009 From: appopson at YAHOO.FR (louis Vonder) Date: Tue, 2 Jun 2009 17:10:09 +0000 Subject: calculating cape Message-ID: Hi Marshall, Can you share your script with us? regards --- En date de?: Mar 2.6.09, Marshall Mdoka a ?crit?: De: Marshall Mdoka Objet: Re: calculating cape ?: GRADSUSR at LIST.CINECA.IT Date: Mardi 2 Juin 2009, 16h14 eliav schmulewitz wrote: > hi > can i calculate cape from ncep/ncar reanalysis data on grads? > eliav Yes you can. Myself, I am trying to calculate it using the plot-skew script in grads. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090602/0beb1a53/attachment.html From arlindo.dasilva at GMAIL.COM Tue Jun 2 15:26:17 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 2 Jun 2009 15:26:17 -0400 Subject: NEW RELEASE! GrADS 2.0.a6 In-Reply-To: <1F15FD06-C758-4E63-A574-FD6C67E31A2D@cola.iges.org> Message-ID: On Tue, Jun 2, 2009 at 12:07 PM, Jennifer Adams wrote: > Hi, Piotr --Please see http://iges.org/grads/gadoc/supplibs.html for links > to the source code for all the libraries you need to enable these features. > Alternatively, Arlindo's opengrads site on sourceforge.net has supplib > binaries and instructions for building GrADS from source. > It turns out that if you would like to use the opengrads supplibs-2.1.0 available from http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=241681&release_id=661716 to build grads-2.0.a6 from sources you need a little configure magic. First, untar the supplibs binary and make a symlink such that supplibs/ is parallel to the grads sources: supplibs -> ../supplibs-2.1.0/x86_64..... (or whatever other architecture you have) grads-2.0.a6/ Here is how I built it on x86_64: % cd grads-2.0.a6 % export CPPFLAGS -I../../supplibs/include/netcdf % ./configure --without-gui This will give you: +=========================================================================+ GrADS 2.0.a6 : Built Tue Jun 2 15:21:38 EDT 2009 for x86_64-unknown-linux-gnu +=========================================================================+ +----------------------------------+ | | | Configuration Summary | | | | + readline enabled | | + printim enabled | | + netcdf enabled | | + hdf4 enabled | | + grib2 enabled | | + geotiff enabled | | - GUI disabled | | | | Build Summary | | | | + grads enabled | | + gradsdap enabled | | (both grid & stn interfaces) | | | | + Dynamic linking enabled | | | +----------------------------------+ Then to build gradsdap you need to help it along: % cd src/ % make gradsdap LIBS="-lnetcdf -lnc-dap -ldapclient -ldap -lhdf5_hl -lhdf5 -lcurl -lxml2 -lz -lpthread" % make utils This will create "gradsdap" linked against NetCDF-4 so it will be have support for all formats, including grib2, opendap, netcdf-3/4, hdf-4, just like the most recent opengrads builds: ga-> q config Config: v2.0.a6 little-endian readline printim grib2 netcdf hdf4-sds opendap-grids,stn geotiff Issue 'q config' command for more information. GX Package Initialization: Size = 11 8.5 Running in Batch mode ga-> q config Config: v2.0.a6 little-endian readline printim grib2 netcdf hdf4-sds opendap-grids,stn geotiff Grid Analysis and Display System (GrADS) Version 2.0.a6 Copyright (c) 1988-2008 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 Tue Jun 2 15:19:02 EDT 2009 for x86_64-unknown-linux-gnu This version of GrADS has been configured with the following options: o Built on a LITTLE ENDIAN machine o Command line editing ENABLED http://tiswww.case.edu/php/chet/readline/rltop.html o printim command for image output ENABLED http://www.zlib.net http://www.libpng.org/pub/png/libpng.html http://www.libgd.org/Main_Page o GRIB2 interface ENABLED http://www.ijg.org http://www.ece.uvic.ca/~mdadams/jasper http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 g2clib-1.0.5 o NetCDF interface ENABLED http://www.opendap.org libnc-dap 4.0.1-beta3-snapshot2009021712 of Feb 21 2009 15:24:12 $ o NCSA HDF interface ENABLED http://hdf.ncsa.uiuc.edu HDF4.2r3 o Athena Widget GUI DISABLED o OPeNDAP gridded data interface ENABLED http://www.opendap.org libdap 3.7.10 o OPeNDAP station data interface ENABLED http://iges.org/grads/gadoc/supplibs.html libgadap 2.0.oga.1 o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org Don't bother building "grads" because NetCDF-4 has OPeNDAP integrated in (you would get the same executable after fixing the Makefile); just make a symlink, grads -> gradsdap. Keep in mind that this build will *not* have the opengrads extensions enabled. It will be about a week untill I have a chance to patch it. Caveat: it has been reported that this opendap library has a problem reading some non-gds opendap datasets when the coordinate variables (like time) are int (only on 64 bit Linux AFAIK). Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090602/8ebf3531/attachment.html From nztideman at YAHOO.CO.NZ Tue Jun 2 22:48:56 2009 From: nztideman at YAHOO.CO.NZ (Derek Goring) Date: Tue, 2 Jun 2009 19:48:56 -0700 Subject: NEW RELEASE! GrADS 2.0.a6 Message-ID: Yipppeee!! Finally, I've found a version of GrADS that works on my PC running Ubuntu 8.04 LTS. All the previous versions gave me a segmentation error. But what has happened to writetime?? It doesn't seem to be available in gradsdap. ________________ Derek Goring --- On Wed, 3/6/09, Jennifer Adams wrote: From: Jennifer Adams Subject: NEW RELEASE! GrADS 2.0.a6 To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, 3 June, 2009, 3:34 AM Dear All,I have posted a new version of GrADS: 2.0.a6. The GrADS downloads web page (http://iges.org/grads/downloads.html) has been updated with links to the source code and a few pre-compiled binaries.?Version 2.0.a6 is mostly a bug fix release, but it does have a couple of nice new features:? 1. The user can control the undef value in all GrADS outputThis feature controls the undefined values printed to screen with the 'gxout stat' and the 'gxout print' output, as well as the undefined values in fwrite, sdfwrite, and geotiff files.?The output undef value is controlled with the 'set undef' command.?This feature changes the default behavior of GrADS, but?it is in keeping with the new undef handling in GrADS 2.0. The default output undef value is -9.99e8.?This release works fine with GDS 2.0.?I have written a documentation page. Please READ THE DOCUMENTATION!????http://grads.iges.org/grads/gadoc/gradcomdsetundef.html 2.?The?maximum?number?of?user-defined?colors?has?been?increased?from?99?to?255To help you get started using 255 colors, I have written two scripts:??ftp://grads.iges.org/grads/scripts/rgb255.gs ?(defines a lot of colors and draws a demo plot)??ftp://grads.iges.org/grads/scripts/cbarm.gs ? (draws a suitable color bar)Please feel free to copy and modify these scripts to suit your own needs.? Here is the complete list of changes in 2.0.a6: Features: * Maximum number of user-defined colors increased from 99 to 255.? * New commands "set undef" and "query undef" allow the user to? control the undefined data value for all forms of GrADS output.? This affects all the undefined values printed to screen in the? 'gxout stat' and 'gxout print' output, as well as the undefined? values in fwrite, sdfwrite, and geotiff files.? The default output undef value is -9.99e8. N.B. THIS FEATURE CHANGES THE DEFAULT BEHAVIOR OF GrADS! Bugs: * Fixed geotiff code to write out data in correct format * Fixed the background image option to printim * Fixed gancgrid I/O for variables with dimensions in a funky order (i.e. not ETZYX) * Fixed gancgrid response if request is outside of file's bounds * Fixed 'close' command to properly reset defaults * Fixed gribmap printing debugging and error messages in verbose mode * Replaced library function call SDiscoordvar in gasdf.c Misc: * more informative error messages when request is beyond file's limits * added chsub option to xdfopen-style descriptors * added -n flag to gr2stn for nearest neighbor option * changed hard-coded undefs from -9.99e33 to -9.99e8 * changed hard-coded XYBMAX from 500 to 5000 in gxshad.c * configure and src code changes to get rid of XLIBEMU * fixes to GUI configuration * bug fix in gaio.c to change vars lskip and lgrib to type g2int * changed var type to off_t and fixed? optimization issues for x86_64 builds * changed Pixel to gaPixel * removed pcx11e.* from src directory * changed #include syntax for gabufr.h in grads.h --Jennifer M. AdamsIGES/COLA4041 Powder Mill Road, Suite 302Calverton, MD 20705jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090602/51299b2f/attachment.html From sh.maeam at GMAIL.COM Wed Jun 3 04:07:35 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Wed, 3 Jun 2009 16:07:35 +0800 Subject: how to midify cbar Message-ID: Dear All, In attachment there are two shaded contour plots, I want to compare them, but the color bar, at the bottom of each plot, not the same. In a plot the color bar's mark range from "288" to "306", the another one is range from "286"to "296", I tried to modify "cbar.gs", but it is too difficult to me, can you tell me how to set the range to be the same? Thank you. Sincerely. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090603/a877d5d8/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: pic-1.gif Type: image/gif Size: 25748 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090603/a877d5d8/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic-2.gif Type: image/gif Size: 33908 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090603/a877d5d8/attachment-0001.gif From pdjakow at GMAIL.COM Wed Jun 3 04:18:15 2009 From: pdjakow at GMAIL.COM (=?UTF-8?Q?Piotr_Djak=C3=B3w?=) Date: Wed, 3 Jun 2009 10:18:15 +0200 Subject: how to midify cbar In-Reply-To: <94ce49550906030107n6ff82ad1t9774675351b1dcf@mail.gmail.com> Message-ID: 2009/6/3 sh zhou : > Dear All, > > In attachment there are two shaded contour plots, I want to compare them, > but the color bar, at the bottom of each plot, not the same. In a plot the > color bar's mark range from "288" to "306", the another one is range from > "286"to "296", I tried to modify "cbar.gs", but it is too difficult to me, > can you tell me how to set the range to be the same? > > ? ? Thank you. > > Sincerely. > -- > > Shenghui ? ? ? ? ? ? ? ? ? ? ? ? ? Student > Major: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Physics > HuNan University ? ? ? ? China > Hi Use set clevs set ccols http://www.iges.org/grads/gadoc/gradcomdsetclevs.html Regards Piotr Djakow From rjel at CEH.AC.UK Wed Jun 3 04:17:51 2009 From: rjel at CEH.AC.UK (Richard Ellis) Date: Wed, 3 Jun 2009 09:17:51 +0100 Subject: how to midify cbar Message-ID: Shenghui, Before you display the data use, set clevs 286 290 294 298 302 306 this forces grads to use these contour levels and the colour bars will follow. This page has more information. Click on set clevs and it tells you about clevs and using colour in GRADS. http://www.iges.org/grads/gadoc/gadocindex.html Cheers, Rich >>> sh.maeam at GMAIL.COM 03/06/2009 09:07 >>> Dear All, In attachment there are two shaded contour plots, I want to compare them, but the color bar, at the bottom of each plot, not the same. In a plot the color bar's mark range from "288" to "306", the another one is range from "286"to "296", I tried to modify "cbar.gs", but it is too difficult to me, can you tell me how to set the range to be the same? Thank you. Sincerely. -- Shenghui Student Major: Physics HuNan University China -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From Tom_Petroski at ML.COM Wed Jun 3 08:41:22 2009 From: Tom_Petroski at ML.COM (Petroski, Tom (MLCI)) Date: Wed, 3 Jun 2009 08:41:22 -0400 Subject: Mike Fiorino's clhilo UDF - H and L plotted on maps for GRADS 2.0 ? Message-ID: I can use Mike Fiorino's mfhilo user defined command in OpenGrADS v2.0.a5-oga.5, but I can only use it with the GR option. I don't think the CL option is working properly. I am not seeing similar performance like clhilo, the UDF in COLA's GrADS v1. I have exchanged some emails with Mike and Arlindo on this topic. By the way, I have modified philo2.gs to work with the output from 'mfhilo GR', but I would like to get results from 'mfhilo CL' and see how those H's and L's compare to the ones from clhilo in GrADS v1. Thank You, Tom _____________________________ Thomas J. Petroski Merrill Lynch Commodities, Inc. 20 E. Greenway Plaza, Suite 700 Houston, TX 77046 Direct: 713-544-4214 Fax: 713-544-7931 Mobile: 713-679-8723 tom_petroski at ml.com -------------------------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to "Merrill Lynch" are references to any company in the Merrill Lynch & Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. -------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090603/f5e8427e/attachment.html From arlindo.dasilva at GMAIL.COM Wed Jun 3 13:02:36 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 3 Jun 2009 13:02:36 -0400 Subject: NEW RELEASE! GrADS 2.0.a6 In-Reply-To: <602385.46249.qm@web53903.mail.re2.yahoo.com> Message-ID: On Tue, Jun 2, 2009 at 10:48 PM, Derek Goring wrote: > Yipppeee!! > > Finally, I've found a version of GrADS that works on my PC running Ubuntu > 8.04 LTS. > All the previous versions gave me a segmentation error. > Strange. I run 8.04 LTS on my desktop. Which builds did you try? -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090603/dae43efe/attachment.html From ela at COLA.IGES.ORG Wed Jun 3 21:40:43 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Wed, 3 Jun 2009 21:40:43 -0400 Subject: how to midify cbar In-Reply-To: <774658302.325571244079523242.JavaMail.root@mail.iges.org> Message-ID: Dear Shenghui, You don't need to change cbar.gs. There are a few different ways to make the plots have the same contour interval and range, here is one way that should work. Before your 'display' command, do the following: 'set cmin 286' 'set cmax 306' 'set cint 2' You need to do this for both plots, because displaying anything (or issuing a 'clear' command) will reset cmin, cmax and cint to default values. 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: "sh zhou" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, June 3, 2009 4:07:35 AM GMT -05:00 US/Canada Eastern Subject: how to midify cbar Dear All, In attachment there are two shaded contour plots, I want to compare them, but the color bar, at the bottom of each plot, not the same. In a plot the color bar's mark range from "288" to "306", the another one is range from "286"to "296", I tried to modify "cbar.gs", but it is too difficult to me, can you tell me how to set the range to be the same? Thank you. Sincerely. -- Shenghui Student Major: Physics HuNan University China From sh.maeam at GMAIL.COM Wed Jun 3 22:07:21 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Thu, 4 Jun 2009 10:07:21 +0800 Subject: how to midify cbar In-Reply-To: <1694233498.325591244079643650.JavaMail.root@mail.iges.org> Message-ID: Hi Eric Altshuler, Thank you very much. some kind hearted people told me use this command: ### set clevs v1,v2,v3 ... set ccols ### yours seems so terse, I'll have a try. Thank you. With regards. 2009/6/4 Eric Altshuler > Dear Shenghui, > > You don't need to change cbar.gs. There are a few different ways to make > the plots have the same contour interval and range, here is one way that > should work. > > Before your 'display' command, do the following: > > 'set cmin 286' > 'set cmax 306' > 'set cint 2' > > You need to do this for both plots, because displaying anything (or issuing > a 'clear' command) will reset cmin, cmax and cint to default values. > > 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: "sh zhou" > To: GRADSUSR at LIST.CINECA.IT > Sent: Wednesday, June 3, 2009 4:07:35 AM GMT -05:00 US/Canada Eastern > Subject: how to midify cbar > > Dear All, > > In attachment there are two shaded contour plots, I want to compare them, > but the color bar, at the bottom of each plot, not the same. In a plot the > color bar's mark range from "288" to "306", the another one is range from > "286"to "296", I tried to modify "cbar.gs", but it is too difficult to me, > can you tell me how to set the range to be the same? > > Thank you. > > Sincerely. > -- > > Shenghui Student > Major: Physics > HuNan University China > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090604/13c6a156/attachment.html From nakazawa at MRI-JMA.GO.JP Thu Jun 4 02:41:41 2009 From: nakazawa at MRI-JMA.GO.JP (Tetsuo Nakazawa) Date: Thu, 4 Jun 2009 15:41:41 +0900 Subject: function int Message-ID: Dear GrADS users, I tried to use the function of int (truncate the real number to integer), but an error came when I used opengrads 2.0.a5.oga.5 for Mac OSX. The script and the anal_p.ctl are as follows 'open anal_p.ctl' 'set lon 30 180' 'set lat -40 40' 'i0=ugrdsfc*2.+1.' 'd i0' 'd int(i0)' It worked fine to "d i0", but when I did "d int(i0)", then the following error message came. Syntax Error: Invalid Operand 'int' not a variable or function name Error ocurred at column 1 DISPLAY error: Invalid expression Expression = int(i0) function int(i0) i=0 while(i<12) i=i+1 if(substr(i0,i,1)='.') i0=substr(i0,1,i-1) break endif endwhile return(i0) * content of anal_p.ctl dset ^anal_p.%y4%m2%d2%h2 index ^anal_p.idx undef 9.999E+20 title grib.anal_p dtype grib 255 options yrev template ydef 145 linear -90.0 1.25 xdef 288 linear 0.0 1.25 tdef 124 linear 00Z01jan1979 6hr zdef 23 levels 1000 925 850 700 600 500 400 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1 0.4 vars 13 HGTprs 23 7,100,0 ** Geopotential height [gpm] TMPprs 23 11,100,0 ** Air temperature [K] SPFHprs 23 51,100,0 ** Specific humidity [kg/kg] DEPRprs 8 18,100,0 ** Dew point depression [K] UGRDprs 23 33,100,0 ** Zonal wind [m/s] VGRDprs 23 34,100,0 ** Meridional wind [m/s] CWATprs 12 76,100,0 ** Cloud water content [kg/m^2] PRMSLmsl 0 2,102,0 ** Pressure reduced to MSL [Pa] TMPsfc 0 11,105,2 ** Surface 2m air temperature [K] SPFHsfc 0 51,105,2 ** Surface 2m specific humidity [kg/kg] DEPRsfc 0 18,105,2 ** Surface 2m dew point depression [K] UGRDsfc 0 33,105,10 ** Surface 10m zonal wind [m/s] VGRDsfc 0 34,105,10 ** Surface 10m meridional wind [m/s] ENDVARS ******************************************** Tetsuo Nakazawa nakazawa at mri-jma.go.jp Typhoon Research Department Meteorological Research Institute Tel: 029-853-8671 Fax: 029-853-8735 ******************************************** From john.bacon at WORSTEAD.CO.UK Thu Jun 4 06:57:55 2009 From: john.bacon at WORSTEAD.CO.UK (John_Bacon) Date: Thu, 4 Jun 2009 11:57:55 +0100 Subject: pygrads installation problem Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090604/0d795206/attachment.html From Michael.Fiorino at NOAA.GOV Thu Jun 4 11:08:02 2009 From: Michael.Fiorino at NOAA.GOV (Michael Fiorino) Date: Thu, 4 Jun 2009 09:08:02 -0600 Subject: function int In-Reply-To: <943C9CF2-437D-4DC1-A356-06CEEFC0575A@mri-jma.go.jp> Message-ID: hi tetsuo, there is no grads function int, but there is a script function math_int. if you really wanted to convert a grads expression to an integer, you'd have to implement as an extension, but it looks like you want to convert a script variable to int, so use math_int... /r mike Tetsuo Nakazawa wrote: > Dear GrADS users, > > I tried to use the function of int (truncate the real number to > integer), > but an error came when I used opengrads 2.0.a5.oga.5 for Mac OSX. > > The script and the anal_p.ctl are as follows > > 'open anal_p.ctl' > 'set lon 30 180' > 'set lat -40 40' > 'i0=ugrdsfc*2.+1.' > 'd i0' > 'd int(i0)' > > It worked fine to "d i0", but when I did "d int(i0)", then > the following error message came. > > Syntax Error: Invalid Operand > 'int' not a variable or function name > Error ocurred at column 1 > DISPLAY error: Invalid expression > Expression = int(i0) > > > function int(i0) > i=0 > while(i<12) > i=i+1 > if(substr(i0,i,1)='.') > i0=substr(i0,1,i-1) > break > endif > endwhile > return(i0) > > > * content of anal_p.ctl > > dset ^anal_p.%y4%m2%d2%h2 > index ^anal_p.idx > undef 9.999E+20 > title grib.anal_p > dtype grib 255 > options yrev template > ydef 145 linear -90.0 1.25 > xdef 288 linear 0.0 1.25 > tdef 124 linear 00Z01jan1979 6hr > zdef 23 levels > 1000 925 850 700 600 500 400 300 250 200 150 100 70 50 30 20 10 7 5 3 > 2 1 0.4 > vars 13 > HGTprs 23 7,100,0 ** Geopotential height [gpm] > TMPprs 23 11,100,0 ** Air temperature [K] > SPFHprs 23 51,100,0 ** Specific humidity [kg/kg] > DEPRprs 8 18,100,0 ** Dew point depression [K] > UGRDprs 23 33,100,0 ** Zonal wind [m/s] > VGRDprs 23 34,100,0 ** Meridional wind [m/s] > CWATprs 12 76,100,0 ** Cloud water content [kg/m^2] > PRMSLmsl 0 2,102,0 ** Pressure reduced to MSL [Pa] > TMPsfc 0 11,105,2 ** Surface 2m air temperature [K] > SPFHsfc 0 51,105,2 ** Surface 2m specific humidity [kg/kg] > DEPRsfc 0 18,105,2 ** Surface 2m dew point depression [K] > UGRDsfc 0 33,105,10 ** Surface 10m zonal wind [m/s] > VGRDsfc 0 34,105,10 ** Surface 10m meridional wind [m/s] > ENDVARS > > > > ******************************************** > Tetsuo Nakazawa > nakazawa at mri-jma.go.jp > Typhoon Research Department > Meteorological Research Institute > Tel: 029-853-8671 Fax: 029-853-8735 > ******************************************** From Michael.Fiorino at NOAA.GOV Thu Jun 4 12:47:27 2009 From: Michael.Fiorino at NOAA.GOV (Michael Fiorino) Date: Thu, 4 Jun 2009 10:47:27 -0600 Subject: pygrads installation problem In-Reply-To: <4A27A8B3.5020604@worstead.co.uk> Message-ID: hi john, you have to use opengrads to use the python interface, see: opengrads.org and http://sourceforge.net/project/downloading.php?group_id=161773&filename=grads-2.0.a5.oga.5-bundle-i686-pc-linux-gnu.tar.gz&a=42488138 this should work under suse but if you have a 64 bit machine try: http://sourceforge.net/project/downloading.php?group_id=161773&filename=grads-2.0.a5.oga.5-bundle-x86_64-unknown-linux-gnu.tar.gz&a=68644877 cheers, mike John_Bacon wrote: > Hi all > > I'm trying to install pygrads-1.1.2 to use with grads-2.0.a6 running > under OpenSUSE11. > I used the default installation (to > /usr/local/lib64/python2.5/site-packages/grads). > > When I try to run pygrads I get the error " /bin/sh: gradsc: command > not found" > Ipygrads also fails to load. > > I've added the pygrads location to $PYTHONPATH in .bashrc and the > script writes that it is using the existing pygrads rc file (under > my home directory). > > I'm missing something and would appreciate any help to find the problem. > > Cheers > John Bacon From Ron.Goodson at EC.GC.CA Thu Jun 4 17:03:44 2009 From: Ron.Goodson at EC.GC.CA (Goodson,Ron [Edm]) Date: Thu, 4 Jun 2009 15:03:44 -0600 Subject: locating trough / ridges In-Reply-To: A<329975.77722.qm@web30406.mail.mud.yahoo.com> Message-ID: Hi Anybody got some scripts or otherwise up their sleeve to automatically locate ridge and trough lines in contour plots .. and then draw them in? I'm expecting not, but happy to be surprised. tks ron goodson environment canada -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090604/ead689d3/attachment.html From matias at TROPOSFERA.ATMOSFCU.UNAM.MX Thu Jun 4 13:12:05 2009 From: matias at TROPOSFERA.ATMOSFCU.UNAM.MX (Matias Mendez) Date: Thu, 4 Jun 2009 13:12:05 -0400 Subject: locating trough / ridges In-Reply-To: <4A6AB38B55B49C44A22E021A83CBEDDB06937FAE@sr-pnr-exch3.prairie.int.ec.gc.ca> Message-ID: Hi Ron, I found a source code (fortran 90) for objective trough/jet in gridded data. It was developed by G. Berry (SUNY) to get African easterly waves activity. You can get it here: http://www.atmos.albany.edu/student/gareth/source.htm The Input data can be streamfunction or zonal and meridional winds. The output consists of several fields including trough and jet axes in both easterly and westerly flow. I've attached an example output plotted with GrADS. I hope this can help you or at least give you an idea. Good luck. Regards, Matias El jue, 04-06-2009 a las 15:03 -0600, Goodson,Ron [Edm] escribi?: > Hi > > Anybody got some scripts or otherwise up their sleeve to automatically > locate ridge and trough lines in contour plots .. and then draw them > in? > > I'm expecting not, but happy to be surprised. > > tks > > ron goodson > environment canada -------------- next part -------------- A non-text attachment was scrubbed... Name: EW-2005_07_05_18.png Type: image/png Size: 139230 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090604/647dd3b7/attachment.png From arlindo.dasilva at GMAIL.COM Thu Jun 4 19:19:12 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 4 Jun 2009 16:19:12 -0700 Subject: pygrads installation problem In-Reply-To: <4A27A8B3.5020604@worstead.co.uk> Message-ID: On Thu, Jun 4, 2009 at 3:57 AM, John_Bacon wrote: > Hi all > > I'm trying to install pygrads-1.1.2 to use with grads-2.0.a6 running under > OpenSUSE11. > While you can run pygrads with COLA's releases, it will have limited functionality. For example. you cannot import data back into grads. > > I used the default installation (to > /usr/local/lib64/python2.5/site-packages/grads). > > When I try to run pygrads I get the error " /bin/sh: gradsc: command not > found" > Try explicitly specifying the patch of your grads binary: pygrads -x /path/to/my/grads > > Ipygrads also fails to load. > > I've added the pygrads location to $PYTHONPATH in .bashrc and the script > writes that it is using the existing pygrads rc file (under my home > directory). > > I'm missing something and would appreciate any help to find the problem. > See above. -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090604/19589cef/attachment.html From arlindo.dasilva at GMAIL.COM Thu Jun 4 19:20:35 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 4 Jun 2009 16:20:35 -0700 Subject: locating trough / ridges In-Reply-To: <1244135525.31418.31.camel@localhost.localdomain> Message-ID: On Thu, Jun 4, 2009 at 10:12 AM, Matias Mendez < matias at troposfera.atmosfcu.unam.mx> wrote: > Hi Ron, > > I found a source code (fortran 90) for objective trough/jet in gridded > data. It was developed by G. Berry (SUNY) to get African easterly waves > activity. You can get it here: > > http://www.atmos.albany.edu/student/gareth/source.htm > > The Input data can be streamfunction or zonal and meridional winds. The > output consists of several fields including trough and jet axes in both > easterly and westerly flow. I've attached an example output plotted with > GrADS. > > I hope this can help you or at least give you an idea. Good luck. > It would be nice to have this as an extension. Any volunteers? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090604/860396bd/attachment.html From nakazawa at MRI-JMA.GO.JP Thu Jun 4 21:17:23 2009 From: nakazawa at MRI-JMA.GO.JP (Tetsuo Nakazawa) Date: Fri, 5 Jun 2009 10:17:23 +0900 Subject: function int In-Reply-To: <4A27E352.7080204@noaa.gov> Message-ID: Dear Mike-sama, > there is no grads function int, but there is a script function > math_int. > > if you really wanted to convert a grads expression to an integer, > you'd > have to implement as an extension, but it looks like you want to > convert > a script variable to int, so use math_int... Thanks. I changed the script using math_int, as follows, but the similar error message came. 'open anal_p.ctl' 'set lon 30 180' 'set lat -40 40' 'i0=ugrdsfc*2.+1.' 'd i0' 'd math_int(i0)' Syntax Error: Invalid Operand 'math_int' not a variable or function name Error ocurred at column 1 DISPLAY error: Invalid expression Expression = math_int(i0) ******************************************** Tetsuo Nakazawa nakazawa at mri-jma.go.jp Typhoon Research Department Meteorological Research Institute Tel: 029-853-8671 Fax: 029-853-8735 ******************************************** From dhaval.prajapati at ICCSIR.ORG Fri Jun 5 02:07:49 2009 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Fri, 5 Jun 2009 06:07:49 +0000 Subject: Abstracting time series from Grided data Message-ID: Dear All, I want to abstract time series from the grided data in Grads. Suppose for lat 23 and long 72 I want to have time series values in Ascii for this position if I give one time at a time like set t 1 or set t 2 I am getting the value for this time But If I use set t 1 57 d rf I am getting a time series plote But I want all the values to be written on the screen how to do it?????? Thanks 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/20090605/bba33f7e/attachment.html From sachinghude at TROPMET.RES.IN Fri Jun 5 03:03:22 2009 From: sachinghude at TROPMET.RES.IN (Sachin Ghude) Date: Fri, 5 Jun 2009 13:33:22 +0630 Subject: Abstracting time series from Grided data In-Reply-To: Message-ID: Hi! You can try following, 'set x 1' 'set y 1' 'set t 1 57' 'set gxout print' 'set prnopts %g 1 1' 'd tloop(aave(maskout(no2,no2-100),lon=72,lon=72,lat=23,lat=23))' say result write ('c:timeseries.txt',result) This will write to file in txt formate. to print on screen you can try following 'set x 1' 'set y 1' 'set t 1 57' 'set prnopts %g 1 1' 'd tloop(aave(maskout(no2,no2-100),lon=72,lon=72,lat=23,lat=23))' bye Sachin D Ghude Indian Institute of Tropical Meteorology Pashan, Pune 411008, INDIA ---------- Original Message ----------- From: Dhaval Prajapati To: GRADSUSR at LIST.CINECA.IT Sent: Fri, 5 Jun 2009 06:07:49 +0000 Subject: Abstracting time series from Grided data > > Dear All, > > I want to abstract time series from the grided data in Grads. > > Suppose for lat 23 and long 72 > I want to have time series values in Ascii for this position > if I give one time at a time > like set t 1 > or set t 2 > I am getting the value for this time > But If I use > set t 1 57 > d rf > I am getting a time series plote > But I want all the values to be written on the screen how to do it?????? > > Thanks > 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 > > ------- End of Original Message ------- From mrmerzz at AOL.COM Fri Jun 5 12:09:47 2009 From: mrmerzz at AOL.COM (John Murray) Date: Fri, 5 Jun 2009 18:09:47 +0200 Subject: Changes to certain time steps of a variable Message-ID: To all GrADS users, I am working with a dataset that has 100080 time steps for every hour from April 1st 1996 through August 31st 2007. Each hour has a count of the high composite reflectivity frequency across the eastern U.S. I am also reading in wind data at a few select points and am testing to see if it is from a certain wind direction. If it is from the desired wind direction, I will either keep the count variable or make it equal to zero. I have this procedure in a loop, but the problem is that I keep overwriting the data and by the last time step, the modifications to the count variable from testing the point of wind are not saved. If I try to make another variable with the time dimension from 1 to 100080, I get a segmentation fault. Is there anyway I can easily modify or update the count variable after testing the winds at certain time steps? Any help would be greatly appreciated. John Murray Stony Brook University Graduate Student From sh.maeam at GMAIL.COM Sat Jun 6 12:04:54 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Sun, 7 Jun 2009 00:04:54 +0800 Subject: background color Message-ID: Dear All? When I draw a station plot, the background color is always red, can you tell me how to change it? The following steps is what I did, 1. I write two binary files for station data and background grid data respectively. In grid data file, I set all arguments value zero, and then the background color is red when display , in this step how to change the background color? 2. I insert station data into background grid data use command :" oacres", but the background color is still red. Does it means arguments in background grid data should be set with other values? not "0"? or I should modify some parameters in step 2? Another question is how to extract station data from grid data( grid data is model output), I'm so confused with the command "gr2stn", would you like to do me a favor to tell me the specify steps about how to use it? Thank you . With regards. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090607/0ef087c2/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: grid_data.f90 Type: application/octet-stream Size: 330 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090607/0ef087c2/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: grid.gif Type: image/gif Size: 8698 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090607/0ef087c2/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: test.gif Type: image/gif Size: 13503 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090607/0ef087c2/attachment-0001.gif From puffy78 at GMAIL.COM Sat Jun 6 19:22:28 2009 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Sat, 6 Jun 2009 20:22:28 -0300 Subject: background color In-Reply-To: <94ce49550906060904v6b4c2430jbb3b7c4995d311ce@mail.gmail.com> Message-ID: Dear All, I have a file text with this characteristic : long, lat and value precipition lon -35.98 -9.10 10 -32.75 -8.10 3.5 -30.45 -7.84 105.65 -33.55 -10.52 135.0 .................. Somebody have any idea how to program in fortran on grads to view the colors (of contour line)? Thanks... Alexandre 2009/6/6 sh zhou > Dear All? > > When I draw a station plot, the background color is always red, can you > tell me how to change it? > The following steps is what I did, > 1. I write two binary files for station data and background grid data > respectively. > > In grid data file, I set all arguments value zero, and then the > background color is red when display , in this step how to change the > background color? > > 2. I insert station data into background grid data use command :" oacres", > but the background color is still red. > > Does it means arguments in background grid data should be set with other > values? not "0"? or I should modify some parameters in step 2? > > Another question is how to extract station data from grid data( grid data > is model output), I'm so confused with the command "gr2stn", > would you like to do me a favor to tell me the specify steps about how to > use it? > > Thank you . > > With regards. > > > > > -- > > Shenghui Student > Major: Physics > HuNan University China > -- ALEXANDRE S. DOS SANTOS SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS DIRETORIA DE METEOROLOGIA www.semarh.al.gov.br TEL.: 82-33152627 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090606/1a481440/attachment.html From sh.maeam at GMAIL.COM Sat Jun 6 22:12:08 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Sun, 7 Jun 2009 10:12:08 +0800 Subject: background color In-Reply-To: Message-ID: Hi Alexandre Santos. Do you want to draw a station plot? If I know what you said, you may do like this: 1. read station data and write those data into a binary file. be careful with some arguments : station_id( should be defined like this : character(8)) , ntime, nlevel, nflag, http://www.jamstec.go.jp/frsgc/research/iprc/nona/GrADS/Station_data_in_GrADS.html 2. you can use this command "oacres" to display the station plot. here, you should firstly create a background grid data, which used to interpolate station data, write a ".ctl" file for grid data, then ' open grid.ctl' 'open station.ctl' 'define qq=smth9(oacres(grid_expr, station_expr, var) 'd qq' ... ... I met a problem here , I don't know how to change the grid background color. If you like, have a try with the method above. Cheers. 2009/6/7 Alexandre Santos > Dear All, > > I have a file text with this characteristic : long, lat and value > precipition > > lon > > -35.98 -9.10 10 > -32.75 -8.10 3.5 > -30.45 -7.84 105.65 > -33.55 -10.52 135.0 > > .................. > > > Somebody have any idea how to program in fortran on grads to view the > colors (of contour line)? > > Thanks... > > Alexandre > > > 2009/6/6 sh zhou > > Dear All? >> >> When I draw a station plot, the background color is always red, can you >> tell me how to change it? >> The following steps is what I did, >> 1. I write two binary files for station data and background grid data >> respectively. >> >> In grid data file, I set all arguments value zero, and then the >> background color is red when display , in this step how to change the >> background color? >> >> 2. I insert station data into background grid data use command :" >> oacres", but the background color is still red. >> >> Does it means arguments in background grid data should be set with other >> values? not "0"? or I should modify some parameters in step 2? >> >> Another question is how to extract station data from grid data( grid data >> is model output), I'm so confused with the command "gr2stn", >> would you like to do me a favor to tell me the specify steps about how to >> use it? >> >> Thank you . >> >> With regards. >> >> >> >> >> -- >> >> Shenghui Student >> Major: Physics >> HuNan University China >> > > > > -- > ALEXANDRE S. DOS SANTOS > SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS > DIRETORIA DE METEOROLOGIA > www.semarh.al.gov.br > TEL.: 82-33152627 > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090607/8bc3b870/attachment.html From puffy78 at GMAIL.COM Sun Jun 7 07:43:15 2009 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Sun, 7 Jun 2009 08:43:15 -0300 Subject: background color In-Reply-To: <94ce49550906061912r14318e1bw1bf181176b1aa5f4@mail.gmail.com> Message-ID: Thanks... I need try. 2009/6/6 sh zhou > Hi Alexandre Santos. > > Do you want to draw a station plot? If I know what you said, you may do > like this: > 1. read station data and write those data into a binary file. > be careful with some arguments : station_id( should be defined like this : > character(8)) , ntime, nlevel, nflag, > > http://www.jamstec.go.jp/frsgc/research/iprc/nona/GrADS/Station_data_in_GrADS.html > 2. you can use this command "oacres" to display the station plot. > here, you should firstly create a background grid data, which used to > interpolate station data, write a ".ctl" file for grid data, then > ' open grid.ctl' > 'open station.ctl' > 'define qq=smth9(oacres(grid_expr, station_expr, var) > 'd qq' > ... ... > I met a problem here , I don't know how to change the grid background > color. > > If you like, have a try with the method above. > > Cheers. > > > 2009/6/7 Alexandre Santos > > Dear All, >> >> I have a file text with this characteristic : long, lat and value >> precipition >> >> lon >> >> -35.98 -9.10 10 >> -32.75 -8.10 3.5 >> -30.45 -7.84 105.65 >> -33.55 -10.52 135.0 >> >> .................. >> >> >> Somebody have any idea how to program in fortran on grads to view the >> colors (of contour line)? >> >> Thanks... >> >> Alexandre >> >> >> 2009/6/6 sh zhou >> >> Dear All? >>> >>> When I draw a station plot, the background color is always red, can you >>> tell me how to change it? >>> The following steps is what I did, >>> 1. I write two binary files for station data and background grid data >>> respectively. >>> >>> In grid data file, I set all arguments value zero, and then the >>> background color is red when display , in this step how to change the >>> background color? >>> >>> 2. I insert station data into background grid data use command :" >>> oacres", but the background color is still red. >>> >>> Does it means arguments in background grid data should be set with other >>> values? not "0"? or I should modify some parameters in step 2? >>> >>> Another question is how to extract station data from grid data( grid >>> data is model output), I'm so confused with the command "gr2stn", >>> would you like to do me a favor to tell me the specify steps about how >>> to use it? >>> >>> Thank you . >>> >>> With regards. >>> >>> >>> >>> >>> -- >>> >>> Shenghui Student >>> Major: Physics >>> HuNan University China >>> >> >> >> >> -- >> ALEXANDRE S. DOS SANTOS >> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >> DIRETORIA DE METEOROLOGIA >> www.semarh.al.gov.br >> TEL.: 82-33152627 >> > > > > -- > > Shenghui Student > Major: Physics > HuNan University China > -- ALEXANDRE S. DOS SANTOS SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS DIRETORIA DE METEOROLOGIA www.semarh.al.gov.br TEL.: 82-33152627 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090607/03a5bbb6/attachment.html From sde at TROPMET.RES.IN Mon Jun 8 00:37:47 2009 From: sde at TROPMET.RES.IN (S.De) Date: Mon, 8 Jun 2009 11:07:47 +0630 Subject: searching for .ctl file of ecmwf-yotc high resolution grib files Message-ID: Dear GrADS usre's gorup, I have downloaded 6-hourly high resolution forecast and analyzed data of horizontal wind field from the yotc data server (http://data-portal.ecmwf.int/data/d/yotc/class=od/levtype=pl/type=fc/ and http://data-portal.ecmwf.int/data/d/yotc/class=od/levtype=pl/type=an/). All the data are in grib format.I am not getting the .ctl file of these grib files. What is the default resolution of the grib files? How can I convert the grib files into the binary and ASCII files? I will be very obliged if someone provide the corresponding .ctl file and answer the above queries.I have tried with the command grib2ctl.pl, but the code is showing error at the line no. 437 with the message "Use of uninitialized value in string eq at /usr/local/grads/bin/grib2ctl.pl line 437. *** script needs to be modified *** unknown user-defined grid" Thanking you and with regards, Saumyendu De -- Open WebMail Project (http://openwebmail.org) *********************************************** Saumyendu De Theoretical Studies Division Indian Institute of tropical meteorology Dr. Homi Bhabha Road; NCL-Post, Pashan, Pune-411 008; India e-mail: sde at tropmet.res.in saumyendu.de at gmail.com Phone: +91 20 25893600/Extn.275 (O) Fax: +91 20 25893825 ************************************************ From pjamyangs at GMAIL.COM Mon Jun 8 05:45:37 2009 From: pjamyangs at GMAIL.COM (Jamyang Phuntshok) Date: Mon, 8 Jun 2009 17:45:37 +0800 Subject: Help find Sub.gt script. Message-ID: Dear GrADS Users Please help me find the script for sub.gt. Thank you all in advance. Jamyang -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090608/30be1f5c/attachment.html From alessandro.raolil at CMCC.IT Mon Jun 8 07:45:32 2009 From: alessandro.raolil at CMCC.IT (Sandro Raolil) Date: Mon, 8 Jun 2009 13:45:32 +0200 Subject: McGraG - New GUI for GrADS developed at CMCC Message-ID: Dear GrADS Users, I am happy to inform you that McGraG is ready! McGraG is the new GUI, based on GrADS 2.0, developed by CMCC to provide a more powerful and user-friendly access to GrADS functionalities. You can see more details here: http://www.cmcc.it/news/mcgrag-mac-grads-gui-the-new-software-for-mac-osx Thanks in advance for your attention Regards Alessandro Raolil -- Ing. Alessandro Raolil Euromediterranean Center for Climate Changes - https://www.cmcc.it SPACI Consortium - www.spaci.it National Nanotechnology Laboratory (NNL/CNR-INFM) - www.nnl.it Via per Monteroni - 73100 Lecce (Italy) email: alessandro.raolil at unile.it From arlindo.dasilva at GMAIL.COM Mon Jun 8 13:40:25 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 8 Jun 2009 10:40:25 -0700 Subject: McGraG - New GUI for GrADS developed at CMCC In-Reply-To: <34396.89.97.216.114.1244461532.squirrel@webmail.cmcc.it> Message-ID: On Mon, Jun 8, 2009 at 4:45 AM, Sandro Raolil wrote: > Dear GrADS Users, > > I am happy to inform you that McGraG is ready! > > McGraG is the new GUI, based on GrADS 2.0, developed by CMCC to provide a > more powerful and user-friendly access to GrADS functionalities. > > You can see more details here: > > http://www.cmcc.it/news/mcgrag-mac-grads-gui-the-new-software-for-mac-osx > > Congratulations, it looks very nice. I have a couple of questions: 1) Is this Mac OS specific? In which language is it written in? 2) Have you altered the grads sources? Or does it simply drive GrADS with a command pipeline (say, with the -u switch)? 3) Is McGraG opensource? What are the license terms? 4) Which grads version is your current release based on? Is it opendap enabled? Cheers! Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090608/66bb146a/attachment.html From j_karmacharya at YAHOO.COM Mon Jun 8 15:43:17 2009 From: j_karmacharya at YAHOO.COM (Jagadish Karmacharya) Date: Mon, 8 Jun 2009 12:43:17 -0700 Subject: Rotated Mercator Projection to Lat-Long Message-ID: Hi,I have grided data in rotated mercator projection in netcdf file. I want to project the data in lat/long using grads. How can I do that?I am using Grads v2.0.a3 in linux mechine. I have attached the output of ncdump below:$ ncdump -c srf.nc netcdf srf { dimensions: ? lon = 118 ; ? lat = 109 ; ? time = UNLIMITED ; // (12 currently) variables: ? float lon(lon) ; ? lon:long_name = "Longitude" ; ? lon:units = "degrees_east" ; ? lon:actual_range = 52.37275f, 108.0947f ; ? float lat(lat) ; ? lat:long_name = "Latitude" ; ? lat:units = "degrees_north" ; ? lat:actual_range = -2.378861f, 44.79094f ; ? double time(time) ; ? time:long_name = "Time" ; ? time:units = "hours since 1900-1-1 00:00:0.0" ; ? time:actual_range = 535056., 543072. ; ? float UA(time, lat, lon) ; ? UA:long_name = "Anemom Zonal Winds" ; ? UA:units = "m/s" ; ? UA:missing_value = -1.e+30f ; ? float VA(time, lat, lon) ; ? VA:long_name = "Anemom Merid Winds" ; ? VA:units = "m/s" ; ? VA:missing_value = -1.e+30f ; ? float DRAG(time, lat, lon) ; ? DRAG:long_name = "Surface Drag Stress" ; ? DRAG:units = "si" ; ? DRAG:missing_value = -1.e+30f ; ? float TG(time, lat, lon) ; ? TG:long_name = "Ground Temperature" ; ? TG:units = "K" ; ? TG:missing_value = -1.e+30f ; ? float TF(time, lat, lon) ; ? TF:long_name = "Foliage Temp" ; ? TF:units = "K" ; ? TF:missing_value = -1.e+30f ; ? float TA(time, lat, lon) ; ? TA:long_name = "Anemom Temp" ; ? TA:units = "K" ; ? TA:missing_value = -1.e+30f ; ? float QA(time, lat, lon) ; ? QA:long_name = "Anemom Spec Humidity" ; ? QA:units = "kg/kg" ; ? QA:missing_value = -1.e+30f ; ? float SMU(time, lat, lon) ; ? SMU:long_name = "Top Layer Soil Moist" ; ? SMU:units = "mm" ; ? SMU:missing_value = -1.e+30f ; ? float SMR(time, lat, lon) ; ? SMR:long_name = "Root Lay Soil Moist" ; ? SMR:units = "mm" ; ? SMR:missing_value = -1.e+30f ; ? float RT(time, lat, lon) ; ? RT:long_name = "Total Precipitation" ; ? RT:units = "mm/day" ; ? RT:missing_value = -1.e+30f ; ? float ET(time, lat, lon) ; ? ET:long_name = "Evapotranspiration" ; ? ET:units = "mm/day" ; ? ET:missing_value = -1.e+30f ; ? float RNFS(time, lat, lon) ; ? RNFS:long_name = "Surface Runoff" ; ? RNFS:units = "mm/day" ; ? RNFS:missing_value = -1.e+30f ; ? float SNOW(time, lat, lon) ; ? SNOW:long_name = "Snow Depth" ; ? SNOW:units = "mm H2O" ; ? SNOW:missing_value = -1.e+30f ; ? float SH(time, lat, lon) ; ? SH:long_name = "Sensible Heat" ; ? SH:units = "W/m2" ; ? SH:missing_value = -1.e+30f ; ? float LWN(time, lat, lon) ; ? LWN:long_name = "Net Longwave" ; ? LWN:units = "W/m2" ; ? LWN:missing_value = -1.e+30f ; ? float SWN(time, lat, lon) ; ? SWN:long_name = "Net Solar Absorbed" ; ? SWN:units = "W/m2" ; ? SWN:missing_value = -1.e+30f ; ? float LWD(time, lat, lon) ; ? LWD:long_name = "Downward Longwave" ; ? LWD:units = "W/m2" ; ? LWD:missing_value = -1.e+30f ; ? float SWI(time, lat, lon) ; ? SWI:long_name = "Solar Incident" ; ? SWI:units = "W/m2" ; ? SWI:missing_value = -1.e+30f ; ? float RC(time, lat, lon) ; ? RC:long_name = "Convective Precip" ; ? RC:units = "mm/day" ; ? RC:missing_value = -1.e+30f ; ? float PSRF(time, lat, lon) ; ? PSRF:long_name = "Surface Pressure" ; ? PSRF:units = "hPa" ; ? PSRF:missing_value = -1.e+30f ; ? float ZPBL(time, lat, lon) ; ? ZPBL:long_name = "PBL Height" ; ? ZPBL:units = "m" ; ? ZPBL:missing_value = -1.e+30f ; ? float TGMAX(time, lat, lon) ; ? TGMAX:long_name = "Max Ground Temp" ; ? TGMAX:units = "K" ; ? TGMAX:missing_value = -1.e+30f ; ? float TGMIN(time, lat, lon) ; ? TGMIN:long_name = "Min Ground Temp" ; ? TGMIN:units = "K" ; ? TGMIN:missing_value = -1.e+30f ; ? float TAMAX(time, lat, lon) ; ? TAMAX:long_name = "Max Anemom Temp" ; ? TAMAX:units = "K" ; ? TAMAX:missing_value = -1.e+30f ; ? float TAMIN(time, lat, lon) ; ? TAMIN:long_name = "Min Anemom Temp" ; ? TAMIN:units = "K" ; ? TAMIN:missing_value = -1.e+30f ; ? float W10MX(time, lat, lon) ; ? W10MX:long_name = "Max 10m Wind Speed" ; ? W10MX:units = "m/s" ; ? W10MX:missing_value = -1.e+30f ; ? float PSMIN(time, lat, lon) ; ? PSMIN:long_name = "Min Surface Pressure" ; ? PSMIN:units = "hPa" ; ? PSMIN:missing_value = -1.e+30f ; ? float RHA(time, lat, lon) ; ? RHA:long_name = "Relative Humidity" ; ? RHA:units = "fraction" ; ? RHA:missing_value = -1.e+30f ; // global attributes: ? :domxmin = 52.37275f ; ? :domxmax = 108.0947f ; ? :domymin = -2.378861f ; ? :domymax = 44.79094f ; ? :domzmin = 1050.f ; ? :domzmax = 1050.f ; data: ?lon = 52.37275, 52.84065, 53.30896, 53.77768, 54.2468, 54.7163, 55.1862, ? 55.65649, 56.12714, 56.59818, 57.06958, 57.54135, 58.01347, 58.48594, ? 58.95876, 59.43192, 59.90541, 60.37923, 60.85337, 61.32784, 61.8026, ? 62.27767, 62.75303, 63.22868, 63.70462, 64.18082, 64.6573, 65.13405, ? 65.61103, 66.08827, 66.56575, 67.04345, 67.52139, 67.99953, 68.4779, ? 68.95645, 69.4352, 69.91414, 70.39325, 70.87254, 71.35197, 71.83157, ? 72.31132, 72.79119, 73.2712, 73.75132, 74.23156, 74.7119, 75.19233, ? 75.67285, 76.15345, 76.63412, 77.11485, 77.59563, 78.07645, 78.5573, ? 79.03819, 79.51909, 79.99999, 80.4809, 80.96181, 81.44269, 81.92355, ? 82.40437, 82.88515, 83.36587, 83.84653, 84.32713, 84.80766, 85.28809, ? 85.76843, 86.24866, 86.7288, 87.2088, 87.68867, 88.16841, 88.64801, ? 89.12746, 89.60674, 90.08585, 90.56479, 91.04353, 91.52209, 92.00045, ? 92.4786, 92.95654, 93.43424, 93.91171, 94.38895, 94.86594, 95.34268, ? 95.81916, 96.29537, 96.7713, 97.24696, 97.72232, 98.19739, 98.67216, ? 99.14661, 99.62076, 100.0946, 100.5681, 101.0412, 101.514, 101.9865, ? 102.4586, 102.9304, 103.4018, 103.8728, 104.3435, 104.8138, 105.2837, ? 105.7532, 106.2223, 106.691, 107.1593, 107.6272, 108.0947 ; ?lat = -2.378861, -1.965491, -1.550857, -1.134967, -0.7178538, -0.2995197, ? 0.1200046, 0.5407031, 0.9625621, 1.385549, 1.809664, 2.234863, 2.661142, ? 3.088466, 3.516842, 3.946209, 4.376571, 4.807911, 5.240187, 5.673385, ? 6.107484, 6.542458, 6.978286, 7.414947, 7.852407, 8.290652, 8.729655, ? 9.16939, 9.609834, 10.05096, 10.49274, 10.93516, 11.37819, 11.82179, ? 12.26595, 12.71064, 13.15584, 13.60151, 14.04763, 14.49418, 14.94112, ? 15.38843, 15.83609, 16.28406, 16.73233, 17.18085, 17.62961, 18.07857, ? 18.52772, 18.97701, 19.42644, 19.87596, 20.32555, 20.77518, 21.22482, ? 21.67445, 22.12404, 22.57355, 23.02298, 23.47227, 23.92142, 24.37038, ? 24.81915, 25.26767, 25.71594, 26.1639, 26.61156, 27.05888, 27.50582, ? 27.95237, 28.39849, 28.84416, 29.28936, 29.73404, 30.1782, 30.62181, ? 31.06484, 31.50725, 31.94904, 32.39017, 32.83061, 33.27034, 33.70934, ? 34.14759, 34.58505, 35.02171, 35.45754, 35.89252, 36.32661, 36.75981, ? 37.19209, 37.62342, 38.05379, 38.48316, 38.91153, 39.33885, 39.76514, ? 40.19034, 40.61444, 41.03743, 41.45929, 41.87999, 42.29952, 42.71785, ? 43.13496, 43.55085, 43.96549, 44.37885, 44.79094 ; ?time = 535056, 535800, 536472, 537216, 537936, 538680, 539400, 540144, ? 540888, 541608, 542352, 543072 ; Any suggestion will be highly appriciated.Jagadish -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090608/e58790ef/attachment.html From j_karmacharya at YAHOO.COM Mon Jun 8 16:31:07 2009 From: j_karmacharya at YAHOO.COM (Jagadish Karmacharya) Date: Mon, 8 Jun 2009 22:31:07 +0200 Subject: Rotated Mercator Projection to Lat-Long Message-ID: Hi, I have grided data in rotated mercator projection in netcdf file. I want to project the data in lat/long using grads. How can I do that? I am using Grads v2.0.a3 in linux mechine. I have attached the output of ncdump below: $ ncdump -c srf.nc netcdf srf { dimensions: lon = 118 ; lat = 109 ; time = UNLIMITED ; // (12 currently) variables: float lon(lon) ; lon:long_name = "Longitude" ; lon:units = "degrees_east" ; lon:actual_range = 52.37275f, 108.0947f ; float lat(lat) ; lat:long_name = "Latitude" ; lat:units = "degrees_north" ; lat:actual_range = -2.378861f, 44.79094f ; double time(time) ; time:long_name = "Time" ; time:units = "hours since 1900-1-1 00:00:0.0" ; time:actual_range = 535056., 543072. ; float UA(time, lat, lon) ; UA:long_name = "Anemom Zonal Winds" ; UA:units = "m/s" ; UA:missing_value = -1.e+30f ; float VA(time, lat, lon) ; VA:long_name = "Anemom Merid Winds" ; VA:units = "m/s" ; VA:missing_value = -1.e+30f ; float DRAG(time, lat, lon) ; DRAG:long_name = "Surface Drag Stress" ; DRAG:units = "si" ; DRAG:missing_value = -1.e+30f ; float TG(time, lat, lon) ; TG:long_name = "Ground Temperature" ; TG:units = "K" ; TG:missing_value = -1.e+30f ; float TF(time, lat, lon) ; TF:long_name = "Foliage Temp" ; TF:units = "K" ; TF:missing_value = -1.e+30f ; float TA(time, lat, lon) ; TA:long_name = "Anemom Temp" ; TA:units = "K" ; TA:missing_value = -1.e+30f ; float QA(time, lat, lon) ; QA:long_name = "Anemom Spec Humidity" ; QA:units = "kg/kg" ; QA:missing_value = -1.e+30f ; float SMU(time, lat, lon) ; SMU:long_name = "Top Layer Soil Moist" ; SMU:units = "mm" ; SMU:missing_value = -1.e+30f ; float SMR(time, lat, lon) ; SMR:long_name = "Root Lay Soil Moist" ; SMR:units = "mm" ; SMR:missing_value = -1.e+30f ; float RT(time, lat, lon) ; RT:long_name = "Total Precipitation" ; RT:units = "mm/day" ; RT:missing_value = -1.e+30f ; float ET(time, lat, lon) ; ET:long_name = "Evapotranspiration" ; ET:units = "mm/day" ; ET:missing_value = -1.e+30f ; float RNFS(time, lat, lon) ; RNFS:long_name = "Surface Runoff" ; RNFS:units = "mm/day" ; RNFS:missing_value = -1.e+30f ; float SNOW(time, lat, lon) ; SNOW:long_name = "Snow Depth" ; SNOW:units = "mm H2O" ; SNOW:missing_value = -1.e+30f ; float SH(time, lat, lon) ; SH:long_name = "Sensible Heat" ; SH:units = "W/m2" ; SH:missing_value = -1.e+30f ; float LWN(time, lat, lon) ; LWN:long_name = "Net Longwave" ; LWN:units = "W/m2" ; LWN:missing_value = -1.e+30f ; float SWN(time, lat, lon) ; SWN:long_name = "Net Solar Absorbed" ; SWN:units = "W/m2" ; SWN:missing_value = -1.e+30f ; float LWD(time, lat, lon) ; LWD:long_name = "Downward Longwave" ; LWD:units = "W/m2" ; LWD:missing_value = -1.e+30f ; float SWI(time, lat, lon) ; SWI:long_name = "Solar Incident" ; SWI:units = "W/m2" ; SWI:missing_value = -1.e+30f ; float RC(time, lat, lon) ; RC:long_name = "Convective Precip" ; RC:units = "mm/day" ; RC:missing_value = -1.e+30f ; float PSRF(time, lat, lon) ; PSRF:long_name = "Surface Pressure" ; PSRF:units = "hPa" ; PSRF:missing_value = -1.e+30f ; float ZPBL(time, lat, lon) ; ZPBL:long_name = "PBL Height" ; ZPBL:units = "m" ; ZPBL:missing_value = -1.e+30f ; float TGMAX(time, lat, lon) ; TGMAX:long_name = "Max Ground Temp" ; TGMAX:units = "K" ; TGMAX:missing_value = -1.e+30f ; float TGMIN(time, lat, lon) ; TGMIN:long_name = "Min Ground Temp" ; TGMIN:units = "K" ; TGMIN:missing_value = -1.e+30f ; float TAMAX(time, lat, lon) ; TAMAX:long_name = "Max Anemom Temp" ; TAMAX:units = "K" ; TAMAX:missing_value = -1.e+30f ; float TAMIN(time, lat, lon) ; TAMIN:long_name = "Min Anemom Temp" ; TAMIN:units = "K" ; TAMIN:missing_value = -1.e+30f ; float W10MX(time, lat, lon) ; W10MX:long_name = "Max 10m Wind Speed" ; W10MX:units = "m/s" ; W10MX:missing_value = -1.e+30f ; float PSMIN(time, lat, lon) ; PSMIN:long_name = "Min Surface Pressure" ; PSMIN:units = "hPa" ; PSMIN:missing_value = -1.e+30f ; float RHA(time, lat, lon) ; RHA:long_name = "Relative Humidity" ; RHA:units = "fraction" ; RHA:missing_value = -1.e+30f ; // global attributes: :domxmin = 52.37275f ; :domxmax = 108.0947f ; :domymin = -2.378861f ; :domymax = 44.79094f ; :domzmin = 1050.f ; :domzmax = 1050.f ; data: lon = 52.37275, 52.84065, 53.30896, 53.77768, 54.2468, 54.7163, 55.1862, 55.65649, 56.12714, 56.59818, 57.06958, 57.54135, 58.01347, 58.48594, 58.95876, 59.43192, 59.90541, 60.37923, 60.85337, 61.32784, 61.8026, 62.27767, 62.75303, 63.22868, 63.70462, 64.18082, 64.6573, 65.13405, 65.61103, 66.08827, 66.56575, 67.04345, 67.52139, 67.99953, 68.4779, 68.95645, 69.4352, 69.91414, 70.39325, 70.87254, 71.35197, 71.83157, 72.31132, 72.79119, 73.2712, 73.75132, 74.23156, 74.7119, 75.19233, 75.67285, 76.15345, 76.63412, 77.11485, 77.59563, 78.07645, 78.5573, 79.03819, 79.51909, 79.99999, 80.4809, 80.96181, 81.44269, 81.92355, 82.40437, 82.88515, 83.36587, 83.84653, 84.32713, 84.80766, 85.28809, 85.76843, 86.24866, 86.7288, 87.2088, 87.68867, 88.16841, 88.64801, 89.12746, 89.60674, 90.08585, 90.56479, 91.04353, 91.52209, 92.00045, 92.4786, 92.95654, 93.43424, 93.91171, 94.38895, 94.86594, 95.34268, 95.81916, 96.29537, 96.7713, 97.24696, 97.72232, 98.19739, 98.67216, 99.14661, 99.62076, 100.0946, 100.5681, 101.0412, 101.514, 101.9865, 102.4586, 102.9304, 103.4018, 103.8728, 104.3435, 104.8138, 105.2837, 105.7532, 106.2223, 106.691, 107.1593, 107.6272, 108.0947 ; lat = -2.378861, -1.965491, -1.550857, -1.134967, -0.7178538, -0.2995197, 0.1200046, 0.5407031, 0.9625621, 1.385549, 1.809664, 2.234863, 2.661142, 3.088466, 3.516842, 3.946209, 4.376571, 4.807911, 5.240187, 5.673385, 6.107484, 6.542458, 6.978286, 7.414947, 7.852407, 8.290652, 8.729655, 9.16939, 9.609834, 10.05096, 10.49274, 10.93516, 11.37819, 11.82179, 12.26595, 12.71064, 13.15584, 13.60151, 14.04763, 14.49418, 14.94112, 15.38843, 15.83609, 16.28406, 16.73233, 17.18085, 17.62961, 18.07857, 18.52772, 18.97701, 19.42644, 19.87596, 20.32555, 20.77518, 21.22482, 21.67445, 22.12404, 22.57355, 23.02298, 23.47227, 23.92142, 24.37038, 24.81915, 25.26767, 25.71594, 26.1639, 26.61156, 27.05888, 27.50582, 27.95237, 28.39849, 28.84416, 29.28936, 29.73404, 30.1782, 30.62181, 31.06484, 31.50725, 31.94904, 32.39017, 32.83061, 33.27034, 33.70934, 34.14759, 34.58505, 35.02171, 35.45754, 35.89252, 36.32661, 36.75981, 37.19209, 37.62342, 38.05379, 38.48316, 38.91153, 39.33885, 39.76514, 40.19034, 40.61444, 41.03743, 41.45929, 41.87999, 42.29952, 42.71785, 43.13496, 43.55085, 43.96549, 44.37885, 44.79094 ; time = 535056, 535800, 536472, 537216, 537936, 538680, 539400, 540144, 540888, 541608, 542352, 543072 ; Any suggestion will be highly appriciated. Jagadish From nztideman at YAHOO.CO.NZ Mon Jun 8 16:36:15 2009 From: nztideman at YAHOO.CO.NZ (Derek Goring) Date: Mon, 8 Jun 2009 13:36:15 -0700 Subject: GrADS set time to all Message-ID: I'm reading a monthly grb2 file whose time dimension varies depending on the number of days in the month.? I want to extract the time series for a single location.? How do I set time to be all the times available??? I know the range of times is in the .ctl file, but is there a wildcard I can use in the set command? open multi_1.glo_30m.hs.200603.grb2.ctl set lat -36 set lon 172 set t 1? ? etc ________________ Derek Goring -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090608/bdc25cfe/attachment.html From smcmillan at PLANALYTICS.COM Mon Jun 8 16:41:30 2009 From: smcmillan at PLANALYTICS.COM (Stephen R McMillan) Date: Mon, 8 Jun 2009 15:41:30 -0500 Subject: GrADS set time to all In-Reply-To: <855290.77008.qm@web53908.mail.re2.yahoo.com> Message-ID: Use 'set t 1 last' Stephen McMillan Derek Goring Sent by: GRADSUSR at LIST.CINECA.IT 06/08/2009 03:36 PM Please respond to GRADSUSR at LIST.CINECA.IT To GRADSUSR at LIST.CINECA.IT cc Subject GrADS set time to all I'm reading a monthly grb2 file whose time dimension varies depending on the number of days in the month. I want to extract the time series for a single location. How do I set time to be all the times available? I know the range of times is in the .ctl file, but is there a wildcard I can use in the set command? open multi_1.glo_30m.hs.200603.grb2.ctl set lat -36 set lon 172 set t 1 ? etc ________________ Derek Goring Reading this email at work? Make a change with Yahoo!Xtra Jobs *************************************************** 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/20090608/766e5f13/attachment.html From nztideman at YAHOO.CO.NZ Mon Jun 8 16:49:30 2009 From: nztideman at YAHOO.CO.NZ (Derek Goring) Date: Mon, 8 Jun 2009 13:49:30 -0700 Subject: GrADS set time to all Message-ID: Yes!! set t 1 last is what I was looking for, thank you I looked and looked through the documentation, but didn't find it. Is it there?? If so, where? ________________ Derek Goring --- On Tue, 9/6/09, Stephen R McMillan wrote: From: Stephen R McMillan Subject: Re: GrADS set time to all To: GRADSUSR at LIST.CINECA.IT Received: Tuesday, 9 June, 2009, 8:41 AM Use 'set t 1 last' Stephen McMillan Derek Goring Sent by: GRADSUSR at LIST.CINECA.IT06/08/2009 03:36 PMPlease respond to GRADSUSR at LIST.CINECA.IT ToGRADSUSR at LIST.CINECA.ITcc SubjectGrADS set time to all I'm reading a monthly grb2 file whose time dimension varies depending on the number of days in the month.? I want to extract the time series for a single location.? How do I set time to be all the times available??? I know the range of times is in the .ctl file, but is there a wildcard I can use in the set command? open multi_1.glo_30m.hs.200603.grb2.ctl set lat -36 set lon 172 set t 1? ? etc ________________ Derek Goring Reading this email at work? Make a change with Yahoo!Xtra Jobs *************************************************** 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/20090608/c6d1ecd5/attachment.html From smcmillan at PLANALYTICS.COM Mon Jun 8 17:08:00 2009 From: smcmillan at PLANALYTICS.COM (Stephen R McMillan) Date: Mon, 8 Jun 2009 16:08:00 -0500 Subject: GrADS set time to all In-Reply-To: <743126.71898.qm@web53902.mail.re2.yahoo.com> Message-ID: Good! Regarding documentation, good question. It's not where one would expect, such as in the 'set t...' or tloop documentation. However, there is a less-than-clear example in the documentation for the tmave( ) function: http://www.iges.org/grads/gadoc/gradfunctmave.html Nothing in the Users Guide or Tutorial either. Not sure how I learned it--probably an Internet search. Stephen Mc Derek Goring Sent by: GRADSUSR at LIST.CINECA.IT 06/08/2009 03:49 PM Please respond to GRADSUSR at LIST.CINECA.IT To GRADSUSR at LIST.CINECA.IT cc Subject Re: GrADS set time to all Yes!! set t 1 last is what I was looking for, thank you I looked and looked through the documentation, but didn't find it. Is it there? If so, where? ________________ Derek Goring --- On Tue, 9/6/09, Stephen R McMillan wrote: From: Stephen R McMillan Subject: Re: GrADS set time to all To: GRADSUSR at LIST.CINECA.IT Received: Tuesday, 9 June, 2009, 8:41 AM Use 'set t 1 last' Stephen McMillan Derek Goring Sent by: GRADSUSR at LIST.CINECA.IT 06/08/2009 03:36 PM Please respond to GRADSUSR at LIST.CINECA.IT To GRADSUSR at LIST.CINECA.IT cc Subject GrADS set time to all I'm reading a monthly grb2 file whose time dimension varies depending on the number of days in the month. I want to extract the time series for a single location. How do I set time to be all the times available? I know the range of times is in the .ctl file, but is there a wildcard I can use in the set command? open multi_1.glo_30m.hs.200603.grb2.ctl set lat -36 set lon 172 set t 1 ? etc ________________ Derek Goring Reading this email at work? Make a change with Yahoo!Xtra Jobs *************************************************** 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. *************************************************** Need mail bonding? Bring all your contacts to Yahoo!Xtra with TrueSwitch *************************************************** 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/20090608/5fd6f06a/attachment.html From nztideman at YAHOO.CO.NZ Mon Jun 8 17:48:44 2009 From: nztideman at YAHOO.CO.NZ (Derek Goring) Date: Mon, 8 Jun 2009 14:48:44 -0700 Subject: GrADS vs wgrib2 Message-ID: Using wgrib2, I can transfer the data from a .grb2 file into a sequential binary file, from which I can extract data using a simple Fortran or Matlab program.? However, wgrib2 takes an awful long time and the binary file it generates is large (~5x the size of the .grb2 file). Alternatively, I can use GrADS to access the .grb2 file (via a .ctl file), just extracting the data that interest me.? But to my surprise, GrADS takes longer to do this than wgrib2 does to read and write the entire file. Is there a better way? ? ________________ Derek Goring -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090608/3ac7fe9c/attachment.html From jma at COLA.IGES.ORG Mon Jun 8 19:10:11 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Mon, 8 Jun 2009 19:10:11 -0400 Subject: GrADS set time to all In-Reply-To: Message-ID: I will update the docs. By the way, you can 'set e 1 last' too. For the Z dimension, 'set z 1 last' hasn't been implemented because it doesn't make sense for station data ... there is no last when there's no defined Z axis. --Jennifer On Jun 8, 2009, at 5:08 PM, Stephen R McMillan wrote: > Good! Regarding documentation, good question. It's not where one > would expect, such as in the 'set t...' or tloop documentation. > However, there is a less-than-clear example in the documentation for > the tmave( ) function: > > http://www.iges.org/grads/gadoc/gradfunctmave.html > > Nothing in the Users Guide or Tutorial either. Not sure how I > learned it--probably an Internet search. > > Stephen Mc > > > > > Derek Goring > Sent by: GRADSUSR at LIST.CINECA.IT > 06/08/2009 03:49 PM > Please respond to > GRADSUSR at LIST.CINECA.IT > > > To > GRADSUSR at LIST.CINECA.IT > cc > Subject > Re: GrADS set time to all > > > > > Yes!! > set t 1 last > is what I was looking for, thank you > > I looked and looked through the documentation, but didn't find it. > Is it there? If so, where? > ________________ > Derek Goring > > --- On Tue, 9/6/09, Stephen R McMillan > wrote: > > From: Stephen R McMillan > Subject: Re: GrADS set time to all > To: GRADSUSR at LIST.CINECA.IT > Received: Tuesday, 9 June, 2009, 8:41 AM > > Use 'set t 1 last' > > Stephen McMillan > > > Derek Goring > Sent by: GRADSUSR at LIST.CINECA.IT > > 06/08/2009 03:36 PM > Please respond to > GRADSUSR at LIST.CINECA.IT > > > To > GRADSUSR at LIST.CINECA.IT > cc > > Subject > GrADS set time to all > > > > > > > > I'm reading a monthly grb2 file whose time dimension varies > depending on the number of days in the month. I want to extract the > time series for a single location. How do I set time to be all the > times available? I know the range of times is in the .ctl file, > but is there a wildcard I can use in the set command? > > open multi_1.glo_30m.hs.200603.grb2.ctl > set lat -36 > set lon 172 > set t 1 ? > etc > > > > ________________ > Derek Goring > > > Reading this email at work? Make a change with Yahoo!Xtra Jobs > > > *************************************************** > 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. > *************************************************** > > Need mail bonding? Bring all your contacts to Yahoo!Xtra with > TrueSwitch > > > *************************************************** > 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. > *************************************************** -- 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/20090608/e09bb380/attachment.html From ashishroutray at REDIFFMAIL.COM Tue Jun 9 09:38:29 2009 From: ashishroutray at REDIFFMAIL.COM (Ashish Routray) Date: Tue, 9 Jun 2009 13:38:29 -0000 Subject: spatial RMSE only over land masking ocean data Message-ID: Dear users I could able to plot the model output only over land after masking ocean using basemap.gs script. My WRF model output contains data both over land and ocean. But I want to calculate spatial correlation coefficient, areal average and RMSE over only land neglecting the oceanic data using grads script. Could you please help in this regard? Thanks in advance! Ashish ASHISH ROUTRAY Project Scientist & Research Scholar Centre for Atmospheric Sciences Indian Institute of Technology Delhi Hauz Khas New Delhi-110016 India -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090609/c5f3c292/attachment.html From bernd.becker at METOFFICE.GOV.UK Tue Jun 9 09:48:06 2009 From: bernd.becker at METOFFICE.GOV.UK (Bernd Becker) Date: Tue, 9 Jun 2009 14:48:06 +0100 Subject: spatial RMSE only over land masking ocean data In-Reply-To: <20090609133829.6415.qmail@f4mail-235-149.rediffmail.com> Message-ID: Ashish, if you can find a land-sea mask for the WRF model you may be able to work with combinations of maskout and const to address only data over land/ocean in your calculations. ( please ascertain to compare the model output with upscaled observations with corresponding temporal and spatial representativity. ) Good luck! Bernd. On Tue, 2009-06-09 at 13:38 +0000, Ashish Routray wrote: > Dear users > I could able to plot the model output only over land after masking > ocean using basemap.gs script. > My WRF model output contains data both over land and ocean. > But I want to calculate spatial correlation coefficient, areal average > and RMSE over only land neglecting the oceanic data using grads > script. > > Could you please help in this regard? > > Thanks in advance! > Ashish > > > ASHISH ROUTRAY > > Project Scientist & Research Scholar > > Centre for Atmospheric Sciences > > Indian Institute of Technology Delhi > > Hauz Khas > > New Delhi-110016 > > India > > > -- Bernd Becker The Monthly Outlook Met Office FitzRoy Road Exeter Devon EX1 3PB United Kingdom Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050 E-mail:bernd.becker at metoffice.com - http://www.metoffice.com From asantor at ATMOS.UMD.EDU Tue Jun 9 11:01:03 2009 From: asantor at ATMOS.UMD.EDU (Anthony Santorelli) Date: Tue, 9 Jun 2009 11:01:03 -0400 Subject: scatter plot issue Message-ID: Hello, I am trying to create a scatterplot. I have turned the grid lines off via the 'set grid off' command. When I display my two variables, there is a line across the zero intercept on the y-axis since some negative values are plotted, and it makes the figure look weird since the grid lines are off. How can I get rid of this one line that is automatically produced in the scatterplot? Thank you for your help. Anthony Santorelli ----------------------------------------------- Anthony Santorelli Ph.D. Student-Atmospheric and Oceanic Science Graduate Research Assistant-Level II 4114B Computer and Space Sciences University of Maryland College Park, MD, 20742 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090609/56139c02/attachment.html From rsolanob at GMAIL.COM Tue Jun 9 16:14:15 2009 From: rsolanob at GMAIL.COM (Ramon Solano) Date: Tue, 9 Jun 2009 13:14:15 -0700 Subject: gxyat and libshp Message-ID: Hello, I'm trying to produce a printed copy of a map that has some SHP data displayed with the libshp (shp_lines) extension. However, when I call the "gxyat" command, grads quits unexpectedly with no messages. Is this a known issue or should I look into my configuration/data? Thanks for your feedback. Ramon --- Ramon Solano, Research Specialist Terrestrial Biophysics and Remote Sensing Lab. Dept. of Soil, Water and Environmental Sciences The University of Arizona From arlindo.dasilva at GMAIL.COM Tue Jun 9 19:00:36 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 9 Jun 2009 19:00:36 -0400 Subject: gxyat and libshp In-Reply-To: <4CEC9F9C-4839-4559-9904-3775C6189F8D@gmail.com> Message-ID: On Tue, Jun 9, 2009 at 4:14 PM, Ramon Solano wrote: > Hello, > > I'm trying to produce a printed copy of a map that has some SHP data > displayed with the libshp (shp_lines) extension. However, when I call > the "gxyat" command, grads quits unexpectedly with no messages. Is > this a known issue Not that I know of. > or should I look into my configuration/data? > I'd need a reproducer. Can you provide a simple script/sample data (use the standard model.ctl if you can) reproducing the problem? Does printim work? Also, send output of "q config". Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090609/0e6d0111/attachment.html From kiran at TROPMET.RES.IN Wed Jun 10 03:18:43 2009 From: kiran at TROPMET.RES.IN (Kiran Salunke) Date: Wed, 10 Jun 2009 09:18:43 +0200 Subject: how to extract perticular levels from ctl file Message-ID: Dear Gradsusers, I have ctl file which contain Geopotential height,U,V with 26 different level & 120hr forecast 21 points.(00,06,12,18.....................) 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 from these levels i would like to extract 1000,850,700,500,300,200,100. is there any way to do this ???/ convert it in .txt format kindly help me !! kiran -------------------------------------------------------------------- dset ^zuv.dat undef 9.999E+20 title T254_IND *options template ydef 161 linear -20.000000 0.5 xdef 241 linear 20.000000 0.500000 tdef 21 linear 00Z04may2009 6hr * z has 21 levels, for prs zdef 21 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 vars 3 HGTprs 26 7,100,0 ** (profile) Geopotential height [gpm] UGRDprs 26 33,100,0 ** (profile) u wind [m/s] VGRDprs 26 34,100,0 ** (profile) v wind [m/s] ENDVARS From dhaval.prajapati at ICCSIR.ORG Wed Jun 10 08:14:23 2009 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Wed, 10 Jun 2009 12:14:23 +0000 Subject: Abstracting Indian region data from global data set Message-ID: Dear All, Is there command abstract data for Indian region only from the Global data set. I want to work only for Indian land region. Thanks, 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/20090610/927654ff/attachment.html From sh.maeam at GMAIL.COM Wed Jun 10 10:28:05 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Wed, 10 Jun 2009 22:28:05 +0800 Subject: how to make a average in two data files Message-ID: Dear All, I have two output data files, one is "March" output data, another is "April" output, I want to make a average of "t" ( temperature) during Mar and Apr, I just can open one output data at a time, please tell me how to do that. When do a average , there are two method that I know, one is use " sum(t,t=1, t=N)", another is " do while", Is there any difference? Are they the same? Thank you. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090610/ad8c5944/attachment.html From sajjad_met at HOTMAIL.COM Wed Jun 10 13:09:17 2009 From: sajjad_met at HOTMAIL.COM (Sajjad Saeed) Date: Wed, 10 Jun 2009 23:09:17 +0600 Subject: how to make a average in two data files In-Reply-To: <94ce49550906100728i6aef1f89lcf9ffe085bbf0db4@mail.gmail.com> Message-ID: Hi, You can do it by many ways, combine the two file using cat file1 file 2 outputfile than open output file and use ave(var,t=1,t=n) or open file 1 define a=ave(var,t=1,t=n) close 1 open second file define b=ave(var,t=1,t=n) define c=(a+b)/2 draw c hope this will help you. Sajjad Date: Wed, 10 Jun 2009 22:28:05 +0800 From: sh.maeam at GMAIL.COM Subject: how to make a average in two data files To: GRADSUSR at LIST.CINECA.IT Dear All, I have two output data files, one is "March" output data, another is "April" output, I want to make a average of "t" ( temperature) during Mar and Apr, I just can open one output data at a time, please tell me how to do that. When do a average , there are two method that I know, one is use " sum(t,t=1, t=N)", another is " do while", Is there any difference? Are they the same? Thank you. -- Shenghui Student Major: Physics HuNan University China _________________________________________________________________ Windows Live?: Keep your life in sync. Check it out! http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090610/052a32e3/attachment.html From hersala at GMAIL.COM Wed Jun 10 14:34:57 2009 From: hersala at GMAIL.COM (hersala) Date: Wed, 10 Jun 2009 15:34:57 -0300 Subject: About draw mark command Message-ID: Hi Gradsusers, Has anybody know how to use de *draw mark* command using geographic coordinates instead of x and y inches (on the virtual page) as it is set as default ? Tks in advance ! Hern?n -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090610/e0cf309e/attachment.html From ela at COLA.IGES.ORG Wed Jun 10 15:58:01 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Wed, 10 Jun 2009 15:58:01 -0400 Subject: About draw mark command In-Reply-To: <593399964.1271244663809574.JavaMail.root@mail.iges.org> Message-ID: You can use the query command to convert from geographic (world) coordinates to screen (virtual page) coordinates. First you need to display something, for example a variable 'var'. d var q w2xy LON LAT where (LON,LAT) are the longitude and latitude of the point where you want to draw the mark. The output from the 'q w2xy' command will be of the form: X = xpos Y = ypos where (xpos,ypos) are the virtual page coordinates of the point with geographic coordinates (LON,LAT). To draw the mark, do: draw mark MARKTYPE xpos ypos SIZE See http://grads.iges.org/grads/gadoc/gradcomddrawmark.html for documentation on the 'draw mark' command. 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: "hersala" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, June 10, 2009 2:34:57 PM GMT -05:00 US/Canada Eastern Subject: About draw mark command Hi Gradsusers, Has anybody know how to use de *draw mark* command using geographic coordinates instead of x and y inches (on the virtual page) as it is set as default ? Tks in advance ! Hern?n From hersala at GMAIL.COM Wed Jun 10 16:10:56 2009 From: hersala at GMAIL.COM (hersala) Date: Wed, 10 Jun 2009 17:10:56 -0300 Subject: About draw mark command In-Reply-To: <2039543491.1291244663881424.JavaMail.root@mail.iges.org> Message-ID: Dear Eric, It worked perfectly. Thank you very much for your help. Best regards. Hern?n 2009/6/10 Eric Altshuler > You can use the query command to convert from geographic (world) > coordinates to screen (virtual page) coordinates. First you need to display > something, for example a variable 'var'. > > d var > q w2xy LON LAT > > where (LON,LAT) are the longitude and latitude of the point where you want > to draw the mark. The output from the 'q w2xy' command will be of the form: > > X = xpos Y = ypos > > where (xpos,ypos) are the virtual page coordinates of the point with > geographic coordinates (LON,LAT). To draw the mark, do: > > draw mark MARKTYPE xpos ypos SIZE > > See http://grads.iges.org/grads/gadoc/gradcomddrawmark.html for > documentation on the 'draw mark' command. > > 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: "hersala" > To: GRADSUSR at LIST.CINECA.IT > Sent: Wednesday, June 10, 2009 2:34:57 PM GMT -05:00 US/Canada Eastern > Subject: About draw mark command > > Hi Gradsusers, > Has anybody know how to use de *draw mark* command using geographic > coordinates instead of x and y inches (on the virtual page) as it is set as > default ? > Tks in advance ! > Hern?n > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090610/31e3f5ed/attachment.html From arlindo.dasilva at GMAIL.COM Wed Jun 10 22:35:59 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 10 Jun 2009 22:35:59 -0400 Subject: NEW RELEASE! GrADS 2.0.a6 In-Reply-To: Message-ID: Jennifer, I am having some problems with undef handling in 2.0.a6. Using COLA's Mac OS X build (intel): ./gradsdap ... ga-> sdfopen http://monsoondata.org:9090/dods/model ga-> d ua Contouring: -9e+08 to 0 interval 1e+08 It does not seem to be handling UNDEFs properly. Which grads version is behind the monsoondata GDS? Arlindo On Tue, Jun 2, 2009 at 11:34 AM, Jennifer Adams wrote: > Dear All,I have posted a new version of GrADS: 2.0.a6. The GrADS downloads > web page (*http://iges.org/grads/downloads.html*) > has been updated with links to the source code and a few pre-compiled > binaries. Version 2.0.a6 is mostly a bug fix release, but it does have a > couple of nice new features: > > *1. The user can control the undef value in all GrADS output* > This feature controls the undefined values printed to screen with the > 'gxout stat' and the 'gxout print' output, as well as the undefined values > in fwrite, sdfwrite, and geotiff files. The output undef value is controlled > with the 'set undef' command. *This feature changes the default behavior > of GrADS*, but it is in keeping with the new undef handling in GrADS 2.0. > The default output undef value is -9.99e8. This release works fine with GDS > 2.0. I have written a documentation page. Please READ THE DOCUMENTATION! > http://grads.iges.org/grads/gadoc/gradcomdsetundef.html > > * > 2. The maximum number of user-defined colors has been increased from 99 to 255 > * > To help you get started using 255 colors, I have written two scripts: > ftp://grads.iges.org/grads/scripts/rgb255.gs (defines a lot of colors > and draws a demo plot) > ftp://grads.iges.org/grads/scripts/cbarm.gs (draws a suitable color > bar) > Please feel free to copy and modify these scripts to suit your own needs. > > Here is the complete list of changes in 2.0.a6: > > Features: > * Maximum number of user-defined colors increased from 99 to 255. > * New commands "set undef" and "query undef" allow the user to > control the undefined data value for all forms of GrADS output. > This affects all the undefined values printed to screen in the > 'gxout stat' and 'gxout print' output, as well as the undefined > values in fwrite, sdfwrite, and geotiff files. > The default output undef value is -9.99e8. > N.B. THIS FEATURE CHANGES THE DEFAULT BEHAVIOR OF GrADS! > > Bugs: > * Fixed geotiff code to write out data in correct format > * Fixed the background image option to printim > * Fixed gancgrid I/O for variables with dimensions in a funky order (i.e. not ETZYX) > * Fixed gancgrid response if request is outside of file's bounds > * Fixed 'close' command to properly reset defaults > * Fixed gribmap printing debugging and error messages in verbose mode > * Replaced library function call SDiscoordvar in gasdf.c > > Misc: > * more informative error messages when request is beyond file's limits > * added chsub option to xdfopen-style descriptors > * added -n flag to gr2stn for nearest neighbor option > * changed hard-coded undefs from -9.99e33 to -9.99e8 > * changed hard-coded XYBMAX from 500 to 5000 in gxshad.c > * configure and src code changes to get rid of XLIBEMU > * fixes to GUI configuration > * bug fix in gaio.c to change vars lskip and lgrib to type g2int > * changed var type to off_t and fixed? optimization issues for x86_64 builds > * changed Pixel to gaPixel > * removed pcx11e.* from src directory > * changed #include syntax for gabufr.h in grads.h > > > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090610/0c50d587/attachment.html From arlindo.dasilva at GMAIL.COM Thu Jun 11 01:07:55 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 11 Jun 2009 01:07:55 -0400 Subject: Abstracting Indian region data from global data set In-Reply-To: Message-ID: On Wed, Jun 10, 2009 at 8:14 AM, Dhaval Prajapati < dhaval.prajapati at iccsir.org> wrote: > Dear All, > Is there command abstract data for Indian region only from the Global data > set. I want to work only for Indian land region. > You can use lats4d: lats4d.sh -i /path/to/yourfile -o indian -lat lat1 lat2 -lon lon1 lon2 Where lat1/2, lon1/2 define the bonding box for the indian region of choice. You have several choices for the output format, depending on the grads version you are using. You can read more about lats4d here: http://opengrads.org/wiki/index.php?title=Lats4D http://opengrads.org/doc/scripts/lats4d/ Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/61e6f220/attachment.html From arlindo.dasilva at GMAIL.COM Thu Jun 11 01:10:58 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 11 Jun 2009 01:10:58 -0400 Subject: how to extract perticular levels from ctl file In-Reply-To: <20090610071952.5BACD2074B@mx2.cineca.it> Message-ID: On Wed, Jun 10, 2009 at 3:18 AM, Kiran Salunke wrote: > Dear Gradsusers, > > I have ctl file which contain Geopotential height,U,V with 26 different > level & 120hr forecast 21 points.(00,06,12,18.....................) > 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 > > from these levels i would like to extract 1000,850,700,500,300,200,100. > > is there any way to do this ???/ convert it in .txt format > With lats4d: lats4d.sh -i zuv.ctl -o output -levs 1000 850 700 500 300 200 100 More information here: http://opengrads.org/wiki/index.php?title=Lats4D Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/0ab39925/attachment.html From jma at COLA.IGES.ORG Thu Jun 11 08:56:16 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 11 Jun 2009 08:56:16 -0400 Subject: NEW RELEASE! GrADS 2.0.a6 In-Reply-To: <77fcd6b20906101935s176fd1fdh65ca9d332044a786@mail.gmail.com> Message-ID: Thank you for pointing out this problem. Putting GrADS 2.0.a6 behind GDS does require a 1-line fix (adding "set undef file 1") to one of the GDS scripts that creates file subsets. I have patched the monsoondata.org GDS, and added the following message to the GDS home page: Important Note for GDS Administrators (June 2009): The recent release of GrADS (version 2.0.a6) implemented some necessary changes related to the handling of undefined values. These changes can affect the GDS. If you are administering a GDS version 2.0 with GrADS 2.0.a6 behind it, then a 1-line patch is needed for the file $GDSHOME/scripts/ subset.gs. The patched version is http://iges.org/grads/gds/patched_subset.gs . Updating the subset.gs script does not require a reinstallation or even a reload of your GDS. --Jennifer On Jun 10, 2009, at 10:35 PM, Arlindo da Silva wrote: > Jennifer, > > I am having some problems with undef handling in 2.0.a6. Using > COLA's Mac OS X build (intel): > > ./gradsdap > ... > ga-> sdfopen http://monsoondata.org:9090/dods/model > ga-> d ua > Contouring: -9e+08 to 0 interval 1e+08 > > It does not seem to be handling UNDEFs properly. Which grads version > is behind the monsoondata GDS? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/618c4bb7/attachment.html From pjamyangs at GMAIL.COM Thu Jun 11 11:02:40 2009 From: pjamyangs at GMAIL.COM (Jamyang Phuntshok) Date: Thu, 11 Jun 2009 23:02:40 +0800 Subject: gt scripts Message-ID: dear GrADS experts Please help me find gt scripts. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/598f5fa6/attachment.html From romero619 at HOTMAIL.COM Thu Jun 11 12:59:08 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Thu, 11 Jun 2009 11:59:08 -0500 Subject: Air-sea temp difference Message-ID: Hello, General meteorological question: I need to calculate the 'air-sea temp difference', using the most recent SST and GFS data, and then export this data to a binary file. I don't know which temperature field from the GFS model should be used to calculate this difference, (from the GFS, should I use the '2 meter air temp',the 'surface air temp',etc. ???). Does anyone have experience with generating this type of data (the 'air-sea temp. difference')??? Also, any tips on how to quickly generate this difference within grads would be appreciated. Please help, Thanks, P.Romero From ela at COLA.IGES.ORG Thu Jun 11 14:17:27 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Thu, 11 Jun 2009 14:17:27 -0400 Subject: Air-sea temp difference In-Reply-To: <1471297045.2781244744203873.JavaMail.root@mail.iges.org> Message-ID: Hello P.Romero, You should use 2-meter temperature from GFS to represent the near-surface air temperature. Over water, the surface (skin) temperature in GFS is equal to the SST that is being used in GFS. Over land, the skin temperature is calculated from the surface energy budget, while the 2-meter temperature is a simulated shelter temperature, so it is a better representation of the near-surface air temperature. 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: "P.R." To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, June 11, 2009 12:59:08 PM GMT -05:00 US/Canada Eastern Subject: Air-sea temp difference Hello, General meteorological question: I need to calculate the 'air-sea temp difference', using the most recent SST and GFS data, and then export this data to a binary file. I don't know which temperature field from the GFS model should be used to calculate this difference, (from the GFS, should I use the '2 meter air temp',the 'surface air temp',etc. ???). Does anyone have experience with generating this type of data (the 'air-sea temp. difference')??? Also, any tips on how to quickly generate this difference within grads would be appreciated. Please help, Thanks, P.Romero From arlindo.dasilva at GMAIL.COM Thu Jun 11 15:04:09 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 11 Jun 2009 15:04:09 -0400 Subject: Air-sea temp difference In-Reply-To: <328952583.2801244744247768.JavaMail.root@mail.iges.org> Message-ID: On Thu, Jun 11, 2009 at 2:17 PM, Eric Altshuler wrote: > Hello P.Romero, > > You should use 2-meter temperature from GFS to represent the near-surface > air temperature. Over water, the surface (skin) temperature in GFS is equal > to the SST that is being used in GFS. Over land, the skin temperature is > calculated from the surface energy budget, while the 2-meter temperature is > a simulated shelter temperature, so it is a better representation of the > near-surface air temperature. > Over the oceans most parameterizations of surface marine fluxes use 10m temperatures, so depending on your application 10m temperature may be more appropriate. -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/7893f8ac/attachment.html From remm69 at GMAIL.COM Thu Jun 11 16:12:50 2009 From: remm69 at GMAIL.COM (Rafael Mundaray) Date: Thu, 11 Jun 2009 16:12:50 -0400 Subject: Hello... Open netCDF Message-ID: Hello to all... Well I downloaded a file of reanalysis (NCEP) and I want to open this with grads... Remember that those files have .nc extension... Please, Can you help me...??? Thanks... -- Ing. Rafael E. Mundaray M. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/bf62a81f/attachment.html From mequitomz at YAHOO.COM.BR Thu Jun 11 16:19:10 2009 From: mequitomz at YAHOO.COM.BR (Arlindo Meque) Date: Thu, 11 Jun 2009 13:19:10 -0700 Subject: Res: Hello... Open netCDF In-Reply-To: <1f59b3870906111312m39cc0ea0o953f56134f3bc59f@mail.gmail.com> Message-ID: try this: sdfopen? filename.nc hope that helps Arlindo. 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/20090611/fb3690ce/attachment.html From ykyei at YAHOO.COM Thu Jun 11 16:12:50 2009 From: ykyei at YAHOO.COM (Yaw Kyei) Date: Thu, 11 Jun 2009 13:12:50 -0700 Subject: Need to identify low pressure points and plot tracks of 4 hurricanes. Message-ID: Dear users, I am very new to grads but I have a wrf output in ctl format and will like to identify the eyes of different hurricanes and plot their tracks. Have been following the user archives as found below. Don't know if I have to convert to netcdf file format Need some help Yaw. *---------------------------------------------------------------------- * * Adapted from plot_hurricane_center2c.gs, which was adapted from: * * (1) "plot_hurricane_center2[a][b].gs" (from "plot_hurricane_center.gs"), * locally modified versions derived from Joe Covert's script * "plot_tc_shi.gs" (Joe.Covert at noaa.gov), which was posted to the * GrADS Listserv on 9/13/2004 (his script was named plot_tc_shi.gs) * on 4/27/06, found via a Google search for "plot_tc_shi.gs": * http://caos.iisc.ernet.in/gslib/plot_tc_shi.gs * * (2) code in "hurricane_tracking.txt" (taken from an email exchange * posted to the GrADS Listserv by Kun-Hsuan Chou and * Arturo Caracas Uribe in Oct, 2004) * * * To use: grads -l * *---------------------------------------------------------------------- function main() 'reinit' ************************************************************************ * Allow external GrADS functions ************************************************************************ rc = gsfallow("on") ************************************************************************ * Define dataset file information and plotting limits for base map... ************************************************************************ ** nc_file1 = '' ** nc_file2 = '' ** nc_file3 = '' ** nc_file = ''nc_file1' 'nc_file2' 'nc_file3'' nc_file = 'your_netCDF_file' lon1 = 298 ; lon2 = 308 lat1 = 20 ; lat2 = 25 ************************************************************************ * Legend captions, colors, and marks for the plots ************************************************************************ ** nmodels = 1 ** model.1 = 'isabel_ras' ** model.2 = 'isabel_isotke' ** model.3 = 'isabel_my25' ** titles.1 = model.1 ; colors.1 = 2 ; marks.1 = 2 ** titles.2 = model.2 ; colors.2 = 3 ; marks.2 = 2 ** titles.3 = model.3 ; colors.3 = 4 ; marks.3 = 2 *** *** Define the legend plotter input... *** ** titles = '-t' ; colors = '-c' ; marks = '-m' ; lines = '-l' ** n=1 ** while ( n <= nmodels ) ** titles = ''titles' "'titles.n'"' ** colors = ''colors' 'colors.n ** marks = ''marks' "'marks.n'"' ** lines = ''lines' 1' ** n=n+1 ** endwhile ** legend_info = ''colors' 'lines' 'marks' 'titles' -p' nmodels = 1 model.1 = 'title_name_for_your_netCDF_dataset' titles.1 = model.1 ; colors.1 = 2 ; marks.1 = 2 * * Define the legend plotter input... * titles = '-t' ; colors = '-c' ; marks = '-m' ; lines = '-l' n=1 while ( n <= nmodels ) titles = ''titles' "'titles.n'"' colors = ''colors' 'colors.n marks = ''marks' "'marks.n'"' lines = ''lines' 1' n=n+1 endwhile legend_info = ''colors' 'lines' 'marks' 'titles' -p' * ...other drawing primitives marksize = 0.1 lstyle = 1 ; lthick = 5 ************************************************************************ * Use "cbar_line" or "cbar_line_box"? ************************************************************************ legend_plotter = 'cbar_line' * legend_plotter = 'cbar_line_box' ************************************************************************ * Plot page limits ************************************************************************ plot_vpage = '0 11 0 8.5' plot_area = '1 10 1 7.5' xl = subwrd(plot_area,1) ; xr = subwrd(plot_area,2) yb = subwrd(plot_area,3) ; yt = subwrd(plot_area,4) xc = xl + (xr-xl)/2 ************************************************************************ * GrADS metafile output... ************************************************************************ 'enable print hurricane_track.gx' *----------------------------------------------------------------------- * Define and plot track of minimum surface pressure for each dataset... *----------------------------------------------------------------------- nf=1 while ( nf <= nmodels ) * Open dataset file and define parameters... fname = subwrd(nc_file,nf) 'sdfopen 'fname 'set dfile 'nf 'q file' rec3 = sublin(result,3) ; binary_file = subwrd(rec3,2) say say say '*** 'binary_file' ***' say rec5 = sublin(result,5) nx = subwrd(rec5,3) ; ny = subwrd(rec5,6) ; nz = subwrd(rec5,9) ; nt = subwrd(rec5,12) if( nf = 1 ) * Plot base map... plot_base_map(plot_vpage,plot_area,lon1,lon2,lat1,lat2) endif * Define locations of "hurricane center" for plotting points, and write * locations out to ASCII text file for read-in for plotting track later... hurricane.nf = 'hurricane_'nf'.txt' ts=2 tt=ts while ( tt <= nt ) 'set t 'tt say say '---------' say ' tt = 'tt say '---------' say 'set lon 'lon1' 'lon2 'set lat 'lat1' 'lat2 'set z 1' * * here is where you put in the name of your sea-level pressure variable: * 'define psl = name_of_your_sea_level_pressure_variable' 'set gxout shaded' 'd psl' * * following interactive "box location" code adapted from "cbar_line_box.gs"... * say 'Click where you want the left upper corner of the box' 'query bpos' xb1o = subwrd(result,3) yb2o = subwrd(result,4) say 'Click where you want the right lower corner of the box' 'query bpos' xb2o = subwrd(result,3) yb1o = subwrd(result,4) say say '...left upper corner of the box at X Y: 'xb1o' 'yb2o say '...right lower corner of the box at X Y: 'xb2o' 'yb1o * * draw box to show specified area for defining hurricane center... * 'set line 1 1' 'draw rec 'xb1o' 'yb1o' 'xb2o' 'yb2o * * convert box "xy" coordinates to "grid" coordinates * for finding minimum "pressure" (hurricane center)... * 'q xy2gr 'xb1o' 'yb2o x1o = subwrd(result,3) ; x1 = math_int(x1o+0.5) y2o = subwrd(result,6) ; y2 = math_int(y2o+0.5) 'q xy2gr 'xb2o' 'yb1o x2o = subwrd(result,3) ; x2 = math_int(x2o+0.5) y1o = subwrd(result,6) ; y1 = math_int(y1o+0.5) say say 'Specified grid coordinates (x1o,x2o), (y1o,y2o) from box,' say 'rounded to (x1,x2), (y1,y2) for finding minimum "pressure"...' say say ' (x1o,x2o) = ('x1o','x2o') --> (x1,x2) = ('x1','x2')' say ' (y1o,y2o) = ('y1o','y2o') --> (y1,y2) = ('y1','y2')' * * find minimum "pressure" within box area (x1,x2), (y1,y2)... * 'set x 'x1 'set y 'y1 'set z 1' 'set t 'tt 'set gxout print' nxp = x2-x1+1 * say ' nxp = 'nxp nyp = y2-y1+1 * say ' nyp = 'nyp 'd minloc(min(psl,y='y1',y='y2'),x='x1',x='x2')' rec=sublin(result,nxp+3) xc=subwrd(rec,1) 'd minloc(min(psl,x='x1',x='x2'),y='y1',y='y2')' rec=sublin(result,nyp+3) yc=subwrd(rec,1) say say 'location of minimum "pressure"...' say say ' (xc,yc) = ('xc','yc')' * * find "world" coordinates of (xc,yc) and convert "world" coordinates * to "xy" coordinates for plotting track of hurricane center... * 'set x 'xc lonval = subwrd(result,4) 'set y 'yc latval = subwrd(result,4) say ' (lonval,latval) = ('lonval','latval')' 'q w2xy 'lonval' 'latval xpos = subwrd(result,3) ypos = subwrd(result,6) say ' (xpos,ypos) = ('xpos','ypos')' * * write (xpos,ypos) to output file... * res = write (''hurricane.nf'','t = 'tt' xpos = 'xpos' ypos = 'ypos'') pause() * * erase box showing area for defining hurricane center... * * 'set line 0 1' * 'draw rec 'xb1o' 'yb1o' 'xb2o' 'yb2o tt=tt+1 endwhile res = close (''hurricane.nf'') nf=nf+1 endwhile * Clear frame and re-plot base map... plot_base_map(plot_vpage,plot_area,lon1,lon2,lat1,lat2) * Plot track(s)... nf=1 while ( nf <= nmodels ) * Specify drawing primitives marktype = marks.nf lcolor = colors.nf say ' marktype, marksize, lcolor, lstyle and lthick:' say ' 'marktype ' ' marksize ' ' lcolor ' ' lstyle ' ' lthick tt=ts * * read (xpos,ypos) from ASCII text input file... * res = read(''hurricane.nf'') ; rc = sublin(res,1) if( rc != 0 ) say '"read" status = 'rc exit endif rec = sublin(res,2) ; say '"hurricane.'nf'" record: 'rec xc = subwrd(rec,6) ; yc = subwrd(rec,9) 'set line 'lcolor' 'lstyle' 'lthick 'draw mark 'marktype' 'xc' 'yc' 'marksize tt = tt+1 while ( tt <= nt ) res = read(''hurricane.nf'') ; rc = sublin(res,1) if( rc != 0 ) say '"read" status = 'rc exit endif rec = sublin(res,2) ; say '"hurricane.'nf'" record: 'rec xn = subwrd(rec,6) ; yn = subwrd(rec,9) say ' 'xc' 'yc' 'xn' 'yn 'draw line 'xc' 'yc' 'xn' 'yn 'draw mark 'marktype' 'xn' 'yn' 'marksize tt=tt+1 xc = xn yc = yn endwhile nf=nf+1 endwhile say say '...plot legend' ''legend_plotter' -x 3 -y 6 'legend_info say 'print' 'disable print' say say '************************************************' say ' Finished with this script.' say '************************************************' say return function plot_base_map(plot_vpage,plot_area,lon1,lon2,lat1,lat2) * Plots base map... 'c' 'set vpage 'plot_vpage 'set parea 'plot_area 'set lon 'lon1' 'lon2 'set lat 'lat1' 'lat2 'set mproj latlon' 'set mpt * 1 1 5' 'set mpdset hires' 'set poli on' * 'set grid on' 'set grads off' 'set gxout contour' 'draw map' * add lon/lat lines... 'set ccolor 1' 'set cstyle 5' ; 'd lon' 'set cstyle 5' ; 'd lat' * add title, x- and y-labels... 'draw title \\ Track of Minimum Surface Pressure' 'draw xlab Longitude \\' 'draw ylab \\ Latitude' return From romero619 at HOTMAIL.COM Thu Jun 11 17:13:57 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Thu, 11 Jun 2009 16:13:57 -0500 Subject: Multiple commands per line at grads shell prompt Message-ID: Quick question: Is it possible to type in multiple commands on a single line at the grads command prompt? I don't think it is, but I just wanted to confirm this... Something like this: ga-> clear ; set gxout shaded ; set clevs 5 10 15 20 30 40 50 ; d tmp (This example obviously doesn't work.) If this isnt possible, then I'd also like to mention it as a feature request for COLA. It would help slightly speed up entering&processing commands & maybe make working with at the grads prompt a little bit easier... Thanks, P.Romero From arlindo.dasilva at GMAIL.COM Thu Jun 11 17:28:12 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 11 Jun 2009 17:28:12 -0400 Subject: Multiple commands per line at grads shell prompt In-Reply-To: Message-ID: On Thu, Jun 11, 2009 at 5:13 PM, P.R. wrote: > Quick question: > Is it possible to type in multiple commands on a single line at the grads > command prompt? Not that I know of. > > I don't think it is, but I just wanted to confirm this... > Something like this: > > ga-> clear ; set gxout shaded ; set clevs 5 10 15 20 30 40 50 ; d tmp > As for syntax, the ";" is problematic because grads uses ";" to indicate vector pairs, e.g., ga-> d u;v A safer delimiter would be \n. In fact, the pygrads command line interpreter understands this: [2] ga-> . clear \n d ua \n q config Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/41c4483f/attachment.html From btsuang at YAHOO.COM Thu Jun 11 19:04:37 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Fri, 12 Jun 2009 07:04:37 +0800 Subject: batch command for creating movie Message-ID: Dear GrADS user: I want to create a movie file from a time series jpg output from GrADS in batch mode. Is there any utility in linux available? The movie file can be any format such as wmv or others. Now, I am using PICASA, but I have to run it manually. I am searching a utility, which can be run in batch mode. Thank you. Ben From daxiawj at GMAIL.COM Thu Jun 11 19:22:47 2009 From: daxiawj at GMAIL.COM (Wang Jun) Date: Thu, 11 Jun 2009 18:22:47 -0500 Subject: batch command for creating movie In-Reply-To: Message-ID: Hey, you can try ImageMagick of ffmpeg see: http://www.imagemagick.org/script/index.php http://www.ffmpeg.org/ Regards Wang Jun 2009/6/11 Ben-Jei Tsuang > Dear GrADS user: > > > I want to create a movie file from a time series jpg output from GrADS > in batch mode. Is there any utility in linux available? The movie file > can be any format such as wmv or others. > > > Now, I am using PICASA, but I have to run it manually. I am searching > a utility, which can be run in batch mode. > > Thank you. > > Ben > -- Regards, Wang Jun -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090611/a634e1cd/attachment.html From stegert at IFM.UNI-HAMBURG.DE Thu Jun 11 19:30:38 2009 From: stegert at IFM.UNI-HAMBURG.DE (Stegert) Date: Thu, 11 Jun 2009 19:30:38 -0400 Subject: batch command for creating movie In-Reply-To: Message-ID: Hi Ben, I have no overview on linux tools, but if you have access to an Windows system, too, I would recommend Beneton Movie GIF (see: benetonsoftware.com), which I selected on for a tool to get an animation from my grads results. You can load a batch of bitmap files and create a movie (AVI) or animated GIF incl. selecting the speed of each frame etc (it comes with lots of adds too and is only 5 MB large). Christoph On 11.06.2009 19:04 ET, Ben-Jei Tsuang wrote: > Dear GrADS user: > > > I want to create a movie file from a time series jpg output from GrADS > in batch mode. Is there any utility in linux available? The movie file > can be any format such as wmv or others. > > > Now, I am using PICASA, but I have to run it manually. I am searching > a utility, which can be run in batch mode. > > Thank you. > > Ben > > -- NEW ADDRESS: Christoph Stegert - Postdoctoral Investigator Biology Department - Woods Hole Oceanographic Institution MS #33, 2-14 Redfield Building - Woods Hole, MA 02543 USA From nishabaranwal01 at GMAIL.COM Fri Jun 12 01:03:56 2009 From: nishabaranwal01 at GMAIL.COM (nisha baranwal) Date: Fri, 12 Jun 2009 10:33:56 +0530 Subject: Regrid UDF Message-ID: Hi all, Can anyone please advise, how to install regrid2 user defined function on Red Hat Linux Enterprises 4 upgrade 5 operating system. Here we are using grads latest version 2.0.a6. Thanks for your reply Sincerely Nisha Baranwal J.R.F. K.B.C.A.O.S. University of Allahabad Allahabad Indial -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090612/3b649ee8/attachment.html From sde at TROPMET.RES.IN Fri Jun 12 07:50:03 2009 From: sde at TROPMET.RES.IN (S.De) Date: Fri, 12 Jun 2009 18:20:03 +0630 Subject: in search of GrADS readable format of high resolution ECMWF-YOTC grib files Message-ID: GrADS User's Group/ Dr. Waliser, I have downloaded 6-hourly high resolution forecast and analyzed data of horizontal wind field from the yotc data server (http://data-portal.ecmwf.int/data/d/yotc/class=od/levtype=pl/type=fc/ and http://data-portal.ecmwf.int/data/d/yotc/class=od/levtype=pl/type=an/). All the files are in ecmwf grib format. To decode the files first I have downloaded the latest WGRIB (version 1.8). This wgrib can decode the surface parameters of yotc data but not able to decode the ECMWF spectral files. It is written in wgrib that the spectral to grib format code is copyrighted. Then I have tried for ECMWF own decoder code GRIB_API. I installed it in LINUX but I am not getting the utility. Can anybody help of how to get a command or set of commands to convert the high resolution yotc data to GrADS readable files. Thanks in advance, Saumyendu De ***************************** -- Open WebMail Project (http://openwebmail.org) *********************************************** Saumyendu De Theoretical Studies Division Indian Institute of tropical meteorology Dr. Homi Bhabha Road; NCL-Post, Pashan, Pune-411 008; India e-mail: sde at tropmet.res.in saumyendu.de at gmail.com Phone: +91 20 25893600/Extn.275 (O) Fax: +91 20 25893825 ************************************************ From romero619 at HOTMAIL.COM Fri Jun 12 22:02:12 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Fri, 12 Jun 2009 21:02:12 -0500 Subject: Set all positive values to zero Message-ID: Hi, I need a quick solution to set all grid values that are "greater or equal zero" to "zero". Any help would be appreciated. Thanks, P.R. From btsuang at YAHOO.COM Fri Jun 12 22:52:45 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Sat, 13 Jun 2009 10:52:45 +0800 Subject: Set all positive values to zero In-Reply-To: Message-ID: With the OpenGrADS extension: There is a new function "if" define newvar=if(var, >=,0,0,var) Please take a look at http://opengrads.org/doc/udxt/libbjt/ Ben 2009/6/13 P.R. : > Hi, I need a quick solution to set all grid values that are "greater or > equal zero" to "zero". > Any help would be appreciated. > Thanks, > P.R. > -- Ben-Jei Tsuang Dept. of Environmental Engineering National Chung-Hsing University From btsuang at YAHOO.COM Fri Jun 12 22:56:02 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Sat, 13 Jun 2009 10:56:02 +0800 Subject: batch command for creating movie In-Reply-To: <109352770906111622n761ac1bfo236c20cf367990fc@mail.gmail.com> Message-ID: Dear Wang Jun: Thank you for shwoing me the possibility. I am still looking at the web site you show. But I still have difficulity to figure out the solution. Which binary file that I should download? Or I have to build the binary from the sources. Ben 2009/6/12 Wang Jun : > Hey, you can try ImageMagick of ffmpeg > see: > http://www.imagemagick.org/script/index.php > http://www.ffmpeg.org/ > > Regards > Wang Jun > > 2009/6/11 Ben-Jei Tsuang >> >> Dear GrADS user: >> >> >> I want to create a movie file from a time series jpg output from GrADS >> in batch mode. Is there any utility in linux available? The movie file >> can be any format such as wmv or others. >> >> >> Now, I am using PICASA, but I have to run it manually. I am searching >> a utility, which can be run in batch mode. >> >> Thank you. >> >> Ben > > > > -- > Regards, > Wang Jun > -- Ben-Jei Tsuang Dept. of Environmental Engineering National Chung-Hsing University From btsuang at YAHOO.COM Fri Jun 12 23:02:52 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Sat, 13 Jun 2009 11:02:52 +0800 Subject: batch command for creating movie In-Reply-To: Message-ID: 2009/6/13 Ben-Jei Tsuang : > Dear Stegert: > > Thank you for sharing the information although my preferance is for linux. > > Ben > > > 2009/6/12 Stegert : >> Hi Ben, >> >> I have no overview on linux tools, but if you have access to an Windows >> system, too, >> I would recommend Beneton Movie GIF (see: benetonsoftware.com), which I >> selected on >> for a tool to get an animation from my grads results. >> You can load a batch of bitmap files and create a movie (AVI) or >> animated GIF incl. selecting >> the speed of each frame etc (it comes with lots of adds too and is only >> 5 MB large). >> >> Christoph >> >> On 11.06.2009 19:04 ET, Ben-Jei Tsuang wrote: >>> >>> Dear GrADS user: >>> >>> >>> I want to create a movie file from a time series jpg output from GrADS >>> in batch mode. Is there any utility in linux available? The movie file >>> can be any format such as wmv or others. >>> >>> >>> Now, I am using PICASA, but I have to run it manually. I am searching >>> a utility, which can be run in batch mode. >>> >>> Thank you. >>> >>> Ben >>> >>> >> >> -- >> NEW ADDRESS: >> Christoph Stegert - Postdoctoral Investigator >> Biology Department - Woods Hole Oceanographic Institution >> MS #33, 2-14 Redfield Building - Woods Hole, MA 02543 USA >> > > > > -- > Ben-Jei Tsuang > Dept. of Environmental Engineering > National Chung-Hsing University > -- Ben-Jei Tsuang Dept. of Environmental Engineering National Chung-Hsing University From furue at HAWAII.EDU Sat Jun 13 05:35:26 2009 From: furue at HAWAII.EDU (Ryo Furue) Date: Fri, 12 Jun 2009 23:35:26 -1000 Subject: batch command for creating movie In-Reply-To: Message-ID: Ben, | Thank you for shwoing me the possibility. I am still looking at the | web site you show. But I still have difficulity to figure out the | solution. Which binary file that I should download? Or I have to | build the binary from the sources. The command you need is either "convert" or "ffmpeg". I think most Linux distributions offer packages for these utilities because they are really popular. That means, all you have to do is to "download" and "install" appropriate packages. Which packages you have to install and how to do it depend on which Linux distribution you use. But I imagine "convert" is contained in one or other "imagemagick" package. "ffmpeg" is probably contained in a "ffmpeg" package. I'm not familiar with ffmpeg. With imagemagick, you'll typically do something along the lines of $ convert ss0??.gif mymovie.gif to generate a GIF animation "mymovie.gif" from a set of shapshots ss001.gif, ss002.gif, ss003.gif, . . . I hope you get the idea. Regards, Ryo From arlindo.dasilva at GMAIL.COM Sat Jun 13 10:37:23 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 13 Jun 2009 10:37:23 -0400 Subject: how to extract perticular levels from ctl file In-Reply-To: <20090612101937.667E92099C@mx2.cineca.it> Message-ID: On Fri, Jun 12, 2009 at 6:18 AM, Kiran Salunke wrote: > I am using Grads 2.0.a4 version. which dont have this utility. > > what should i do ? pl. help me > Install the OpenGrADS bundle: http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=305032&release_id=681044 or for windows: http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=290254&release_id=682062 Please send messages like these to the list, I cannot provide 1-on-1 support. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090613/84c1c501/attachment.html From romero619 at HOTMAIL.COM Sat Jun 13 14:56:08 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Sat, 13 Jun 2009 13:56:08 -0500 Subject: Capture shell output Message-ID: Is it possible to capture stdout from a shell command? Im trying to do the following within a grads script (in a linux shell environment)? * use linux shell's 'date' function to process time... 'q time' tc=subwrd(result,3) '!date -u -d 'tc' +"%Y%m%d %H%M%S"' * this doesn't work; result is empty say 'res: 'result ymd=subwrd(result,1) hms=subwrd(result,2) say 'ymd: 'ymd say 'hms: 'hms Can anyone please confirm this, or provide a work-around to be able to retrieve&save stdout from a shell command? Thanks, P.Romero From hallak at MODEL.IAG.USP.BR Sat Jun 13 16:25:05 2009 From: hallak at MODEL.IAG.USP.BR (Ricardo Hallak) Date: Sat, 13 Jun 2009 18:25:05 -0200 Subject: Capture shell output In-Reply-To: Message-ID: Hi, you can redirect your date command to an external file: 'q time' tc=subwrd(result,3) '! date -u -d 'tc' +"%Y%m%d %H%M%S" > date.txt' In the sequence, you could read date.txt using the "read" grads command. dateread=read('date.txt') vardate=sublin(dateread,2) say vardate ... etc I hope this help, Ricardo On Sat, 13 Jun 2009 13:56:08 -0500, P.R. wrote > Is it possible to capture stdout from a shell command? > Im trying to do the following within a grads script (in a linux shell > environment)? > > * use linux shell's 'date' function to process time... > 'q time' > tc=subwrd(result,3) > '!date -u -d 'tc' +"%Y%m%d %H%M%S"' > > * this doesn't work; result is empty > > say 'res: 'result > > ymd=subwrd(result,1) > hms=subwrd(result,2) > say 'ymd: 'ymd > say 'hms: 'hms > > Can anyone please confirm this, or provide a work-around to be able > to retrieve&save stdout from a shell command? > > Thanks, > P.Romero Ricardo Hallak Department of Atmospheric Sciences (DCA) Institute of Astronomy, Geophysics and Atmospheric Sciences (IAG) University of S?o Paulo (USP) Rua do Mat?o, 1226 - Cidade Universit?ria - S?o Paulo SP 05508-900 Phone.: +55 (11) 3091-2834 Fax: +55 (11) 3091-4714 From arabonis at EGS.UCT.AC.ZA Sun Jun 14 11:14:24 2009 From: arabonis at EGS.UCT.AC.ZA (Jean Pierre Arabonis) Date: Sun, 14 Jun 2009 17:14:24 +0200 Subject: Capture shell output In-Reply-To: Message-ID: Hi there - the only way I have found is to output the result to a file then use the read function to read the file. JP P.R. wrote: > Is it possible to capture stdout from a shell command? > Im trying to do the following within a grads script (in a linux shell > environment)? > > * use linux shell's 'date' function to process time... > 'q time' > tc=subwrd(result,3) > '!date -u -d 'tc' +"%Y%m%d %H%M%S"' > > * this doesn't work; result is empty > > say 'res: 'result > > ymd=subwrd(result,1) > hms=subwrd(result,2) > say 'ymd: 'ymd > say 'hms: 'hms > > Can anyone please confirm this, or provide a work-around to be able to > retrieve&save stdout from a shell command? > > Thanks, > P.Romero > > -- Jean Pierre Arabonis arabonis at egs.uct.ac.za Tel 021 780 1021 cell 084 401 1365 This email is 100% Microsoft Free From axl419 at YAHOO.COM Sun Jun 14 22:00:33 2009 From: axl419 at YAHOO.COM (OOI See Hai) Date: Sun, 14 Jun 2009 19:00:33 -0700 Subject: Error in displaying TRMM 3B42 hdf data file Message-ID: Dear all, I encountered the following problems when I tried to read TRMM 3B42 hdf dataset in the Window version of GrADS:- ............................ C:\>gradshdf Starting X server under /Xming Starting gradshdf under c:\GrADS19\win32 ... 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 hdf-sds netcdf lats ath ena printim Issue 'q config' command for more information. Landscape mode? (no for portrait): GX Package Initialization: Size = 11 8.5 ga-> open d:/test/trmm Scanning description file: d:/test/trmm Data file d:/test/3B42.090101.0.6A.HDF is open as file 1 LON set to 0 360 LAT set to -49.879 49.871 LEV set to 1 1 Time values set: 2009:1:1:0 2009:1:1:0 ga-> q file File 1 : Descriptor: d:/test/trmm.ctl Binary: d:/test/3B42.090101.0.6A.HDF Type = Gridded Xsize = 1440 Ysize = 400 Zsize = 1 Tsize = 1 Number of Variables = 2 p 0 -103 precipitation re 0 -103 relative error ga-> d p Error: Variable p not in HDF-SDS file Data Request Error: Error for variable 'p' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = p ga-> d re Error: Variable re not in HDF-SDS file Data Request Error: Error for variable 're' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = re --------------------------------------- my trmm.ctl file (modified from that given by Miss Jennifer Adams in the user archive) :- ................... dset d:/test/3B42.090101.0.6A.HDF dtype hdfsds options template undef -9999.9 xdef 1440 linear 179.875 0.25 ydef 400 linear -49.879 0.25 zdef 1 linear 1 1 tdef 1 linear 00Z01jan2009 3 hr vars 2 p 0 t,x,y precipitation re 0 t,x,y relative error endvars ----------------------------------------------------------------- Grateful if you could kindly indicate to me the mistakes I made. Best regards. Sincerely, OOI See-hai Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From axl419 at YAHOO.COM Mon Jun 15 18:26:19 2009 From: axl419 at YAHOO.COM (OOI See Hai) Date: Mon, 15 Jun 2009 15:26:19 -0700 Subject: Error in displaying TRMM 3B42 hdf data file Message-ID: Dear Dr Liu, Thank you. In fact, Dr M. Mahakur of Indian Institute of Tropical Meteorology had helped me to resolve my problem. Anyway, I followed your example to do a test, it showed display error. As Dr Mahakur pointed out, " z,x,y you can use for for level dependent (zdef >1) variables and t,x,y for (zdef=1)and tdef=1 or more. It depends upon the data.". In my case, zdef=1 and I need to put it as t,x,y (not t,z,x,y). Once again, thank you for your kind help too. Best regards. Sincerely, OOI See-hai --- On Mon, 15/6/09, Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] wrote: > From: Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] > Subject: RE: Error in displaying TRMM 3B42 hdf data file > To: "axl419 at yahoo.com" , "GRADSUSR at LIST.CINECA.IT" , "Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY]" , "Greene, Mary C. (GSFC-610.2)[R S INFORMATION SYSTEMS,]" > Date: Monday, 15 June, 2009, 10:54 PM > Try this, > > dset d:/test/3B42.090101.0.6A.HDF > dtype hdfsds > undef -9999.9 > xdef 1440 linear 179.875 0.25 > ydef 400 linear -49.879 0.25 > zdef 1 linear 1 1 > tdef 1 linear 00Z01jan2009 3 hr > vars 2 > precipitation=>p t,z,x,y precipitation > relativeerror=>re t,z,x,y relative error > endvars > > if not working, email me. > > -Zhong Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ From zjuyanlibin at 163.COM Mon Jun 15 22:59:18 2009 From: zjuyanlibin at 163.COM (Libin Yan) Date: Tue, 16 Jun 2009 10:59:18 +0800 Subject: Error in displaying TRMM 3B42 hdf data file Message-ID: To anyone it may concern, Can this method be used for process HDF-EOS format files? For example, MODIS hdf-eos files. Thank you! Best regards, Libin Yan 2009-06-16 ???? OOI See Hai ????? 2009-06-16 06:26:26 ???? GRADSUSR ??? ??? Re: Error in displaying TRMM 3B42 hdf data file Dear Dr Liu, Thank you. In fact, Dr M. Mahakur of Indian Institute of Tropical Meteorology had helped me to resolve my problem. Anyway, I followed your example to do a test, it showed display error. As Dr Mahakur pointed out, " z,x,y you can use for for level dependent (zdef >1) variables and t,x,y for (zdef=1)and tdef=1 or more. It depends upon the data.". In my case, zdef=1 and I need to put it as t,x,y (not t,z,x,y). Once again, thank you for your kind help too. Best regards. Sincerely, OOI See-hai --- On Mon, 15/6/09, Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] wrote: > From: Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] > Subject: RE: Error in displaying TRMM 3B42 hdf data file > To: "axl419 at yahoo.com" , "GRADSUSR at LIST.CINECA.IT" , "Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY]" , "Greene, Mary C. (GSFC-610.2)[R S INFORMATION SYSTEMS,]" > Date: Monday, 15 June, 2009, 10:54 PM > Try this, > > dset d:/test/3B42.090101.0.6A.HDF > dtype hdfsds > undef -9999.9 > xdef 1440 linear 179.875 0.25 > ydef 400 linear -49.879 0.25 > zdef 1 linear 1 1 > tdef 1 linear 00Z01jan2009 3 hr > vars 2 > precipitation=>p t,z,x,y precipitation > relativeerror=>re t,z,x,y relative error > endvars > > if not working, email me. > > -Zhong Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090616/6004a811/attachment.html From Zhong.Liu-1 at NASA.GOV Tue Jun 16 09:55:44 2009 From: Zhong.Liu-1 at NASA.GOV (Zhong Liu) Date: Tue, 16 Jun 2009 09:55:44 -0400 Subject: Error in displaying TRMM 3B42 hdf data file In-Reply-To: <892776.86302.qm@web31006.mail.mud.yahoo.com> Message-ID: You're right. I couldn't access my ctl file yesterday. Here is the correct one, DSET ^3B42.041118.18.6.HDF DTYPE hdfsds TITLE This is only a test UNDEF -9999.90 XDEF 1440 LINEAR -179.87500000 0.25000000 YDEF 400 linear -49.87500000 0.25000000 ZDEF 1 LEVELS 1 1 TDEF 1 LINEAR 18Z18nov2004 3hr VARS 2 precipitation=>pcp 1 z,x,y Precipitation relativeError=>err 1 z,x,y Error ENDVARS If you have TRMM related questions, please let me know. Cheers. -Zhong axl419 at yahoo.com wrote: > Dear Dr Liu, > > Thank you. In fact, Dr M. Mahakur of Indian Institute of Tropical Meteorology had helped me to resolve my problem. Anyway, I followed your example to do a test, it showed display error. As Dr Mahakur pointed out, " z,x,y you can use for for level dependent (zdef >1) variables and t,x,y for (zdef=1)and tdef=1 or more. It depends upon the data.". In my case, zdef=1 and I need to put it as t,x,y (not t,z,x,y). > > Once again, thank you for your kind help too. > > Best regards. > > Sincerely, > > OOI See-hai > > > --- On Mon, 15/6/09, Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] wrote: > > >> From: Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] >> Subject: RE: Error in displaying TRMM 3B42 hdf data file >> To: "axl419 at yahoo.com" , "GRADSUSR at LIST.CINECA.IT" , "Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY]" , "Greene, Mary C. (GSFC-610.2)[R S INFORMATION SYSTEMS,]" >> Date: Monday, 15 June, 2009, 10:54 PM >> Try this, >> >> dset d:/test/3B42.090101.0.6A.HDF >> dtype hdfsds >> undef -9999.9 >> xdef 1440 linear 179.875 0.25 >> ydef 400 linear -49.879 0.25 >> zdef 1 linear 1 1 >> tdef 1 linear 00Z01jan2009 3 hr >> vars 2 >> precipitation=>p t,z,x,y precipitation >> relativeerror=>re t,z,x,y relative error >> endvars >> >> if not working, email me. >> >> -Zhong >> > > > > Get your preferred Email name! > Now you can @ymail.com and @rocketmail.com. > http://mail.promotions.yahoo.com/newdomains/aa/ > -- Zhong Liu, Ph.D. Zhong.Liu-1 at nasa.gov George Mason University and NASA Goddard Earth Sciences Data and Information Services Center NASA/GSFC, Code 610.2 Greenbelt. MD. 20771 U.S.A. (301) 614-5764 (voice) (301) 614-5268 (fax) http://disc.gsfc.nasa.gov http://giovanni.gsfc.nasa.gov http://disc.sci.gsfc.nasa.gov/hurricane/ http://disc.sci.gsfc.nasa.gov/hurricane/trmm_quikscat_analysis.shtml http://disc.sci.gsfc.nasa.gov/agriculture/ais_sup/current_conditions.shtml From arlindo.dasilva at GMAIL.COM Tue Jun 16 10:55:37 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 16 Jun 2009 10:55:37 -0400 Subject: batch command for creating movie In-Reply-To: <20090612.233526.233884418.furue@hawaii.edu> Message-ID: On Sat, Jun 13, 2009 at 5:35 AM, Ryo Furue wrote: > Ben, > > $ convert ss0??.gif mymovie.gif > This correct, but the input files ss0??.gif need not be GIF, any format supported by imagemagick would do: $ convert ss0??.png mymovie.gif (unfortunately, the PNG equivalent of "animated GIF" is not widely supported.) The only problem with animated gif is that you do not have control over the animation speed when viewing. For web applications it is often better to keep the frames in individual files and use some javascripting to set up and animation loop, e.g., http://portal.nccs.nasa.gov/cgi-d520_fp/geos5_wx.cgi?region=usa&dtg=2009061512&prod=precs&model=d520_fp&tau=000&®ion_old=usa&dtg_old=2009061512&prod_old=vort850&model_old=d520_fp&tau_old=000&&loop=1 For powerpoint presentations I usually go with animated gif; for viewing on my workstation I use the "animate" utility that comes with image magick: animate -delay 300 ss0??.png ffmpeg allows you to create MPEG so you can create DVD's that would play in your living room (and over the web if people have the right codecs.) Arlindo -- Arlindo da Silva dasilva at alum.mit.edu From Ron.Goodson at EC.GC.CA Tue Jun 16 11:51:10 2009 From: Ron.Goodson at EC.GC.CA (Goodson,Ron [Edm]) Date: Tue, 16 Jun 2009 09:51:10 -0600 Subject: batch command for creating movie In-Reply-To: A<77fcd6b20906160755l28c7d41ap848ae77508d664fb@mail.gmail.com> Message-ID: If working on linux .. the package "transcode" is free and works quite well. I use it for making mpg4 animations ron From naishi at METEO.MCGILL.CA Tue Jun 16 11:51:30 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Tue, 16 Jun 2009 11:51:30 -0400 Subject: Installation of GrADS on Fedora 8 Message-ID: Hello, I am a newbie to the GrADS graphics, could any expert tell me how to install it by using source code of it on linux system step by step. I really appreciate your help! See you! Phillip From naishi at METEO.MCGILL.CA Tue Jun 16 11:56:24 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Tue, 16 Jun 2009 11:56:24 -0400 Subject: Error in displaying TRMM 3B42 hdf data file In-Reply-To: <4A37A460.80307@nasa.gov> Message-ID: Hi Liu Zhong, How are you? I guess you come from China, me too. I am in Canada now. I am also using GrADS now and hope to learn how use it. Could you give me some of your .ctl files and data files too, including the Fortran code used to write the data file that is used as an input data to GrADS to me, so that I can use them to have a test to my GrADS. I am curious about where you are you, your status etc. Thanks! Hope to hear from you. my email is naishi at meteo.mcgill.ca > You're right. I couldn't access my ctl file yesterday. Here is the > correct one, > > DSET ^3B42.041118.18.6.HDF > DTYPE hdfsds > TITLE This is only a test > UNDEF -9999.90 > XDEF 1440 LINEAR -179.87500000 0.25000000 > YDEF 400 linear -49.87500000 0.25000000 > ZDEF 1 LEVELS 1 1 > TDEF 1 LINEAR 18Z18nov2004 3hr > VARS 2 > precipitation=>pcp 1 z,x,y Precipitation > relativeError=>err 1 z,x,y Error > ENDVARS > > If you have TRMM related questions, please let me know. > > Cheers. > > -Zhong > > > axl419 at yahoo.com wrote: >> Dear Dr Liu, >> >> Thank you. In fact, Dr M. Mahakur of Indian Institute of Tropical >> Meteorology had helped me to resolve my problem. Anyway, I >> followed your example to do a test, it showed display error. As Dr >> Mahakur pointed out, " z,x,y you can use for for level dependent >> (zdef >1) variables and t,x,y for (zdef=1)and tdef=1 or more. It >> depends upon the data.". In my case, zdef=1 and I need to put it as >> t,x,y (not t,z,x,y). >> >> Once again, thank you for your kind help too. >> >> Best regards. >> >> Sincerely, >> >> OOI See-hai >> >> >> --- On Mon, 15/6/09, Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] >> wrote: >> >> >>> From: Liu, Zhong (GSFC-610.2)[GEORGE MASON UNIVERSITY] >>> >>> Subject: RE: Error in displaying TRMM 3B42 hdf data file >>> To: "axl419 at yahoo.com" , "GRADSUSR at LIST.CINECA.IT" >>> , "Liu, Zhong (GSFC-610.2)[GEORGE MASON >>> UNIVERSITY]" , "Greene, Mary C. (GSFC-610.2)[R S >>> INFORMATION SYSTEMS,]" >>> Date: Monday, 15 June, 2009, 10:54 PM >>> Try this, >>> >>> dset d:/test/3B42.090101.0.6A.HDF >>> dtype hdfsds >>> undef -9999.9 >>> xdef 1440 linear 179.875 0.25 >>> ydef 400 linear -49.879 0.25 >>> zdef 1 linear 1 1 >>> tdef 1 linear 00Z01jan2009 3 hr >>> vars 2 >>> precipitation=>p t,z,x,y precipitation >>> relativeerror=>re t,z,x,y relative error >>> endvars >>> >>> if not working, email me. >>> >>> -Zhong >>> >> >> >> >> Get your preferred Email name! >> Now you can @ymail.com and @rocketmail.com. >> http://mail.promotions.yahoo.com/newdomains/aa/ >> > > > -- > Zhong Liu, Ph.D. > Zhong.Liu-1 at nasa.gov > George Mason University and > NASA Goddard Earth Sciences Data and > Information Services Center > NASA/GSFC, Code 610.2 > Greenbelt. MD. 20771 U.S.A. > (301) 614-5764 (voice) > (301) 614-5268 (fax) > http://disc.gsfc.nasa.gov > http://giovanni.gsfc.nasa.gov > http://disc.sci.gsfc.nasa.gov/hurricane/ > http://disc.sci.gsfc.nasa.gov/hurricane/trmm_quikscat_analysis.shtml > http://disc.sci.gsfc.nasa.gov/agriculture/ais_sup/current_conditions.shtml > From muhammad.rahiz at OUCE.OX.AC.UK Tue Jun 16 11:55:43 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Tue, 16 Jun 2009 17:55:43 +0200 Subject: Extract selected variables Message-ID: Dear all, Two questions; 1. I have RegCM data in GrADS bin/ctl format. I want to extract selected variables and save them to a new file. How do I do that? 2. How do I do (1) for all the output files that I have without having to open and extract each individual file? Is there a script to help do that? Thanks, Muhammad From arabonis at EGS.UCT.AC.ZA Tue Jun 16 12:28:03 2009 From: arabonis at EGS.UCT.AC.ZA (Jean Pierre Arabonis) Date: Tue, 16 Jun 2009 18:28:03 +0200 Subject: Installation of GrADS on Fedora 8 In-Reply-To: <51479.207.112.119.13.1245167490.squirrel@www.meteo.mcgill.ca> Message-ID: I remember there was a package for fedora by Patrice Dumas, have a look in the archives, I also remember a colleague installing it directly from the package manager some time ago. Good Luck JP Phillip Lin wrote: > Hello, > I am a newbie to the GrADS graphics, could any expert tell me how to > install it by using source code of it on linux system step by step. I > really appreciate your help! > See you! > Phillip > > -- Jean Pierre Arabonis arabonis at egs.uct.ac.za Tel 021 780 1021 cell 084 401 1365 This email is 100% Microsoft Free From pertusus at FREE.FR Tue Jun 16 12:44:27 2009 From: pertusus at FREE.FR (Patrice Dumas) Date: Tue, 16 Jun 2009 18:44:27 +0200 Subject: Installation of GrADS on Fedora 8 In-Reply-To: <51479.207.112.119.13.1245167490.squirrel@www.meteo.mcgill.ca> Message-ID: On Tue, Jun 16, 2009 at 11:51:30AM -0400, Phillip Lin wrote: > Hello, > I am a newbie to the GrADS graphics, could any expert tell me how to > install it by using source code of it on linux system step by step. I > really appreciate your help! Grads (the previous version) is packaged on fedora. So a yum install grads will install it (without lats, for licensing reasons). Now if you want to compile/install by hand you could still have a look at the package to see what is needed for the build, or use the supplibs. -- Pat From naishi at METEO.MCGILL.CA Tue Jun 16 13:42:20 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Tue, 16 Jun 2009 13:42:20 -0400 Subject: Installation of GrADS on Fedora 8 In-Reply-To: <4A37C813.8030600@egs.uct.ac.za> Message-ID: Hello Jean Pierre Arabonis, Thanks! Could you be kind to further to tell me how and where I can find the pachage for fedora by Patrice Dumas you mentioned about, thank you again! Phillip > I remember there was a package for fedora by Patrice Dumas, have a look > in the archives, I also remember a colleague installing it directly from > the package manager some time ago. > > Good Luck > JP > > > > Phillip Lin wrote: >> Hello, >> I am a newbie to the GrADS graphics, could any expert tell me how to >> install it by using source code of it on linux system step by step. I >> really appreciate your help! >> See you! >> Phillip >> >> > > > -- > Jean Pierre Arabonis > arabonis at egs.uct.ac.za > Tel 021 780 1021 cell 084 401 1365 > This email is 100% Microsoft Free > From dasilva at OPENGRADS.ORG Tue Jun 16 15:02:24 2009 From: dasilva at OPENGRADS.ORG (Arlindo da Silva) Date: Tue, 16 Jun 2009 15:02:24 -0400 Subject: batch command for creating movie In-Reply-To: <8AB2D2ED-99A0-4165-8D36-0C77B726BB94@customweather.com> Message-ID: On Tue, Jun 16, 2009 at 12:27 PM, Kevin M Levey wrote: > TYE 16JUN09: 0925PDT > > Hi Arlindo > > Thanks for this posting. I was wondering how you get your fonts so smooth on > your GRADS plots, I've never been able to figure out how to get smooth fonts > like you have. Any pointers ? > The gxyat extension, it works as a replacement for printim: http://opengrads.org/wiki/index.php?title=Gxyat Arlindo -- Arlindo da Silva dasilva at alum.mit.edu From klevey at CUSTOMWEATHER.COM Tue Jun 16 15:07:20 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Tue, 16 Jun 2009 12:07:20 -0700 Subject: batch command for creating movie In-Reply-To: <77fcd6b20906161202i6d19566cn34b5651f46e863d4@mail.gmail.com> Message-ID: Hi Arlindo GREAT - thanks -ironic, I was about to do some testing using this extension this week, so you beat me to it - thanks again for your great extensions and work on opengrads. Cheers Kevin 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 Jun 16, 2009, at 06/16/09 - 12:02 PM, Arlindo da Silva wrote: > On Tue, Jun 16, 2009 at 12:27 PM, Kevin M Levey > wrote: >> TYE 16JUN09: 0925PDT >> >> Hi Arlindo >> >> Thanks for this posting. I was wondering how you get your fonts so >> smooth on >> your GRADS plots, I've never been able to figure out how to get >> smooth fonts >> like you have. Any pointers ? >> > > The gxyat extension, it works as a replacement for printim: > > http://opengrads.org/wiki/index.php?title=Gxyat > > Arlindo > > -- > Arlindo da Silva > dasilva at alum.mit.edu From furue at HAWAII.EDU Tue Jun 16 16:08:17 2009 From: furue at HAWAII.EDU (Ryo Furue) Date: Tue, 16 Jun 2009 10:08:17 -1000 Subject: batch command for creating movie In-Reply-To: <77fcd6b20906160755l28c7d41ap848ae77508d664fb@mail.gmail.com> Message-ID: Hi Arlindo and GrADS users, | The only problem with animated gif is that you do not have | control over the animation speed when viewing. For web applications it | is often better to keep the frames in individual files and use some | javascripting to set up and animation loop, e.g., [. . . an example | elided . . .] I agree that that's a very useful thing. For presentations MPEGs and animated GIFs are fine, but for research, you often want to pause, rewind, step backwards, and so on. For that purpose, I use a Javascript generated by http://www.barelyfitz.com/projects/slideshow/ You have only to do it once; afterwards, you can edit it as necessary. Then, you can use your webbrowser as a viewer of the slideshow/animation. (If you search Google for "javascript" and "slideshow", you'll find tons of free and commercial slideshow generators.) Since this "animation" is steppable, I often use it to traverse in a dimension other than time. For example, you can generate a series of meridional sections and step through them in the x-direction back and forth. (By the way, I suppose you could write a GrADS script that does a steppable slideshow, right?) Regards, Ryo From btsuang at YAHOO.COM Tue Jun 16 19:15:26 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Wed, 17 Jun 2009 07:15:26 +0800 Subject: batch command for creating movie In-Reply-To: Message-ID: Dear All: Thanks for all the information. Enclosed is Xwindows animation script, modified from an original script from Wesley Ebisuzaki. This modification can generate a series of jpg files in the directory "jpg". For example, the following commands generate 12 jpg files (variable.0.jpg, variable.1.jpg, .., ?variable.11.jpg). Hopefully, you will be interested. And someone can modify it for generating movie file as well. set t 1 12 xanim -jgp variable title Ben 2009/6/17 Ryo Furue : > Hi Arlindo and GrADS users, > > | The only problem with animated gif is that you do not have > | control over the animation speed when viewing. For web applications it > | is often better to keep the frames in individual files and use some > | javascripting to set up and animation loop, e.g., [. . . an example > | elided . . .] > > I agree that that's a very useful thing. ?For presentations > MPEGs and animated GIFs are fine, but for research, you often > want to pause, rewind, step backwards, and so on. > For that purpose, I use a Javascript generated by > > ?http://www.barelyfitz.com/projects/slideshow/ > > You have only to do it once; afterwards, you can edit it > as necessary. ?Then, you can use your webbrowser as a viewer > of the slideshow/animation. ?(If you search Google > for "javascript" and "slideshow", you'll find tons of > free and commercial slideshow generators.) > > Since this "animation" is steppable, I often use it to > traverse in a dimension other than time. ?For example, > you can generate a series of meridional sections and > step through them in the x-direction back and forth. > > (By the way, I suppose you could write a GrADS script > that does a steppable slideshow, right?) > > Regards, > Ryo > -- Ben-Jei Tsuang Dept. of Environmental Engineering National Chung-Hsing University -------------- next part -------------- A non-text attachment was scrubbed... Name: xanim.gs Type: application/octet-stream Size: 7256 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090617/860327bc/attachment.obj From mark at CRG.BPB.WITS.AC.ZA Wed Jun 17 06:19:46 2009 From: mark at CRG.BPB.WITS.AC.ZA (Mark Northcroft) Date: Wed, 17 Jun 2009 12:19:46 +0200 Subject: batch command for creating movie In-Reply-To: <4A33A15A.9030405@gmail.com> Message-ID: Hi, I would recommend using gifsicle (http://www.lcdf.org/gifsicle/) gifsicle --colors 256 --delay 100 --loop *.gif > anim.gif Set colors to 256, cycle image every 100 ms and loop the image. Very simple program. Regards Mark Ryo Furue wrote: >> Ben, >> >> | Thank you for shwoing me the possibility. I am still looking at the >> | web site you show. But I still have difficulity to figure out the >> | solution. Which binary file that I should download? Or I have to >> | build the binary from the sources. >> >> The command you need is either "convert" or "ffmpeg". >> I think most Linux distributions offer packages for >> these utilities because they are really popular. >> That means, all you have to do is to "download" and >> "install" appropriate packages. Which packages you >> have to install and how to do it depend on which Linux >> distribution you use. But I imagine "convert" is >> contained in one or other "imagemagick" package. >> "ffmpeg" is probably contained in a "ffmpeg" package. >> >> I'm not familiar with ffmpeg. With imagemagick, you'll >> typically do something along the lines of >> >> $ convert ss0??.gif mymovie.gif >> >> to generate a GIF animation "mymovie.gif" from >> a set of shapshots ss001.gif, ss002.gif, ss003.gif, . . . >> I hope you get the idea. >> >> Regards, >> Ryo >> > >

This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary.

From stormlaboratory at YAHOO.COM Wed Jun 17 08:26:47 2009 From: stormlaboratory at YAHOO.COM (Angel Dimitrov) Date: Wed, 17 Jun 2009 05:26:47 -0700 Subject: function int Message-ID: Dear Tetsuo Nakazawa, Do you have any weather text books for education (pdf format?) to print and read. The AMS journals are for advanced readers - a very good source to get the latest advances. The Google books are great, well, not very easy to print, not all pages are included. Thank you for any help. Best regards, Angel Dimitrov http://www.stormlab.net --- On Thu, 6/4/09, Tetsuo Nakazawa wrote: > From: Tetsuo Nakazawa > Subject: function int > To: GRADSUSR at LIST.CINECA.IT > Date: Thursday, June 4, 2009, 9:41 AM > Dear GrADS users, > > I tried to use the function of int (truncate the real > number to > integer), > but an error came when I used opengrads 2.0.a5.oga.5 for > Mac OSX. > > The script and the anal_p.ctl are as follows > > 'open anal_p.ctl' > 'set lon 30 180' > 'set lat -40 40' > 'i0=ugrdsfc*2.+1.' > 'd i0' > 'd int(i0)' > > It worked fine to "d i0", but when I did "d int(i0)", > then > the following error message came. > > Syntax Error: Invalid Operand > 'int' not a variable or function name > Error ocurred at column 1 > DISPLAY error: Invalid expression > Expression = int(i0) > > > function int(i0) > i=0 > while(i<12) > i=i+1 > if(substr(i0,i,1)='.') > i0=substr(i0,1,i-1) > break > endif > endwhile > return(i0) > > > * content of anal_p.ctl > > dset ^anal_p.%y4%m2%d2%h2 > index ^anal_p.idx > undef 9.999E+20 > title grib.anal_p > dtype grib 255 > options yrev template > ydef 145 linear -90.0 1.25 > xdef 288 linear 0.0 1.25 > tdef 124 linear 00Z01jan1979 6hr > zdef 23 levels > 1000 925 850 700 600 500 400 300 250 200 150 100 70 50 30 > 20 10 7 5 3 > 2 1 0.4 > vars 13 > HGTprs 23 7,100,0 ** > Geopotential height > [gpm] > TMPprs 23 11,100,0 ** Air > temperature > [K] > SPFHprs 23 51,100,0 ** Specific humidity > [kg/kg] > DEPRprs 8 18,100,0 ** Dew point > depression > [K] > UGRDprs 23 33,100,0 ** Zonal wind > > [m/s] > VGRDprs 23 34,100,0 ** Meridional wind > [m/s] > CWATprs 12 76,100,0 ** Cloud water > content [kg/m^2] > PRMSLmsl 0 2,102,0 ** Pressure > reduced to MSL [Pa] > TMPsfc 0 11,105,2 ** Surface 2m air > temperature [K] > SPFHsfc 0 51,105,2 ** Surface 2m > specific humidity [kg/kg] > DEPRsfc 0 18,105,2 ** Surface 2m dew > point depression [K] > UGRDsfc 0 33,105,10 ** Surface 10m zonal > wind [m/s] > VGRDsfc 0 34,105,10 ** Surface 10m > meridional wind [m/s] > ENDVARS > > > > ******************************************** > Tetsuo Nakazawa > > nakazawa at mri-jma.go.jp > Typhoon Research Department > Meteorological Research Institute > Tel: 029-853-8671 Fax: 029-853-8735 > ******************************************** > From stormlaboratory at YAHOO.COM Wed Jun 17 08:32:22 2009 From: stormlaboratory at YAHOO.COM (Angel Dimitrov) Date: Wed, 17 Jun 2009 05:32:22 -0700 Subject: last message Message-ID: sorry, I should look more in the recipient's email. Angel Dimitrov http://www.stormlab.net From ksanthanam at PRECISIONWIND.COM Wed Jun 17 10:49:34 2009 From: ksanthanam at PRECISIONWIND.COM (Krishna Santhanam) Date: Wed, 17 Jun 2009 08:49:34 -0600 Subject: NAM reanalysis data Message-ID: Hi all, Does anyone know where can i download NAM reanalysis data for the year 2007 and 2008. Thanks for your time. Krishna -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090617/1a45f40b/attachment.html From Glenn.Rutledge at NOAA.GOV Wed Jun 17 12:06:45 2009 From: Glenn.Rutledge at NOAA.GOV (Glenn Rutledge) Date: Wed, 17 Jun 2009 12:06:45 -0400 Subject: NAM reanalysis data In-Reply-To: <5b1371bb0906170749w4c7e4aecr5c558df7b4c85e95@mail.gmail.com> Message-ID: Dear Krishna, try NOMADS: http://nomads.ncdc.noaa.gov/ Glenn Krishna Santhanam said the following on 6/17/2009 10:49 AM: > Hi all, > Does anyone know where can i download NAM reanalysis data for the year > 2007 and 2008. > Thanks for your time. > Krishna -- Glenn K. Rutledge Meteorologist / Physical Scientist Team Lead Data Access Branch Climate Services Division NOMADS Project Manager National Oceanic and Atmospheric Administration National Climatic Data Center 151 Patton Ave Asheville NC 28801 Phone: (828) 271-4097 Fax: (828) 271-4328 NOMADS: http://nomads.ncdc.noaa.gov/ From ksanthanam at PRECISIONWIND.COM Wed Jun 17 12:53:28 2009 From: ksanthanam at PRECISIONWIND.COM (Krishnaraj Santhanam) Date: Wed, 17 Jun 2009 10:53:28 -0600 Subject: NAM reanalysis data In-Reply-To: <4A391495.9000206@noaa.gov> Message-ID: Dear Glenn, Thanks very much for your response. I am glad some one from NCDC saw my mail. I have few other questions regarding the data set. 1) Is NAM-ANL the reanalysis data. 2)If it is then I thought they have for four time slices (cycles) a day (0,6,12 and 18 Z), but here while I am downloading from the web I was asked to check one of the three forecast hours (0,3,6). 3)I am looking for reanalysis data not sure what forecast hours mean. 4) Are all these data is grib or grib2 format. (It looks like grib format but still making sure) 5) Are these data rotated for u,v wind component. I really appreciate your time and help with ths. Thanks again, Krishna Glenn Rutledge wrote: > Dear Krishna, > > try NOMADS: http://nomads.ncdc.noaa.gov/ > > Glenn > > > Krishna Santhanam said the following on 6/17/2009 10:49 AM: >> Hi all, >> Does anyone know where can i download NAM reanalysis data for the year >> 2007 and 2008. >> Thanks for your time. >> Krishna > > -- > Glenn K. Rutledge > Meteorologist / Physical Scientist > Team Lead > Data Access Branch > Climate Services Division > NOMADS Project Manager > National Oceanic and Atmospheric Administration > National Climatic Data Center > 151 Patton Ave > Asheville NC 28801 > Phone: (828) 271-4097 > Fax: (828) 271-4328 > > NOMADS: http://nomads.ncdc.noaa.gov/ -------------- next part -------------- A non-text attachment was scrubbed... Name: ksanthanam.vcf Type: text/x-vcard Size: 280 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090617/41526184/attachment.vcf From ksanthanam at PRECISIONWIND.COM Wed Jun 17 13:18:07 2009 From: ksanthanam at PRECISIONWIND.COM (Krishnaraj Santhanam) Date: Wed, 17 Jun 2009 11:18:07 -0600 Subject: NAM reanalysis data In-Reply-To: <4A391F88.1000404@precisionwind.com> Message-ID: By the way i forgot to say I am looking for NAM 12 (218 tile) reanalysis data. Thanks, Krishna Krishnaraj Santhanam wrote: > Dear Glenn, > Thanks very much for your response. I am glad some one from NCDC saw > my mail. > I have few other questions regarding the data set. 1) Is NAM-ANL the > reanalysis data. > 2)If it is then I thought they have for four time slices (cycles) a > day (0,6,12 and 18 Z), but here while I am downloading from the web I > was asked to check one of the three forecast hours (0,3,6). 3)I am > looking for reanalysis data not sure what forecast hours mean. > 4) Are all these data is grib or grib2 format. (It looks like grib > format but still making sure) > 5) Are these data rotated for u,v wind component. > I really appreciate your time and help with ths. > Thanks again, > Krishna > > > Glenn Rutledge wrote: >> Dear Krishna, >> >> try NOMADS: http://nomads.ncdc.noaa.gov/ >> >> Glenn >> >> >> Krishna Santhanam said the following on 6/17/2009 10:49 AM: >>> Hi all, >>> Does anyone know where can i download NAM reanalysis data for the year >>> 2007 and 2008. >>> Thanks for your time. >>> Krishna >> >> -- >> Glenn K. Rutledge >> Meteorologist / Physical Scientist >> Team Lead >> Data Access Branch >> Climate Services Division >> NOMADS Project Manager >> National Oceanic and Atmospheric Administration >> National Climatic Data Center >> 151 Patton Ave >> Asheville NC 28801 >> Phone: (828) 271-4097 >> Fax: (828) 271-4328 >> >> NOMADS: http://nomads.ncdc.noaa.gov/ > From furue at HAWAII.EDU Wed Jun 17 16:13:13 2009 From: furue at HAWAII.EDU (Ryo Furue) Date: Wed, 17 Jun 2009 10:13:13 -1000 Subject: batch command for creating movie In-Reply-To: <4A38C342.9070107@crg.wits.ac.za> Message-ID: Hi Mark, | I would recommend using gifsicle (http://www.lcdf.org/gifsicle/) | | gifsicle --colors 256 --delay 100 --loop *.gif > anim.gif | | Set colors to 256, cycle image every 100 ms and loop the image. Thank you for the information. I've found gifsicle is much more versatile in handling GIFs than the "convert" command; whereas the "convert" command is more versatile in that it can handle a variety of image formats. For an example of gifsicle's capability, you can optimize a GIF animation to significantly shrink it: SIZE 3482323 tmp-convert.gif # convert 3393686 tmp.gif # gifsicle 2415946 tmp-O1.gif # gifsicle --optimize=1 931354 tmp-O2.gif # gifsicle --optimize=2 This optimization is lossless (i.e., without deterioration in quality), I think. gifsicle also comes with a nice GIF viewer, with which you can step forwards and backwards through the GIF animation! Unfortunately, the viewer doesn't seem to be able to handle optimized animations, though. | Very simple program. | And powerful, too. Regards, Ryo From j_karmacharya at YAHOO.COM Thu Jun 18 03:50:42 2009 From: j_karmacharya at YAHOO.COM (jagadish karmacharya) Date: Thu, 18 Jun 2009 00:50:42 -0700 Subject: 2nd Request: Rotated Mercator Projection to Lat-Long Message-ID: Hi, I have gridded data in rotated mercator projection in netcdf file. I want to project the data in lat/long grid using grads. I have tried using data descriptor file setting pdef isize jsize eta.u lonref latref dlon dlat option. But when I plot the map ovarlay. There is some shift. I am using Grads v2.0.a3 in linux mechine. I have attached the output of ncdump below: I will highly appreciate any help. Jagadish -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090618/0e949a2b/attachment.html From hc.nnamchi at LASG.IAP.AC.CN Thu Jun 18 06:12:04 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Thu, 18 Jun 2009 18:12:04 +0800 Subject: Domain anomalies series Message-ID: Dear Grads users, I have two datasets for which i want get the areal anomaly time series (anom = x-mean)for two domains: a) lon=0,lon=360; lat=60S,lat=45S b) lon=15W,15E;lat=2N,lat=10N For each domain i want to have a single time series for t=1,t=last.My problem is how to apply the appropriate weighting functions. Can anyone help with a Fortran subroutine? Is there any GrADS function that can do this? Thanks in advance. -- 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 pjamyangs at GMAIL.COM Thu Jun 18 12:01:58 2009 From: pjamyangs at GMAIL.COM (Jamyang Phuntshok) Date: Fri, 19 Jun 2009 00:01:58 +0800 Subject: help display more than one charts in GrADS Message-ID: Dear experts I want to display more than one chart at a time in GrADS display window.....can anyone help me how to do that? Thank you all in advance. Phuntshok -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/a403deb8/attachment.html From gonzaloinfantellorca at GMAIL.COM Thu Jun 18 07:17:30 2009 From: gonzaloinfantellorca at GMAIL.COM (gonzalo infante llorca) Date: Thu, 18 Jun 2009 13:17:30 +0200 Subject: No subject Message-ID: Hi all, i would like to save the output of my grads calculation to a txt file. Any idea of how to manage this? Regards gonzalo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090618/06249fd5/attachment.html From mequitomz at YAHOO.COM.BR Thu Jun 18 12:40:18 2009 From: mequitomz at YAHOO.COM.BR (Arlindo Meque) Date: Thu, 18 Jun 2009 09:40:18 -0700 Subject: Res: help display more than one charts in GrADS In-Reply-To: <38e2e8dd0906180901k759ae82s1e70726807a241c@mail.gmail.com> Message-ID: Phuntshok, You need to use a ?vpage command?: set vpage xmin xmax ymin ymax ? Give a look here: ? 1. http://grads.iges.org/grads/gadoc/gadocindex.html ? 1. http://ccr.aos.wisc.edu/model/processing/grads/grads1.php ? ? ? ? Hope that helps ? ? Arlindo 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/20090618/c51e9582/attachment.html From naishi at METEO.MCGILL.CA Thu Jun 18 13:13:57 2009 From: naishi at METEO.MCGILL.CA (Phillip Lin) Date: Thu, 18 Jun 2009 13:13:57 -0400 Subject: help display more than one charts in GrADS In-Reply-To: <38e2e8dd0906180901k759ae82s1e70726807a241c@mail.gmail.com> Message-ID: Hi Phuntshok, Do you mean you want to display more than one chart or overlay several charts? Or you mean... Thanks naishi > Dear experts > > I want to display more than one chart at a time in GrADS display > window.....can anyone help me how to do that? > > Thank you all in advance. > > Phuntshok > From eduardo.agosta at GMAIL.COM Thu Jun 18 13:39:43 2009 From: eduardo.agosta at GMAIL.COM (Eduardo Agosta Scarel) Date: Thu, 18 Jun 2009 14:39:43 -0300 Subject: No subject In-Reply-To: <548c76010906180417r58251742m35d3efb598600e5d@mail.gmail.com> Message-ID: Hi Gonzalo, Try having a look on the cookbooks of the opengrads page. The following recipe can help you. http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file Eduardo 2009/6/18 gonzalo infante llorca > Hi all, > i would like to save the output of my grads calculation to a txt file. Any > idea of how to manage this? > Regards > gonzalo > -- Eduardo.Agosta at gmail.com Rodney Dangerfield - "What a dog I got, his favorite bone is in my arm." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090618/238d9db2/attachment.html From remm69 at GMAIL.COM Thu Jun 18 13:36:12 2009 From: remm69 at GMAIL.COM (Rafael Mundaray) Date: Thu, 18 Jun 2009 13:36:12 -0400 Subject: No subject Message-ID: Well I have some of that, but now I am not in my office... I try to send you that tomorrow... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090618/5dadca58/attachment.html From sd19surf at GMAIL.COM Thu Jun 18 14:37:28 2009 From: sd19surf at GMAIL.COM (Shawn Delaney) Date: Thu, 18 Jun 2009 14:37:28 -0400 Subject: No subject In-Reply-To: <548c76010906180417r58251742m35d3efb598600e5d@mail.gmail.com> Message-ID: Gonzalo, Here's a little code you can add/mod in your script to export to a text file. var = calculation res = write ('text_file.txt','Plain text file header or whatever') res = write('text_file.txt', var) output: Plain text file header or whatever hope this helps -Shawn On Thu, Jun 18, 2009 at 7:17 AM, gonzalo infante llorca < gonzaloinfantellorca at gmail.com> wrote: > Hi all, > i would like to save the output of my grads calculation to a txt file. Any > idea of how to manage this? > Regards > gonzalo > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090618/997f2131/attachment.html From remm69 at GMAIL.COM Thu Jun 18 18:14:34 2009 From: remm69 at GMAIL.COM (Rafael Mundaray) Date: Fri, 19 Jun 2009 17:44:34 +1930 Subject: No subject In-Reply-To: <548c76010906180417r58251742m35d3efb598600e5d@mail.gmail.com> Message-ID: Hey Gonzalo try with this... I made this some years old... And I have several modifications of its... But this is the original that I made... You can use it to obtain a txt file with all data in all grid points in your model file... ---------------------- Por tu nombre creo que hablas espa?ol aqu? te escribo lo de arriba en espa?ol pero mejor explicado... El archivo abre el .ctl de grads que estes usando... Esa l?nea debes modificarla, al igual que el nombre del archivo que vas a crear, tambi?n las rutas obviamente... Y debes cambiar el nombre de la variable donde pongo display... Prueba y cualquier cosa me dices... -- Ing. Rafael E. Mundaray M. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/23e306b2/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: text_xy2W_2.gs Type: application/octet-stream Size: 1277 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090619/23e306b2/attachment.obj From dasilva at ALUM.MIT.EDU Thu Jun 18 20:33:21 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Thu, 18 Jun 2009 20:33:21 -0400 Subject: GrADS under Windows 7 RC Message-ID: Dear Win32 GrADS Users, As you may already know, the Release Candidate (RC) for the next Windows Version 7 is freely available from Microsoft (as an evaluation copy until next year.) If you are one of those earlier adopters, you may want to know that the Win32 builds available from http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=290254&release_id=682062 works fine on Windows 7 with a small caveat: you need to manually start the X server. Create an one-line *startx.bat* file with *start c:\opengrads\contents\resources\xming\xming :0 -multiwindow +bs* and place it on your desktop. Click on it (just once per login) to start the X server before starting any grads executable (or you can place it in your startup folder to have it started automatically.) I'll fix this glitch in the next release. As for Windows 7 I am not really a PC guy but this is the best Windows I've ever seen. I am attaching a screen dump of Win32 GrADS running on my EeePC netbook. Very responsive, even on this little machine. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090618/0c60ee15/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: windows7.png Type: image/png Size: 160030 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090618/0c60ee15/attachment.png From hiren_dave85 at YAHOO.COM Fri Jun 19 04:53:30 2009 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Fri, 19 Jun 2009 01:53:30 -0700 Subject: How to plot station data Message-ID: Dear, all I have Lat, Lon, station mane and rainfall amount. I want to display this data grads. How to plot station data in Grads?? Thanks.... ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/18911ebf/attachment.html From prjayakrishnan at GMAIL.COM Fri Jun 19 05:50:10 2009 From: prjayakrishnan at GMAIL.COM (Jayakrishnan PR) Date: Fri, 19 Jun 2009 15:20:10 +0530 Subject: How to plot station data In-Reply-To: <490547.6299.qm@web30406.mail.mud.yahoo.com> Message-ID: *Hello, I herewith attach the programmes required for displaying data in station grads. Kindly go through it and modify it accordingly to your needs. Run result.txt to the input of the fortran grads.f, and we will get the output as passmosissep.txt The output passmodis.txt can be used as the input of stnkutty.c, which is a c program to generate the station binary file named passmodis.bin After successful creation of the station binary file run the station map utility using the command stnmap -i stnexample.ctl, to create the station map* On Fri, Jun 19, 2009 at 2:23 PM, hiren dave wrote: > Dear, all I have Lat, Lon, station mane and rainfall amount. I want to > display this data grads. How to plot station data in Grads? > Thanks.... > > ------------------------------ > Cricket on your mind? Visit the ultimate cricket website. Enter now! -- Sincerely *********************************************** Jayakrishnan.P.R CSIR-Research Fellow Department of Atmospheric Sciences Cochin University of Science and Technology (CUSAT), Cochin-682 016 Kerala, India. Mob: 09895417565 *********************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/4f7df6f7/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: grads.f Type: text/x-fortran Size: 1133 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090619/4f7df6f7/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: station.c Type: text/x-csrc Size: 1486 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090619/4f7df6f7/attachment-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: stnexample.ctl Type: application/octet-stream Size: 209 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090619/4f7df6f7/attachment.obj From eromeroo at INM.ES Fri Jun 19 07:38:25 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Fri, 19 Jun 2009 13:38:25 +0200 Subject: How to plot station data In-Reply-To: <5b5e360906190250v700093a8o435bbbe6648fdf91@mail.gmail.com> Message-ID: Hello, I am trying to display station data in grads aswell, but I don't know what I am doing wrong. I am trying to create the binary file with fortran (the code is the GRADS user's guide) and then run the station map utility. This utility tells me the following error: Name of binary data set: salida.bin Number of times in the data set: 2 Number of surface variables: 1 Number of level dependent variables: 0 Starting scan of station data binary file. Binary data file open: salida.bin Processing time = 1 Time = 1 has stn count = 0 Processing time = 2 Invalid station hdr found in station binary file Possible causes: Invalid level count in hdr Descriptor file mismatch File not station data Invalid relative time levs = 825241625 flag = 608322102 time = 5.60519e-45 Can anyone help me to understand what is my error about? Is it better to do it with C code? Thank you very much. El vie, 19-06-2009 a las 11:50, Jayakrishnan PR escribi?: > Hello, > I herewith attach the programmes required for displaying > data in station grads. Kindly go through it and modify it accordingly > to your needs. > Run result.txt to the input of the fortran grads.f, and we will get > the output as passmosissep.txt > > The output passmodis.txt can be used as the input of stnkutty.c, which > is a c program to generate the station binary file named passmodis.bin > After successful creation of the station binary file run the station > map utility using the command > stnmap -i stnexample.ctl, to create the station map > > On Fri, Jun 19, 2009 at 2:23 PM, hiren dave > wrote: > Dear, all I have Lat, Lon, station mane and rainfall amount. I > want to display this data grads. How to plot station data in > Grads? > Thanks.... > > ______________________________________________________________ > Cricket on your mind? Visit the ultimate cricket website. > Enter now! > > > > -- > Sincerely > *********************************************** > Jayakrishnan.P.R > CSIR-Research Fellow > Department of Atmospheric Sciences > Cochin University of Science and Technology (CUSAT), Cochin-682 016 > Kerala, India. > Mob: 09895417565 > > *********************************************** From gonzaloinfantellorca at GMAIL.COM Fri Jun 19 09:27:21 2009 From: gonzaloinfantellorca at GMAIL.COM (gonzalo infante llorca) Date: Fri, 19 Jun 2009 15:27:21 +0200 Subject: No subject In-Reply-To: <1f59b3870906181514l6c12605exb29eaddc2e57c8fa@mail.gmail.com> Message-ID: thanks everyone, i think with the write commnad i can do what i need. The only problem is that i do not hav much control on where to append the new data. For example if i write write(txtfile,variable,append) everytime i call to this function it will append a new value just below the old one i.e. columns, and i would like to fill the file in rows. Does anyone know how to control this?? Thanks in advance Gonzalo El 19 de junio de 2009 00:14, Rafael Mundaray escribi?: > Hey Gonzalo try with this... I made this some years old... And I have > several modifications of its... > But this is the original that I made... > You can use it to obtain a txt file with all data in all grid points in > your model file... > > ---------------------- > Por tu nombre creo que hablas espa?ol aqu? te escribo lo de arriba en > espa?ol pero mejor explicado... > El archivo abre el .ctl de grads que estes usando... Esa l?nea debes > modificarla, al igual que el nombre del archivo que vas a crear, tambi?n las > rutas obviamente... Y debes cambiar el nombre de la variable donde pongo > display... > Prueba y cualquier cosa me dices... > -- > Ing. Rafael E. Mundaray M. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/7751e73e/attachment.html From pjamyangs at GMAIL.COM Fri Jun 19 09:29:15 2009 From: pjamyangs at GMAIL.COM (Jamyang Phuntshok) Date: Fri, 19 Jun 2009 21:29:15 +0800 Subject: help display more than one charts in GrADS In-Reply-To: <59783.207.112.80.136.1245345237.squirrel@www.meteo.mcgill.ca> Message-ID: Dear Naishi Thanks for your response. I actually want to display different charts on the same display window like say for example rainfall charts of June, July, August, and september on the same diaplay window so that I can see them all togather. Thanks Phuntshok On Fri, Jun 19, 2009 at 1:13 AM, Phillip Lin wrote: > Hi Phuntshok, > Do you mean you want to display more than one chart or overlay several > charts? > Or you mean... > Thanks > naishi > > > > Dear experts > > > > I want to display more than one chart at a time in GrADS display > > window.....can anyone help me how to do that? > > > > Thank you all in advance. > > > > Phuntshok > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/7057fe47/attachment.html From Guilong.Li at EC.GC.CA Fri Jun 19 10:40:24 2009 From: Guilong.Li at EC.GC.CA (Li,Guilong [Ontario]) Date: Fri, 19 Jun 2009 10:40:24 -0400 Subject: NetCDF for polar stereographic projection In-Reply-To: A<4A391495.9000206@noaa.gov> Message-ID: Dear GrADs users, I have a ASCII datasets which is on polar stereographic projection. I would like to show this data in GrADS. Does any one have a FORTRAN code which can write it to netCDF format? Thanks. Guilong From muhammad.rahiz at OUCE.OX.AC.UK Fri Jun 19 11:11:49 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Fri, 19 Jun 2009 17:11:49 +0200 Subject: Template usage Message-ID: Dear GrADS users, I have the following binary data that I want to aggregate into on single master.ctl file. ATM.1980070100.ctl (timestep = 124) ATM.1980080100.ctl (timestep = 124) I edited the descriptor file (ATM.1980070100.ctl) and changed the following parameters to; dset ^ATM.%y4%m2%d2%h2 options template tdef 248 But I got the following error ga> open ATM.1980080100.ctl ga> d t Notice: Automatic Grid Interpolation Taking Place Cannot contour grid - all undefined values Any advise? Muhammad GrADS v1.9b4 on Fedora 10 From abbasmofidi at YAHOO.COM Fri Jun 19 12:51:33 2009 From: abbasmofidi at YAHOO.COM (abbas mofidi) Date: Fri, 19 Jun 2009 09:51:33 -0700 Subject: Linear Graph! Message-ID: Hi GrADS User, The attached file is a script for plotting a linear graph from 12 Netcdf files (u and v). I am trying to create a graph in grads, but I don't know what I am doing wrong. The following error appears after running: Cannot plot data - all undefined values ?Can anyone help me to understand what is my error about? Sincerely, Abbas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/47fa2988/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: strongmonsoon-diagram.gs Type: application/octet-stream Size: 4654 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090619/47fa2988/attachment.obj From sd19surf at GMAIL.COM Fri Jun 19 14:51:24 2009 From: sd19surf at GMAIL.COM (Shawn Delaney) Date: Fri, 19 Jun 2009 14:51:24 -0400 Subject: No subject In-Reply-To: <548c76010906190627w6095ec68nf46d36aaa893f859@mail.gmail.com> Message-ID: Gonzalo, If you are talking about trying something like this: You could calculate the variables prior to writing them and assign them different names so that your resulting write() would look something like this. res = write (icao'_FOUS.txt',TT''PTT''R1''R2''R3' 'VVV''LI' 'PS''DD''FF' 'HH''T1''T3''T5) This is from a FOUS script I created all the variable names are in quotes with the spacing I wanted in between. Then I run the variables through a loop (changing the time) it appends the row of output below the previous line. Output looks like this sample: 00000896162 -1996 032307 59191208 03000734021 03000 042908 58171107 06000842608 00007 052908 55130904 09000643014 00011 052809 55120701 12000752825 02516 083108 54080401 If your row is to be continuous I am not certain how to conquer that one. -Shawn On Fri, Jun 19, 2009 at 9:27 AM, gonzalo infante llorca < gonzaloinfantellorca at gmail.com> wrote: > thanks everyone, > i think with the write commnad i can do what i need. The only problem is > that i do not hav much control on where to append the new data. For example > if i write > write(txtfile,variable,append) > everytime i call to this function it will append a new value just below the > old one i.e. columns, and i would like to fill the file in rows. Does anyone > know how to control this?? > Thanks in advance > Gonzalo > > El 19 de junio de 2009 00:14, Rafael Mundaray escribi?: > > Hey Gonzalo try with this... I made this some years old... And I have >> several modifications of its... >> But this is the original that I made... >> You can use it to obtain a txt file with all data in all grid points in >> your model file... >> >> ---------------------- >> Por tu nombre creo que hablas espa?ol aqu? te escribo lo de arriba en >> espa?ol pero mejor explicado... >> El archivo abre el .ctl de grads que estes usando... Esa l?nea debes >> modificarla, al igual que el nombre del archivo que vas a crear, tambi?n las >> rutas obviamente... Y debes cambiar el nombre de la variable donde pongo >> display... >> Prueba y cualquier cosa me dices... >> -- >> Ing. Rafael E. Mundaray M. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/8187a964/attachment.html From ela at COLA.IGES.ORG Fri Jun 19 14:59:42 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Fri, 19 Jun 2009 14:59:42 -0400 Subject: help display more than one charts in GrADS In-Reply-To: <1280510521.20321245437908765.JavaMail.root@mail.iges.org> Message-ID: Dear Phuntshok, Try using the 'set vpage' command. If you are using landscape mode and want 4 plots on one page then do this: set vpage 0 5.5 4.25 8.5 ... (commands to plot June data) ... set vpage 5.5 11 4.25 8.5 ... (commands to plot July data) ... set vpage 0 5.5 0 4.25 ... (commands to plot August data) ... set vpage 5.5 11 0 4.25 ... (commands to plot September data) For more information see http://grads.iges.org/grads/gadoc/pagecontrol.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: "Jamyang Phuntshok" To: GRADSUSR at LIST.CINECA.IT Sent: Friday, June 19, 2009 9:29:15 AM GMT -05:00 US/Canada Eastern Subject: Re: help display more than one charts in GrADS Dear Naishi Thanks for your response. I actually want to display different charts on the same display window like say for example rainfall charts of June, July, August, and september on the same diaplay window so that I can see them all togather. Thanks Phuntshok On Fri, Jun 19, 2009 at 1:13 AM, Phillip Lin wrote: > Hi Phuntshok, > Do you mean you want to display more than one chart or overlay several > charts? > Or you mean... > Thanks > naishi > > > > Dear experts > > > > I want to display more than one chart at a time in GrADS display > > window.....can anyone help me how to do that? > > > > Thank you all in advance. > > > > Phuntshok > > > From arlindo.dasilva at GMAIL.COM Fri Jun 19 17:43:17 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 19 Jun 2009 17:43:17 -0400 Subject: Domain anomalies series In-Reply-To: <5134192.81211245319924388.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: 2009/6/18 Hyacinth Cyprain Nnamchi > Dear Grads users, > I have two datasets for which i want get the areal anomaly time series > (anom = x-mean)for two domains: > a) lon=0,lon=360; lat=60S,lat=45S > b) lon=15W,15E;lat=2N,lat=10N > For each domain i want to have a single time series for t=1,t=last.My > problem is how to apply the appropriate weighting functions. > > Can anyone help with a Fortran subroutine? Is there any GrADS function that > can do this? > The aave() function will perform the correct area averaging, e.g., set x 1 set y 1 set t 1 last d aave(u,lon=0,lon=360,lat=-60,lat=-45) Read he User's Guide for more information. Arlindo > > Thanks in advance. > -- > > 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 > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090619/abd4960a/attachment.html From axl419 at YAHOO.COM Fri Jun 19 18:27:11 2009 From: axl419 at YAHOO.COM (See Hai Ooi) Date: Fri, 19 Jun 2009 15:27:11 -0700 Subject: Template usage Message-ID: Hello, Say, your binary (.bin and not .ctl) data file is ATM.1980070100.bin and your .ctl is named as ATM.CTL, then its partial contents could be written as : dset ^ATM.%y4%m2%d2%h2.bin options template tdef 248 linear 00Z01jul1980 6hr With the above amendment, you may be able to resolve your problem after opening atm.ctl. Regards. Ooi --- On Fri, 19/6/09, Muhammad Rahiz wrote: > From: Muhammad Rahiz > Subject: Template usage > To: GRADSUSR at LIST.CINECA.IT > Date: Friday, 19 June, 2009, 11:11 PM > Dear GrADS users, > > I have the following binary data that I want to aggregate into on single master.ctl file. > > ATM.1980070100.ctl (timestep = 124) > ATM.1980080100.ctl (timestep = 124) > > I edited the descriptor file (ATM.1980070100.ctl) and > changed the following > parameters to; > > dset ^ATM.%y4%m2%d2%h2 > options template > tdef 248 > > But I got the following error > > ga> open ATM.1980080100.ctl > ga> d t > Notice: Automatic Grid Interpolation Taking Place > Cannot contour grid - all undefined values > > Any advise? > > Muhammad > GrADS v1.9b4 on Fedora 10 New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From muhammad.rahiz at OUCE.OX.AC.UK Fri Jun 19 20:29:21 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Sat, 20 Jun 2009 01:29:21 +0100 Subject: Template usage In-Reply-To: <780374.44417.qm@web31004.mail.mud.yahoo.com> Message-ID: Hello Ooi, Thanks for the reply. I've made the changes but the problem still persists. Any further recommendations? Muhammad -- Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research Laboratory, School of Geography & the Environment Oxford University Centre for the Environment, University of Oxford South Parks Road, Oxford, OX1 3QY, United Kingdom Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 Email: muhammad.rahiz at ouce.ox.ac.uk See Hai Ooi wrote: > Hello, > > Say, your binary (.bin and not .ctl) data file is ATM.1980070100.bin and your .ctl is named as ATM.CTL, then its partial contents could be written as : > > dset ^ATM.%y4%m2%d2%h2.bin > options template > tdef 248 linear 00Z01jul1980 6hr > > With the above amendment, you may be able to resolve your problem after opening atm.ctl. > > Regards. > > > Ooi > > > > --- On Fri, 19/6/09, Muhammad Rahiz wrote: > > >> From: Muhammad Rahiz >> Subject: Template usage >> To: GRADSUSR at LIST.CINECA.IT >> Date: Friday, 19 June, 2009, 11:11 PM >> Dear GrADS users, >> >> I have the following binary data that I want to aggregate into on single master.ctl file. >> >> ATM.1980070100.ctl (timestep = 124) >> ATM.1980080100.ctl (timestep = 124) >> >> I edited the descriptor file (ATM.1980070100.ctl) and >> changed the following >> parameters to; >> >> dset ^ATM.%y4%m2%d2%h2 >> options template >> tdef 248 >> >> But I got the following error >> >> ga> open ATM.1980080100.ctl >> ga> d t >> Notice: Automatic Grid Interpolation Taking Place >> Cannot contour grid - all undefined values >> >> Any advise? >> >> Muhammad >> GrADS v1.9b4 on Fedora 10 >> > > > > New Email names for you! > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > http://mail.promotions.yahoo.com/newdomains/aa/ > From axl419 at YAHOO.COM Fri Jun 19 22:29:13 2009 From: axl419 at YAHOO.COM (See Hai Ooi) Date: Fri, 19 Jun 2009 19:29:13 -0700 Subject: Template usage Message-ID: Hello Muhammad, Without knowing the nature/characteristics of your data file and the full data description file, it is difficult for me to offer any help, if possible. Regards. Ooi --- On Sat, 20/6/09, Muhammad Rahiz wrote: > From: Muhammad Rahiz > Subject: Re: Template usage > To: GRADSUSR at LIST.CINECA.IT > Date: Saturday, 20 June, 2009, 8:29 AM > Hello Ooi, > > Thanks for the reply. I've made the changes but the problem still persists. Any further recommendations? > > Muhammad > > -- > Muhammad Rahiz | Doctoral Student in Regional Climate Modeling > Climate Research Laboratory, School of Geography & the Environment > Oxford University Centre for the Environment, University of Oxford > South Parks Road, Oxford, OX1 3QY, United Kingdom > Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 > Email: muhammad.rahiz at ouce.ox.ac.uk New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From muhammad.rahiz at OUCE.OX.AC.UK Sat Jun 20 00:12:50 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Sat, 20 Jun 2009 05:12:50 +0100 Subject: Template usage In-Reply-To: <587161.36213.qm@web31008.mail.mud.yahoo.com> Message-ID: Dear Ooi, Perhaps I should brief you on what I'd like to do. I have a set of RegCM data (1960-1990 and 2070-2010) in .bin/.ctl format. I'm trying to extract only selected variables i.e. temperature and precipitation from the output file. In CDO, I can issue the command 'selvars' to extract a variable but I'm new to GrADS and there is no equivalent function of extracting variable(s). A description of a sample output file is as follows; dset ^ATM.1988070100 title RegCM normal output variables options big_endian undef -1.e34 pdef 118 109 eta.u 80.000 21.000 0.45045 0.42900 xdef 303 linear 46.25 0.2252 ydef 226 linear -5.07 0.2252 zdef 18 levels 1008.23 998.20 983.15 958.07 922.96 877.81 822.63 757.42 682.18 601.92 521.66 441.40 361.14 280.88 205.63 140.42 85.24 35.08 tdef 124 linear 6z01jul1988 6hr vars 11 u 18 0 westerly wind (m/s) v 18 0 southerly wind (m/s) w 18 0 omega (hPa/s) p-velocity t 18 0 air temperature (degree) qv 18 0 air specific humidity qc 18 0 cloud water mixing ratio psa 0 99 surface pressure (hPa) tpr 0 99 total precipitation(mm/day tgb 0 99 groud temperature in BATS swt 0 99 total soil water in mm H2O rno 0 99 accumulated infiltration endvars I have a script (save.gs) that someone (Bin Guan) wrote that enables me to extract the variable(s) I want. So far, running the script for one ATM.xxx.ctl file does the job of extracting temperature. But I have 1080 (there are 360 ATM, 360 SRF and 360 RAD data) x 2 sets of files (present and future) to extract so the script writer recommended doing an aggregate and running the save.gs file just once. Previously, I did this in a simple script. 'open ATM.1988070100.ctl' 'set t 1 124' 'run save.gs' 'save -v t -n t -u -1.e34 -o atm.1988070100 -p ./output/' This works for one ctl file but I want Grads to automatically choose the input file and prints the output file. Any idea of how I can do that?. In shell scripting, I can issue a wildcard (*). For example, $ for input in $(ls *.tgz);do tar xvfz $input Obviously, wildcards do not work in Grads and it requires the specific name for the descriptor file as input. While Grads can take shell commands, can shell take grad commands? In short, I'd like to do either (but I'd like to know how to do both), 1. aggregate of all data files and run 'save.gs' once or 2. auto select input and generate corresponding output and run 'save.gs' on every file. If you have any suggestions, please advise. Thanks! Muhammad -- Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research Laboratory, School of Geography & the Environment Oxford University Centre for the Environment, University of Oxford South Parks Road, Oxford, OX1 3QY, United Kingdom Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 Email: muhammad.rahiz at ouce.ox.ac.uk See Hai Ooi wrote: > Hello Muhammad, > > Without knowing the nature/characteristics of your data file and the full data description file, it is difficult for me to offer any help, if possible. > > Regards. > > Ooi > > > > --- On Sat, 20/6/09, Muhammad Rahiz wrote: > > >> From: Muhammad Rahiz >> Subject: Re: Template usage >> To: GRADSUSR at LIST.CINECA.IT >> Date: Saturday, 20 June, 2009, 8:29 AM >> Hello Ooi, >> >> Thanks for the reply. I've made the changes but the problem still persists. Any further recommendations? >> >> Muhammad >> >> -- >> Muhammad Rahiz | Doctoral Student in Regional Climate Modeling >> Climate Research Laboratory, School of Geography & the Environment >> Oxford University Centre for the Environment, University of Oxford >> South Parks Road, Oxford, OX1 3QY, United Kingdom >> Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 >> Email: muhammad.rahiz at ouce.ox.ac.uk >> > > > > New Email names for you! > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > http://mail.promotions.yahoo.com/newdomains/aa/ > From romero619 at HOTMAIL.COM Sat Jun 20 01:29:43 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Sat, 20 Jun 2009 00:29:43 -0500 Subject: Ice coverage data source Message-ID: Id like to work with plotting polar/high-latitude sea ice coverage in grads. Does anyone know where I can find a gridded data source for sea ice coverage? Thanks, P.R. From khen_ch at YAHOO.COM Sat Jun 20 02:37:01 2009 From: khen_ch at YAHOO.COM (jacky khen) Date: Fri, 19 Jun 2009 23:37:01 -0700 Subject: help display more than one charts in GrADS Message-ID: Dear Phuntshok, I'm a new GrADS user. You'd like to use this command. g-> set vpage Xmin1 Xmax1 Ymin1 Ymax1 g-> d variable g-> set vpage Xmin2 Xmax2 Ymin2 Ymax2 g-> d variable To display 2 chart on grads window. For example g-> set vpage 0.5 5.5 1.5 7.5 g-> d mslp g-> draw title Mean Sea Level Pressure g-> set vpage 5.5 10.5 1.5 7.5 g-> d pwat g-> draw title Precipitation Water I am not sure to help you. For give me some my mistake. Regards. Jacky --- On Fri, 6/19/09, Jamyang Phuntshok wrote: > From: Jamyang Phuntshok > Subject: Re: help display more than one charts in GrADS > To: GRADSUSR at LIST.CINECA.IT > Date: Friday, June 19, 2009, 8:29 PM > Dear Naishi > > Thanks for your response. I actually want to display > different charts on the same display window like say for > example rainfall charts of June, July, August, and september > on the same diaplay window so that I can see them all > togather. > > > Thanks > > Phuntshok > > > On Fri, Jun 19, 2009 at 1:13 AM, > Phillip Lin > wrote: > > Hi > Phuntshok, > Do you mean you want to display more than one chart or > overlay several > charts? > Or you mean... > > Thanks > naishi > > > > > > > Dear experts > > > > I want to display more than one chart at a time in > GrADS display > > window.....can anyone help me how to do that? > > > > Thank you all in advance. > > > > > Phuntshok > > > > > From pdjakow at GMAIL.COM Sat Jun 20 03:00:11 2009 From: pdjakow at GMAIL.COM (PiotrD) Date: Sat, 20 Jun 2009 09:00:11 +0200 Subject: Ice coverage data source In-Reply-To: Message-ID: P.R. wrote: > Id like to work with plotting polar/high-latitude sea ice coverage in grads. > Does anyone know where I can find a gridded data source for sea ice > coverage? > Thanks, > P.R. > > There is "Sea Ice" at NOMADS server: http://nomads.ncep.noaa.gov/ I make this image with that dataset: http://www.gfspl.rootnode.net/seaice/ice.png BTW Is there any possibility to "rotate" image in GrADS? I want to have image like that (this is rotated with imagemagick) http://www.gfspl.rootnode.net/ice2.png Best Regards Piotr Djakow -- Prognoza modelu numerycznego GFS dla obszaru Polski: http://www.gfspl.rootnode.net From axl419 at YAHOO.COM Sat Jun 20 03:00:19 2009 From: axl419 at YAHOO.COM (See Hai Ooi) Date: Sat, 20 Jun 2009 00:00:19 -0700 Subject: Template usage Message-ID: Dear Muhammad, Sorry. I do not use climate model data and my GrADS is a window version. However, I believe the principle of extracting the data is more or less similar. I trust that other experienced users in Fedora (?) can readily help you out to resolve your problem provided your save.gs file is made known to them. Best regards. Ooi --- On Sat, 20/6/09, Muhammad Rahiz wrote: > From: Muhammad Rahiz > Subject: Re: Template usage > To: GRADSUSR at LIST.CINECA.IT > Date: Saturday, 20 June, 2009, 12:12 PM > Dear Ooi, > > Perhaps I should brief you on what I'd like to do. > > I have a set of RegCM data (1960-1990 and 2070-2010) in .bin/.ctl format. I'm trying to extract only selected variables i.e. temperature and precipitation from the output file. In CDO, I can issue the command 'selvars' to extract a variable but I'm new to GrADS and there is no equivalent function of extracting variable(s). A description of a sample output file is as follows; > > dset ^ATM.1988070100 > title RegCM normal output variables > options big_endian > undef -1.e34 > pdef 118 109 eta.u 80.000 21.000 0.45045 0.42900 > xdef 303 linear 46.25 0.2252 > ydef 226 linear -5.07 0.2252 > zdef 18 levels 1008.23 998.20 983.15 958.07 922.96 877.81 > 822.63 757.42 682.18 601.92 521.66 441.40 361.14 280.88 205.63 > 140.42 85.24 35.08 > tdef 124 linear 6z01jul1988 6hr > vars 11 > u 18 0 westerly wind (m/s) > v 18 0 southerly wind (m/s) > w 18 0 omega (hPa/s) p-velocity > t 18 0 air temperature (degree) > qv 18 0 air specific humidity > qc 18 0 cloud water mixing ratio > psa 0 99 surface pressure (hPa) > tpr 0 99 total precipitation(mm/day > tgb 0 99 groud temperature in BATS > swt 0 99 total soil water in mm H2O > rno 0 99 accumulated infiltration > endvars > > I have a script (save.gs) that someone (Bin Guan) wrote that enables me to extract the variable(s) I want. So far, running the script for one ATM.xxx.ctl file does the job of extracting temperature. But I have 1080 (there are 360 ATM, 360 SRF and 360 RAD data) x 2 sets of files (present and future) to extract so the script writer recommended doing an aggregate and running the save.gs file just once. > > Previously, I did this in a simple script. > > 'open ATM.1988070100.ctl' > 'set t 1 124' > 'run save.gs' > 'save -v t -n t -u -1.e34 -o atm.1988070100 -p ./output/' > > This works for one ctl file but I want Grads to automatically choose the input file and prints the output file. Any idea of how I can do that?. In shell scripting, I can issue a wildcard (*). For example, > > $ for input in $(ls *.tgz);do > tar xvfz $input > > Obviously, wildcards do not work in Grads and it requires the specific name for the descriptor file as input. While Grads can take shell commands, can shell take grad commands? > > In short, I'd like to do either (but I'd like to know how to do both), > 1. aggregate of all data files and run 'save.gs' once or > 2. auto select input and generate corresponding output and run 'save.gs' on every file. > > If you have any suggestions, please advise. > > Thanks! > > Muhammad > > -- > Muhammad Rahiz | Doctoral Student in Regional > Climate Modeling > Climate Research Laboratory, School of Geography & the > Environment > Oxford University Centre for the Environment, University of > Oxford > South Parks Road, Oxford, OX1 3QY, United Kingdom > Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 > Email: muhammad.rahiz at ouce.ox.ac.uk Get your new Email address! Grab the Email name you've always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From romero619 at HOTMAIL.COM Sat Jun 20 17:05:00 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Sat, 20 Jun 2009 16:05:00 -0500 Subject: Need help trying to solve a re-gridding problem Message-ID: Hi, Im looking for help trying to devise a solution to the following problem: I have a high-resolution lat/long dataset: 30second (0.008333333degrees) resolution. I want to create 2 re-gridded datasets from the hi-res data: 1) a low-res dataset that uses 'box averaging' to drop to a given lower resolution (using regrid in grads) 2) a 'mask' grid, that indicates the percentage of each grid point in the low-res grid that is above a specific threshold value, using a slightly higher resolution as a reference. Here is a more specific example of what Im trying to accomplish: I'll call my 0.008333 hi-res data "grid_0.083" Using regrid in grads, I create a 0.5 degree low-res data set from 'grid1'. I'll call this 'grid_0.5' Now, I want to create a 'mask' grid that has the same dimensions as 'grid_0.5', called 'grid_mask'. 'grid_mask' should indicate what percentage of each grid point in 'grid_0.5' is above my threshold value of '-0.75'. All points within 'grid_mask' that fall completely below the threshold should simply have a 'zero' value. However, 'grid_mask' should use a higher resolution than the source grid in order to calculate the percentage... i.e., if the source grid ('grid_0.5') has a 0.5 degree resolution, then 'grid_mask' should use a 0.125 resolution in order to calculate the percentage values... So, for example, if a given 'grid_mask' grid point has a value of 0.8, this indicates that 80% of that specific grid point within 'grid_0.5' has a value above the threshold '-0.75' value, and using a higher, 0.125 degree resolution as reference for the 'sub-grid' percentage... And, if a given 'grid_mask' point has a zero value, '0.00', then it means that the related grid point within 'grid_0.5' has I hope these examples made sense. Can someome please help me devise a method of creating this mask? I believe that it could be done using multiple calls to 're' in grads, and perhaps also aave, but Im not clear on how to best implement a solution... Please help, Thanks, P.R. From muhammad.rahiz at OUCE.OX.AC.UK Sun Jun 21 07:52:17 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Sun, 21 Jun 2009 13:52:17 +0200 Subject: Automatically select input and generate output Message-ID: Dear GrADS users, Instead of specifying a file (e.g. 'ga> open file1.ctl'), I want GrADS to automatically select the input file (e.g. file1, file2) within the folder. Also I want it to generate the output file e.g. file1, file2) based on the same name as the input file. In shell, I can issue the wildcard e.g. '*.ctl'. Any similar commands in GrADS? Muhammad Rahiz From gonzaloinfantellorca at GMAIL.COM Sun Jun 21 12:12:50 2009 From: gonzaloinfantellorca at GMAIL.COM (gonzalo infante llorca) Date: Sun, 21 Jun 2009 18:12:50 +0200 Subject: No subject Message-ID: Dear grads users, i am trying to execute a grads script from a bash script. The grads script need as an input the filenames to open. It works ok if i write from the grads comand line ga> myscript filename 1 filename2 but if i try to execute from the terminal command line like grads -bc myscript filename1 filename2 nothing happens. Also note that my script is consist on a main funcion like function main(arg) if (arg='') say 'necesitamos los dos ficheros de datos a abrir' say 'primero el del del an?lisis y luego las predicciones' return endif fichero1=subwrd(arg,1) fichero2=subwrd(arg,2) .... end Any idea on how to pass the input argument from command line or bash script?? Thanks in advance Gonzalo From remm69 at GMAIL.COM Sun Jun 21 14:21:36 2009 From: remm69 at GMAIL.COM (Rafael Mundaray) Date: Sun, 21 Jun 2009 14:21:36 -0400 Subject: No subject Message-ID: Por ejemplo yo tengo que abrir unos archivos en un bash script diariamente que dice as? 1er_DOM_fecha.ctl... Entonces yo para entrar a grads hago lo siguiente... fecha=date Echo $fecha Cat >> primer_script << EOF Open 1er_DOM_${fecha}.ctl Varias instruciones de grads ... ... ... EOF /ruta_grads/gradsc -blc "run primer_script" Endwhile (el endwhile es porque tengo unos ciclos antes d unas cosas... Algo as? entend? d lo q no te da...) From joy0826 at PUSAN.AC.KR Sun Jun 21 21:40:08 2009 From: joy0826 at PUSAN.AC.KR (Ji-Yun SEO) Date: Mon, 22 Jun 2009 03:40:08 +0200 Subject: g2ctl (not making .idx file) Message-ID: Hi Grads users!!! I tried to display GFS file with g2ctl and gribmap command. "g2ctl gfs.grib2 > test.ctl" "gribmap -i test.ctl " But these error massage came out... ----------------------------------------------- open Error: Data file type invalid --> The invalid description file record is: --> dtype grib2 The data file was not opened ----------------------------------------------- My GrADS version is "grads-2.0.a6" and I also have wgrib2 I also tried to " g2ctl gfs.grib2 gfs.grib2.idx > test.ctl", .idx file was not generated. I am very grateful if somebody give me the solution!!! Thank you in advance~ From romero619 at HOTMAIL.COM Sun Jun 21 23:37:19 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Sun, 21 Jun 2009 22:37:19 -0500 Subject: Using regrid function with only 2 dimensions Message-ID: Im trying to plot a regridded variable in 2D space, i.e., a line graph. However, Im receiving an error about having "Invalid grid coordinates". Here's my output... ga-> set lon -110 -100 LON set to -110 -100 ga-> set lat 10 25 LAT set to 10 25 ga-> g=regrid2(u,0.25,0.25) 41 -100 -110 re_(u,41,LINEAR,-110,0.25,61,LINEAR,10,0.25,ba) Regrid Successful! The output grid is UNIFORM lat/lon: UNDEF 1.000000e+15 XDEF 41 LINEAR -110 0.25 YDEF 61 LINEAR 10 0.25 regrid method is: box averaging re: all done! Define memory allocation size = 20008 bytes ga-> set lon -110 LON set to -109.999 -109.999 ga-> d g Data Request Error: Invalid grid coordinates World coordinates convert to non-integer grid coordinates Variable = g Dimension = 0 Error ocurred at column 1 DISPLAY error: Invalid expression Expression = g It seems that grads wont let me plot a line graph from a variable created using re()... Is there a work-around for this? Am I doing something wrong? Please help, Thanks, P.R. From hiren_dave85 at YAHOO.COM Mon Jun 22 03:05:28 2009 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Mon, 22 Jun 2009 00:05:28 -0700 Subject: How to plot station data Message-ID: Dear jayakrishnan i am not able to open the station map utility using the command stnmap -i stnexample.ctl It doen't works. How to run Stnmap utility? --- On Fri, 19/6/09, Jayakrishnan PR wrote: From: Jayakrishnan PR Subject: Re: How to plot station data To: GRADSUSR at LIST.CINECA.IT Date: Friday, 19 June, 2009, 5:50 AM Hello, ??????????? I herewith attach the programmes required for displaying data in station grads. Kindly go through it and modify it accordingly to your needs. Run? result.txt to the input of the fortran grads.f, and we will get the output as passmosissep.txt ? The output passmodis.txt can be used as the input of stnkutty.c, which is a c program to generate the station binary file named passmodis.bin After successful creation of the station binary file run the station map utility using the command ?stnmap -i stnexample.ctl, to create the station map On Fri, Jun 19, 2009 at 2:23 PM, hiren dave wrote: Dear, all I have Lat, Lon, station mane and rainfall amount. I want to display this data grads. How to plot station data in Grads?? Thanks.... Cricket on your mind? Visit the ultimate cricket website. Enter now! -- Sincerely *********************************************** Jayakrishnan.P.R CSIR-Research Fellow Department of Atmospheric Sciences Cochin University of Science and Technology (CUSAT), Cochin-682 016 Kerala, India. Mob: 09895417565 *********************************************** ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/8b57837c/attachment.html From hiren_dave85 at YAHOO.COM Mon Jun 22 04:07:13 2009 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Mon, 22 Jun 2009 01:07:13 -0700 Subject: Analysis of station data usin GrADS. How to run stnmap utility? Message-ID: dear all users ??? I am a new GrADS user and want to know how to analyse station data using GrADS. I have Lat Lon Stn and amout of rainfall. I want to display that in a GrADS. How can i do? ?? Here i have attached one data file and want to display that data i gards. I am using window and using grads-1.8sl11-win32e version. ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/e08dc759/attachment.html From hiren_dave85 at YAHOO.COM Mon Jun 22 04:30:12 2009 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Mon, 22 Jun 2009 01:30:12 -0700 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? Message-ID: --- On Mon, 22/6/09, hiren dave wrote: From: hiren dave Subject: Analysis of station data usin GrADS. How to run stnmap utility? To: "grads user" Date: Monday, 22 June, 2009, 4:07 AM dear all users ??? I am a new GrADS user and want to know how to analyse station data using GrADS. I have Lat Lon Stn and amout of rainfall. I want to display that in a GrADS. How can i do? ?? Here i have attached one data file and want to display that data i gards. I am using window and using grads-1.8sl11-win32e version. ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/254e91e4/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: rainfall.txt Url: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/254e91e4/attachment.txt From zjuyanlibin at 163.COM Mon Jun 22 04:45:39 2009 From: zjuyanlibin at 163.COM (Libin Yan) Date: Mon, 22 Jun 2009 16:45:39 +0800 Subject: Fw: Analysis of station data usin GrADS. How to run stnmaputility? Message-ID: you can use surfer to draw the figure. ???? hiren dave ????? 2009-06-22 16:31:02 ???? GRADSUSR ??? ??? Fw: Analysis of station data usin GrADS. How to run stnmaputility? --- On Mon, 22/6/09, hiren dave wrote: From: hiren dave Subject: Analysis of station data usin GrADS. How to run stnmap utility? To: "grads user" Date: Monday, 22 June, 2009, 4:07 AM dear all users I am a new GrADS user and want to know how to analyse station data using GrADS. I have Lat Lon Stn and amout of rainfall. I want to display that in a GrADS. How can i do? Here i have attached one data file and want to display that data i gards. I am using window and using grads-1.8sl11-win32e version. ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET Cricket on your mind? Visit the ultimate cricket website. Enter now! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/065ef7f9/attachment.html From gonzaloinfantellorca at GMAIL.COM Mon Jun 22 05:00:50 2009 From: gonzaloinfantellorca at GMAIL.COM (gonzalo infante llorca) Date: Mon, 22 Jun 2009 11:00:50 +0200 Subject: No subject In-Reply-To: <4a3e81b1.02015a0a.29b3.4d5d@mx.google.com> Message-ID: Gracias! El 21 de junio de 2009 20:21, Rafael Mundaray escribi?: > Por ejemplo yo tengo que abrir unos archivos en un bash script diariamente > que dice as? 1er_DOM_fecha.ctl... Entonces yo para entrar a grads hago lo > siguiente... > fecha=date > Echo $fecha > Cat >> primer_script << EOF > Open 1er_DOM_${fecha}.ctl > Varias instruciones de grads > ... > ... > ... > EOF > /ruta_grads/gradsc -blc "run primer_script" > Endwhile > (el endwhile es porque tengo unos ciclos antes d unas cosas... Algo as? > entend? d lo q no te da...) > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/c9ef2f42/attachment.html From remm69 at GMAIL.COM Mon Jun 22 09:22:04 2009 From: remm69 at GMAIL.COM (Rafael Mundaray) Date: Tue, 23 Jun 2009 08:52:04 +1930 Subject: g2ctl (not making .idx file) In-Reply-To: <20090622014117.10C051FF11@mx2.cineca.it> Message-ID: I have this to make a file named GFSall_TIMES: fecha="" fecha=$(date '+%Y%m%d') pwd cd /home/rmundaray/Escritorio/SALIDAS_MODELOS/GFS/ mkdir "$fecha"_00Z_GFS cd "$fecha"_00Z_GFS cp ../wgrib . cp ../grib2ctl.pl . cp ../gribmap . wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf00 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf03 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf06 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf09 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf12 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf15 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf18 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf21 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf24 wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf72 (Try with this...) *./grib2ctl.pl -verf gfs.t00z.pgrbf%f2 > GFSall_TIMES_"$fecha".ctl ./gribmap -i GFSall_TIMES_"$fecha".ctl* -- Ing. Rafael E. Mundaray M. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/409b4e6d/attachment.html From sh.maeam at GMAIL.COM Mon Jun 22 09:43:31 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Mon, 22 Jun 2009 21:43:31 +0800 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: <736561.70511.qm@web30406.mail.mud.yahoo.com> Message-ID: Hi hiren dave, I think I can help you, I wrote some scripts for you, have a try. Please check the attachment. -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/f542840b/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: try.rar Type: application/rar Size: 69922 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090622/f542840b/attachment.bin From gabriel.ud at GMAIL.COM Mon Jun 22 09:43:02 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Mon, 22 Jun 2009 10:43:02 -0300 Subject: Problem with GX package initialization Message-ID: Hi everybody, I have problem initializing the GrAds at my Pc: I'm trying to run GrAds at a Linux server, Ubunto, fully actualized. I have already installed GraDs 1.8sl11, made all the PATH's corrections, etc... when i try to exec. grads in the console, it gives me the following problem: GX Package Initialization: Size = 11 8.5 Error in GXSTRT: Unable to connect to X server what shoud i do? thnx, Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/ade2cf3a/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Mon Jun 22 10:03:06 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Mon, 22 Jun 2009 10:03:06 -0400 Subject: g2ctl (not making .idx file) In-Reply-To: <20090622014117.10C051FF11@mx2.cineca.it> Message-ID: Hi, The error message is saying that gribmap does not understand grib2. You are using an old version of gribmap. Wesley Ebisuzaki Ji-Yun SEO wrote: > Hi Grads users!!! > > I tried to display GFS file with g2ctl and gribmap command. > "g2ctl gfs.grib2 > test.ctl" > "gribmap -i test.ctl " > > But these error massage came out... > ----------------------------------------------- > open Error: Data file type invalid > --> The invalid description file record is: > --> dtype grib2 > The data file was not opened > ----------------------------------------------- > > My GrADS version is "grads-2.0.a6" and I also have wgrib2 > > I also tried to " g2ctl gfs.grib2 gfs.grib2.idx > test.ctl", > > .idx file was not generated. > > I am very grateful if somebody give me the solution!!! > Thank you in advance~ > From gabriel.ud at GMAIL.COM Mon Jun 22 10:18:01 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Mon, 22 Jun 2009 11:18:01 -0300 Subject: GX Package Message-ID: Hi, Where can I find this GXTRT package (I think it's the graphical interface) I can run GrAds in Batch mode only... thanks, Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/274b5718/attachment.html From Clay.B.Blankenship at NASA.GOV Mon Jun 22 10:11:26 2009 From: Clay.B.Blankenship at NASA.GOV (Blankenship, Clay B. (MSFC-NCC8259)[USRA]) Date: Mon, 22 Jun 2009 09:11:26 -0500 Subject: Ice coverage data source In-Reply-To: Message-ID: There are several data products at the National Snow and Ice Data Center, nsidc.org. Clay On Jun 20, 2009, at 12:29 AM, P.R. wrote: > Id like to work with plotting polar/high-latitude sea ice coverage > in grads. > Does anyone know where I can find a gridded data source for sea ice > coverage? > Thanks, > P.R. -- Clay Blankenship * USRA Research Scientist clay.b.blankenship at nasa.gov * 256-961-7638 320 Sparkman Drive * Huntsville, AL 35805 National Space Science and Technology Center From jcrosby at SCOTIAWEATHER.COM Mon Jun 22 10:40:24 2009 From: jcrosby at SCOTIAWEATHER.COM (jcrosby@scotiaweather.com) Date: Mon, 22 Jun 2009 11:40:24 -0300 Subject: Problem with GX package initialization In-Reply-To: Message-ID: I fought through that awhile ago. My solution was to set the Display variable on the machine to :1.0, command: export DISPLAY=:1.0 That should work if your on the Ubuntu users desktop. Gabriel - ud Carvalho wrote: > Hi everybody, > I have problem initializing the GrAds at my Pc: > > I'm trying to run GrAds at a Linux server, Ubunto, fully actualized. > I have already installed GraDs 1.8sl11, made all the PATH's > corrections, etc... > when i try to exec. grads in the console, it gives me the following > problem: > > GX Package Initialization: Size = 11 8.5 > Error in GXSTRT: Unable to connect to X server > > what shoud i do? > thnx, > Gabriel -- Joseph Crosby Network Administrator Scotia Weather Service Inc. netadmin at scotiaweather.com ----------- A byte walks into a bar and orders a pint. Bartender asks him "What's wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought you looked a bit off." From gabriel.ud at GMAIL.COM Mon Jun 22 11:03:36 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Mon, 22 Jun 2009 12:03:36 -0300 Subject: Problem with GX package initialization In-Reply-To: <4A3F97D8.808@scotiaweather.com> Message-ID: Hey jcrosby, when I set the Display variable to :1.0, the problem continues, but it seems to waste more time trying to open. then I tryed export DISPLAY =:0.0 and then the problem comes: GX Package Initialization: Size = 11 8.5 Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error in GXSTRT: Unable to connect to X server Do you know what to do? thanks a lot, Gabriel 2009/6/22 jcrosby at scotiaweather.com > I fought through that awhile ago. My solution was to set the Display > variable on the machine to :1.0, command: export DISPLAY=:1.0 That > should work if your on the Ubuntu users desktop. > > > > Gabriel - ud Carvalho wrote: > >> Hi everybody, >> I have problem initializing the GrAds at my Pc: >> >> I'm trying to run GrAds at a Linux server, Ubunto, fully actualized. >> I have already installed GraDs 1.8sl11, made all the PATH's >> corrections, etc... >> when i try to exec. grads in the console, it gives me the following >> problem: >> >> GX Package Initialization: Size = 11 8.5 >> Error in GXSTRT: Unable to connect to X server >> >> what shoud i do? >> thnx, >> Gabriel >> > > > -- > Joseph Crosby > Network Administrator > Scotia Weather Service Inc. > netadmin at scotiaweather.com > ----------- > A byte walks into a bar and orders a pint. Bartender asks him "What's > wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought > you looked a bit off." > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/f5d89fe5/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Mon Jun 22 11:08:35 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Mon, 22 Jun 2009 11:08:35 -0400 Subject: A better way to download: Was Re: g2ctl (not making .idx file) In-Reply-To: <1f59b3870906220622mf694a84j2491650e7e07405c@mail.gmail.com> Message-ID: Rafael, This post is not meant to criticize your script; everybody has scripts that work but not optimally. I just want to point out to other subscribers that they are other options. (1) GRIB2 Nobody likes changing formats (grib1 -> grib2) but moving to grib2 has many carrots and a stick. (1) data is compressed so files are smaller (2) the operational nomads (nomads.ncep.noaa.gov) has 24x7 support with 4 physical servers at two sites. the operational nomads site only supports grib2. nomad5 is a single machine (no backup) with business hours support. (3) regional subsetting on the nomads server is better with grib2 (newer code) (4) the development nomad systems have grib1 versions of the operational forecasts because it takes time for people to convert codes. Eventually the service will be discontinued. (2) the use of the ftp server. FTP servers are a pain. Little to no support on the development nomad systems. I suggest that you use the http server instead. ftp://nomad5... -> http://nomad5... (3) Downloading the entire file. Do you really want to download the entire forecast file? How much of the file do you really need? The http protocol allows you to download selected grib messages once you know the byte range ("partial http downloading"). See http://www.cpc.ncep.noaa.gov/products/wesley/fast_downloading_grib.html http://www.cpc.ncep.noaa.gov/products/wesley/get_gfs.html For must people who want to download the GFS forecasts, (1) and (3) are good things to do. Sites that support (1) and (3) with the GFS files include http://nomads.ncep.noaa.gov/ http://www.ftp.ncep.noaa.gov/ Yours, Wesley Ebisuzaki Rafael Mundaray wrote: > I have this to make a file named GFSall_TIMES: > > fecha="" > fecha=$(date '+%Y%m%d') > pwd > cd /home/rmundaray/Escritorio/SALIDAS_MODELOS/GFS/ > mkdir "$fecha"_00Z_GFS > cd "$fecha"_00Z_GFS > cp ../wgrib . > cp ../grib2ctl.pl . > cp ../gribmap . > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf00 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf03 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf06 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf09 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf12 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf15 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf18 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf21 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf24 > wget ftp://nomad5.ncep.noaa.gov/pub/gfs/gfs"$fecha"/gfs.t00z.pgrbf72 > > (Try with this...) > *./grib2ctl.pl -verf gfs.t00z.pgrbf%f2 > GFSall_TIMES_"$fecha".ctl > ./gribmap -i GFSall_TIMES_"$fecha".ctl* > -- > Ing. Rafael E. Mundaray M. From eduardo.agosta at GMAIL.COM Mon Jun 22 11:56:30 2009 From: eduardo.agosta at GMAIL.COM (Eduardo Agosta Scarel) Date: Mon, 22 Jun 2009 12:56:30 -0300 Subject: how to compute temporal lag correlation Message-ID: Dear Grads Users I will much appreciate any help in calculating the time-lag correlation using a script in Grads under windows. Eduardo. Eduardo.Agosta at gmail.com P. J. O'Rourke - "If government were a product, selling it would be illegal." -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/2ceba4a5/attachment.html From remm69 at GMAIL.COM Mon Jun 22 12:12:42 2009 From: remm69 at GMAIL.COM (Rafael Mundaray) Date: Mon, 22 Jun 2009 12:12:42 -0400 Subject: Hi... Convert netCDF to GRIB format Message-ID: Hello everybody... I have several .nc files and I want to convert them to GRIB format... I was reading somethings about this but I saw a Arlindo's Program (lats4d) that makes this, but I don't know how to install it or how to use it... Can you help me...??? Thanks... Regards... -- Ing. Rafael E. Mundaray M. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/86a5aefd/attachment.html From puffy78 at GMAIL.COM Mon Jun 22 19:16:23 2009 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Mon, 22 Jun 2009 20:16:23 -0300 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: <94ce49550906220643s61243baei1b69cde641ea7d37@mail.gmail.com> Message-ID: How from color data from the station meteorology? Thanks.. 2009/6/22 sh zhou > Hi hiren dave, > > I think I can help you, I wrote some scripts for you, have a try. > Please check the attachment. > > > > -- > > Shenghui Student > Major: Physics > HuNan University China > -- ALEXANDRE S. DOS SANTOS SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS DIRETORIA DE METEOROLOGIA www.semarh.al.gov.br TEL.: 82-33152627 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/3729f91c/attachment.html From hobo at ATMOS.UCLA.EDU Mon Jun 22 19:12:53 2009 From: hobo at ATMOS.UCLA.EDU (Joyce Meyerson) Date: Mon, 22 Jun 2009 16:12:53 -0700 Subject: regrid 2.5x2.5 to t30 problem Message-ID: Hi, I'm trying to regrid a 2.5x2.5 uniform grid (144 x 72) to t30 gaussian grid (96x48) using box averaging with "voting" as in the example in the regrid2.doc file. define prect30=regrid(prec,96,48,vt,0.60,0.20) and I get 4 x 5 points total in the new grid. Plus the lon extent only goes from 0 264. I have also tried just box averaging (regrid,96,48)with the same result. This seems to be the result of my not inputting a specific dx and dy but I'm going to a gaussian (non-uniform) grid. What am I doing wrong? ga[2]> define pt30=regrid(prec,96,48,vt,0.60,0.20) number of arguments = 6 the output grid is UNIFORM lat/lon: dx = 96.00 deg and dy = 48.00 deg # points in i(lon) = 4 # points j(lat) = 5 lon extent = 0.00 to 264.00 lat extend = -90.00 to 90.00 regrid method is: box averaging with VOTING vote parameters: max fract area = 0.60 min frac area = 0.20 Joyce P.S. the example in regrid2.doc gives define i21=regrid(index, 48,40,12,0.60,0.20). Does anyone know what the "12" in the C1 option means? ****************** Joyce E. Meyerson UCLA Dept. of Atmospheric and Oceanic Sciences Climate Systems Interactions Group Math Science 7235 hobo at atmos.ucla.edu From sh.maeam at GMAIL.COM Mon Jun 22 20:58:33 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Tue, 23 Jun 2009 08:58:33 +0800 Subject: Problem with GX package initialization In-Reply-To: Message-ID: Hi Gabriel, open this URL, and download it according to your OS , ftp://192.239.84.50/grads/1.9/ ftp://192.239.84.50/grads/2.0/ Hope it may help. Cheers. 2009/6/22 Gabriel - ud Carvalho > Hey jcrosby, > when I set the Display variable to :1.0, the problem continues, but it > seems to waste more time trying to open. > then I tryed export DISPLAY =:0.0 and then the problem comes: > GX Package Initialization: Size = 11 8.5 > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > Error in GXSTRT: Unable to connect to X server > > Do you know what to do? > thanks a lot, > Gabriel > > > 2009/6/22 jcrosby at scotiaweather.com > > I fought through that awhile ago. My solution was to set the Display >> variable on the machine to :1.0, command: export DISPLAY=:1.0 That >> should work if your on the Ubuntu users desktop. >> >> >> >> Gabriel - ud Carvalho wrote: >> >>> Hi everybody, >>> I have problem initializing the GrAds at my Pc: >>> >>> I'm trying to run GrAds at a Linux server, Ubunto, fully actualized. >>> I have already installed GraDs 1.8sl11, made all the PATH's >>> corrections, etc... >>> when i try to exec. grads in the console, it gives me the following >>> problem: >>> >>> GX Package Initialization: Size = 11 8.5 >>> Error in GXSTRT: Unable to connect to X server >>> >>> what shoud i do? >>> thnx, >>> Gabriel >>> >> >> >> -- >> Joseph Crosby >> Network Administrator >> Scotia Weather Service Inc. >> netadmin at scotiaweather.com >> ----------- >> A byte walks into a bar and orders a pint. Bartender asks him "What's >> wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought >> you looked a bit off." >> > > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/957d63e9/attachment.html From sh.maeam at GMAIL.COM Mon Jun 22 21:21:43 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Tue, 23 Jun 2009 09:21:43 +0800 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: Message-ID: Hi Alexandre Santos, If I know what you want to do, try like this: ### set clevs *** set ccol *** ### Cheers. 2009/6/23 Alexandre Santos > How from color data from the station meteorology? > > Thanks.. > > 2009/6/22 sh zhou > > Hi hiren dave, >> >> I think I can help you, I wrote some scripts for you, have a try. >> Please check the attachment. >> >> >> >> -- >> >> Shenghui Student >> Major: Physics >> HuNan University China >> > > > > -- > ALEXANDRE S. DOS SANTOS > SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS > DIRETORIA DE METEOROLOGIA > www.semarh.al.gov.br > TEL.: 82-33152627 > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/6e4e210d/attachment.html From puffy78 at GMAIL.COM Mon Jun 22 21:47:49 2009 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Mon, 22 Jun 2009 22:47:49 -0300 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: <94ce49550906221821h3bf44f20y50bb146ddacc8f65@mail.gmail.com> Message-ID: thanks by information, but I don't know created a image gif this at the Attached with the station data. How for create color in the data? 2009/6/22 sh zhou > Hi Alexandre Santos, > > If I know what you want to do, try like this: > ### > set clevs *** > set ccol *** > ### > > Cheers. > > > 2009/6/23 Alexandre Santos > >> How from color data from the station meteorology? >> >> Thanks.. >> >> 2009/6/22 sh zhou >> >> Hi hiren dave, >>> >>> I think I can help you, I wrote some scripts for you, have a try. >>> Please check the attachment. >>> >>> >>> >>> -- >>> >>> Shenghui Student >>> Major: Physics >>> HuNan University China >>> >> >> >> >> -- >> ALEXANDRE S. DOS SANTOS >> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >> DIRETORIA DE METEOROLOGIA >> www.semarh.al.gov.br >> TEL.: 82-33152627 >> > > > > -- > > Shenghui Student > Major: Physics > HuNan University China > -- ALEXANDRE S. DOS SANTOS SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS DIRETORIA DE METEOROLOGIA www.semarh.al.gov.br TEL.: 82-33152627 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/9887ab5d/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: rain_Sep.gif Type: image/gif Size: 13574 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090622/9887ab5d/attachment.gif From sh.maeam at GMAIL.COM Mon Jun 22 22:03:33 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Tue, 23 Jun 2009 10:03:33 +0800 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: Message-ID: Hi, Like the last mail, If I know what you want to do, here is a "gs" file, check it whether the function you need has included. Cheers 2009/6/23 Alexandre Santos > thanks by information, but I don't know created a image gif this at the Attached > with the station data. How for create color in the data? > > > 2009/6/22 sh zhou > >> Hi Alexandre Santos, >> >> If I know what you want to do, try like this: >> ### >> set clevs *** >> set ccol *** >> ### >> >> Cheers. >> >> >> 2009/6/23 Alexandre Santos >> >>> How from color data from the station meteorology? >>> >>> Thanks.. >>> >>> 2009/6/22 sh zhou >>> >>> Hi hiren dave, >>>> >>>> I think I can help you, I wrote some scripts for you, have a try. >>>> Please check the attachment. >>>> >>>> >>>> >>>> -- >>>> >>>> Shenghui Student >>>> Major: Physics >>>> HuNan University China >>>> >>> >>> >>> >>> -- >>> ALEXANDRE S. DOS SANTOS >>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>> DIRETORIA DE METEOROLOGIA >>> www.semarh.al.gov.br >>> TEL.: 82-33152627 >>> >> >> >> >> -- >> >> Shenghui Student >> Major: Physics >> HuNan University China >> > > > > -- > ALEXANDRE S. DOS SANTOS > SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS > DIRETORIA DE METEOROLOGIA > www.semarh.al.gov.br > TEL.: 82-33152627 > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/aadad521/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: draw_r.gs Type: application/octet-stream Size: 379 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090623/aadad521/attachment.obj From puffy78 at GMAIL.COM Mon Jun 22 22:12:54 2009 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Mon, 22 Jun 2009 23:12:54 -0300 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: <94ce49550906221903u109a31f2ybaa0c6a1f845cf5d@mail.gmail.com> Message-ID: The file grid.ctl need of the file binary (^grid.dat). How ? Thanks! 2009/6/22 sh zhou > > Hi, > > Like the last mail, If I know what you want to do, here is a "gs" file, > check it whether the function you need has included. > > > Cheers > > 2009/6/23 Alexandre Santos > >> thanks by information, but I don't know created a image gif this at the Attached >> with the station data. How for create color in the data? >> >> >> 2009/6/22 sh zhou >> >>> Hi Alexandre Santos, >>> >>> If I know what you want to do, try like this: >>> ### >>> set clevs *** >>> set ccol *** >>> ### >>> >>> Cheers. >>> >>> >>> 2009/6/23 Alexandre Santos >>> >>>> How from color data from the station meteorology? >>>> >>>> Thanks.. >>>> >>>> 2009/6/22 sh zhou >>>> >>>> Hi hiren dave, >>>>> >>>>> I think I can help you, I wrote some scripts for you, have a try. >>>>> Please check the attachment. >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Shenghui Student >>>>> Major: Physics >>>>> HuNan University China >>>>> >>>> >>>> >>>> >>>> -- >>>> ALEXANDRE S. DOS SANTOS >>>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>>> DIRETORIA DE METEOROLOGIA >>>> www.semarh.al.gov.br >>>> TEL.: 82-33152627 >>>> >>> >>> >>> >>> -- >>> >>> Shenghui Student >>> Major: Physics >>> HuNan University China >>> >> >> >> >> -- >> ALEXANDRE S. DOS SANTOS >> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >> DIRETORIA DE METEOROLOGIA >> www.semarh.al.gov.br >> TEL.: 82-33152627 >> > > > > -- > > Shenghui Student > Major: Physics > HuNan University China > -- ALEXANDRE S. DOS SANTOS SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS DIRETORIA DE METEOROLOGIA www.semarh.al.gov.br TEL.: 82-33152627 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/f62d5ab9/attachment.html From sh.maeam at GMAIL.COM Mon Jun 22 22:28:50 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Tue, 23 Jun 2009 10:28:50 +0800 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: Message-ID: Hi, Please tell me: 1. Did every scripts I send woks normally? 2. how did you know " grid.ctl" should need the binary file ( grid.dat) ? 2009/6/23 Alexandre Santos > The file grid.ctl need of the file binary (^grid.dat). How ? > > > > Thanks! > 2009/6/22 sh zhou > >> >> Hi, >> >> Like the last mail, If I know what you want to do, here is a "gs" file, >> check it whether the function you need has included. >> >> >> Cheers >> >> 2009/6/23 Alexandre Santos >> >>> thanks by information, but I don't know created a image gif this at the Attached >>> with the station data. How for create color in the data? >>> >>> >>> 2009/6/22 sh zhou >>> >>>> Hi Alexandre Santos, >>>> >>>> If I know what you want to do, try like this: >>>> ### >>>> set clevs *** >>>> set ccol *** >>>> ### >>>> >>>> Cheers. >>>> >>>> >>>> 2009/6/23 Alexandre Santos >>>> >>>>> How from color data from the station meteorology? >>>>> >>>>> Thanks.. >>>>> >>>>> 2009/6/22 sh zhou >>>>> >>>>> Hi hiren dave, >>>>>> >>>>>> I think I can help you, I wrote some scripts for you, have a try. >>>>>> Please check the attachment. >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Shenghui Student >>>>>> Major: Physics >>>>>> HuNan University China >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> ALEXANDRE S. DOS SANTOS >>>>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>>>> DIRETORIA DE METEOROLOGIA >>>>> www.semarh.al.gov.br >>>>> TEL.: 82-33152627 >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Shenghui Student >>>> Major: Physics >>>> HuNan University China >>>> >>> >>> >>> >>> -- >>> ALEXANDRE S. DOS SANTOS >>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>> DIRETORIA DE METEOROLOGIA >>> www.semarh.al.gov.br >>> TEL.: 82-33152627 >>> >> >> >> >> -- >> >> Shenghui Student >> Major: Physics >> HuNan University China >> > > > > -- > ALEXANDRE S. DOS SANTOS > SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS > DIRETORIA DE METEOROLOGIA > www.semarh.al.gov.br > TEL.: 82-33152627 > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/53496298/attachment.html From puffy78 at GMAIL.COM Mon Jun 22 22:38:37 2009 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Mon, 22 Jun 2009 23:38:37 -0300 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: <94ce49550906221928i401d9823xe1fd5c7c1cfaeea3@mail.gmail.com> Message-ID: 2009/6/22 sh zhou > Hi, > > Please tell me: > 1. Did every scripts I send woks normally? Alexandre: Understand how to create a binary file through the data of the season, most do not understand how that figure in gif that has color. > > > 2. how did you know " grid.ctl" should need the binary file ( grid.dat) ? Alexandre: dset ^grid.dat thanks! > > 2009/6/23 Alexandre Santos > >> The file grid.ctl need of the file binary (^grid.dat). How ? >> >> >> >> Thanks! >> 2009/6/22 sh zhou >> >>> >>> Hi, >>> >>> Like the last mail, If I know what you want to do, here is a "gs" file, >>> check it whether the function you need has included. >>> >>> >>> Cheers >>> >>> 2009/6/23 Alexandre Santos >>> >>>> thanks by information, but I don't know created a image gif this at the >>>> Attached with the station data. How for create color in the data? >>>> >>>> >>>> 2009/6/22 sh zhou >>>> >>>>> Hi Alexandre Santos, >>>>> >>>>> If I know what you want to do, try like this: >>>>> ### >>>>> set clevs *** >>>>> set ccol *** >>>>> ### >>>>> >>>>> Cheers. >>>>> >>>>> >>>>> 2009/6/23 Alexandre Santos >>>>> >>>>>> How from color data from the station meteorology? >>>>>> >>>>>> Thanks.. >>>>>> >>>>>> 2009/6/22 sh zhou >>>>>> >>>>>> Hi hiren dave, >>>>>>> >>>>>>> I think I can help you, I wrote some scripts for you, have a try. >>>>>>> Please check the attachment. >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Shenghui Student >>>>>>> Major: Physics >>>>>>> HuNan University China >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> ALEXANDRE S. DOS SANTOS >>>>>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>>>>> DIRETORIA DE METEOROLOGIA >>>>>> www.semarh.al.gov.br >>>>>> TEL.: 82-33152627 >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Shenghui Student >>>>> Major: Physics >>>>> HuNan University China >>>>> >>>> >>>> >>>> >>>> -- >>>> ALEXANDRE S. DOS SANTOS >>>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>>> DIRETORIA DE METEOROLOGIA >>>> www.semarh.al.gov.br >>>> TEL.: 82-33152627 >>>> >>> >>> >>> >>> -- >>> >>> Shenghui Student >>> Major: Physics >>> HuNan University China >>> >> >> >> >> -- >> ALEXANDRE S. DOS SANTOS >> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >> DIRETORIA DE METEOROLOGIA >> www.semarh.al.gov.br >> TEL.: 82-33152627 >> > > > > -- > > Shenghui Student > Major: Physics > HuNan University China > -- ALEXANDRE S. DOS SANTOS SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS DIRETORIA DE METEOROLOGIA www.semarh.al.gov.br TEL.: 82-33152627 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090622/6689394b/attachment.html From sh.maeam at GMAIL.COM Mon Jun 22 22:59:40 2009 From: sh.maeam at GMAIL.COM (sh zhou) Date: Tue, 23 Jun 2009 10:59:40 +0800 Subject: Fw: Analysis of station data usin GrADS. How to run stnmap utility? In-Reply-To: Message-ID: Hi, I think it is not my fault to let arguments can be displayed with different colors respectively, may be you should blame designers " why did you let Grads can display arguments in colors and not let me know ?" It is a joke, that's default, you can change the color for every arguments by yourself. if every script could work normally, that means the " grid.dat" is not necessary. ok, now you have opened the " grid.ctl " why not read the following lines, I think you'll find the reason. Good luck! 2009/6/23 Alexandre Santos > > > 2009/6/22 sh zhou > >> Hi, >> >> Please tell me: >> 1. Did every scripts I send woks normally? >> > > Alexandre: Understand how to create a binary file through the data > of the season, most do not understand how that figure in gif that has color. >> >> >> 2. how did you know " grid.ctl" should need the binary file ( grid.dat) ? > > > Alexandre: dset ^grid.dat > > thanks! > > > >> >> 2009/6/23 Alexandre Santos >> >>> The file grid.ctl need of the file binary (^grid.dat). How ? >>> >>> >>> >>> Thanks! >>> 2009/6/22 sh zhou >>> >>>> >>>> Hi, >>>> >>>> Like the last mail, If I know what you want to do, here is a "gs" file, >>>> check it whether the function you need has included. >>>> >>>> >>>> Cheers >>>> >>>> 2009/6/23 Alexandre Santos >>>> >>>>> thanks by information, but I don't know created a image gif this at >>>>> the Attached with the station data. How for create color in the data? >>>>> >>>>> >>>>> 2009/6/22 sh zhou >>>>> >>>>>> Hi Alexandre Santos, >>>>>> >>>>>> If I know what you want to do, try like this: >>>>>> ### >>>>>> set clevs *** >>>>>> set ccol *** >>>>>> ### >>>>>> >>>>>> Cheers. >>>>>> >>>>>> >>>>>> 2009/6/23 Alexandre Santos >>>>>> >>>>>>> How from color data from the station meteorology? >>>>>>> >>>>>>> Thanks.. >>>>>>> >>>>>>> 2009/6/22 sh zhou >>>>>>> >>>>>>> Hi hiren dave, >>>>>>>> >>>>>>>> I think I can help you, I wrote some scripts for you, have a try. >>>>>>>> Please check the attachment. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> Shenghui Student >>>>>>>> Major: Physics >>>>>>>> HuNan University China >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> ALEXANDRE S. DOS SANTOS >>>>>>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>>>>>> DIRETORIA DE METEOROLOGIA >>>>>>> www.semarh.al.gov.br >>>>>>> TEL.: 82-33152627 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Shenghui Student >>>>>> Major: Physics >>>>>> HuNan University China >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> ALEXANDRE S. DOS SANTOS >>>>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>>>> DIRETORIA DE METEOROLOGIA >>>>> www.semarh.al.gov.br >>>>> TEL.: 82-33152627 >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Shenghui Student >>>> Major: Physics >>>> HuNan University China >>>> >>> >>> >>> >>> -- >>> ALEXANDRE S. DOS SANTOS >>> SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS >>> DIRETORIA DE METEOROLOGIA >>> www.semarh.al.gov.br >>> TEL.: 82-33152627 >>> >> >> >> >> -- >> >> Shenghui Student >> Major: Physics >> HuNan University China >> > > > > -- > ALEXANDRE S. DOS SANTOS > SECRETARIA DE ESTADO DO MEIO AMBIENTE E DOS RECURSOS H?DRICOS > DIRETORIA DE METEOROLOGIA > www.semarh.al.gov.br > TEL.: 82-33152627 > -- Shenghui Student Major: Physics HuNan University China -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/bf5654b5/attachment.html From joy0826 at PUSAN.AC.KR Tue Jun 23 00:20:46 2009 From: joy0826 at PUSAN.AC.KR (Ji-Yun SEO) Date: Tue, 23 Jun 2009 06:20:46 +0200 Subject: g2ctl (not making .idx file) Message-ID: Thank you for your help, Ebisuzaki.... How can I update my gribmap program? My GrADS version is grads-2.0.a6... and I thouhgt gribmap is involved in GrADS package.... Please give me how to update my gribmap.... From vijay.bhaskar at ICCSIR.ORG Tue Jun 23 01:41:12 2009 From: vijay.bhaskar at ICCSIR.ORG (Dr. B.Vijay Bhaskar) Date: Tue, 23 Jun 2009 05:41:12 +0000 Subject: Station location Message-ID: Hi I want show the station location over India. (For example Ahmedabad lat 23.5 lon 72.7). Kindly tell me the command to show the location. Thanks Regards Vijay ============================================================================================================================================================== B. Vijay Bhaskar, Ph.D Indian Centre for Climate and Societal Impacts Research Ahmedabad -380009 India -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/8af09a87/attachment.html From prjayakrishnan at GMAIL.COM Tue Jun 23 05:28:04 2009 From: prjayakrishnan at GMAIL.COM (Jayakrishnan PR) Date: Tue, 23 Jun 2009 14:58:04 +0530 Subject: About Quickscat data Message-ID: Dear Users, Does anyone having a program or a way how to concatenate the Quickscat daily nc files into monthly or yearly files. Has anyone worked on that..??. The link is following. ftp://ftp.ifremer.fr/ifremer/cersat/products/gridded/mwf-quikscat/data/daily/2007/ Also does anyone having a script to derive Drag coefficient from Quickscat daily data..?. If yes kindly send it to me. Also what is the exact equation for calculating drag coefficient..?? -- Sincerely *********************************************** Jayakrishnan.P.R CSIR-Research Fellow Department of Atmospheric Sciences Cochin University of Science and Technology (CUSAT), Cochin-682 016 Kerala, India. Mob: 09895417565 *********************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/b2c8f3af/attachment.html From alessandro.raolil at CMCC.IT Tue Jun 23 09:10:46 2009 From: alessandro.raolil at CMCC.IT (Sandro Raolil) Date: Tue, 23 Jun 2009 15:10:46 +0200 Subject: McGraG updated to GrADS version 2.0.a6 In-Reply-To: <34396.89.97.216.114.1244461532.squirrel@webmail.cmcc.it> Message-ID: Dear GrADS Users, I am happy to inform you that McGraG is now updated to GrADS version 2.0.a6! McGraG is the new GUI, based on GrADS 2.0, developed by CMCC to provide a more powerful and user-friendly access to GrADS functionalities. You can see more details here: http://www.cmcc.it/data-models/software/mcgrag Thanks in advance for your attention Regards Alessandro Raolil -- Ing. Alessandro Raolil Euromediterranean Center for Climate Changes - https://www.cmcc.it SPACI Consortium - www.spaci.it National Nanotechnology Laboratory (NNL/CNR-INFM) - www.nnl.it Via per Monteroni - 73100 Lecce (Italy) email: alessandro.raol From mateig at STANFORD.EDU Tue Jun 23 14:15:33 2009 From: mateig at STANFORD.EDU (Matei Georgescu) Date: Tue, 23 Jun 2009 11:15:33 -0700 Subject: Line Graph In-Reply-To: <4A3C88FB.7000009@gmail.com> Message-ID: Greetings, I've got what should be a simple question for the experts out there. First, I'm using: Grid Analysis and Display System (GrADS) Version 1.9b4 Config: v1.9b4 32-bit little-endian readline sdf/xdf hdf-sds netcdf Second, i'd like to construct a simple line graph (this should be straightforward in Excel, but i'd like to stick w/Grads) consisting of 3 points per line (3 lines in all). The y-axis will designate a climate petric (eg precip accumulation) and x-axis should designate some biophysical parameter (and i need to have control on the range of both) related to the way in which i forced my model. I'll draw a little cartoon to illustrate: y-axis | | *point1 | *point2 | | | *point3 |_____________________ x-axis this should be relatively straightforward to do and i'm hoping somebody has got something handy. i'd like to also connect the points, if possibl;e, and then repeat for another trio of distinct points. thanks much for any suggestions, matt ----- Matei ("Matt") Georgescu Post-doctoral Fellow Program on Food Security and the Environment Stanford University Y2E2 Bldg - MC4205 473 Via Ortega Stanford, CA 94305 homepage - http://stanford.edu/~mateig From Charles.Seman at NOAA.GOV Tue Jun 23 14:56:32 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 23 Jun 2009 14:56:32 -0400 Subject: Line Graph In-Reply-To: Message-ID: Dear Matt, I found a script "xyplot.gs" in my directory which plots (x,y) points on an xy-graph and connects the points, and then did a search for it online and found these sources: http://caos.iisc.ernet.in/gslib/index.html (also has "xyplot.dat" for a sample plot) http://caos.iisc.ernet.in/hpg/students/xavier/lib/ (also has "xyplot.dat" for a sample plot) Hope this helps, Chuck Matei Georgescu wrote: > Greetings, > > I've got what should be a simple question for the experts out there. > > First, I'm using: > > Grid Analysis and Display System (GrADS) Version 1.9b4 > Config: v1.9b4 32-bit little-endian readline sdf/xdf hdf-sds netcdf > > Second, i'd like to construct a simple line graph (this should be > straightforward in Excel, but i'd like to stick w/Grads) consisting of 3 > points per line (3 lines in all). > > The y-axis will designate a climate petric (eg precip accumulation) and > x-axis should designate some biophysical parameter (and i need to have > control on the range of both) related to the way in which i forced my > model. I'll draw a little cartoon to illustrate: > > y-axis > | > | *point1 > | *point2 > | > | > | *point3 > |_____________________ > x-axis > > this should be relatively straightforward to do and i'm hoping somebody > has got something handy. i'd like to also connect the points, if > possibl;e, and then repeat for another trio of distinct points. > > thanks much for any suggestions, > matt > > ----- > Matei ("Matt") Georgescu > Post-doctoral Fellow > Program on Food Security and the Environment > Stanford University > Y2E2 Bldg - MC4205 > 473 Via Ortega > Stanford, CA 94305 > homepage - http://stanford.edu/~mateig > -- 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 Tue Jun 23 14:59:16 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 23 Jun 2009 14:59:16 -0400 Subject: [Fwd: Re: Line Graph] Message-ID: Dear Matt, ...the search for "xyplot.gs" was done using google.com Chuck -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." -------------- next part -------------- An embedded message was scrubbed... From: Charles Seman Subject: Re: Line Graph Date: Tue, 23 Jun 2009 14:56:32 -0400 Size: 2970 Url: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/aac14ea0/attachment.eml From romero619 at HOTMAIL.COM Tue Jun 23 19:03:30 2009 From: romero619 at HOTMAIL.COM (P.R.) Date: Tue, 23 Jun 2009 18:03:30 -0500 Subject: Creating 'blank' grids in grads Message-ID: Id like to know if its possible to create a blank, zero-valued grid without a data-file, and then manually create a field of variables, and then fwrite everything to a binary file. Example: I want to create my own 10meter (u,v) winds for a specific region, in order to create a custom wind field for a simulation. I want the entire grid to have 40 knt winds coming from 45 degrees, so I would need to derive my u & v values for such a wind, and then fill the entire grid with these values...Then, I would want to fwrite the entire grid to a fortran binary file. Is this possible and/or practical? If so, then how would I go about creating this 'blank' grid without a data file? And, how could I go about manually defining my 'u' and 'v' variables for the entire grid? Or, is there an easier/more practical way to create such a grid with arbitrary, user-defined data fields (such as for use in simulations)? Please help, Thanks, P.Romero From rsolanob at GMAIL.COM Tue Jun 23 19:11:58 2009 From: rsolanob at GMAIL.COM (Ramon Solano) Date: Tue, 23 Jun 2009 16:11:58 -0700 Subject: Tie point for grid coordinates Message-ID: Hello all. When defining the tie coordinates for GrADS grids (XVAR and YVAR), what position is required? Pixel center coordinates, UL corner, LL corner? This is not trivial for coarse data sets, mainly when working with more than one for correlation purposes. All I could find was that "..indicates the longitude at grid point X=1" (for XVAR but same for YVAR). Thanks, Ramon --- Ramon Solano, Research Specialist Terrestrial Biophysics and Remote Sensing Lab. Dept. of Soil, Water and Environmental Sciences The University of Arizona From daxiawj at GMAIL.COM Tue Jun 23 20:37:58 2009 From: daxiawj at GMAIL.COM (Wang Jun) Date: Tue, 23 Jun 2009 19:37:58 -0500 Subject: Output transparent figures Message-ID: Hello, Is it possible for GrADS to output transparent figures? E.g. when use printim to save the figures, save it as transparent, so we can use it in Google earth or so. Thanks Wang Jun -- Regards, Wang Jun -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090623/351d780d/attachment.html From pdjakow at GMAIL.COM Wed Jun 24 05:55:31 2009 From: pdjakow at GMAIL.COM (=?UTF-8?Q?Piotr_Djak=C3=B3w?=) Date: Wed, 24 Jun 2009 11:55:31 +0200 Subject: Calculating CAPE Message-ID: Hi Is there any GrADS script for calculating CAPE and ploting maps of calculated CAPE? I know, there are capesfc, and cape0-180mb variables in GFS, but i want to caluclate CAPE myself. I've try to caluclate CAPE based on plotskew script, but i don't know how... Regards Piotr Djakow From hersala at GMAIL.COM Wed Jun 24 09:12:40 2009 From: hersala at GMAIL.COM (hersala) Date: Wed, 24 Jun 2009 10:12:40 -0300 Subject: Ice coverage data source In-Reply-To: Message-ID: Dear Piotr: I think this site could be useful. http://imkhp7.physik.uni-karlsruhe.de/~eisatlas/ Regards, Hern?n 2009/6/22 Blankenship, Clay B. (MSFC-NCC8259)[USRA] < Clay.B.Blankenship at nasa.gov> > There are several data products at the National Snow and Ice Data > Center, nsidc.org. > > Clay > > > On Jun 20, 2009, at 12:29 AM, P.R. wrote: > > Id like to work with plotting polar/high-latitude sea ice coverage >> in grads. >> Does anyone know where I can find a gridded data source for sea ice >> coverage? >> Thanks, >> P.R. >> > > -- > Clay Blankenship * USRA Research Scientist > clay.b.blankenship at nasa.gov * 256-961-7638 > 320 Sparkman Drive * Huntsville, AL 35805 > National Space Science and Technology Center > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090624/395dba07/attachment.html From hersala at GMAIL.COM Wed Jun 24 09:24:15 2009 From: hersala at GMAIL.COM (hersala) Date: Wed, 24 Jun 2009 10:24:15 -0300 Subject: Ice coverage data source In-Reply-To: <5b40c90906240612m69c752a7j995595282f11271d@mail.gmail.com> Message-ID: Sorry, the above message was for P.R. 2009/6/24 hersala > Dear Piotr: > I think this site could be useful. > > http://imkhp7.physik.uni-karlsruhe.de/~eisatlas/ > > Regards, > > Hern?n > > > 2009/6/22 Blankenship, Clay B. (MSFC-NCC8259)[USRA] < > Clay.B.Blankenship at nasa.gov> > > There are several data products at the National Snow and Ice Data >> Center, nsidc.org. >> >> Clay >> >> >> On Jun 20, 2009, at 12:29 AM, P.R. wrote: >> >> Id like to work with plotting polar/high-latitude sea ice coverage >>> in grads. >>> Does anyone know where I can find a gridded data source for sea ice >>> coverage? >>> Thanks, >>> P.R. >>> >> >> -- >> Clay Blankenship * USRA Research Scientist >> clay.b.blankenship at nasa.gov * 256-961-7638 >> 320 Sparkman Drive * Huntsville, AL 35805 >> National Space Science and Technology Center >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090624/42b5098b/attachment.html From michael.l.sestak at NAVY.MIL Wed Jun 24 09:39:26 2009 From: michael.l.sestak at NAVY.MIL (Sestak, Michael L CIV 63134) Date: Wed, 24 Jun 2009 06:39:26 -0700 Subject: Creating 'blank' grids in grads In-Reply-To: Message-ID: How about doing it "with" a data file. Open any existing grid for the same area, define a new grid using const to set the values, then fwrite the result to a new file. Michael Sestak Fleet Numerical Meteorology and Oceanography Center Monterey, CA From: P.R. Sent: Tue 6/23/2009 16:03 To: GRADSUSR at LIST.CINECA.IT Subject: Creating 'blank' grids in grads Id like to know if its possible to create a blank, zero-valued grid without a data-file, and then manually create a field of variables, and then fwrite everything to a binary file. Example: I want to create my own 10meter (u,v) winds for a specific region, in order to create a custom wind field for a simulation. I want the entire grid to have 40 knt winds coming from 45 degrees, so I would need to derive my u & v values for such a wind, and then fill the entire grid with these values...Then, I would want to fwrite the entire grid to a fortran binary file. Is this possible and/or practical? If so, then how would I go about creating this 'blank' grid without a data file? And, how could I go about manually defining my 'u' and 'v' variables for the entire grid? Or, is there an easier/more practical way to create such a grid with arbitrary, user-defined data fields (such as for use in simulations)? Please help, Thanks, P.Romero -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090624/29716efa/attachment.html From smcmillan at PLANALYTICS.COM Wed Jun 24 10:58:03 2009 From: smcmillan at PLANALYTICS.COM (Stephen R McMillan) Date: Wed, 24 Jun 2009 09:58:03 -0500 Subject: Output transparent figures In-Reply-To: <109352770906231737t154b1d56oe6f9c350c78ae7f0@mail.gmail.com> Message-ID: Wang, Try using the "-t" (transparent) option with printim. For example, 'printim image.png -t 0' should produce an image with a transparent background (assuming background is color 0). Reference from GrADS Documentation Index: http://grads.iges.org/grads/gadoc/gradcomdprintim.html Note: I believe the transparent option will work only with versions 1.9 or later. Stephen McMillan Wang Jun Sent by: GRADSUSR at LIST.CINECA.IT 06/23/2009 07:37 PM Please respond to GRADSUSR at LIST.CINECA.IT To GRADSUSR at LIST.CINECA.IT cc Subject Output transparent figures Hello, Is it possible for GrADS to output transparent figures? E.g. when use printim to save the figures, save it as transparent, so we can use it in Google earth or so. Thanks Wang Jun -- Regards, Wang Jun *************************************************** 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/20090624/839c7a66/attachment.html From belitaps at CPTEC.INPE.BR Wed Jun 24 15:51:03 2009 From: belitaps at CPTEC.INPE.BR (Isabel belitaps) Date: Wed, 24 Jun 2009 21:51:03 +0200 Subject: Vertical advection Message-ID: Dear all., I've been trying to calculate vertical advection of temperature in ocean, but I believe I can't use cdiff (as expected to get to horizontal advection).. Anyone knows how could I do it, any clue?? tks! Best regards, Isabel. From btsuang at YAHOO.COM Wed Jun 24 18:52:22 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Thu, 25 Jun 2009 06:52:22 +0800 Subject: Vertical advection In-Reply-To: <20090624195212.B90CE1FE57@mx2.cineca.it> Message-ID: Try to use the openGrADS extension: http://opengrads.org/doc/udxt/libbjt/ madvw(W,EXPR) This function calculates -d(W*EXPR)/dp using an upwind scheme. W Vertical wind speed (w component) (unit of vertical coordinate/s, such as hPa/s for the vertical coordinate in hPa) EXPR An expression. Remarks Note that no-slip boundary conditions are assumed. i.e., w(lev=0)=0 C(lev=0)=C(lev=1) concp, wp |---cn conc, w |---cnm concm, wm Ben 2009/6/25 Isabel belitaps : > Dear all., > > I've been trying to calculate vertical advection of temperature in ocean, but I believe I can't use cdiff > (as expected to get to horizontal advection).. Anyone knows how could I do it, any clue?? > > tks! Best regards, > > Isabel. > From scchan at COAPS.FSU.EDU Thu Jun 25 17:46:42 2009 From: scchan at COAPS.FSU.EDU (Steven Chan) Date: Thu, 25 Jun 2009 17:46:42 -0400 Subject: Vint command Message-ID: Hello, I am wondering how "vint" command works over steep terrain. Let for example, surface pressure over a certain point is like 825 hPa. I have isobaric data between at 850 and 700. So does Grads try to interpolated or set a constant value down from 700 hPa down to 825? I am asking this because I am recently using vint command to try to compute moisture flux divergences over North American monsoon region, and some values I am getting is not reasonable, and appears to reflect strongly vertical motion fields associated with steep terrain where the grid point is. Steven Chan From nakazawa at MRI-JMA.GO.JP Fri Jun 26 06:38:19 2009 From: nakazawa at MRI-JMA.GO.JP (=?ISO-2022-JP?B?GyRCQ2ZfNxsoQiAbJEJFL0lXGyhC?=) Date: Fri, 26 Jun 2009 19:38:19 +0900 Subject: grib2ctl Message-ID: Dear Wesley-sama, I downloaded a file of ECMWF Interim reanalysis data in GRIB format, and try to get the description file for it, by using grib2ctl.pl. However I got an error message, as shown below. The version is as follows and I am using on Intel iMac. I really do not know what is wrong??? nakazawa% ./grib2ctl.pl ./grib2ctl.pl 0.9.12.5p45 wesley ebisuzaki makes a Grads control file for grib files nakazawa% ./grib2ctl.pl -ts6hr output.grib > output.ctl Use of uninitialized value in substr at ./grib2ctl.pl line 308, line 1. substr outside of string at ./grib2ctl.pl line 308, line 1. Use of uninitialized value in split at ./grib2ctl.pl line 309, line 1. Use of uninitialized value in concatenation (.) or string at ./ grib2ctl.pl line 310, line 1. Use of uninitialized value in concatenation (.) or string at ./ grib2ctl.pl line 310, line 1. Use of uninitialized value in concatenation (.) or string at ./ grib2ctl.pl line 317, line 1. Use of uninitialized value in concatenation (.) or string at ./ grib2ctl.pl line 318, line 1. Argument "RS" isn't numeric in numeric lt (<) at ./grib2ctl.pl line 352. argument: 1 ???? Use of uninitialized value in string eq at ./grib2ctl.pl line 437. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 438. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 442. Use of uninitialized value in concatenation (.) or string at ./ grib2ctl.pl line 476. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. *** script needs to be modified *** unknown user-defined grid Argument "RS" isn't numeric in multiplication (*) at ./grib2ctl.pl line 1559. Argument "" isn't numeric in array element at ./grib2ctl.pl line 1195. Argument "" isn't numeric in numeric eq (==) at ./grib2ctl.pl line 1247. ******************************************** Tetsuo Nakazawa nakazawa at mri-jma.go.jp Typhoon Research Department Meteorological Research Institute Tel: 029-853-8671 Fax: 029-853-8735 ******************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090626/c6e40c77/attachment.html From itesh.dash at GMAIL.COM Fri Jun 26 07:01:27 2009 From: itesh.dash at GMAIL.COM (itesh dash) Date: Fri, 26 Jun 2009 18:01:27 +0700 Subject: grib2ctl In-Reply-To: <63B278E6-C9D8-4A5C-8335-4DD4B80300F8@mri-jma.go.jp> Message-ID: Hi all, Can anybody help me in getting the valid country boundaries for mpdset (hires/lores). There seems the hires one is not giving the proper boundaries I wanted. The one I am looking for is "rupres". If anybody has the source please share it. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090626/f6186691/attachment.html From gzepka at DGE.INPE.BR Fri Jun 26 13:22:47 2009 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Fri, 26 Jun 2009 14:22:47 -0300 Subject: using regrid Message-ID: Hi GrADS Users, I would like to intepolate some variables from the analysis data of 1 degree resolution to model output resolution (0.072 resolution ~ 8 km) in order to validate my simulations. First of all, can I do it using regrid? Is there some resolution limit in regrid function? Thanks a lot for any help. 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 muhammad.rahiz at OUCE.OX.AC.UK Fri Jun 26 14:10:05 2009 From: muhammad.rahiz at OUCE.OX.AC.UK (Muhammad Rahiz) Date: Fri, 26 Jun 2009 20:10:05 +0200 Subject: Data request warning: Request beyond file limits Message-ID: I'm trying to get monthly averages from daily data (6hr intervals) from a master file which contains 353 months and 42,985 time steps. I ran the following script but got the error - Data request warning: Request beyond file limits. Can anyone point out where the mistake is? Muhammad Rahiz GrADS v1.9b4 @ Fedora 10 --------------------------- 'open rf.tmp.ctl' 'set lon 46.25 114.26' 'set lat -5.07 45.6' 'set t 1' 'set gxout fwrite' * total number of months mtot = 353 * month index m = 1 while(m<=mtot) res = read('timeseries.txt') say t1' 't2 t1 = sublin(res,1) t2 = sublin(res,2) * calculate the four digit year yyyy = 1960 * calculate the two digit month mm = 10 fout = 'tmp.'yyyy''mm'.bin' 'set fwrite 'fout 'define tmon = ave(t,t='t1',t='t2')' 'disable fwrite' m = m + 1 endwhile ----------------------------- DSET ^rf.tmp UNDEF -1.e34 XDEF 303 LINEAR 46.25 0.225198675496689 YDEF 226 LINEAR -5.07 0.2252 ZDEF 1 LEVELS 1008.23 TDEF 42985 LINEAR 06Z01OCT1960 360mn VARS 1 t 0 99 t ENDVARS From Charles.Seman at NOAA.GOV Fri Jun 26 15:32:58 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Fri, 26 Jun 2009 15:32:58 -0400 Subject: using regrid In-Reply-To: <4A4503E7.7020804@dge.inpe.br> Message-ID: Gisele, Could you compare your model output to the analysis by regridding the model output to the analysis grid? This would smooth out much of the detail in the model, but would preserve the analysis data... a consideration: what is the density of the observations that went into the analysis? is the density of the obs closer to 1 degree or 8 km? Hope this helps, Chuck Gisele Zepka wrote: > Hi GrADS Users, > > I would like to intepolate some variables from the analysis data of 1 > degree resolution to model output resolution (0.072 resolution ~ 8 km) > in order to validate my simulations. First of all, can I do it using > regrid? Is there some resolution limit in regrid function? > > Thanks a lot for any help. > > 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 -- 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 gzepka at DGE.INPE.BR Fri Jun 26 15:53:19 2009 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Fri, 26 Jun 2009 16:53:19 -0300 Subject: using regrid In-Reply-To: <4A45226A.9040201@noaa.gov> Message-ID: Sorry, but where can I verify the density of the observations in the analysis? Gisele Charles Seman escreveu: > Gisele, > > Could you compare your model output to the analysis by regridding the > model output to the analysis grid? This would smooth out much of the > detail in the model, but would preserve the analysis data... a > consideration: what is the density of the observations that went into > the analysis? is the density of the obs closer to 1 degree or 8 km? > > Hope this helps, > Chuck > > Gisele Zepka wrote: >> Hi GrADS Users, >> >> I would like to intepolate some variables from the analysis data of 1 >> degree resolution to model output resolution (0.072 resolution ~ 8 km) >> in order to validate my simulations. First of all, can I do it using >> regrid? Is there some resolution limit in regrid function? >> >> Thanks a lot for any help. >> >> 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 > > -- > > 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." > -- 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 Charles.Seman at NOAA.GOV Fri Jun 26 16:55:07 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Fri, 26 Jun 2009 16:55:07 -0400 Subject: using regrid In-Reply-To: <4A45272F.4070903@dge.inpe.br> Message-ID: Gisele, I don't know... do you know the source of the analysis? Chuck Gisele Zepka wrote: > Sorry, but where can I verify the density of the observations in the > analysis? > > Gisele > > > Charles Seman escreveu: >> Gisele, >> >> Could you compare your model output to the analysis by regridding the >> model output to the analysis grid? This would smooth out much of the >> detail in the model, but would preserve the analysis data... a >> consideration: what is the density of the observations that went into >> the analysis? is the density of the obs closer to 1 degree or 8 km? >> >> Hope this helps, >> Chuck >> >> Gisele Zepka wrote: >>> Hi GrADS Users, >>> >>> I would like to intepolate some variables from the analysis data of 1 >>> degree resolution to model output resolution (0.072 resolution ~ 8 km) >>> in order to validate my simulations. First of all, can I do it using >>> regrid? Is there some resolution limit in regrid function? >>> >>> Thanks a lot for any help. >>> >>> 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 >> >> -- >> >> 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." >> > > > -- > 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 -- 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 gzepka at DGE.INPE.BR Fri Jun 26 17:25:36 2009 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Fri, 26 Jun 2009 18:25:36 -0300 Subject: using regrid In-Reply-To: <4A4535AB.3020107@noaa.gov> Message-ID: Chuck, My analysis are from NCEP High Resolution Global Forecast System (1 degree GFS). Gisele Charles Seman escreveu: > Gisele, > > I don't know... do you know the source of the analysis? > > Chuck > > Gisele Zepka wrote: >> Sorry, but where can I verify the density of the observations in the >> analysis? >> >> Gisele >> >> >> Charles Seman escreveu: >>> Gisele, >>> >>> Could you compare your model output to the analysis by regridding the >>> model output to the analysis grid? This would smooth out much of the >>> detail in the model, but would preserve the analysis data... a >>> consideration: what is the density of the observations that went into >>> the analysis? is the density of the obs closer to 1 degree or 8 km? >>> >>> Hope this helps, >>> Chuck >>> >>> Gisele Zepka wrote: >>>> Hi GrADS Users, >>>> >>>> I would like to intepolate some variables from the analysis data of 1 >>>> degree resolution to model output resolution (0.072 resolution ~ 8 km) >>>> in order to validate my simulations. First of all, can I do it using >>>> regrid? Is there some resolution limit in regrid function? >>>> >>>> Thanks a lot for any help. >>>> >>>> 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 >>> >>> -- >>> >>> 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." >>> >> >> >> -- >> 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 > > -- > > 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." > -- 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 kueyoshi at GMAIL.COM Fri Jun 26 17:33:50 2009 From: kueyoshi at GMAIL.COM (Kyozo Ueyoshi) Date: Fri, 26 Jun 2009 14:33:50 -0700 Subject: grib2ctl In-Reply-To: <63B278E6-C9D8-4A5C-8335-4DD4B80300F8@mri-jma.go.jp> Message-ID: ?? ?? ? You might want to install and try Climate Data Operators (cdo) found at http://www.mpimet.mpg.de/fileadmin/software/cdo/ To create a GrADS data descriptor ?le from a GRIB dataset use: > cdo gradsdes2 infile.grb This will create a descriptor ?le with the name ifile.ctl and the map ?le ifile.gmp. I hope this helps. -- Kyozo Ueyoshi 2009/6/26 ?? ?? > Dear Wesley-sama, I downloaded a file of ECMWF Interim reanalysis data > in GRIB format, and try to get the description file for it, by > using grib2ctl.pl. However I got an error message, as shown below. > > The version is as follows and I am using on Intel iMac. I really do not > know what is wrong??? > > nakazawa% ./grib2ctl.pl > ./grib2ctl.pl 0.9.12.5p45 wesley ebisuzaki > makes a Grads control file for grib files > > > nakazawa% ./grib2ctl.pl -ts6hr output.grib > output.ctl > Use of uninitialized value in substr at ./grib2ctl.pl line 308, > line 1. > substr outside of string at ./grib2ctl.pl line 308, line 1. > Use of uninitialized value in split at ./grib2ctl.pl line 309, > line 1. > Use of uninitialized value in concatenation (.) or string at ./grib2ctl.pl > line 310, line 1. > Use of uninitialized value in concatenation (.) or string at ./grib2ctl.pl > line 310, line 1. > Use of uninitialized value in concatenation (.) or string at ./grib2ctl.pl > line 317, line 1. > Use of uninitialized value in concatenation (.) or string at ./grib2ctl.pl > line 318, line 1. > Argument "RS" isn't numeric in numeric lt (<) at ./grib2ctl.pl line 352. > argument: 1 ???? > Use of uninitialized value in string eq at ./grib2ctl.pl line 437. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 438. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 442. > Use of uninitialized value in concatenation (.) or string at ./grib2ctl.pl > line 476. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > Use of uninitialized value in numeric eq (==) at ./grib2ctl.pl line 481. > *** script needs to be modified *** > unknown user-defined grid > Argument "RS" isn't numeric in multiplication (*) at ./grib2ctl.pl line > 1559. > Argument "" isn't numeric in array element at ./grib2ctl.pl line 1195. > Argument "" isn't numeric in numeric eq (==) at ./grib2ctl.pl line 1247. > > ******************************************** > > Tetsuo Nakazawa > > nakazawa at mri-jma.go.jp > > Typhoon Research Department > > Meteorological Research Institute > > Tel: 029-853-8671 Fax: 029-853-8735 > > ******************************************** > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090626/b5a922d0/attachment.html From Charles.Seman at NOAA.GOV Fri Jun 26 21:12:09 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Fri, 26 Jun 2009 21:12:09 -0400 Subject: using regrid In-Reply-To: <4A453CD0.40405@dge.inpe.br> Message-ID: Gisele, I'm not familiar with this dataset... perhaps you could ask some of your local colleagues for advice on this issue? Chuck Gisele Zepka wrote: > Chuck, > > My analysis are from NCEP High Resolution Global Forecast System (1 > degree GFS). > > Gisele > > > > Charles Seman escreveu: >> Gisele, >> >> I don't know... do you know the source of the analysis? >> >> Chuck >> >> Gisele Zepka wrote: >>> Sorry, but where can I verify the density of the observations in the >>> analysis? >>> >>> Gisele >>> >>> >>> Charles Seman escreveu: >>>> Gisele, >>>> >>>> Could you compare your model output to the analysis by regridding the >>>> model output to the analysis grid? This would smooth out much of the >>>> detail in the model, but would preserve the analysis data... a >>>> consideration: what is the density of the observations that went into >>>> the analysis? is the density of the obs closer to 1 degree or 8 km? >>>> >>>> Hope this helps, >>>> Chuck >>>> >>>> Gisele Zepka wrote: >>>>> Hi GrADS Users, >>>>> >>>>> I would like to intepolate some variables from the analysis data of 1 >>>>> degree resolution to model output resolution (0.072 resolution ~ 8 >>>>> km) >>>>> in order to validate my simulations. First of all, can I do it using >>>>> regrid? Is there some resolution limit in regrid function? >>>>> >>>>> Thanks a lot for any help. >>>>> >>>>> 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 >>>> >>>> -- >>>> >>>> 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." >>>> >>> >>> >>> -- >>> 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 >> >> -- >> >> 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." >> > > > -- > 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 -- 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 nakazawa at MRI-JMA.GO.JP Sat Jun 27 02:05:35 2009 From: nakazawa at MRI-JMA.GO.JP (=?ISO-2022-JP?B?GyRCQ2ZfNxsoQiAbJEJFL0lXGyhC?=) Date: Sat, 27 Jun 2009 15:05:35 +0900 Subject: grib2ctl In-Reply-To: <7d1340b40906261433i7651338y8c7b0c15d2352490@mail.gmail.com> Message-ID: Dear Ebisuzaki-sama, Dashi-sama, Ueyoshi-sama, > Dear Wesley-sama, > I downloaded a file of ECMWF Interim reanalysis data in GRIB > format, and try to get the description file for it, by > using grib2ctl.pl. However I got an error message, as shown below. > > The version is as follows and I am using on Intel iMac. I really > do not know what is wrong??? Thanks for your helpful comments. I did not know that grib2ctl.pl uses wgrib. I downloaded the source code of wgrib (v1.8.0.13b), and compiled with gcc, then grib2ctl.pl WORKED PROPERLY!!! ******************************************** Tetsuo Nakazawa nakazawa at mri-jma.go.jp Typhoon Research Department Meteorological Research Institute Tel: 029-853-8671 Fax: 029-853-8735 ******************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090627/5f77f019/attachment.html From Javier.Corripio at UIBK.AC.AT Sat Jun 27 03:43:49 2009 From: Javier.Corripio at UIBK.AC.AT (Javier G. Corripio) Date: Sat, 27 Jun 2009 09:43:49 +0200 Subject: GRADSUSR Digest - 25 Jun 2009 to 26 Jun 2009 (#2009-161) In-Reply-To: <20090626220327.A8E7A977C0@mx2.cineca.it> Message-ID: > > > I ran the following script but got the error - Data request > warning: Request > beyond file limits. > > Can anyone point out where the mistake is? > > Muhammad Rahiz > GrADS v1.9b4 @ Fedora 10 > --------------------------- > > 'open rf.tmp.ctl' > 'set lon 46.25 114.26' > 'set lat -5.07 45.6' > 'set t 1' > 'set gxout fwrite' > * total number of months > mtot = 353 > * month index > m = 1 > while(m<=mtot) > res = read('timeseries.txt') > say t1' 't2 > t1 = sublin(res,1) > t2 = sublin(res,2) > * calculate the four digit year > yyyy = 1960 > * calculate the two digit month > mm = 10 > fout = 'tmp.'yyyy''mm'.bin' > 'set fwrite 'fout > 'define tmon = ave(t,t='t1',t='t2')' > 'disable fwrite' > m = m + 1 > endwhile > > ----------------------------- > DSET ^rf.tmp > UNDEF -1.e34 > XDEF 303 LINEAR 46.25 0.225198675496689 > YDEF 226 LINEAR -5.07 0.2252 > ZDEF 1 LEVELS 1008.23 > TDEF 42985 LINEAR 06Z01OCT1960 360mn > VARS 1 > t 0 99 t > ENDVARS > Muhammad, Firts, you are "saying" t1 and t2 before defining them. Second, the first line of a read command is the return code, not the content of the file You probably want to write something like this: fname='timeseries.txt' rec = read(fname) IO = sublin(rec,1) if (IO = 1) ; say fname ' file open error' ; return ; endif record = sublin(rec,2) if (IO = 0) field1 = subwrd(record,1) field2 = subwrd(record,2) ...... endif ------------- http://www.iges.org/grads/gadoc/script.html read (filename) This functions reads individual records from file filename. Repeated calls must be made to read consecutive records. The result is a string containing two lines: the first line is the return code, the 2nd line is the record read from the file. The record may be a maximum of 80 characters. Use the sublin function to separate the result. Return codes are: 0 - ok 1 - open error 2 - end of file 8 - file open for write 9 - I/O error Files are opened when the first call to read is made for a particular file name. Files are closed when the execution of the script file terminates (note that files remain open between function calls, etc). -------------------------------------------------------- Best, Javier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090627/45170750/attachment.html From itesh.dash at GMAIL.COM Sun Jun 28 00:45:57 2009 From: itesh.dash at GMAIL.COM (itesh dash) Date: Sun, 28 Jun 2009 11:45:57 +0700 Subject: state/province boundaries Message-ID: Morning All, I wanted to plot the state or province boundaries of the counties. Is there a 'res' file for that. or is there anyway I can reach there? The current virsion GrADS only give the country boundaries, if I am correct with "Hires". Any help will be highly appreciated. Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090628/8ffb44e5/attachment.html From dhaval.prajapati at ICCSIR.ORG Mon Jun 29 00:27:44 2009 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Mon, 29 Jun 2009 04:27:44 +0000 Subject: Data request warning: Request beyond file limits Message-ID: Dear Muhammad, I think in your loop you have given the condition (m<=353), you try by giving only m<353 because everytime when loop ends it increment the m by 1so and the loop goes upto 353 so the last point it takes is 354 and it is not existing that why may be ?? Just check out if it works -----Original Message----- From: Muhammad Rahiz [mailto:muhammad.rahiz at OUCE.OX.AC.UK] Sent: Friday, June 26, 2009 11:40 PM To: GRADSUSR at LIST.CINECA.IT Subject: Data request warning: Request beyond file limits I'm trying to get monthly averages from daily data (6hr intervals) from amaster file which contains 353 months and 42,985 time steps.I ran the following script but got the error - Data request warning: Requestbeyond file limits.Can anyone point out where the mistake is?Muhammad RahizGrADS v1.9b4 @ Fedora 10---------------------------'open rf.tmp.ctl''set lon 46.25 114.26''set lat -5.07 45.6''set t 1''set gxout fwrite'* total number of monthsmtot = 353* month indexm = 1while(m<=mtot)res = read('timeseries.txt')say t1' 't2t1 = sublin(res,1)t2 = sublin(res,2)* calculate the four digit yearyyyy = 1960* calculate the two digit monthmm = 10fout = 'tmp.'yyyy''mm'.bin''set fwrite 'fout'define tmon = ave(t,t='t1',t='t2')''disable fwrite'm = m + 1endwhile-----------------------------DSET ^rf.tmpUNDEF -1.e34XDEF 303 LINEAR 46.25 0.225198675496689YDEF 226 LINEAR -5.07 0.2252ZDEF 1 LEVELS 1008.23TDEF 42985 LINEAR 06Z01OCT1960 360mnVARS 1t 0 99 tENDVARS -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090629/bfc5b0d2/attachment.html From gabriel.ud at GMAIL.COM Mon Jun 29 09:29:09 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Mon, 29 Jun 2009 10:29:09 -0300 Subject: zoom script Message-ID: Hi everybody, I?m writing a script that allows the user to make zoom?s in the current plot. I use I/O functions and ?q pos? to set the lat lon of the zoom. the problem is: after I pull the new lat lon, I have to display (again) the data that was on the plot. This is making my script very big, cause I have specify various types of data to do the zoom. Is there some way just to set the new lat and lon and ?re-display? the existing data on the plot window? thanks, Gabriel Carvalho -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090629/ed656f8e/attachment.html From cathy.smith at NOAA.GOV Mon Jun 29 14:52:05 2009 From: cathy.smith at NOAA.GOV (Cathy Smith) Date: Mon, 29 Jun 2009 12:52:05 -0600 Subject: cthick error on the MACs Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 GrADS users: When we plot contour lines from any file on the MAC version (2.0.a6) and change cthick to any other number, the lines do not change thickness. When we plot on solaris (2.0.a3) or linix (64 bit vs 2.0.a3) the thickness changes (e.g. 'set cthick 10'). Also, when I used v 1.94 on the MAC (gradsnc), it also worked. Any ideas? more info needed? Cathy Smith - -- 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) iEYEARECAAYFAkpJDVQACgkQFiO7KzMhjUQ2TwCgh7tJrq2lcNm4EeilUx47dnA6 d9sAn3azTeRruMAo135y3zPLpIQKUqs7 =VNNZ -----END PGP SIGNATURE----- From doty at COLA.IGES.ORG Tue Jun 30 09:11:18 2009 From: doty at COLA.IGES.ORG (Brian Doty) Date: Tue, 30 Jun 2009 09:11:18 -0400 Subject: GrADS and iPhone Message-ID: fyi... I am able to run GrADS interactively on a remote server and display the output on my iPhone 3G using the latest OS update (3.0) and the latest version of the iSSH app which supports X Windows tunneling. Switching between the terminal window and the X window is a bit cumbersome. GrADS scripts with widgets seem to work fine. From fen at COLA.IGES.ORG Tue Jun 30 09:18:02 2009 From: fen at COLA.IGES.ORG (Mike Fennessy) Date: Tue, 30 Jun 2009 09:18:02 -0400 Subject: GrADS and iPhone In-Reply-To: <895FEED8-E472-4641-99C4-BDB7E92B971C@cola.iges.org> Message-ID: That's WILD Brian! -Mike Brian Doty wrote: > fyi... I am able to run GrADS interactively on a remote server and > display the output on my iPhone 3G using the latest OS update (3.0) > and the latest version of the iSSH app which supports X Windows > tunneling. Switching between the terminal window and the X window is > a bit cumbersome. GrADS scripts with widgets seem to work fine. From pbehling at WISC.EDU Tue Jun 30 09:32:44 2009 From: pbehling at WISC.EDU (pat behling) Date: Tue, 30 Jun 2009 08:32:44 -0500 Subject: GrADS and iPhone In-Reply-To: <895FEED8-E472-4641-99C4-BDB7E92B971C@cola.iges.org> Message-ID: Excellent! This is great! pat Pat Behling Senior Information Processing Consultant Emeritus Center for Climatic Research 1225 W. Dayton St. University of Wisconsin-Madison Madison, WI 53706 pbehling at wisc.edu http://ccr.aos.wisc.edu On Jun 30, 2009, at 8:11 AM, Brian Doty wrote: > fyi... I am able to run GrADS interactively on a remote server and > display the output on my iPhone 3G using the latest OS update (3.0) > and the latest version of the iSSH app which supports X Windows > tunneling. Switching between the terminal window and the X window is > a bit cumbersome. GrADS scripts with widgets seem to work fine. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090630/a0f5ea24/attachment.html From ela at COLA.IGES.ORG Tue Jun 30 18:18:31 2009 From: ela at COLA.IGES.ORG (Eric Altshuler) Date: Tue, 30 Jun 2009 18:18:31 -0400 Subject: Data request warning: Request beyond file limits In-Reply-To: <1198616974.45401246399999825.JavaMail.root@mail.iges.org> Message-ID: Dear Muhammad, One problem I see is that you are using the 'read' script function incorrectly. In the line: res = read('timeseries.txt') the script variable 'res' will consist of two lines. The first line is the return code (indicating whether the read operation was successful or not) and the second line is the record from the file that was actually read. You should have the following sequence of lines: res = read('timeseries.txt') rc = sublin(res,1) record = sublin(res,2) I don't know how your 'timeseries.txt' file is set up, but you need to parse the script variable 'record', not 'res', to obtain the values of t1 and t2. The way your script is written now, t1 gets set to the return code while t2 is set to the line that was read from the file. This is clearly not what you want. 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: "Muhammad Rahiz" To: GRADSUSR at LIST.CINECA.IT Sent: Friday, June 26, 2009 2:10:05 PM GMT -05:00 US/Canada Eastern Subject: Data request warning: Request beyond file limits I'm trying to get monthly averages from daily data (6hr intervals) from a master file which contains 353 months and 42,985 time steps. I ran the following script but got the error - Data request warning: Request beyond file limits. Can anyone point out where the mistake is? Muhammad Rahiz GrADS v1.9b4 @ Fedora 10 --------------------------- 'open rf.tmp.ctl' 'set lon 46.25 114.26' 'set lat -5.07 45.6' 'set t 1' 'set gxout fwrite' * total number of months mtot = 353 * month index m = 1 while(m<=mtot) res = read('timeseries.txt') say t1' 't2 t1 = sublin(res,1) t2 = sublin(res,2) * calculate the four digit year yyyy = 1960 * calculate the two digit month mm = 10 fout = 'tmp.'yyyy''mm'.bin' 'set fwrite 'fout 'define tmon = ave(t,t='t1',t='t2')' 'disable fwrite' m = m + 1 endwhile ----------------------------- DSET ^rf.tmp UNDEF -1.e34 XDEF 303 LINEAR 46.25 0.225198675496689 YDEF 226 LINEAR -5.07 0.2252 ZDEF 1 LEVELS 1008.23 TDEF 42985 LINEAR 06Z01OCT1960 360mn VARS 1 t 0 99 t ENDVARS