From msponsler at COMCAST.NET Thu Oct 1 00:09:19 2009 From: msponsler at COMCAST.NET (Mark Sponsler) Date: Thu, 1 Oct 2009 04:09:19 +0000 Subject: Win32 Superpack v2.0.a7.oga.1 Released! In-Reply-To: <2301776.910921254370124544.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: Hi Arlindo, Thanks so much for getting this new release out.? Am looking forward to using it but am having some problems. Downloaded the superpack zip, copied it to my C drive on a Win XP machine, unzipped it, set the path to? the following directory and tried to run it in batch mode but received?errors: C:\Program Files\opengrads\Contents\Cygwin\Versions\2.0.a7.oga.1\i686\ ? C:\grib\scripts>grads -blc 'bering_wind_list.gs' Starting grads under c:\PROGRA~1\OPENGR~1\Contents\Cygwin\Versions\20A7OG~1.1\i686 ... Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.1 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v2.0.a7.oga.1 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff Issue 'q config' command for more information. Loading User Defined Extensions table ... ok. GX Package Initialization: Size = 11 8.5 Running in Batch mode Running bering_wind Time Period 1 - 0 hr Forecast Running bering_wind Time Period 3 - 6 hr Forecast ????? 8 [main] grads 3448 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION ?? 1099 [main] grads 3448 open_stackdumpfile: Dumping stack trace to grads.exe.stackdump Interesting, but it builds the first image in the a series fine, but stackdumps trying to build the second image (i.e. Time Period 3). So it doesn't seem to be a pathing issue. Also fails with similar results using other scripts and other options. These same scripts works fine in Grads 1.8 and 1.9 through the mutiple?series of images. Any ideas? Thanks, Mark ----- Original Message ----- From: "Arlindo da Silva" To: GRADSUSR at LIST.CINECA.IT Sent: Tuesday, September 29, 2009 6:50:38 PM GMT -08:00 US/Canada Pacific Subject: Win32 Superpack v2.0.a7.oga.1 Released! Dear Windows Users, ?? We have upload to sourceforge version? 2.0.a7.oga.1 ?the Win32? Superpack : https://sourceforge.net/projects/opengrads/files/grads2-windows/ (See my previous posting announcing a similar release for Linux to learn about what is new in this release --- the Windows build has? all ?the features of the Linux version). ? If you have the necessary privileges to install software on your computer I recoomend the Windows installer ( *-win32_superpack.exe ) which will optionally set your path and create an entry in your? [Start] ?menu, placing links on your Desktop. The? [Start] ?menu entry now also includes links to the bundled HTML documentation, with Tutorial, User's Guide and Command Index (from COLA), and "manual pages" for the OpenGrADS extensions. Try out the MERRA and NOMADS Browsers for a (live) graphical user interface to the MERRA reanalysis and NOAA forecast data (GFS, NAM, RUC, Wave) through OpenDAP (a network connection is required). ?? As before, we are also including a? *-win32_superpack.zip? package ? for those users who do not have the admin privileges to install software on their Windows boxes. ?? ?The contents are exactly the same as the? *-win32_pack.exe ?package and are meant to be relocatable: copy the OpenGrADS directory to a USB mem stick and take it on the road with you. The VBscript wrappers at the top remain experimental; I'd appreciate any feedback from people who actually know VBscripting.? ?? For those experienced cygwin users preferring a light weight distribution (and willing to set the necessary environment variables), we are again including tarballs with the binaries and extensions. ??This version has been verified to work on Windows 7 RC (Build 7100). ??Please any me know of any issues. ??Enjoy! ?? ? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091001/3661e45b/attachment.html From arlindo.dasilva at GMAIL.COM Thu Oct 1 08:16:51 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 1 Oct 2009 08:16:51 -0400 Subject: Win32 Superpack v2.0.a7.oga.1 Released! In-Reply-To: <1972176224.911111254370159824.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: On Thu, Oct 1, 2009 at 12:09 AM, Mark Sponsler wrote: > > These same scripts works fine in Grads 1.8 and 1.9 through the > mutiple series of images. > > > Does it work with the OpenGrADS Bundle v2.0.a5? Besides the changes in grads proper, I changed the build environment going from a5 to a7 for Windows 7. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091001/d551597e/attachment.html From hiren_dave85 at YAHOO.COM Thu Oct 1 08:23:54 2009 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Thu, 1 Oct 2009 05:23:54 -0700 Subject: HDF5 (.h5) file in Win32 Superpack v2.0.a7.oga.1 Message-ID: Friends ???? I want to excess HDF5 (.h5) file in GrADS. For that i am using following scripts and it display some error. Is there any way by which i can excess the HDF5 files in GrADS. The sample file is attached herewith. The same is the case whhen using gradshdf utility. Grads script. ?xdfopen e:/K1VHR_23SEP2008_2330_L02_SST.h5 Scanning Descriptor File:? e:/K1VHR_23SEP2008_2330_L02_SST.h5 XDFOpen Error:? Unknown keyword in description file ? --> The invalid description file record is: ? --> eter_12 ? The data file was not opened. Connect more, do more and share more with Yahoo! India Mail. Learn more. http://in.overview.mail.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091001/74d7d0e9/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: K1VHR_23SEP2008_2330_L02_SST.h5 Type: application/octet-stream Size: 1177152 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091001/74d7d0e9/attachment.obj From yi_zhou01 at YAHOO.CA Thu Oct 1 10:03:02 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Thu, 1 Oct 2009 07:03:02 -0700 Subject: fwrite a grib data file from nc data In-Reply-To: <1027508556.106541254363632720.JavaMail.root@mail.iges.org> Message-ID: Hi Eric, Thank you for your correction. I changed the gs file, and got the binary file with size of 140 bytes. After grads scanning the ctl file, it still showed: can not open the binary file. I am stocked there. Regards, Emily York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 10:20 PM Hi Emily, What is the size of the binary file? It should be 7*5*4=140 bytes. If it's not that size, check your script for any bugs I may have missed. If it is 140 bytes, then I don't know why grads can't open the binary file. In fact, even if the file exists but has a size of 0 bytes, grads should open it. Make sure the file is actually being created. If it doesn't exist, I have no idea why. Best regards, Eric ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 9:47:24 PM GMT -05:00 US/Canada Eastern Subject: Re: fwrite a grib data file from nc data Hi Eric, Thank you for figuring out the bugs. I corrected the problems, and rerun the gs to get a new grd file. However after scaning the discription file, it still can not open the binary file. It shows: open error, cann't open the binary file. My grads version is grads2.0 a3 for window XP. BTW, my vwnd ddf file as below: ================ DSET d:\gradsfile\ncdata\vwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ? 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 vwnd 29 t,z,y,x?? grid_northward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =========== Emily, York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 5:18 PM Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" < yi_zhou01 at YAHOO.CA > To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091001/83bdb49c/attachment.html From yi_zhou01 at YAHOO.CA Thu Oct 1 10:44:10 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Thu, 1 Oct 2009 07:44:10 -0700 Subject: fwrite a grib data file from nc data In-Reply-To: <1027508556.106541254363632720.JavaMail.root@mail.iges.org> Message-ID: Hi Eric, I figured out the problem, and can display the wind time series with height.. The problem is that I include a ' symbol in my ctl file by mistake. Thanks. Emily --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 10:20 PM Hi Emily, What is the size of the binary file? It should be 7*5*4=140 bytes. If it's not that size, check your script for any bugs I may have missed. If it is 140 bytes, then I don't know why grads can't open the binary file. In fact, even if the file exists but has a size of 0 bytes, grads should open it. Make sure the file is actually being created. If it doesn't exist, I have no idea why. Best regards, Eric ----- Original Message ----- From: "Emily" To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 9:47:24 PM GMT -05:00 US/Canada Eastern Subject: Re: fwrite a grib data file from nc data Hi Eric, Thank you for figuring out the bugs. I corrected the problems, and rerun the gs to get a new grd file. However after scaning the discription file, it still can not open the binary file. It shows: open error, cann't open the binary file. My grads version is grads2.0 a3 for window XP. BTW, my vwnd ddf file as below: ================ DSET d:\gradsfile\ncdata\vwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, ? 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 vwnd 29 t,z,y,x?? grid_northward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =========== Emily, York University, Toronto --- On Wed, 9/30/09, Eric Altshuler wrote: From: Eric Altshuler Subject: Re: fwrite a grib data file from nc data To: GRADSUSR at LIST.CINECA.IT Received: Wednesday, September 30, 2009, 5:18 PM Hi Emily, fwrite writes data in binary format, not GRIB. Remove the line 'DTYPE grib' from the ctl file. You also have two bugs in your script: while (t0<222) should be: while (t0<=222) and also while (h>850) should be: while (h>=850) Using < and >, the values for t=222 and lev=850 will not be written because the last iteration of the loops will be for t=221 and lev=875. I also don't see any entry for the v wind in your ctl file for the netcdf data. If it is not in the dataset, your wind speed calculation will fail because of missing v wind. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Emily" < yi_zhou01 at YAHOO.CA > To: GRADSUSR at LIST.CINECA.IT Sent: Wednesday, September 30, 2009 4:02:13 PM GMT -05:00 US/Canada Eastern Subject: fwrite a grib data file from nc data Hi group memeber, I write a gs file to create a data set which is time series changing with height. My original data is NARR netCDF data sets (8 times per day) The ddf file as below: ========== DSET d:\gradsfile\ncdata\uwnd.200812.nc DTYPE netcdf TITLE NARR 4D field Lambert Conformal Conic projection UNDEF 32766 missing_value UNPACK scale_factor=0.01f add_offset=47.66f PDEF 349 277 lcc 1 -145.5 1 1 50 50 -107 32463.41 32463.41 XDEF 615 linear 150 0.3333 YDEF 255 linear 2 0.3333 ZDEF 29 levels 1000, 975, 950, 925, 900, 875, 850, 825, 800, 775, 750, 725, 700, 650, 600, 550, 500, 450, 400, 350, 300, 275, 250, 225, 200, 175, 150, 125, 100 tdef 248 linear 00:00z01dec2008 3hr vars 3 uwnd 29 t,z,y,x grid_eastward_wind lat=>glat 0 y,x Latitude lon=>glon 0 y,x Longitude endvars =============== vwnd200812.ddf is simillar with above. My gs file as below: ============= 'reinit' 'open d:\gradsfile\ncdata\uwnd200812.ddf' 'open d:\gradsfile\ncdata\vwnd200812.ddf' *'set grads off' *'set grid off' 'set gxout fwrite' 'set fwrite d:\gradsfile\ncdata\wind-height09z28dec2008.grd' 'set dfile 1' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' 'set dfile 2' 'set lon 283.3' 'set lat 43.66' *'set time 09z28dec2008' h=1000 t0=218 while(t0<222) 'set t 't0'' while(h>850) 'set lev 'h'' 'u=0.01*uwnd.1+47.66' 'v=0.01*vwnd.2+47.66' 'wind=mag(u,v)' 'd wind' h=h-25 endwhile t0=t0+1 endwhile say 'ok' =============== My ctl file is as below: ========== DSET d:\gradsfile\ncdata\wind-height09z28dec2008.grd' DTYPE grib TITLE Wind-Height 09z12dec2008 UNDEF 32766 missing_value XDEF 1 linear 1 1 YDEF 1 linear 1 1 ZDEF 7 levels 1000, 975, 950, 925, 900, 875, 850 tdef 5 linear 03z28dec2008 3hr vars 1 wind 7 99 wind_height endvars ========= When I open the ctl file from Grads, it shows: can not open station/index map file (null) the data file was not open. I don't know what's wrong with it. Is there any one can tell me the reason? Thanks. Regards Emily York University, Toronto -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091001/20955958/attachment.html From jma at COLA.IGES.ORG Thu Oct 1 13:27:06 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 1 Oct 2009 13:27:06 -0400 Subject: HDF5 (.h5) file in Win32 Superpack v2.0.a7.oga.1 In-Reply-To: <633926.21829.qm@web30405.mail.mud.yahoo.com> Message-ID: From the doc page http://iges.org/grads/gadoc/SDFdescriptorfile.html: The 'sdfopen' and 'xdfopen' interfaces do not support the HDF5 format. The 'open' interface is the only way to read HDF5 files. The biggest difference between descriptor files for HDF5 and NetCDF are in the variable declaration -- the varnames have to be aliased. From the doc page http://iges.org/grads/gadoc/descriptorfile.html: For dtype hdf5_grid, the SDF_varname may be particularly long since it must contain the names of all the nested groups (separated by "/") to which the data set belongs. For example: /HDFEOS/GRIDS/ EarthSurfaceReflectanceClimatology/Data~Fields/ MonthlySurfaceReflectance=>msr --Jennifer On Oct 1, 2009, at 8:23 AM, hiren dave wrote: > Friends > I want to excess HDF5 (.h5) file in GrADS. For that i am using > following scripts and it display some error. Is there any way by > which i can excess the HDF5 files in GrADS. > The sample file is attached herewith. > The same is the case whhen using gradshdf utility. > > Grads script. > xdfopen e:/K1VHR_23SEP2008_2330_L02_SST.h5 > Scanning Descriptor File: e:/K1VHR_23SEP2008_2330_L02_SST.h5 > XDFOpen Error: Unknown keyword in description file > --> The invalid description file record is: > --> eter_12 > The data file was not opened. > > > Yahoo! India has a new look. Take a sneak > peek. -- 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/20091001/92d86ed1/attachment.html From howardb at SSEC.WISC.EDU Thu Oct 1 17:08:16 2009 From: howardb at SSEC.WISC.EDU (Howard Berger) Date: Thu, 1 Oct 2009 16:08:16 -0500 Subject: bufr ctl file In-Reply-To: <4AB91B99.5010108@ssec.wisc.edu> Message-ID: Hello, I'm trying to read what I think is a very complex bufr file. My ctl file looks like this: DSET ^layermean_bufr.20090921.18.nh TITLE AMV Layer Mean Data DTYPE bufr UNDEF -999.0 TVAR yr 4,1 mo 4,2 dy 4,3 hr 4,4 STID 1,31 XVAR 6,1 YVAR 5,1 ZVAR 7,4 TDEF 6 linear 18z21sep2009 1hr VARS 3 amvlon 1 6,1 AMV Longitude amvlat 1 5,1 AMV Latitude amvpre 1 7,4 AMV Assigned Pressure ENDVARS When I start grads I type: open bufr.ctl d amvpre; I then get: warning: ignoring unsupported operator F=2 X=22 Y=0 warning: ignoring unsupported operator F=2 X=37 Y=0 warning: ignoring unsupported operator F=2 X=22 Y=0 warning: ignoring unsupported operator F=2 X=36 Y=0 warning: ignoring unsupported operator F=2 X=22 Y=0 warning: ignoring unsupported operator F=2 X=37 Y=0 warning: ignoring unsupported operator F=2 X=22 Y=0 that repeates over and over again until grads crashes. When I look at the bufrscan for the F=2 X=22,36,37 I see: 2 22 000 (operator) 2 36 000 (operator) 2 37 000 (operator) Any thoughts on what's going on? > > I'm using grads version 2.0.a5 on a mac 10.5 > > Am I doing something wrong or is my bufr file bad? > Thanks! > Howard > > From jma at COLA.IGES.ORG Thu Oct 1 20:19:02 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Thu, 1 Oct 2009 20:19:02 -0400 Subject: bufr ctl file In-Reply-To: <4AC51A40.3050408@ssec.wisc.edu> Message-ID: Hi, Howard -- The warnings may not be related to the cause of the crash. Can you send me (not gradsusr) a copy of your bufr file so I can do some testing on my own? --Jennifer On Oct 1, 2009, at 5:08 PM, Howard Berger wrote: > Hello, > I'm trying to read what I think is a very complex bufr file. > My ctl file looks like this: > DSET ^layermean_bufr.20090921.18.nh > TITLE AMV Layer Mean Data > DTYPE bufr > UNDEF -999.0 > TVAR yr 4,1 mo 4,2 dy 4,3 hr 4,4 > STID 1,31 > XVAR 6,1 > YVAR 5,1 > ZVAR 7,4 > TDEF 6 linear 18z21sep2009 1hr > VARS 3 > amvlon 1 6,1 AMV Longitude > amvlat 1 5,1 AMV Latitude > amvpre 1 7,4 AMV Assigned Pressure > ENDVARS > > When I start grads I type: > open bufr.ctl > d amvpre; > I then get: > warning: ignoring unsupported operator F=2 X=22 Y=0 > warning: ignoring unsupported operator F=2 X=37 Y=0 > warning: ignoring unsupported operator F=2 X=22 Y=0 > warning: ignoring unsupported operator F=2 X=36 Y=0 > warning: ignoring unsupported operator F=2 X=22 Y=0 > warning: ignoring unsupported operator F=2 X=37 Y=0 > warning: ignoring unsupported operator F=2 X=22 Y=0 > that repeates over and over again until grads crashes. > > When I look at the bufrscan for the F=2 X=22,36,37 I see: > 2 22 000 (operator) > 2 36 000 (operator) > 2 37 000 (operator) > > Any thoughts on what's going on? >> >> I'm using grads version 2.0.a5 on a mac 10.5 >> >> Am I doing something wrong or is my bufr file bad? >> Thanks! >> Howard >> >> -- 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/20091001/a19eb1dd/attachment.html From wansryu at GMAIL.COM Fri Oct 2 15:51:11 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Fri, 2 Oct 2009 14:51:11 -0500 Subject: How to save variables to ASCII Message-ID: Dear users, I am a beginner of GRADS, so I have lots of questions. One of them is that I want to save a variable (or variables) to an ASCII file. I read that fwrite would work, but I don't know how to use it. I define a variable named 'wind' as below. define wind = ave(mag(uwind,vwind),t+0,t=360,12) I want to save the variable 'wind' to ASCII. I just used 'set fwrite' command, but I don't see any new file in my directory. Anybody can help me? Wansang --- College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091002/3c5c2629/attachment.html From teddyallen at YAHOO.COM Fri Oct 2 16:23:28 2009 From: teddyallen at YAHOO.COM (Teddy Allen) Date: Fri, 2 Oct 2009 13:23:28 -0700 Subject: How to save variables to ASCII In-Reply-To: Message-ID: Wansang, It has been my experience in the past that fwrite only works in script mode and not during command line execution. Have you tried using fwrite in a script? Hope this helps, teddy ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: Wansang Ryu To: GRADSUSR at LIST.CINECA.IT Sent: Friday, October 2, 2009 3:51:11 PM Subject: How to save variables to ASCII Dear users, I am a beginner of GRADS, so I have lots of questions. One of them is that I want to save a variable (or variables) to an ASCII file. I read that fwrite would work, but I don't know how to use it. I define a variable named 'wind' as below. define wind = ave(mag(uwind,vwind),t+0,t=360,12) I want to save the variable 'wind' to ASCII. I just used 'set fwrite' command, but I don't see any new file in my directory. Anybody can help me? Wansang --- College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091002/b495c2ea/attachment.html From Charles.Seman at NOAA.GOV Fri Oct 2 16:34:08 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Fri, 2 Oct 2009 16:34:08 -0400 Subject: How to save variables to ASCII In-Reply-To: Message-ID: Wansang, Please check out: http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file Hope this helps, Chuck Wansang Ryu wrote: > Dear users, > > I am a beginner of GRADS, so I have lots of questions. > One of them is that I want to save a variable (or variables) to an > ASCII file. > I read that fwrite would work, but I don't know how to use it. > > I define a variable named 'wind' as below. > > define wind = ave(mag(uwind,vwind),t+0,t=360,12) > > I want to save the variable 'wind' to ASCII. > I just used 'set fwrite' command, but I don't see any new file in my > directory. > > Anybody can help me? > > Wansang > > --- > College Station, TX 77843-3147 > Office: 305A CSA (Teague) Bldg > (979) 845-2719 -- 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 wansryu at GMAIL.COM Fri Oct 2 17:19:59 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Fri, 2 Oct 2009 16:19:59 -0500 Subject: How to save variables to ASCII In-Reply-To: <314069.16827.qm@web51510.mail.re2.yahoo.com> Message-ID: Thank you, Teddy, Do I have to use fwrite after I made a defined variable or before? Do you have any simple example that i can use for my data? Wansang On Fri, Oct 2, 2009 at 3:23 PM, Teddy Allen wrote: > Wansang, > It has been my experience in the past that fwrite only works in script mode > and not during command line execution. Have you tried using fwrite in a > script? > Hope this helps, > teddy > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go *together*." > > African Proverb > > > ------------------------------ > *From:* Wansang Ryu > *To:* GRADSUSR at LIST.CINECA.IT > *Sent:* Friday, October 2, 2009 3:51:11 PM > *Subject:* How to save variables to ASCII > > Dear users, > > I am a beginner of GRADS, so I have lots of questions. > One of them is that I want to save a variable (or variables) to an ASCII > file. > I read that fwrite would work, but I don't know how to use it. > > I define a variable named 'wind' as below. > > define wind = ave(mag(uwind,vwind),t+0,t=360,12) > > I want to save the variable 'wind' to ASCII. > I just used 'set fwrite' command, but I don't see any new file in my > directory. > > Anybody can help me? > > Wansang > > --- > College Station, TX 77843-3147 > Office: 305A CSA (Teague) Bldg > (979) 845-2719 > > -- Ph.D. Candidate Department of Geography Texas A&M University College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091002/36bc062a/attachment.html From Ron.Goodson at EC.GC.CA Fri Oct 2 18:18:10 2009 From: Ron.Goodson at EC.GC.CA (Goodson,Ron [Edm]) Date: Fri, 2 Oct 2009 16:18:10 -0600 Subject: How to save variables to ASCII In-Reply-To: A Message-ID: I thought fwrite was for binary files. Anyway I just use something like MyFile = "MyFileName" 'set gxout print' 'set prnopts %6.1f 17' (these are just examples .. change to whatever format with however many values per line you want ..) 'd wind' rc = write(MyFile, result) That will put your ascii values in the file "MyFileName". There will be the 2 grads header lines before the data you'll have to strip out. There will be 17 values per lines, since that was what was specified in the prnopts. It probably makes more sense to set that equal to the number of elements along X. ron ________________________________ ________________________________ From: Wansang Ryu To: GRADSUSR at LIST.CINECA.IT Sent: Friday, October 2, 2009 3:51:11 PM Subject: How to save variables to ASCII Dear users, I am a beginner of GRADS, so I have lots of questions. One of them is that I want to save a variable (or variables) to an ASCII file. I read that fwrite would work, but I don't know how to use it. I define a variable named 'wind' as below. define wind = ave(mag(uwind,vwind),t+0,t=360,12) I want to save the variable 'wind' to ASCII. I just used 'set fwrite' command, but I don't see any new file in my directory. Anybody can help me? Wansang --- College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -- Ph.D. Candidate Department of Geography Texas A&M University College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091002/aaae93de/attachment.html From arlindo.dasilva at GMAIL.COM Fri Oct 2 22:59:56 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 2 Oct 2009 22:59:56 -0400 Subject: How to save variables to ASCII In-Reply-To: Message-ID: On Fri, Oct 2, 2009 at 3:51 PM, Wansang Ryu wrote: > Dear users, > > I am a beginner of GRADS, so I have lots of questions. > One of them is that I want to save a variable (or variables) to an ASCII > file. > I read that fwrite would work, but I don't know how to use it. > > I define a variable named 'wind' as below. > > define wind = ave(mag(uwind,vwind),t+0,t=360,12) > > I want to save the variable 'wind' to ASCII. > I just used 'set fwrite' command, but I don't see any new file in my > directory. > > Anybody can help me? > > See this recipe: http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091002/7da934ee/attachment.html From sushantpuranik at GMAIL.COM Sat Oct 3 03:39:05 2009 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Sat, 3 Oct 2009 13:09:05 +0530 Subject: can we make 3-D plots in Grads Message-ID: I wish to make 3-D plot for the wind, in order to see the structure of the jet. Whether it is possible in grads. Since i know that we can only plot it in 2-D by keeping latitude or longitude constant. Is there any solution on it? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091003/81d5702c/attachment.html From arlindo.dasilva at GMAIL.COM Sat Oct 3 20:33:21 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 3 Oct 2009 20:33:21 -0400 Subject: Reading HDF-EOS files in GrADS In-Reply-To: Message-ID: On Tue, Sep 22, 2009 at 3:36 PM, Aaron Pratt wrote: > Hello, > > Is there a way to open HDF-EOS files in GrADS. I have tried to find > information pertaining to this online, but have so far been unable to find > anything. I would like to be able to open HDF-EOS formatted files from > MODIS, CloudSat, CALIPSO, etc. (I believe HDF-EOS is the standard format > for > most of NASA's satellite data products. > > HDF-EOS files are nothing more than HDF-4 files with additional metadata added. Format is not the issue here since GrADS can read HDF-4. The main problem is that these files are not CF-1 (COARDS) compliant. For some Level 3 files, quantities are defined on a global 1x1 grid and a Data Descriptor File (DDF)) can be written and the file opened with "xdfopen". However, most Level 2 files are defined on swaths and such data structure is not currently supported by GrADS. (I believe COLA has plans for supporting swath data in the future, Jennifer may want to comment on it.) I have toyed with the idea of writing a GrADS extension for dealing with swath data, but ended up using pyhdf in python for accessing such datasets. On other situations, such as for EOS aerosol data (MODIS/MISR/OMI/PARASOL) I have created my own grads readable version of datasets on the 1/4 deg GEOS-5 grid. Some of these are available on-line: http://opendap.nccs.nasa.gov:9090/dods/AeroObs Good Luck, Arlindo > Aaron Pratt,PhD > NASA/ORAU Post-Doctoral Fellow > Goddard Space Flight Center > Greenbelt, MD 20774 > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091003/93e2520b/attachment.html From arlindo.dasilva at GMAIL.COM Sat Oct 3 20:43:33 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 3 Oct 2009 20:43:33 -0400 Subject: PDEF not recognized in Grads 2.0.a5.oga.5 In-Reply-To: <20090820085324.093A020195@mx2.cineca.it> Message-ID: On Thu, Aug 20, 2009 at 4:52 AM, Stefan Fronzek wrote: > Hello, > > I am getting an error message when trying to open a netcdf file on a > rotated > grid using Grads 2.0.a5 (opengrads built under Windows Vista). I kind of > recall that I was able to open the same file with an earlier version of > grads. Version 1.x or Version 2? > Also, the netcdf file opens fine with sdfopen, albeit ignoring the > rotation of the grid of course. > > Does anybody know if the grads built I am using is not supporting the PDEF > keyword or if anything is wrong with my control file? See the error > message, > grads config and control file below. > > This build should support all the PDEF options of grads v2.0.a5. But one never knows when bugs make their way in... -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091003/db1220fc/attachment.html From arlindo.dasilva at GMAIL.COM Sat Oct 3 20:47:56 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 3 Oct 2009 20:47:56 -0400 Subject: lats4d question In-Reply-To: <4A82E636.3070901@nasa.gov> Message-ID: On Wed, Aug 12, 2009 at 11:56 AM, Fan Fang wrote: > I am using lats4d.gs with grads version 1.10 to convert hdf4 > into netcdf files. One problem I noticed was that the global > attributes in the hdf4 files were erased, replaced by ones > made by lats4d. Does anyone have the same problem or > know of a way to retrieve the attributes using lats4d itself? > > Sorry, this is a known issue on my to do list but it will have to wait until we port LATS to v2 (as an opengrads extension.) -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091003/17a43d20/attachment.html From david.waghorn at GOOGLEMAIL.COM Sun Oct 4 07:16:33 2009 From: david.waghorn at GOOGLEMAIL.COM (David Smart) Date: Sun, 4 Oct 2009 12:16:33 +0100 Subject: can we make 3-D plots in Grads In-Reply-To: <72e8bd3d0910030039i652c33f5q63a84009e96800fe@mail.gmail.com> Message-ID: IDV will read Grads (Grib) files and plot isosurfaces etc- http://www.unidata.ucar.edu/software/idv/ It is free and easy to use Best, David On Sat, Oct 3, 2009 at 8:39 AM, sushant puranik wrote: > I wish to make 3-D plot for the wind, in order to see the structure of the > jet. Whether it is possible in grads. > Since i know that we can only plot it in 2-D by keeping latitude or > longitude constant. > > Is there any solution on it? > > > Thank you > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091004/9e8c7881/attachment.html From vpk1 at LEICESTER.AC.UK Sun Oct 4 09:17:47 2009 From: vpk1 at LEICESTER.AC.UK (Kanawade, V.P.) Date: Sun, 4 Oct 2009 14:17:47 +0100 Subject: detrend and deseasonalising data In-Reply-To: <4AC38056.6000308@noaa.gov> Message-ID: Dear All, I am new to GrADS and I have a favour to ask. I have monthly mean carbon monoxide ASCII data from ground-based measurements for the period 2000-2008. I am intend to detrend and deseasonalise data to look at trend in the data and also wish to calculate 12-month running average. Does anyone have GrADS script to do these analysis? Thank you very much in adv. Best regards, Vijay From imspj at HAWAII.EDU Mon Oct 5 02:08:14 2009 From: imspj at HAWAII.EDU (Ilukpitiya Mudi S P Jayawardena) Date: Mon, 5 Oct 2009 11:08:14 +0500 Subject: how to make a subset file of netCDF file ? Message-ID: Hi all I want to make a subset file (in netCDF format) of a netCDF file . can I use sdfwrite ? please help me. thank in advance Ilukpitiye -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/e8e848fb/attachment.html From wansryu at GMAIL.COM Mon Oct 5 15:30:13 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Mon, 5 Oct 2009 14:30:13 -0500 Subject: How to make a script file Message-ID: Dear Users, I am a new to Grads. I want to make a script file to save variables to a ASCII (*.txt) file. Do I write a script in Grads directly or in a software like notepad. And how I start to write it? I think I'm really lost. Please, teach me from the first step. Somebody help me! Wansang -- College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/1581e1cd/attachment.html From ravishukla72 at GMAIL.COM Mon Oct 5 15:28:14 2009 From: ravishukla72 at GMAIL.COM (Ravi Shukla) Date: Mon, 5 Oct 2009 15:28:14 -0400 Subject: grads script Message-ID: Dear Sir/Madam How to calculate climatology of 5-day averaged data (pentad) in grads script ? Thanking you with regards Ravi Shukla -- Ravi Prakash Shukla Research Scholar K.B.C.A.O.S.,IIDS. University of Allahabad Allahabad, 211002 Cell Phone No: - +91- 9453770122 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/ffb154b0/attachment.html From ivtoman at INET.HR Mon Oct 5 15:44:16 2009 From: ivtoman at INET.HR (Ivan Toman) Date: Mon, 5 Oct 2009 21:44:16 +0200 Subject: How to make a script file In-Reply-To: Message-ID: Hey, you need to write plain text file with software like notepad. In that file, you put the same commands that you put in grads command prompt, just they need to be between these characters: ' ' For example, if you wish to plot temperature from command prompt, you will give this command: d tmp2m In grads script, that should read: 'd tmp2m' That's almost all, but there are some differences between command line and scipting commands, and also, of course, in scripts you can do lot more things like creating loops and using lot more tools (for example defining custom functions), that you cannot do on command line. Hope this helps. Also, please, read user manual here: http://www.iges.org/grads/gadoc/users.html And check some sample scripts to see how they work, for example: http://www.iges.org/grads/gadoc/library.html Bye, Ivan Wansang Ryu wrote: > Dear Users, > > I am a new to Grads. > I want to make a script file to save variables to a ASCII (*.txt) file. > Do I write a script in Grads directly or in a software like notepad. > > And how I start to write it? > I think I'm really lost. > Please, teach me from the first step. > > Somebody help me! > > Wansang > > -- > College Station, TX 77843-3147 > Office: 305A CSA (Teague) Bldg > (979) 845-2719 From wansryu at GMAIL.COM Mon Oct 5 15:46:42 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Mon, 5 Oct 2009 14:46:42 -0500 Subject: How to make a script file In-Reply-To: <4ACA4C90.3040409@inet.hr> Message-ID: Thank you very much On Mon, Oct 5, 2009 at 2:44 PM, Ivan Toman wrote: > Hey, > > you need to write plain text file with software like notepad. In that > file, you put the same commands that you put in grads command prompt, > just they need to be between these characters: ' ' > > For example, if you wish to plot temperature from command prompt, you > will give this command: > d tmp2m > > In grads script, that should read: > 'd tmp2m' > > That's almost all, but there are some differences between command line > and scipting commands, and also, of course, in scripts you can do lot > more things like creating loops and using lot more tools (for example > defining custom functions), that you cannot do on command line. > > Hope this helps. Also, please, read user manual here: > http://www.iges.org/grads/gadoc/users.html > > And check some sample scripts to see how they work, for example: > http://www.iges.org/grads/gadoc/library.html > > Bye, Ivan > > > > > Wansang Ryu wrote: > > Dear Users, > > > > I am a new to Grads. > > I want to make a script file to save variables to a ASCII (*.txt) file. > > Do I write a script in Grads directly or in a software like notepad. > > > > And how I start to write it? > > I think I'm really lost. > > Please, teach me from the first step. > > > > Somebody help me! > > > > Wansang > > > > -- > > College Station, TX 77843-3147 > > Office: 305A CSA (Teague) Bldg > > (979) 845-2719 > -- Ph.D. Candidate Department of Geography Texas A&M University College Station, TX 77843-3147 Office: 305A CSA (Teague) Bldg (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/90c33a5c/attachment.html From wansryu at GMAIL.COM Mon Oct 5 15:51:45 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Mon, 5 Oct 2009 14:51:45 -0500 Subject: How to make a script file In-Reply-To: <4ACA4C90.3040409@inet.hr> Message-ID: Should the first line have 'function' command like 'function test (args)'? Is there any command to finish script file? Thanks, Wansang On Mon, Oct 5, 2009 at 2:44 PM, Ivan Toman wrote: > Hey, > > you need to write plain text file with software like notepad. In that > file, you put the same commands that you put in grads command prompt, > just they need to be between these characters: ' ' > > For example, if you wish to plot temperature from command prompt, you > will give this command: > d tmp2m > > In grads script, that should read: > 'd tmp2m' > > That's almost all, but there are some differences between command line > and scipting commands, and also, of course, in scripts you can do lot > more things like creating loops and using lot more tools (for example > defining custom functions), that you cannot do on command line. > > Hope this helps. Also, please, read user manual here: > http://www.iges.org/grads/gadoc/users.html > > And check some sample scripts to see how they work, for example: > http://www.iges.org/grads/gadoc/library.html > > Bye, Ivan > > > > > Wansang Ryu wrote: > > Dear Users, > > > > I am a new to Grads. > > I want to make a script file to save variables to a ASCII (*.txt) file. > > Do I write a script in Grads directly or in a software like notepad. > > > > And how I start to write it? > > I think I'm really lost. > > Please, teach me from the first step. > > > > Somebody help me! > > > > Wansang > > > > -- > > College Station, TX 77843-3147 > > Office: 305A CSA (Teague) Bldg > > (979) 845-2719 > -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/c2d22750/attachment.html From wansryu at GMAIL.COM Mon Oct 5 16:57:06 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Mon, 5 Oct 2009 15:57:06 -0500 Subject: Script file to make wind data and save it to ASCII Message-ID: Dear Users, It is hard for me to make a right script file. Some of the users has helped me, thanks, but i still don't understand. My data has two wind data; ugrd10m: u wind at 10m (monthly) vgrd10m: v wind at 10m (monthly) I want to make a script file that calculates the magnitude of wind (mag(u,v)) of each month at a point and save it to ASCII. Here is the script file I made, but it doesn't work as expected. Any of you guys can correct errors in my script file? ======================== *Script Save as ASCII 'set grads off' 'set lon -123.93' 'set lat 45.67' 'set t 1 12' 'define wind=ave(mag(ugrd10m,vgrd10m),t+0,t=360,12)' 'modify wind seasonal' 'set gxout fwrite' 'set fwrite e:/research/climatedata/grads/data/wind' 'say 'ok'' ========================== Thanks, Wansang -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/95eb98dd/attachment.html From sreeds82 at YAHOO.COM Tue Oct 6 00:00:32 2009 From: sreeds82 at YAHOO.COM (Srinivas Desamsetti) Date: Mon, 5 Oct 2009 21:00:32 -0700 Subject: How to create Station Data Message-ID: Dear Sir/Madam, I have a gridded data and I can plot the variables. I want to get the Data at one Particular Latitude and Longitude. When I give 'set lat 12.42' it is taking at 12N So, I request you to suggest me to get an interpolated value to a particular lat/long. Thanking you Srinivas Desamsetti Srinivas Research Scholar Department of Meteorology and Oceanography Andhra University Visakhapatnam - 530 003 91 9491686740 (M) sreeds82 at yahoo.com sreeds82 at rediffmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091005/3ea57f40/attachment.html From ivtoman at INET.HR Tue Oct 6 06:30:12 2009 From: ivtoman at INET.HR (Ivan Toman) Date: Tue, 6 Oct 2009 12:30:12 +0200 Subject: How to make a script file In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091006/26555a8c/attachment.html From eromeroo at INM.ES Tue Oct 6 07:35:42 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Tue, 6 Oct 2009 13:35:42 +0200 Subject: GrADs: COLA/IGES Message-ID: Hello, I would like to know how not to display the text GrADS:COLA/IGES at the bottom of a picture, because when I plot more than one picture in a page it seems strange. I know that the date and hour can be displayd off by "set grads off". Thanks. Esther. From emirzaei at GMAIL.COM Tue Oct 6 08:22:46 2009 From: emirzaei at GMAIL.COM (ebrahim mirzaei) Date: Tue, 6 Oct 2009 15:52:46 +0330 Subject: GrADs: COLA/IGES In-Reply-To: <1254828941.20670.7.camel@holmio> Message-ID: Hello, "set grads off" displayed off both of them. On Tue, Oct 6, 2009 at 3:05 PM, Esther Romero Olivares wrote: > Hello, > > I would like to know how not to display the text GrADS:COLA/IGES at the > bottom of a picture, because when I plot more than one picture in a page > it seems strange. I know that the date and hour can be displayd off by > "set grads off". > > Thanks. > > Esther. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091006/0f50be9a/attachment.html From davide.sacchetti at ARPAL.ORG Tue Oct 6 08:28:10 2009 From: davide.sacchetti at ARPAL.ORG (Davide Sacchetti) Date: Tue, 6 Oct 2009 14:28:10 +0200 Subject: GrADs: COLA/IGES In-Reply-To: <1254828941.20670.7.camel@holmio> Message-ID: with grads 1.9 and earlier versions the command "set grads off" inhibits both GrADS:COLA/IGES and date ... notice that "set grads off" command has to be repeated before each "display". A common trick is to use "set imprun setgradsoff.gs" where setgradsoff.gs is a simple script with "set grads off" hoping it could help bye bye Davide On Tue, 2009-10-06 at 13:35 +0200, Esther Romero Olivares wrote: > Hello, > > I would like to know how not to display the text GrADS:COLA/IGES at the > bottom of a picture, because when I plot more than one picture in a page > it seems strange. I know that the date and hour can be displayd off by > "set grads off". > > Thanks. > > Esther. > -- Sacchetti Davide Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria ARPAL Unit? Tecnica Complessa di livello Regionale V.le Brigare Partigiane 2 16121 Genova (I) tel: +39 010 6437535 fax: +39 010 6437520 mail: davide.sacchetti at arpal.org web: www.meteoliguria.it From dasilva at ALUM.MIT.EDU Tue Oct 6 10:12:11 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 6 Oct 2009 10:12:11 -0400 Subject: OpenGrADS Bundle v2.0.a7.oga.1 Released! In-Reply-To: <77fcd6b20909290733k22252cd0w3850a2a2dffa0eac@mail.gmail.com> Message-ID: All, I just refreshed the binaries for the OpenGrADS Bundle, now at version * 2.0.a7.oga.2*. This patch fix an important bug that caused "printim" to crash at odd places. It is strongly recommended that you replace the previous v2.0.a7.oga.1 installation. This bug bfixes affects all versions: Linux, Mac OS X, FreeBSD and Windows. https://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.2/ Notice that this bug fix only affect the OpenGrADS release; no such bug exists in the COLA releases. Arlindo On Tue, Sep 29, 2009 at 10:33 AM, Arlindo da Silva wrote: > Dear GrADS Users, > > I have started uploading to sf.net sources and binaries for the > OpenGrADS Bundle based on COLA's *2.0.a7* release: > > https://sourceforge.net/projects/opengrads/files/ > > Look under grads2/2.0.a7.oga.1 > > The OpenGrADS Bundle is a new way of packaging GrADS builds that > is somewhat inspired by my experience with the Win32 > Superpacks. The idea is to have a single package that require > no (minimum?) configuration and that is easily relocatable (say to > a USB memory stick). The structure of an OpenGrADS Bundle is > described here: > > http://opengrads.org/wiki/index.php?title=The_OpenGrADS_Bundle > > Once you download the tarball take a look at the INSTALL > file. You can install it as a Bundle (highly recommended) or > simply install the binaries the same way you did in the past. > > Note: The Windows build will be available soon, for now only Mac OS X, > Linux and shortly FreeBSD. > > *Note for Mac OS X users: *Unless I hear from you, I am not intending to > post a PowerPC build. Let me know if you would need a PPC build of the > OpenGrADS Bundle. > > See below for additional information on this releae. > * > * > Cheers! > > Arlindo da SIlva > On behalf of the OpenGrADS Development team > > > > * The OpenGrADS Bundle Distribution* > * ---------------------------------* > * > * > * http://opengrads.org* > * > * > * GrADS Version 2.0.a7.oga.1* > * Released 27 September 2009* > * > * > *This version is based on COLA's 2.0.a7 release which includes a new* > *interface for the native HDF-5 format, options for templating on Julian > Day* > *and time axis, new funtion eloop, in addition to some bug fixes. See* > *the ChangeLog for details.* > * > * > *Several important OpenGrADS additions are available with this version:* > * > * > *- grads is now built with NetCDF v4.0.1beta3 which includes support* > * for NetCDF-4/HDF-5 (similar to gradsnc4 in v1.9.0-rc1) and has* > * built in OPeNDAP support.* > * > * > *- gradsdap is no longer provided as its functionality is now included * > * in the single executable *grads*.* > * > * > *- this is an OpenGrADS Bundle release, a relocatable, minimum* > * configuration package that has all that you need to run GrADS. See* > * INSTALL for additonal information.* > * > * > *- we have introduced option -C to enable colorized text* > * > * > *- preview release of the OpenGrADS Extensions; the same extensions * > * available in GrADS v1.9.0-rc1 are now available with GrADS v2.0.* > * > * > * Caveat: as COLA is yet to publish the official API for User Defined* > * functions in GrADS v2.0 we have adopted here an API that* > * is based on our work vith v1.9.0-rc1. This is a very low-level* > * API that is *not* endorsed by COLA. As such, it is *not* > advisable * > * that users adopt this API to write their own extensions.* > * > * > *- These extensions are still being fully tested. Please report any > problems* > * you encounter. Use them at your own risk.* > * * > *- The following extensions are included: see below.* > * > * > * > * > *Documentation and Additional Information* > *----------------------------------------* > * > * > *Consult * > * OpenGrADS Website: http://opengrads.org* > * GrADS Website: http://grads.iges.org/grads* > * > * > * * > * > * > * User* > * Defined* > * COMMAND Short Description Function at Library * > * ---------- ----------------------------------- > --------------------------* > * ------- Environment Variables ------ @ * > * printenv Expand environment variables c_xenv@^env.gex* > * runenv Expand env vars and run command c_env@^env.gex* > * @ Expand env vars and run command c_env@^env.gex* > * getenv Get value of environment variable c_getenv@^env.gex* > * setenv Set value of environment variable c_setenv@^env.gex* > * ---------- GxYAT Extensions -------- @ * > * gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex* > * set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex* > * ---------- Simple Examples --------- @ * > * hello Hello, World! sample command c_hello@^libhello.gex* > * ---- Interprocess Communication ---- @ * > * ipc_verb IPC verbose toggle c_Verb@^libipc.gex* > * ipc_open Open stream for save/load c_Open@^libipc.gex* > * ipc_close Close stream c_Close@^libipc.gex* > * ipc_save Save expression to stream c_Save@^libipc.gex* > * ipc_define Define variable (obsolete) c_Define@^libipc.gex* > * ipc_error Print IPC error message c_Error@^libipc.gex* > * ----- Mike Fiorino's Extensions ---- @ * > * mfhilo Find max/min or H/L in 2D field c_mfhilo@^libmf.gex* > * tcprop Properties radinf from central lon/lat c_tcprop@^libmf.gex* > * grhist histogram of expr c_grhist@^libmf.gex* > * -------- Shapefile Extensions ------ @ * > * shp_lines Draw lines from shapefile c_lines@^shape.gex* > * shp_polyf Draw polygons from shapefile c_polyf@^shape.gex* > * ---------- ----------------------------------- > --------------------------* > * > * > * User* > * Defined* > * FUNCTION Short Description Function at Library * > * ---------- ----------------------------------- > --------------------------* > * ----- Ben-Jei Tsuang Functions ----- @ * > * lt Local time f_bjt@^libbjt.gex* > * jd Julian day f_bjt@^libbjt.gex* > * cosz Cosine solar zenith angle f_bjt@^libbjt.gex* > * dayratio Daylight ratio f_bjt@^libbjt.gex* > * if Conditional function f_bjt@^libbjt.gex* > * maxv Maximum value f_bjt@^libbjt.gex* > * minv Minimum value f_bjt@^libbjt.gex* > * which Label gridpoints f_bjt@^libbjt.gex* > * ftest F-test f_bjt@^libbjt.gex* > * ttest T-test f_bjt@^libbjt.gex* > * tfit Point linear regression f_bjt@^libbjt.gex* > * fit Global linear regression f_bjt@^libbjt.gex* > * tcorr2 Time correlation f_bjt@^libbjt.gex* > * tregr2 Point linear regression f_bjt@^libbjt.gex* > * tmave2 Time averaging w/masking f_bjt@^libbjt.gex* > * madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex* > * madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex* > * madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex* > * muadv Zonal advection f_bjt@^libbjt.gex* > * mvadv Meridional advection f_bjt@^libbjt.gex* > * mwadv Vertical advection f_bjt@^libbjt.gex* > * satvap Saturated vapor pressure f_bjt@^libbjt.gex* > * dew Dew point temperature f_bjt@^libbjt.gex* > * lw Thermal infrared fluxes f_bjt@^libbjt.gex* > * lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex* > * pinterp Pressure interpolation f_bjt@^libbjt.gex* > * zinterp Height interpolation f_bjt@^libbjt.gex* > * line Draws a line f_bjt@^libbjt.gex* > * vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex* > * --------- Psi/Chi Functions -------- @ * > * fish Poisson solver f_fish@^fish.gex* > * fish_psi Compute streamfunction f_psichi@^fish.gex* > * fish_chi Compute velocity potential f_psichi@^fish.gex* > * fish_vor Compute vorticity f_psichi@^fish.gex* > * fish_div Compute divergence f_psichi@^fish.gex* > * -- Saakeskus Function Collection -- @ * > * dewpt Dew-point temperature f_gsudf@^gsudf.gex* > * ept Equivalent potential temperature f_gsudf@^gsudf.gex* > * epi Potential Instability f_gsudf@^gsudf.gex* > * plcl Pressure at LCL f_gsudf@^gsudf.gex* > * shear Wind Shear f_gsudf@^gsudf.gex* > * srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex* > * srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex* > * tlcl Temperature at LCL f_gsudf@^gsudf.gex* > * tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex* > * ttindex Total Totals Index f_gsudf@^gsudf.gex* > * wchill Wind Chill Index (New) f_gsudf@^gsudf.gex* > * ---------- Simple Examples --------- @ * > * hello Hello, World! sample function f_hello@^libhello.gex* > * ---- Interprocess Communication ---- @ * > * ipc_save Save expression to stream f_Save@^libipc.gex* > * ipc_load Load variable from file f_Load@^libipc.gex* > * ----- Mike Fiorino's Extensions ---- @ * > * smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex* > * uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex* > * re2 General interpolator (regrid2) f_re2@^libmf.gex* > * esmrf Saturation vapor pressure (old MRF) f_esmrf@^libmf.gex* > * linreg Linear regression: mx + b f_linreg@^libmf.gex* > * -------- Regridding Functions ------ @ * > * re General interpolator ffre@^re.gex* > * re_ General interpolator (verbose) ffre_dbg@^re.gex* > * regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex* > * geos Interpolation to GEOS-5 Grids f_gsudf@^gsudf.gex* > * reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex* > * -------- Spherical Harmonics ------- @ * > * sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex* > * sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex* > * ---------- ----------------------------------- > --------------------------* > * > * > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091006/89b0f9fd/attachment.html From dasilva at ALUM.MIT.EDU Tue Oct 6 10:15:05 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 6 Oct 2009 10:15:05 -0400 Subject: Win32 Superpack v2.0.a7.oga.1 Released! In-Reply-To: <77fcd6b20909291850l59b37535p9b4494f4ca756c9@mail.gmail.com> Message-ID: All, I just refreshed the binaries for the Win32 Superpack OpenGrADS Bundle, now at version *2.0.a7.oga.2*. This patch fix an important bug that caused "printim" to crash at odd places. It is strongly recommended that you replace the previous v2.0.a7.oga.1 installation. This bug fix affects all versions: Linux, Mac OS X, FreeBSD and Windows. https://sourceforge.net/projects/opengrads/files/grads2-windows/2.0.a7.oga.2/ Notice that this bug fix only affect the OpenGrADS release; no such bug exists in the COLA releases. Arlindo On Tue, Sep 29, 2009 at 9:50 PM, Arlindo da Silva wrote: > Dear Windows Users, > We have upload to sourceforge version 2.0.a7.oga.1 the *Win32 ** > Superpack*: > > https://sourceforge.net/projects/opengrads/files/grads2-windows/ > > (See my previous posting announcing a similar release for Linux to learn > about what is new in this release --- the Windows build has all the > features of the Linux version). > > If you have the necessary privileges to install software on your computer I > recoomend the Windows installer (*-win32_superpack.exe) which will > optionally set your path and create an entry in your [Start] menu, placing > links on your Desktop. The [Start] menu entry now also includes links to > the bundled HTML documentation, with Tutorial, User's Guide and Command > Index (from COLA), and "manual pages" for the OpenGrADS extensions. Try out > the MERRA and NOMADS Browsers for a (live) graphical user interface to the > MERRA reanalysis and NOAA forecast data (GFS, NAM, RUC, Wave) through > OpenDAP (a network connection is required). > > As before, we are also including a *-win32_superpack.zip package for > those users who do not have the admin privileges to install software on > their Windows boxes. The contents are exactly the same as the > *-win32_pack.exe package and are meant to be relocatable: copy the > OpenGrADS directory to a USB mem stick and take it on the road with you. The > VBscript wrappers at the top remain experimental; I'd appreciate any > feedback from people who actually know VBscripting. > > For those experienced cygwin users preferring a light weight > distribution (and willing to set the necessary environment variables), we > are again including tarballs with the binaries and extensions. > > This version has been verified to work on *Windows 7 RC* (Build 7100). > > Please any me know of any issues. > > Enjoy! > > Arlindo > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091006/d8675318/attachment.html From cassar at PILOTBOOK.EU Tue Oct 6 11:08:31 2009 From: cassar at PILOTBOOK.EU (Pierre Cassar) Date: Tue, 6 Oct 2009 17:08:31 +0200 Subject: OpenGrADS Bundle v2.0.a7.oga.1 Released! Message-ID: Thank you Arlindo for the new FreeBSD 7 build. Do you plan to build the 64 bit version too? Thank you very much. Pierre Cassar From mhsanabary9 at YAHOO.COM Tue Oct 6 12:34:55 2009 From: mhsanabary9 at YAHOO.COM (MMME) Date: Tue, 6 Oct 2009 09:34:55 -0700 Subject: Descriptor file Message-ID: Hi All I have a problem in opening NETCDF file from GFDL. the NETCDF file is located in the following link http://nomads.gfdl.noaa.gov:8080/DataPortal/getIPCCcell.jsp?coupled=CM2.0&table_id=atmos_land_monthly_A1a&exper_id=SRESA1B&realiz=1&interp=null I have also attached the decriptor file that I have created to use the open or xdfopen command Please help me solve this problrem -------------- next part -------------- A non-text attachment was scrubbed... Name: tii.ctl Type: application/octet-stream Size: 195 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091006/0caf0520/attachment.obj From Charles.Seman at NOAA.GOV Tue Oct 6 13:05:46 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 6 Oct 2009 13:05:46 -0400 Subject: grads script In-Reply-To: Message-ID: Ravi, Please find attached a GrADS script pptn_pentad.gs (and called "pause" script function) which defines and plots 5-month precipitation averages two ways... Please let me know if you have any questions about them. Hope it helps, Chuck Ravi Shukla wrote: > > Dear Sir/Madam > > How to calculate climatology of 5-day averaged data (pentad) in grads > script ? > > Thanking you with regards > > Ravi Shukla > > > -- > Ravi Prakash Shukla > Research Scholar > K.B.C.A.O.S.,IIDS. > University of Allahabad > Allahabad, 211002 > Cell Phone No: - +91- 9453770122 -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: pptn_pentad.gs Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091006/85015989/attachment.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: pause.gsf Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091006/85015989/attachment-0001.pl From ykyei at YAHOO.COM Tue Oct 6 13:53:34 2009 From: ykyei at YAHOO.COM (Yaw Kyei) Date: Tue, 6 Oct 2009 10:53:34 -0700 Subject: Help with set vpage to have comparable scales In-Reply-To: Message-ID: Hi, I want to run cbar to have comparable scale for all the 4 plots(SST plots for different times) per page. Thanks, Yaw From furue at HAWAII.EDU Tue Oct 6 20:34:46 2009 From: furue at HAWAII.EDU (Ryo Furue) Date: Tue, 6 Oct 2009 14:34:46 -1000 Subject: how to make a subset file of netCDF file ? In-Reply-To: Message-ID: Hi Ilukpitiye | I want to make a subset file (in netCDF format) of a netCDF file. | can I use sdfwrite ? please help me. thank in advance You might want to use NCO: http://nco.sourceforge.net/ This is not a GrADS solution, though. Regards, Ryo From rupak.rajbhandari at GMAIL.COM Tue Oct 6 23:16:24 2009 From: rupak.rajbhandari at GMAIL.COM (Rupak Rajbhandari) Date: Wed, 7 Oct 2009 09:01:24 +0545 Subject: Help with set vpage to have comparable scales In-Reply-To: <971222.86923.qm@web30802.mail.mud.yahoo.com> Message-ID: Hi, You need to define first the levels and colors and then only use the cbar. SET CLEVS ... SET CCOLS ... May be the attached script which plots four maps will be helpful. Rupak Rajbhandari Department of Meteorology Trichandra Campus, Tribhuvan University Kathmandu, NEPAL On Tue, Oct 6, 2009 at 11:38 PM, Yaw Kyei wrote: > Hi, > I want to run cbar to have comparable scale for all the 4 plots(SST plots > for different times) per page. > > > Thanks, > > Yaw > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/623b9e63/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: matrix_plot.gs Type: application/octet-stream Size: 1795 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091007/623b9e63/attachment.obj From kwmski7 at SNU.AC.KR Wed Oct 7 02:32:39 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Wed, 7 Oct 2009 15:32:39 +0900 Subject: UNSUBSCRIBE Message-ID: Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/6921e4fe/attachment.html From karakavalasa at YAHOO.COM Wed Oct 7 03:50:41 2009 From: karakavalasa at YAHOO.COM (Rama Krishna Patnaik) Date: Wed, 7 Oct 2009 00:50:41 -0700 Subject: how to merge daily data (30 days NC files) to get monthly data (1 file NC file) Message-ID: Dear all, ? I request you to kindly provide the grads script file to get montly data (Netcdf format) from daily data files. regards, Patnaik Dr. KVK Rama Krishna Patnaik Dept. Of Meteorology ?and Oceanography Andhra University Visakhapatnam Mobile: 9966497627 Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/97e874e1/attachment.html From morricej at MSU.EDU Wed Oct 7 08:07:27 2009 From: morricej at MSU.EDU (Jarrod Morrice) Date: Wed, 7 Oct 2009 08:07:27 -0400 Subject: Unsubscribe Message-ID: Could you please unsbuscribe me. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/f52b5cd7/attachment.html From filippo.angotzi at IAMC.CNR.IT Wed Oct 7 08:31:01 2009 From: filippo.angotzi at IAMC.CNR.IT (Filippo Angotzi) Date: Wed, 7 Oct 2009 14:31:01 +0200 Subject: UNSUBSCRIBE Message-ID: Could you please unsbuscribe me. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/996fdd9a/attachment.html From mhsanabary9 at YAHOO.COM Wed Oct 7 09:40:15 2009 From: mhsanabary9 at YAHOO.COM (MMME) Date: Wed, 7 Oct 2009 06:40:15 -0700 Subject: Need help with Grads Message-ID: > Hi All ? ? ? I have a problem in opening NETCDF file from GFDL. the NETCDF file is located in the following link http://nomads.gfdl.noaa.gov:8080/DataPortal/getIPCCcell.jsp?coupled=CM2.0&table_id=atmos_land_monthly_A1a&exper_id=SRESA1B&realiz=1&interp=null I have also attached the decriptor file that I have created to use the open or xdfopen command Please help me solve this problrem > > ? ? ? -------------- next part -------------- A non-text attachment was scrubbed... Name: tii.ctl Type: application/octet-stream Size: 195 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091007/f54bfa33/attachment.obj From Brian.Planz at WILKENSWEATHER.COM Wed Oct 7 10:29:17 2009 From: Brian.Planz at WILKENSWEATHER.COM (Planz, Brian) Date: Wed, 7 Oct 2009 14:29:17 +0000 Subject: UNSUBSCRIBE Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/0ffa17bb/attachment.html From elisasiq at USP.BR Wed Oct 7 11:00:21 2009 From: elisasiq at USP.BR (MARIA ELISA SIQUEIRA SILVA) Date: Wed, 7 Oct 2009 12:00:21 -0300 Subject: binary to nc Message-ID: Hello, does anybody know how to convert binary data in netcdf? Is there a program? thanks Elisa -- Maria Elisa Siqueira Silva Laborat?rio de Climatologia e Biogeografia - LCB Depto Geografia - FFLCH - USP Av. Prof. Lineu Prestes, 338 - Cidade Universit?ria S?o Paulo - SP 05508-900 (11) 3091-3769 From jgmsantos at GMAIL.COM Wed Oct 7 12:02:24 2009 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Wed, 7 Oct 2009 13:02:24 -0300 Subject: binary to nc In-Reply-To: <20091007120021.zcbnz65d8osc8ksc@webmail.usp.br> Message-ID: Elisa tem um script chamado lats4d.gs, ele faz o que tu desejas. 2009/10/7 MARIA ELISA SIQUEIRA SILVA > Hello, > > does anybody know how to convert binary data in netcdf? > Is there a program? > > thanks > Elisa > > > -- > Maria Elisa Siqueira Silva > Laborat?rio de Climatologia e Biogeografia - LCB > Depto Geografia - FFLCH - USP > Av. Prof. Lineu Prestes, 338 - Cidade Universit?ria > S?o Paulo - SP > 05508-900 > (11) 3091-3769 > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE Rodovia Presidente Dutra, km 39 - CEP 12630-000 Cachoeira Paulista, SP, Brasil Telefone(CP): +55 12 3185 8529 / Celular: +55 12 91678770 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://jgmsantos.googlepages.com/index.html: ----------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/40318e78/attachment.html From sreeds82 at YAHOO.COM Wed Oct 7 12:09:47 2009 From: sreeds82 at YAHOO.COM (Srinivas Desamsetti) Date: Wed, 7 Oct 2009 09:09:47 -0700 Subject: How to Create Station Data from Grid Data In-Reply-To: Message-ID: Dear Sir/Madam, I have a gridded data and I can plot the variables. I want to get the Data at one Particular Latitude and Longitude (ie) for a station. When I give 'set lat 12.42' it is taking at 12N as I have 1 degree data. So, I request you to suggest me to get an interpolated value to a particular lat/long (Station) from the Gridded data. Thanking you Srinivas Desamsetti Srinivas Research Scholar Department of Meteorology and Oceanography Andhra University Visakhapatnam - 530 003 91 9491686740 (M) sreeds82 at yahoo.com sreeds82 at rediffmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/eac1bf3d/attachment.html From jimbo32886 at GMAIL.COM Wed Oct 7 12:40:18 2009 From: jimbo32886 at GMAIL.COM (James Reagan) Date: Wed, 7 Oct 2009 12:40:18 -0400 Subject: How to Create Station Data from Grid Data In-Reply-To: <122187.21754.qm@web36407.mail.mud.yahoo.com> Message-ID: Hello, I believe what you can use is the gr2stn() function built into Grads (more info http://www.iges.org/GRADS/GADOC/gradfuncgr2stn.html). Essentially you'll type into the Grads command line: gr2stn(grid variable, lon, lat) and it will output a station value for you. -Jim On Wed, Oct 7, 2009 at 12:09 PM, Srinivas Desamsetti wrote: > Dear Sir/Madam, > > I have a gridded data and I can plot the variables. > I want to get the Data at one Particular Latitude and Longitude (ie) for a > station. > When I give 'set lat 12.42' it is taking at 12N as I have 1 degree data. > > So, I request you to suggest me to get an interpolated value to a > particular > lat/long (Station) from the Gridded data. > > Thanking you > Srinivas > > Desamsetti Srinivas > Research Scholar > Department of Meteorology and Oceanography > Andhra University > Visakhapatnam - 530 003 > 91 9491686740 (M) > sreeds82 at yahoo.com > sreeds82 at rediffmail.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091007/c6cab0d2/attachment.html From Fan.Fang at NASA.GOV Wed Oct 7 13:04:42 2009 From: Fan.Fang at NASA.GOV (Fan Fang) Date: Wed, 7 Oct 2009 13:04:42 -0400 Subject: binary to nc In-Reply-To: <20091007120021.zcbnz65d8osc8ksc@webmail.usp.br> Message-ID: If you can let grads open the binary data with a .ctl file you should be able to use a grads-based tool "lats4d" to convert it to netcdf. See http://opengrads.org/wiki/index.php?title=Lats4D about the tool. I had used grads version 1.10r2 for a similar task. -Fan MARIA ELISA SIQUEIRA SILVA wrote: > Hello, > > does anybody know how to convert binary data in netcdf? > Is there a program? > > thanks > Elisa > > > -- > Maria Elisa Siqueira Silva > Laborat?rio de Climatologia e Biogeografia - LCB > Depto Geografia - FFLCH - USP > Av. Prof. Lineu Prestes, 338 - Cidade Universit?ria > S?o Paulo - SP > 05508-900 > (11) 3091-3769 > From nieves at LTP.UPR.CLU.EDU Wed Oct 7 15:42:31 2009 From: nieves at LTP.UPR.CLU.EDU (Jose F Nieves) Date: Wed, 7 Oct 2009 15:42:31 -0400 Subject: freebsd-amd64 Message-ID: Hi I have uploaded the freebsd-7.2-amd64 bundle grads-2.0.a7.oga.2-bundle-amd64-unknown-freebsd7.2.tar.gz to the sourceforge repository. Feel free to write if there are any problems. Regards Jose From fdaryabor at GOOGLEMAIL.COM Wed Oct 7 23:38:49 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Thu, 8 Oct 2009 11:38:49 +0800 Subject: binary to nc In-Reply-To: <20091007120021.zcbnz65d8osc8ksc@webmail.usp.br> Message-ID: Hi Yes My friend of course. First you must make sure your Grads is version 2 above, because "sdfwrite" and "ncks (is under linux)" commands are under version 2 above. For "ncks" make sure working , anyway you can install NCO (Netcdf Operator) over your machine. Then for convert binary to netcdf, first you must write a ".ctl" file as follow: dset ^EMP.dat title evaporation mines prescripton undef -9999 xdef 360 linear 360 1 ydef 180 linear 180 1 zdef 1 levels 0 tdef 12 linear 05z16jan1960 1mo vars 1 EMP 0 1 emp endvars AND Script for convert as follow: 'reinit' 'open /home/.../binary2netcdf.ctl' 'set lon 0 360' 'set lat 180 359' 'set lev 0 0' 'set t 1 last' 'set e 1 last' 'define emp=var' 'set sdfwrite /home/.../data.nc' 'sdfwrite emp' Please let me know. Best Regards F.Daryabor F.Daryabor Center for Tropical and Climate Change System Faculty of Science and Technology National University of Malaysia Selangor Bangi, 43600 Malaysia 2009/10/7 MARIA ELISA SIQUEIRA SILVA > Hello, > > does anybody know how to convert binary data in netcdf? > Is there a program? > > thanks > Elisa > > > -- > Maria Elisa Siqueira Silva > Laborat?rio de Climatologia e Biogeografia - LCB > Depto Geografia - FFLCH - USP > Av. Prof. Lineu Prestes, 338 - Cidade Universit?ria > S?o Paulo - SP > 05508-900 > (11) 3091-3769 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091008/232d4be5/attachment.html From dhaval.prajapati at ICCSIR.ORG Thu Oct 8 00:51:17 2009 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Thu, 8 Oct 2009 04:51:17 +0000 Subject: Binary to Ascii Message-ID: Dear All, Does any one know how to write binary data into Ascii formate. 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/20091008/e229b326/attachment.html From eromeroo at INM.ES Thu Oct 8 06:16:06 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Thu, 8 Oct 2009 12:16:06 +0200 Subject: panels.gsf Message-ID: Hello, GrADS does not understand the function panels.gsf. I have the file for that function in the same folder I am using. How do I load it into GrADS, or what do I have to do to use it? If I try to use the panes_demo.gs script it does not work, how do I give the script the nrow and ncols arguments? Thanks! From dipakmath at GMAIL.COM Thu Oct 8 08:43:07 2009 From: dipakmath at GMAIL.COM (dipak sahu) Date: Thu, 8 Oct 2009 18:13:07 +0530 Subject: error with opening the .ctl file in grads Message-ID: Dear friends When i'm opening one of my *.ctl file it is giving some error like below, i didin't getting what's the problem with this file. The *.dat file size is arnd 3GB. *ga>>open Kaiga-oneway-6nested-d06.ctl Scanning description file: Kaiga-oneway-6nested-d06.ctl Open Error: Can't open binary data file File name = Kaiga-oneway-6nested-d06.dat* * * with regrads Dipak sahu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091008/e915d5d2/attachment.html From sreeds82 at YAHOO.COM Thu Oct 8 15:23:05 2009 From: sreeds82 at YAHOO.COM (Srinivas Desamsetti) Date: Thu, 8 Oct 2009 12:23:05 -0700 Subject: How to Create Station Data from Grid Data In-Reply-To: Message-ID: Dear Sir, Thank you very much for your reply. But still I cannot get clear idea how to use gr2stn function in GrADS. I fixed latitude, longitude and varied the time dimension. and I gave? a command d gr2stn(u,83.14,17.42) It gives the error like "Invalid Stn Data Dimension Environment". I request you to kindly suggest me to solve the problem. I will be so thankful for your help. Thanking you Best regards Srinivas Desamsetti Srinivas Research Scholar Department of Meteorology and Oceanography Andhra University Visakhapatnam - 530 003 91 9491686740 (M) sreeds82 at yahoo.com sreeds82 at rediffmail.com --- On Wed, 10/7/09, James Reagan wrote: From: James Reagan Subject: Re: How to Create Station Data from Grid Data To: GRADSUSR at LIST.CINECA.IT Date: Wednesday, October 7, 2009, 10:10 PM Hello, ?? I believe what you can use is the gr2stn() function built into Grads (more info http://www.iges.org/GRADS/GADOC/gradfuncgr2stn.html).? Essentially you'll type into the Grads command line: gr2stn(grid variable, lon, lat) and it will output a station value for you. -Jim On Wed, Oct 7, 2009 at 12:09 PM, Srinivas Desamsetti wrote: Dear Sir/Madam, I have a gridded data and I can plot the variables. I want to get the Data at one Particular Latitude and Longitude (ie) for a station. When I give 'set lat 12.42' it is taking at 12N as I have 1 degree data. So, I request you to suggest me to get an interpolated value to a particular lat/long (Station) from the Gridded data. Thanking you Srinivas Desamsetti Srinivas Research Scholar Department of Meteorology and Oceanography Andhra University Visakhapatnam - 530 003 91 9491686740 (M) sreeds82 at yahoo.com sreeds82 at rediffmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091008/73153d68/attachment.html From cassar at PILOTBOOK.EU Fri Oct 9 03:25:12 2009 From: cassar at PILOTBOOK.EU (Pierre Cassar) Date: Fri, 9 Oct 2009 09:25:12 +0200 Subject: freebsd-amd64 Message-ID: Jose F Nieves wrote: > I have uploaded the freebsd-7.2-amd64 bundle > grads-2.0.a7.oga.2-bundle-amd64-unknown-freebsd7.2.tar.gz > to the sourceforge repository. > > Feel free to write if there are any problems. Thank you very much, Jose. The new Freebsd 7 x64 build is fine for me. Best regards. Pierre Cassar From fdaryabor at GOOGLEMAIL.COM Fri Oct 9 05:17:22 2009 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Fri, 9 Oct 2009 17:17:22 +0800 Subject: error with opening the .ctl file in grads In-Reply-To: <8562142e0910080543k30d00d10ya925453e5166d56c@mail.gmail.com> Message-ID: Hi Make sure you open "./gradsc" and please check your .ctl file and the data path. Best Regards F.Daryabor On Thu, Oct 8, 2009 at 8:43 PM, dipak sahu wrote: > Dear friends > When i'm opening one of my *.ctl file it is giving some error like > below, i didin't getting what's the problem with this file. The *.dat file > size is arnd 3GB. > > *ga>>open Kaiga-oneway-6nested-d06.ctl > Scanning description file: Kaiga-oneway-6nested-d06.ctl > Open Error: Can't open binary data file > File name = Kaiga-oneway-6nested-d06.dat* > > * * > > > with regrads > Dipak sahu > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091009/6a30c166/attachment.html From meteo at SPORT123.IT Fri Oct 9 05:31:58 2009 From: meteo at SPORT123.IT (Valerio Guerra) Date: Fri, 9 Oct 2009 11:31:58 +0200 Subject: freebsd-amd64 Message-ID: Jose, the latest x64 Freebsd 7 build is ok for me. Thank you very much. Valerio Guerra From dipakmath at GMAIL.COM Fri Oct 9 05:35:43 2009 From: dipakmath at GMAIL.COM (dipak sahu) Date: Fri, 9 Oct 2009 15:05:43 +0530 Subject: error with opening the .ctl file in grads In-Reply-To: <9b8832d50910090217g4e43b00dj85d8dacc1507c7ba@mail.gmail.com> Message-ID: hii daryabor yahh i'm sure i opened thru >>gradsc and the .ctl and data path was ok. Now it is working fine after reducing the no. of variables from 20 to 10, also the size reduces from 3GB to 1GB. I think it was the problem of such a large file size or it depends on mechine memory. thanks On Fri, Oct 9, 2009 at 2:47 PM, Farshid Daryabor wrote: > Hi > Make sure you open "./gradsc" and please check your .ctl file and the data > path. > Best Regards > F.Daryabor > > On Thu, Oct 8, 2009 at 8:43 PM, dipak sahu wrote: > >> Dear friends >> When i'm opening one of my *.ctl file it is giving some error like >> below, i didin't getting what's the problem with this file. The *.dat file >> size is arnd 3GB. >> >> *ga>>open Kaiga-oneway-6nested-d06.ctl >> Scanning description file: Kaiga-oneway-6nested-d06.ctl >> Open Error: Can't open binary data file >> File name = Kaiga-oneway-6nested-d06.dat* >> >> * * >> >> >> with regrads >> Dipak sahu >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091009/06a2d361/attachment.html From meet100 at YAHOO.COM Fri Oct 9 05:39:08 2009 From: meet100 at YAHOO.COM (NASER SARHAN) Date: Fri, 9 Oct 2009 02:39:08 -0700 Subject: Unsubscribe Message-ID: Could you please unsbuscribe me. ?Thanks. Kind Regards and best wishes Naser Sarhan Royal Saudi Air force King Faisal Air Academy Academic Wing: Aeroscince Unit -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091009/feaffef7/attachment.html From mhsanabary9 at YAHOO.COM Fri Oct 9 10:54:49 2009 From: mhsanabary9 at YAHOO.COM (MMME) Date: Fri, 9 Oct 2009 07:54:49 -0700 Subject: Descriptor file Message-ID: Hi I am a new GRADS user. I want to write a Descriptor file to open a netcdf file from GFDL GCM model. Please it is very important. I stucked for a week. Best regards From jma at COLA.IGES.ORG Fri Oct 9 13:09:53 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 9 Oct 2009 13:09:53 -0400 Subject: Descriptor file In-Reply-To: <523170.90649.qm@web112516.mail.gq1.yahoo.com> Message-ID: On Oct 6, 2009, at 12:34 PM, MMME wrote: > Hi All > I have a problem in opening NETCDF file from GFDL. the NETCDF > file is located in the following link > > http://nomads.gfdl.noaa.gov:8080/DataPortal/getIPCCcell.jsp?coupled=CM2.0&table_id=atmos_land_monthly_A1a&exper_id=SRESA1B&realiz=1&interp=null Don't force the list members to download a file in order to help you. Please include in your post the output from "ncdump -c" then we will know what's in it without having to download anything. This link points to a table full of different files, there's no way to know which one you want to read. > I have also attached the decriptor file that I have created to use > the open or xdfopen command The descriptor file was helpful -- it allowed me to figure out which file to download, except the file name in your descriptor (pr_A1.200101-220012.nc) does not exist on the server. I did find a file called pr_A1.200101-210012.nc and will assume your descriptor has a typo in it. The easiest way to read this IPCC file is to use xdfopen. All you need to do is properly describe the time axis, the rest of the metadata in the file GrADS can interpret without any help. Your descriptor file for xdfopen should look like this: dset ^pr_A1.200101-210012.nc tdef time 1200 linear 1jan2001 1mo > > Please help me solve this problrem Please read the documentation on creating descriptor files for self- describing files. http://iges.org/grads/gadoc/SDFdescriptorfile.html --Jennifer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091009/522ddf24/attachment.html From jma at COLA.IGES.ORG Fri Oct 9 13:16:16 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Fri, 9 Oct 2009 13:16:16 -0400 Subject: how to make a subset file of netCDF file ? In-Reply-To: Message-ID: If you are using GrADS version 2.0.a3 or higher, you can use sdfwrite to create a netcdf file. It's very straightforward: set the dimension environment, define your variable, use 'set sdfwrite' to set the output file name, then 'sdfwrite '. Please read the documentation: http://iges.org/grads/gadoc/gradcomdsdfwrite.html. If you want to write out more than one variable, you have to write out separate files with GrADS, then concatenate them together using the NetCDF Operator 'ncks', which is a separate utility not distributed with GrADS. If you are using GrADS 1.9 or earlier, then use lats4d.gs to create netcdf output. --Jennifer On Oct 5, 2009, at 2:08 AM, Ilukpitiya Mudi S P Jayawardena wrote: > Hi all > > I want to make a subset file (in netCDF format) of a netCDF file . > can I use sdfwrite ? please help me. thank in advance > > Ilukpitiye -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091009/f74faaff/attachment.html From olivia851224 at GMAIL.COM Sat Oct 10 12:42:36 2009 From: olivia851224 at GMAIL.COM (loli lindalva) Date: Sat, 10 Oct 2009 11:42:36 -0500 Subject: UNSUBSCRIBE In-Reply-To: <089FAB4B7F87495796B9E84314789895@KimWonMooPC> Message-ID: i need unsubscribe > Thanks! > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091010/8127faaa/attachment.html From eliavs at GMAIL.COM Mon Oct 12 09:24:46 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Mon, 12 Oct 2009 15:24:46 +0200 Subject: downloading from ftp Message-ID: Hi does anybody know if grads can download from noaa ftp monthly data and how i can script it? thank you eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091012/e00cee0a/attachment.html From arlindo.dasilva at GMAIL.COM Mon Oct 12 09:52:58 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 12 Oct 2009 09:52:58 -0400 Subject: downloading from ftp In-Reply-To: <128fb9ed0910120624k7d79ae67i194e522ffbbf88d9@mail.gmail.com> Message-ID: On Mon, Oct 12, 2009 at 9:24 AM, eliav schmulewitz wrote: > Hi > does anybody know if grads can download from noaa ftp monthly data and how > i can script it? > GrADS does not do any ftp, you will need to transfer the files yourself, ahead of time. On many operating system you can setup a FTP file system in while you associate a local folder with a ftp address (Windows does by default, on Mac OS X install MacFUSE, on Linux install FUSE.) A FTP file system is not always to most efficient, but can be very convenient. Which NASA data in particular are you referring to? Some NASA data are also available through opendap, making ftp transfer not necessary. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091012/fbde7b4c/attachment.html From eliavs at GMAIL.COM Mon Oct 12 13:14:43 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Mon, 12 Oct 2009 19:14:43 +0200 Subject: downloading from ftp In-Reply-To: <77fcd6b20910120652y24d3882ere5390751d3790f41@mail.gmail.com> Message-ID: Hi thank you what i want is slp and geopotential height at 500 mb eliav On Mon, Oct 12, 2009 at 3:52 PM, Arlindo da Silva wrote: > On Mon, Oct 12, 2009 at 9:24 AM, eliav schmulewitz wrote: > >> Hi >> does anybody know if grads can download from noaa ftp monthly data and how >> i can script it? >> > > GrADS does not do any ftp, you will need to transfer the files yourself, > ahead of time. On many operating system you can setup a FTP file system in > while you associate a local folder with a ftp address (Windows does by > default, on Mac OS X install MacFUSE, on Linux install FUSE.) A FTP file > system is not always to most efficient, but can be very convenient. > > Which NASA data in particular are you referring to? Some NASA data are also > available through opendap, making ftp transfer not necessary. > > Arlindo > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091012/152d8e50/attachment.html From masters.steve at ENSCO.COM Mon Oct 12 13:20:07 2009 From: masters.steve at ENSCO.COM (Masters.Steve) Date: Mon, 12 Oct 2009 13:20:07 -0400 Subject: Can bufrscan read NCEP's prepbufr files? Message-ID: I am trying to have bufrscan read the prepbufr file created by NCEP. When I sent the file to bufrscan, I get the output listed below. I've tried this on Solaris using grads v1.9 and on Linux using version 2.0. I've also tried blocking and unblocking the bufr file using cwordsh. Is there any special processing I need to do to read these files with bufrscan? Actually, I'm looking for ANY way to read and dump the prepbufr data on our 64-bit linux systems. My attempts at building the bufr libraries and example programs from NCEP (and others) have not been successful. Steve Masters masters.steve at ensco.com ENSCO, Inc. Melbourne, FL USA ------------------------------------------------ bufrscan --header ~/grads/opengrads/Resources/SupportData/tables test.prepbufr | more >>> processing message 0 >>> start of message 1 03 000 (replicate next 3, not including replication count) 0 31 001 (replication count) 0 00 001 (numeric) Table A entry 0 00 002 (numeric) Table A data category description line 1 0 00 003 (numeric) Table A data category description line 2 1 01 000 (replicate next 1, not including replication count) 0 31 001 (replication count) 3 00 004 (sequence) 3 00 003 (sequence) 0 00 010 (numeric) F descriptor to be added or defined 0 00 011 (numeric) X descriptor to be added or defined 0 00 012 (numeric) Y descriptor to be added or defined 0 00 013 (numeric) Element name line 1 0 00 014 (numeric) Element name line 2 0 00 015 (numeric) Units name 0 00 016 (numeric) Units scale sign 0 00 017 (numeric) Units scale 0 00 018 (numeric) Units reference sign 0 00 019 (numeric) Units reference value 0 00 020 (numeric) Element data width 1 05 000 (replicate next 5, not including replication count) 0 31 001 (replication count) 3 00 003 (sequence) 0 00 010 (numeric) F descriptor to be added or defined 0 00 011 (numeric) X descriptor to be added or defined 0 00 012 (numeric) Y descriptor to be added or defined 2 05 064 (operator) 1 01 000 (replicate next 1, not including replication count) 0 31 001 (replication count) 0 00 030 (numeric) Descriptor defining sequence <<< end of messagewarning: can't read 256-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 ... warning: can't read 192-bit data value; max is 32 warning: can't read 80-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 192-bit data value; max is 32 warning: can't read 80-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 warning: can't read 192-bit data value; max is 32 warning: can't read 80-bit data value; max is 32 warning: can't read 256-bit data value; max is 32 ...and so on until the program stops... The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited. The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws. From dasilva at ALUM.MIT.EDU Mon Oct 12 16:25:12 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Mon, 12 Oct 2009 16:25:12 -0400 Subject: starting pygrads In-Reply-To: <8d9ec3dd0910120804w5f0975c3nf4c06cac03c2af25@mail.gmail.com> Message-ID: Dear Pedro, Make sure you have Win32 GrADS installed and on your path. Open a regular cmd.exe windows (DOS window) and type C:\> grads If it does not start then set your path accordingly. See the "Getting Started with Win32 GrADS" document: http://opengrads.org/wiki/index.php?title=Installing_GrADS_v2.0_on_Microsoft_Windows (Please send questions like this to the gradsusr mailing list.) Arlindo On Mon, Oct 12, 2009 at 11:04 AM, Daniel da Silva wrote: > > > ---------- Forwarded message ---------- > From: Pedro Tildes Gomes > Date: Mon, Oct 12, 2009 at 5:59 AM > Subject: starting pygrads > To: ddasilva at umd.edu > > > Dear Daniel: > > Why can I start pygrads. I?m sending you the output window when I start the > program. It seems that the program freezes at this point. Can you help me? > > Thanks > > Pedro Tildes Gomes > > Centro de Estudos Geogr?ficos > > University of LIsbon > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091012/6d5b3399/attachment.html From arlindo.dasilva at GMAIL.COM Mon Oct 12 16:36:40 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 12 Oct 2009 16:36:40 -0400 Subject: downloading from ftp In-Reply-To: <128fb9ed0910121014t4c5037c3sf48be7ba4c012907@mail.gmail.com> Message-ID: On Mon, Oct 12, 2009 at 1:14 PM, eliav schmulewitz wrote: > Hi > thank you > what i want is slp and geopotential height at 500 mb > These are available with NASA's MERRA reanalysis. There several recipes about MERRA in the cookbooks: http://cookbooks.opengrads.org/index.php?title=Table_of_Contents#NASA.2FGSFC_MERRA Arlindo > eliav > > > > On Mon, Oct 12, 2009 at 3:52 PM, Arlindo da Silva < > arlindo.dasilva at gmail.com> wrote: > >> On Mon, Oct 12, 2009 at 9:24 AM, eliav schmulewitz wrote: >> >>> Hi >>> does anybody know if grads can download from noaa ftp monthly data and >>> how i can script it? >>> >> >> GrADS does not do any ftp, you will need to transfer the files yourself, >> ahead of time. On many operating system you can setup a FTP file system in >> while you associate a local folder with a ftp address (Windows does by >> default, on Mac OS X install MacFUSE, on Linux install FUSE.) A FTP file >> system is not always to most efficient, but can be very convenient. >> >> Which NASA data in particular are you referring to? Some NASA data are >> also available through opendap, making ftp transfer not necessary. >> >> Arlindo >> >> -- >> Arlindo da Silva >> dasilva at alum.mit.edu >> > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091012/aec68a51/attachment.html From arlindo.dasilva at GMAIL.COM Mon Oct 12 16:39:11 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 12 Oct 2009 16:39:11 -0400 Subject: downloading from ftp In-Reply-To: <77fcd6b20910121336m2f1f6da9vb24dbc0231fa7c4e@mail.gmail.com> Message-ID: Ellav, One more thing. If you have the OpenGrADS Bundle distribution, just type "merra" for a GUI for dealing with MERRA data over opendap. This is described in a recipe as well. Arlindo On Mon, Oct 12, 2009 at 4:36 PM, Arlindo da Silva wrote: > > > On Mon, Oct 12, 2009 at 1:14 PM, eliav schmulewitz wrote: > >> Hi >> thank you >> what i want is slp and geopotential height at 500 mb >> > > These are available with NASA's MERRA reanalysis. There several recipes > about MERRA in the cookbooks: > > > http://cookbooks.opengrads.org/index.php?title=Table_of_Contents#NASA.2FGSFC_MERRA > > Arlindo > > > >> eliav >> >> >> >> On Mon, Oct 12, 2009 at 3:52 PM, Arlindo da Silva < >> arlindo.dasilva at gmail.com> wrote: >> >>> On Mon, Oct 12, 2009 at 9:24 AM, eliav schmulewitz wrote: >>> >>>> Hi >>>> does anybody know if grads can download from noaa ftp monthly data and >>>> how i can script it? >>>> >>> >>> GrADS does not do any ftp, you will need to transfer the files yourself, >>> ahead of time. On many operating system you can setup a FTP file system in >>> while you associate a local folder with a ftp address (Windows does by >>> default, on Mac OS X install MacFUSE, on Linux install FUSE.) A FTP file >>> system is not always to most efficient, but can be very convenient. >>> >>> Which NASA data in particular are you referring to? Some NASA data are >>> also available through opendap, making ftp transfer not necessary. >>> >>> Arlindo >>> >>> -- >>> Arlindo da Silva >>> dasilva at alum.mit.edu >>> >> >> > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091012/118937cf/attachment.html From arlindo.dasilva at GMAIL.COM Tue Oct 13 08:32:49 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 13 Oct 2009 08:32:49 -0400 Subject: MERRA > WRF In-Reply-To: Message-ID: On Mon, Oct 12, 2009 at 11:24 PM, Santanello, Joseph A. (GSFC-6143) < joseph.a.santanello at nasa.gov> wrote: > Hi Arlindo, > > > > I am working with a group at NASA-GSFC and we are considering using the new > MERRA data as input (initial/boundary conditions) to the WRF-ARW model. > WRF-help said that if MERRA was in HDF-4 format then we need to convert it > first to GRIB (intermediate format for metgrid/WPS). I came across your > page relating to MERRA conversion: > > > > > http://cookbooks.opengrads.org/index.php?title=Recipe-017:_Subsetting_and_reformating_MERRA_data_with_Lats4d#Simple_reformatting_to_GRIB-1 > > > > I was wondering if you had any experience with WRF/WPS or any suggestions > on how to proceed in getting MERRA converted for this purpose? To date I > have only used NARR, GFS, and ECMWF data to drive WRF which are more > common. Thanks! > > > As mentioned in that Recipe you can use LATS4d to convert the MERRA files to GRIB-1. However, you may need to construct a LATS parameter table to make sure the GRIB-1 dataset follows the NCEP conventions; see the lats4d documentation refered to i the Recipe. (By default LATS4d creates a generic GRIB-1 file which does not conform to NCEP or ECMWF conventions.) I have no experience with WRF whatsoever. However, if you find a solution consider writing a Recipe for it, I am sure other people would appreciate it. (Please send questions like this to the gradsusr list instead of my personal e-mail address, I cannot afford the time to answer individual questions. For MERRA related questions, follow the link on the MERRA website: http://gmao.gsfc.nasa.gov/research/merra/intro.php) Arlndo > Joe > > -- > > -------------------------------------------------------------------------- > > Dr. Joseph A. Santanello, Jr. > > Physical Scientist > > Hydrospheric and Biospheric Sciences Laboratory > > NASA-GSFC Code 614.3, Bldg 22, Room 008 > > Greenbelt, Maryland 20771 > > Phone: 301/286-7450 Fax: 301/286-8624 > > Email: Joseph.A.Santanello at nasa.gov > > --------------------------------------------------------------------------- > > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/1173acd7/attachment.html From arlindo.dasilva at GMAIL.COM Tue Oct 13 08:34:55 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 13 Oct 2009 08:34:55 -0400 Subject: MERRA > WRF In-Reply-To: Message-ID: On Mon, Oct 12, 2009 at 11:24 PM, Santanello, Joseph A. (GSFC-6143) < joseph.a.santanello at nasa.gov> wrote: > Hi Arlindo, > > > > I am working with a group at NASA-GSFC and we are considering using the new > MERRA data as input (initial/boundary conditions) to the WRF-ARW model. > WRF-help said that if MERRA was in HDF-4 format then we need to convert it > first to GRIB (intermediate format for metgrid/WPS). I came across your > page relating to MERRA conversion: > > > > > http://cookbooks.opengrads.org/index.php?title=Recipe-017:_Subsetting_and_reformating_MERRA_data_with_Lats4d#Simple_reformatting_to_GRIB-1 > > > > I was wondering if you had any experience with WRF/WPS or any suggestions > on how to proceed in getting MERRA converted for this purpose? To date I > have only used NARR, GFS, and ECMWF data to drive WRF which are more > common. Thanks! > > > As mentioned in that Recipe you can use LATS4d to convert the MERRA files to GRIB-1. However, you may need to construct a LATS parameter table to make sure the GRIB-1 dataset follows the NCEP conventions; see the lats4d documentation refered to i the Recipe. (By default LATS4d creates a generic GRIB-1 file which does not conform to NCEP or ECMWF conventions.) I have no experience with WRF whatsoever. However, if you find a solution consider writing a Recipe for it, I am sure other people would appreciate it. (Please send questions like this to the gradsusr list instead of my personal e-mail address, I cannot afford the time to answer individual questions. For MERRA related questions, follow the link on the MERRA website: http://gmao.gsfc.nasa.gov/research/merra/intro.php) Arlndo > Joe > > -- > > -------------------------------------------------------------------------- > > Dr. Joseph A. Santanello, Jr. > > Physical Scientist > > Hydrospheric and Biospheric Sciences Laboratory > > NASA-GSFC Code 614.3, Bldg 22, Room 008 > > Greenbelt, Maryland 20771 > > Phone: 301/286-7450 Fax: 301/286-8624 > > Email: Joseph.A.Santanello at nasa.gov > > --------------------------------------------------------------------------- > > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/a4262d2b/attachment.html From dasilva at ALUM.MIT.EDU Tue Oct 13 11:37:50 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 13 Oct 2009 11:37:50 -0400 Subject: PyGrADS on Fedora Message-ID: Fabio, It is better to conduct such exchanges on gradsusr so that we have a record of it for future reference. Arlindo ---------- Forwarded message ---------- From: Fabio F.Gervasi Date: Tue, Oct 13, 2009 at 9:40 AM Subject: Re: Pylab/Galab: maybe 64bit Linux machine problems? To: Arlindo da Silva , Arlindo da Silva < arlindo.dasilva at gmail.com>, Arlindo da Silva Hi Arlindo, finally also galab works fine! But only using Fedora11 Linux distro (not FC10), python 2.6 (not 2.5), pygrads-1.1.3 and grads-2.0.a7.oga.2-bundle-x86_ 64-unknown-linux-gnu.tar.gz... Anyway, thank you for your support, unfortunately there is not much information (about problems) online... Fabio. 2009/10/8 Arlindo da Silva > > On Thu, Oct 8, 2009 at 1:49 PM, Fabio F.Gervasi wrote: > >> Hi Arlindo, >> >> I see this on OpenGrads website: galab >> If PyLab/Matplotlib/Basemap is available, the module *galab* is >> loaded. This module defines class *GaLab* which etends class >> *GaNum* with Matplotlib/Basemap specific methods for contours, >> images and other graphical functionality. This class provides high >> level methods operating directly on GrADS expressions (or *fields*) >> while retaining all the configurability that Matplotlib has to >> offer. >> but when I try ./galab_examples.py i see only the error: *GaLab name not >> defined* >> *./gacore_examples.py | grep OK and ./ganum_examples.py work very well, >> with out any problems!* >> *All env and path are setup correctly;* *python-matplotlib, >> python-matplotlib-tk, python-basemap, python-basemap-data, PIL and ipython >> are installed* >> >> *WHY not work the galab? >> * > > > > As I said, because you do not have all the dependencies, e.g., the basemap > toolkit. > > >> *Where is the problem? I have a 64bit Linux Fedora10 Machine. Maybe >> x86_64 compatibility problems? >> * >> I done also: >> *>>> import grads.galab* >> Traceback (most recent call last): >> File "", line 1, in >> File "/usr/lib/python2.5/site-packages/grads/galab.py", line 52, in >> >> from matplotlib.toolkits.basemap import Basemap, interp >> *ImportError: No module named toolkits.basemap* > > > Your are missing this. > > >> >> *but python-basemap, python-basemap-data, python-basemap-data.noarch, >> python-basemap-data-hires.noarch and python-basemap-examples.noarch are >> installed!* >> >> I tried the same (from your Recipe-008): >> [root at localhost data]# python ./test.py >> Traceback (most recent call last): >> File "./test.py", line 3, in >> ga = GrADS() >> NameError: name 'GrADS' is not defined >> >> and also step by step, but: >> [2] ga-> ga.blue_marble('on') >> ------------------------------------------------------------ >> Traceback (most recent call last): >> File "", line 1, in >> AttributeError: 'GaNum' object has no attribute 'blue_marble' >> >> *What else did it need? Literally... I can not get out alive! :-(* > > > In the wiki it lists all the requirements, make sure you have it one. I > repeat them here: > > Requirements > > For the basic functionality provided by module gacore you need the > following > > - Python Version 2.3 or later, or Jython > - GrADS . Either > - Version 1.9.0-rc1 or later, or any OpenGrADS release. > It *does not* work with v1.9b4 > - Version 2.0.a3 or later. For previous versions of GrADS 2.0 only > the basic class *GaCore* works. > > If you would like GrADS to exchange array data with Python, module ganum > requires > > - For exporting n-dimensional arrays from GrADS you will need: > - NumPy > - For importing/exporting data from GrADS you will need in addition: > - GrADS extension libipc . > See the User Defined Extensions documentation > for information. > > For high quality graphics in Python, including map backgrounds and > transformations, > > - Matplotlib > - Basemap Tookit for > Matplotlib > > If you will be working with satellite images it is recommended that you > install > > - PIL , the Python Imaging > Library > > The additional color tables provided by module gacm require both > Matplotlib and PIL. And finally, it is *highly recommended* that you also > install > > - IPython > > for a more enjoyable interactive experience. Although not a requirement, > the following package is highly recommended: > > - SciPy - Scientific Tools or Python > > These packages are available for most Linux distributions, MacOS X and > Microsoft Windows, as well as in many flavors of Unix. Consult the Platform > Specific Notes for > additional information. > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/9492a675/attachment.html From dasilva at ALUM.MIT.EDU Tue Oct 13 13:45:39 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Tue, 13 Oct 2009 13:45:39 -0400 Subject: plotting gridpoints in grads In-Reply-To: <8d9ec3dd0910130924j2153d6dbt3ba7ef05ca66e3c1@mail.gmail.com> Message-ID: Dear Marcelino, Please send questions like this to the gradsusr mailing list. For joining the user group: http://grads.iges.org/grads/users.html Arlindo On Tue, Oct 13, 2009 at 12:24 PM, Daniel da Silva wrote: > > > ---------- Forwarded message ---------- > From: Marcelino II Villafuerte > Date: Tue, Oct 13, 2009 at 3:07 AM > Subject: plotting gridpoints in grads > To: ddasilva at umd.edu > > > Hi, > > Can you help me with this matter: > > I want to plot the grid points that my model has. I set the domain covering > the entire Philippines and have the model output but I want to compare my > results to observed data (station data) and the stations are distributed > uneven and very coarse so I'd like to do some interpolation with the > gridpoints value using other software (e.g. surfer). So I'd like to find out > how many grid points I might consider in every corresponding station. > > Thank you very much and I'll be waiting for you response... > > Marcelino Villafuerte II > Graduate student > Ateneo de Manila University > Philippines > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/c93c48db/attachment.html From reboita at MODEL.IAG.USP.BR Tue Oct 13 13:50:08 2009 From: reboita at MODEL.IAG.USP.BR (Michelle Simoes Reboita) Date: Tue, 13 Oct 2009 15:50:08 -0200 Subject: HDF files Message-ID: Hi GRAD's USER, I have TRMM data that are in HDF files. How can I open it in GrADS? Thanks, Michelle ****************************************************** *Michelle Sim?es Reboita * *Departamento de Ci?ncias Atmosf?ricas - USP/IAG/ACA * *Universidade de Sao Paulo * *Rua do Mat?o, 1226 - CEP 05508900 * *Fone: 11 30912836 * ****************************************************** From taf2f at VIRGINIA.EDU Tue Oct 13 14:07:41 2009 From: taf2f at VIRGINIA.EDU (Tierney Foster-Wittig) Date: Tue, 13 Oct 2009 14:07:41 -0400 Subject: HDF files In-Reply-To: <20091013174333.M69737@model.iag.usp.br> Message-ID: Grad Users, I am currently hoping to be a Grad user but unfortunately I am having trouble figuring out what to download and then how to install it. I am using a PC with a Windows 95 system. I have been on the GrADs website to dl what it states I need in order to install the program but I do not know what to do with the exe files and the dll files in order to install or start the program. I was wondering if anyone could give me step by step instructions on what to download, how to install it, and how to open up the program. Or perhaps a helpful website to explain what I need to do. I have NetCDF files that i would like to look at using GraDS. Any help would be greatly appreciated. Thank you, Tierney 2009/10/13 Michelle Simoes Reboita > Hi GRAD's USER, > > I have TRMM data that are in HDF files. How can I open it in GrADS? > > Thanks, > > Michelle > > ****************************************************** > *Michelle Sim?es Reboita * > *Departamento de Ci?ncias Atmosf?ricas - USP/IAG/ACA * > *Universidade de Sao Paulo * > *Rua do Mat?o, 1226 - CEP 05508900 * > *Fone: 11 30912836 * > ****************************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/1425be79/attachment.html From h.meteo.shirazu at GMAIL.COM Tue Oct 13 14:49:20 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Tue, 13 Oct 2009 13:49:20 -0500 Subject: HDF files In-Reply-To: Message-ID: On Tue, Oct 13, 2009 at 1:07 PM, Tierney Foster-Wittig wrote: > Grad Users, > > I am currently hoping to be a Grad user but unfortunately I am having > trouble figuring out what to download and then how to install it. I am > using a PC with a Windows 95 system. I have been on the GrADs website to dl > what it states I need in order to install the program but I do not know what > to do with the exe files and the dll files in order to install or start the > program. > > I was wondering if anyone could give me step by step instructions on what > to download, how to install it, and how to open up the program. Or perhaps > a helpful website to explain what I need to do. I have NetCDF files that i > would like to look at using GraDS. > Any help would be greatly appreciated. > > Thank you, > Tierney > 2009/10/13 Michelle Simoes Reboita > > Hi GRAD's USER, >> >> I have TRMM data that are in HDF files. How can I open it in GrADS? >> >> Thanks, >> >> Michelle >> >> ****************************************************** >> *Michelle Sim?es Reboita * >> *Departamento de Ci?ncias Atmosf?ricas - USP/IAG/ACA * >> *Universidade de Sao Paulo * >> *Rua do Mat?o, 1226 - CEP 05508900 * >> *Fone: 11 30912836 * >> ****************************************************** >> > > hi you can download latest version of grads with this link and install it on your PC It is very easy to work with this version of grads http://sourceforge.net/search/?type_of_search=soft&words=grads 1-after install you shoud download this file (right click - save target as..) http://www.iges.org/grads/gadoc/tutorial.html 2-save these files in this directory:OpenGrADS\Contents\Resources\SampleDatasets 3- type this command in grads: open model.ctl 4- d ps Good luck 4- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/6e7472c8/attachment.html From arlindo.dasilva at GMAIL.COM Tue Oct 13 21:51:22 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 13 Oct 2009 21:51:22 -0400 Subject: HDF files In-Reply-To: Message-ID: On Tue, Oct 13, 2009 at 2:07 PM, Tierney Foster-Wittig wrote: > Grad Users, > > I am currently hoping to be a Grad user but unfortunately I am having > trouble figuring out what to download and then how to install it. I am > using a PC with a Windows 95 system. I have been on the GrADs website to dl > what it states I need in order to install the program but I do not know what > to do with the exe files and the dll files in order to install or start the > program. > > I was wondering if anyone could give me step by step instructions on what > to download, how to install it, and how to open up the program. Or perhaps > a helpful website to explain what I need to do. I have NetCDF files that i > would like to look at using GraDS. > Any help would be greatly appreciated. > > You should find detailed instructions about Windows installation here: http://opengrads.org/wiki/index.php?title=Installing_GrADS_v2.0_on_Microsoft_Windows As Hossein Lofti suggests, take a look at the tutorial. The authoritative documentation is at this COLA website: http://grads.iges.org/grads/gadoc/ The OpenGrADS Cookbooks have Recipes illustrating basic GrADS usage. http://cookbooks.opengrads.org/index.php?title=Main_Page Have Fun! Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091013/754c8718/attachment.html From gabriel.ud at GMAIL.COM Wed Oct 14 09:18:58 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Wed, 14 Oct 2009 10:18:58 -0300 Subject: 1D Time series with vector gxout Message-ID: Hello friends of grads! I?m having a problem doing a wind direction 1D plot, for a single point, with time variation only. After setting the enviroment set lat -42 set lon -32 set t (time) 1 13 I?m using this command: d const(u,0);v;mag(u,v) The problem: I?m getting a plot with the proper format, but when verifying the direction of the wind (at the point I?m setting the enviroment) in a bigger full plot (set lat -70 -30, lon -60 0, set t 1), I see that the direction is wrong! the plot I get only point the vector to one side (upside) never downside... do someone have an idea about what?s happening? good day (or nigth!) to everybody, Gabriel Carvalho Oceanography Student -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/bec0cd8e/attachment.html From jdduda at IASTATE.EDU Wed Oct 14 10:47:58 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Wed, 14 Oct 2009 09:47:58 -0500 Subject: 1D Time series with vector gxout In-Reply-To: Message-ID: Gabriel, I don't understand why your display statement reads d *const(u,0)*;v;mag(u,v) (hopefully you can see the bold italic text for "const(u,0)"). That doesn't sound right. To get 2-D wind direction, you should say "d u;v;mag(u,v)". If you want one length to be zero, just subtract that variable from itself (e.g., "d u-u;v;mag(u-u,v)"). Hope this helps. Jeff On Wed, Oct 14, 2009 at 8:18 AM, Gabriel - ud Carvalho wrote: > Hello friends of grads! > I?m having a problem doing a wind direction 1D plot, for a single point, > with time variation only. > After setting the enviroment > set lat -42 > set lon -32 > set t (time) 1 13 > I?m using this command: > d const(u,0);v;mag(u,v) > > The problem: > I?m getting a plot with the proper format, but when verifying the direction > of the wind (at the point I?m setting the enviroment) in a bigger full plot > (set lat -70 -30, lon -60 0, set t 1), > I see that the direction is wrong! > the plot I get only point the vector to one side (upside) never downside... > > do someone have an idea about what?s happening? > > good day (or nigth!) to everybody, > > Gabriel Carvalho > Oceanography Student > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/1ea66cda/attachment.html From gabriel.ud at GMAIL.COM Wed Oct 14 13:02:51 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Wed, 14 Oct 2009 14:02:51 -0300 Subject: 1D Time series with vector gxout In-Reply-To: Message-ID: Hi Jeffrey, I got this display line ( d *const(u,0)*;v;mag(u,v) ) at the GrAds documentation... But look an example of the product that I?m trying to do (in annex) (forget the set vpage, etc) thanks a lot! Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/6d4bbf03/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Ondograma.jpg Type: image/jpeg Size: 63452 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091014/6d4bbf03/attachment.jpg From arabonis at YAHOO.COM Wed Oct 14 13:05:44 2009 From: arabonis at YAHOO.COM (Jean Pierre Arabonis) Date: Wed, 14 Oct 2009 10:05:44 -0700 Subject: g2ctl and wgrib2 problems Message-ID: Hi ?I am trying to get the g2ctl script to work under opensuse 11.1. ?I downloaded wgrib2 directly from cpc.ncep.noaa.gov and established that it does work is in my path etc. ?It runs fine on a nww3 file eg: >wgrib2 -ctl_inv nww3.t18z.grib.grib2 1:0:WIND 1,0 0,2,1 none Wind Speed [m/s] 2:41554:WDIR 1,0 0,2,0 none Wind Direction (from which blowing) [deg] etc ..... But if I try using g2ctl i get the following wam/wave.20091013> /work/Gradsextra/g2ctl.pl nww3.t18z.grib.grib2 *** FATAL ERROR: unknown option -ctl_ens *** Big problem: ? either nww3.t18z.grib.grib2 is missing or not a grib file ? or wgrib2 is not on your path or wgrib2 is too old ? or can not write to /tmp/g15864.tmp (full disk or permissions). wam/wave.20091013> /work/Gradsextra/g2ctl.pl nww3.t18z.grib.grib2 *** FATAL ERROR: unknown option -ctl_ens *** Big problem: ? either nww3.t18z.grib.grib2 is missing or not a grib file ? or wgrib2 is not on your path or wgrib2 is too old ? or can not write to /tmp/g15882.tmp (full disk or permissions). In Line 42 of g2ctl I have pointed to wgrib2 in the right place, and its in may path ie $wgrib2='/usr/local/Grads/bin/wgrib2'; Which is the latest available and seems to work > /usr/local/Grads/bin/wgrib2 wgrib2 v0.1.7.2.oga.1 wesley ebisuzaki, Jaakko Hyv?tti, Karl Pfeiffer, Manfred Schwarb, Kristian Nilssen, Sergey Varlamov ?Built Thu Mar 20 11:46:55 EDT 2008 for i686-pc-linux-gnu Finally my disk is not fiull and I have write permission. Anyone have some ideas where I am going wong and have some suggestions. Many Thanks ? Jean Pierre -- Jean Pierre Arabonis arabonis at yahoo.com Tel +27 21 780 1021 cell +27 84 401 1365 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/b6030695/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Wed Oct 14 14:21:59 2009 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Wed, 14 Oct 2009 14:21:59 -0400 Subject: g2ctl and wgrib2 problems In-Reply-To: <258913.5132.qm@web59303.mail.re1.yahoo.com> Message-ID: Jean Pierre, > *** FATAL ERROR: unknown option -ctl_ens *** The -ctl_ens option was added to wgrib2 in order to support ensemble control files. v0.1.7.2 is too old. So change line 42 of g2ctl to point to a newer version. > > /usr/local/Grads/bin/wgrib2 > wgrib2 v0.1.7.2.oga.1 Wesley Ebisuzaki Jean Pierre Arabonis wrote: > Hi > > I am trying to get the g2ctl script to work under opensuse 11.1. > I downloaded wgrib2 directly from cpc.ncep.noaa.gov and established > that it does work is in my path etc. > It runs fine on a nww3 file eg: > > >wgrib2 -ctl_inv nww3.t18z.grib.grib2 > 1:0:WIND 1,0 0,2,1 none Wind Speed [m/s] > 2:41554:WDIR 1,0 0,2,0 none Wind Direction (from which blowing) [deg] > etc ..... > > But if I try using g2ctl i get the following > > wam/wave.20091013> /work/Gradsextra/g2ctl.pl nww3.t18z.grib.grib2 > > *** FATAL ERROR: unknown option -ctl_ens *** > > Big problem: > either nww3.t18z.grib.grib2 is missing or not a grib file > or wgrib2 is not on your path or wgrib2 is too old > or can not write to /tmp/g15864.tmp (full disk or permissions). > wam/wave.20091013> /work/Gradsextra/g2ctl.pl nww3.t18z.grib.grib2 > > *** FATAL ERROR: unknown option -ctl_ens *** > > Big problem: > either nww3.t18z.grib.grib2 is missing or not a grib file > or wgrib2 is not on your path or wgrib2 is too old > or can not write to /tmp/g15882.tmp (full disk or permissions). > > In Line 42 of g2ctl I have pointed to wgrib2 in the right place, and > its in may path ie > $wgrib2='/usr/local/Grads/bin/wgrib2'; > > Which is the latest available and seems to work > > > /usr/local/Grads/bin/wgrib2 > wgrib2 v0.1.7.2.oga.1 wesley ebisuzaki, Jaakko Hyv?tti, Karl Pfeiffer, > Manfred Schwarb, Kristian Nilssen, Sergey Varlamov > > Built Thu Mar 20 11:46:55 EDT 2008 for i686-pc-linux-gnu > > Finally my disk is not fiull and I have write permission. > > Anyone have some ideas where I am going wong and have some suggestions. > > Many Thanks > Jean Pierre > > > > > > > > > > > > -- > Jean Pierre Arabonis > arabonis at yahoo.com > Tel +27 21 780 1021 cell +27 84 401 1365 > > From wansryu at GMAIL.COM Wed Oct 14 15:05:34 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Wed, 14 Oct 2009 14:05:34 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: Message-ID: Dear Grads users, I have 30 year GRIB data and I want to calculate monthly wind direction at a station. I found a script to calculate wind direction, but I don't know how to calculate monthly wind direction for 30 years. The number of times is 360 in my data. Could you guys help me? Wansang -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/738c5514/attachment.html From wansryu at GMAIL.COM Wed Oct 14 15:15:40 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Wed, 14 Oct 2009 14:15:40 -0500 Subject: Calculating monthly wind vector Message-ID: Dear Grads Users, I want to calculate monthly wind vector at a station. The data I have is monthly for 30 years, so the number of times is 360. How can I calculate wind vector for each month, starting Jan to Dec. Can anyone help me out? Thanks, Wansang -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/8e8d7ce2/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Oct 14 16:12:43 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 14 Oct 2009 15:12:43 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: Message-ID: On Wed, Oct 14, 2009 at 2:05 PM, Wansang Ryu wrote: > > Dear Grads users, > > I have 30 year GRIB data and I want to calculate monthly wind direction at > a station. > I found a script to calculate wind direction, but I don't know how to > calculate monthly wind direction for 30 years. > The number of times is 360 in my data. > > Could you guys help me? > > Wansang > > -- > Department of Geography > Texas A&M University > College Station, TX 77843-3147 > (979) 845-2719 > > > > -- > Department of Geography > Texas A&M University > College Station, TX 77843-3147 > (979) 845-2719 > hi can you send me your data ? I will try to solve your problem thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/3686120c/attachment.html From leandro at SMM.MIL.BR Wed Oct 14 16:15:29 2009 From: leandro at SMM.MIL.BR (1T(T) Leandro Machado) Date: Wed, 14 Oct 2009 21:15:29 +0100 Subject: 1D Time series with vector gxout In-Reply-To: Message-ID: Hi Gabriel! Try this way: d const(mag(u10m,v10m),0);u10m;v10m On Wed, 14 Oct 2009 14:02:51 -0300, Gabriel - ud Carvalho wrote > Hi Jeffrey, > I got this display line ( d const(u,0);v;mag(u,v) ) at the GrAds documentation... > But look an example of the product that I?m trying to do (in annex) (forget the set vpage, etc) > > thanks a lot! > Gabriel 1T(T) Leandro Machado Ajudante da Se??o de Modelagem Atmosf?rica Centro de Hidrografia da Marinha R Bar?o de Jaceguai, s/n Ponta da Arma??o - Niter?i CEP 24.048-900 tel: (21) 2189-3282/3283 fax: (21) 2189-3295 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/182ceb15/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Oct 14 16:16:40 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 14 Oct 2009 15:16:40 -0500 Subject: Calculating monthly wind vector In-Reply-To: Message-ID: On Wed, Oct 14, 2009 at 2:15 PM, Wansang Ryu wrote: > Dear Grads Users, > > I want to calculate monthly wind vector at a station. > The data I have is monthly for 30 years, so the number of times is 360. > How can I calculate wind vector for each month, starting Jan to Dec. > Can anyone help me out? > > Thanks, > > Wansang > -- > Department of Geography > Texas A&M University > College Station, TX 77843-3147 > (979) 845-2719 > hi i think you should set time 1 30 and plot a map and save it and then set time 30 60 then plot it can you send me your data? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/c295cb12/attachment.html From wansryu at GMAIL.COM Wed Oct 14 16:49:56 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Wed, 14 Oct 2009 15:49:56 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: <5c658ce10910141312qabf5de4p17850be88dc40811@mail.gmail.com> Message-ID: My data is so big (~40MB) so I can't send it to you. But my data is monthly grib data. So for 30 years, each data is monthly. Is it helpful? Wansang On Wed, Oct 14, 2009 at 3:12 PM, hossein lotfi wrote: > > > On Wed, Oct 14, 2009 at 2:05 PM, Wansang Ryu wrote: > >> >> Dear Grads users, >> >> I have 30 year GRIB data and I want to calculate monthly wind direction at >> a station. >> I found a script to calculate wind direction, but I don't know how to >> calculate monthly wind direction for 30 years. >> The number of times is 360 in my data. >> >> Could you guys help me? >> >> Wansang >> >> -- >> Department of Geography >> Texas A&M University >> College Station, TX 77843-3147 >> (979) 845-2719 >> >> >> >> -- >> Department of Geography >> Texas A&M University >> College Station, TX 77843-3147 >> (979) 845-2719 >> > > hi > can you send me your data ? > I will try to solve your problem > thanks > -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/33e91e1f/attachment.html From wansryu at GMAIL.COM Wed Oct 14 16:51:12 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Wed, 14 Oct 2009 15:51:12 -0500 Subject: Calculating monthly wind vector In-Reply-To: <5c658ce10910141316w44eb924v5602c1ad04235fac@mail.gmail.com> Message-ID: Thank you for your reply. My data is monthly for 30 years and it is grib data, so there are 360 data sets. Each data is monthly, then how can I calculate? My data is so huge, so I can't send it to you. Thanks, Wansang On Wed, Oct 14, 2009 at 3:16 PM, hossein lotfi wrote: > > > On Wed, Oct 14, 2009 at 2:15 PM, Wansang Ryu wrote: > >> Dear Grads Users, >> >> I want to calculate monthly wind vector at a station. >> The data I have is monthly for 30 years, so the number of times is 360. >> How can I calculate wind vector for each month, starting Jan to Dec. >> Can anyone help me out? >> >> Thanks, >> >> Wansang >> -- >> Department of Geography >> Texas A&M University >> College Station, TX 77843-3147 >> (979) 845-2719 >> > > hi > i think you should set time 1 30 and plot a map and save it > and then set time 30 60 then plot it > can you send me your data? > > -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/09252efc/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Oct 14 16:55:58 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 14 Oct 2009 15:55:58 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: Message-ID: On Wed, Oct 14, 2009 at 3:49 PM, Wansang Ryu wrote: > My data is so big (~40MB) so I can't send it to you. > But my data is monthly grib data. > So for 30 years, each data is monthly. > Is it helpful? > > Wansang > > > On Wed, Oct 14, 2009 at 3:12 PM, hossein lotfi wrote: > >> >> >> On Wed, Oct 14, 2009 at 2:05 PM, Wansang Ryu wrote: >> >>> >>> Dear Grads users, >>> >>> I have 30 year GRIB data and I want to calculate monthly wind direction >>> at a station. >>> I found a script to calculate wind direction, but I don't know how to >>> calculate monthly wind direction for 30 years. >>> The number of times is 360 in my data. >>> >>> Could you guys help me? >>> >>> Wansang >>> >>> -- >>> Department of Geography >>> Texas A&M University >>> College Station, TX 77843-3147 >>> (979) 845-2719 >>> >>> >>> >>> -- >>> Department of Geography >>> Texas A&M University >>> College Station, TX 77843-3147 >>> (979) 845-2719 >>> >> >> hi >> can you send me your data ? >> I will try to solve your problem >> thanks >> > > > > -- > Department of Geography > Texas A&M University > College Station, TX 77843-3147 > (979) 845-2719 > can you send me its link (internet address) I have high speed internet I can download it in 30 second -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/7af0b195/attachment.html From gabriel.ud at GMAIL.COM Wed Oct 14 17:26:38 2009 From: gabriel.ud at GMAIL.COM (Gabriel - ud Carvalho) Date: Wed, 14 Oct 2009 18:26:38 -0300 Subject: 1D Time series with vector gxout In-Reply-To: <20091014201510.M63189@smm.mil.br> Message-ID: Al? Leandro,que coincidencia, rs sou estagiario do CH 13 - previs?o oceanogr?fica, com a Thalita e o Jean. vou tentar essa sua sugest?o sexta feira e te digo se deu certo, um abra?o, Gabriel 2009/10/14 1T(T) Leandro Machado > Hi Gabriel! > > Try this way: > > d const(mag(u10m,v10m),0);u10m;v10m > > > *On Wed, 14 Oct 2009 14:02:51 -0300, Gabriel - ud Carvalho wrote* > > Hi Jeffrey, > > I got this display line ( d *const(u,0)*;v;mag(u,v) ) at the GrAds > documentation... > > But look an example of the product that I?m trying to do (in annex) > (forget the set vpage, etc) > > > > thanks a lot! > > Gabriel > > > 1T(T) Leandro Machado > Ajudante da Se??o de Modelagem Atmosf?rica > Centro de Hidrografia da Marinha > R Bar?o de Jaceguai, s/n > Ponta da Arma??o - Niter?i > CEP 24.048-900 > tel: (21) 2189-3282/3283 fax: (21) 2189-3295 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/1191cdae/attachment.html From wansryu at GMAIL.COM Wed Oct 14 17:43:00 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Wed, 14 Oct 2009 16:43:00 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: <5c658ce10910141355g4e586280h6b892a2533f3cc3d@mail.gmail.com> Message-ID: http://nomads.ncdc.noaa.gov/data/narrmon/ Here you are. Thanks, Wansang On Wed, Oct 14, 2009 at 3:55 PM, hossein lotfi wrote: > > > On Wed, Oct 14, 2009 at 3:49 PM, Wansang Ryu wrote: > >> My data is so big (~40MB) so I can't send it to you. >> But my data is monthly grib data. >> So for 30 years, each data is monthly. >> Is it helpful? >> >> Wansang >> >> >> On Wed, Oct 14, 2009 at 3:12 PM, hossein lotfi > > wrote: >> >>> >>> >>> On Wed, Oct 14, 2009 at 2:05 PM, Wansang Ryu wrote: >>> >>>> >>>> Dear Grads users, >>>> >>>> I have 30 year GRIB data and I want to calculate monthly wind direction >>>> at a station. >>>> I found a script to calculate wind direction, but I don't know how to >>>> calculate monthly wind direction for 30 years. >>>> The number of times is 360 in my data. >>>> >>>> Could you guys help me? >>>> >>>> Wansang >>>> >>>> -- >>>> Department of Geography >>>> Texas A&M University >>>> College Station, TX 77843-3147 >>>> (979) 845-2719 >>>> >>>> >>>> >>>> -- >>>> Department of Geography >>>> Texas A&M University >>>> College Station, TX 77843-3147 >>>> (979) 845-2719 >>>> >>> >>> hi >>> can you send me your data ? >>> I will try to solve your problem >>> thanks >>> >> >> >> >> -- >> Department of Geography >> Texas A&M University >> College Station, TX 77843-3147 >> (979) 845-2719 >> > > can you send me its link (internet address) > I have high speed internet I can download it in 30 second > -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/437e6f82/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Oct 14 18:16:25 2009 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 14 Oct 2009 17:16:25 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: Message-ID: On Wed, Oct 14, 2009 at 4:43 PM, Wansang Ryu wrote: > http://nomads.ncdc.noaa.gov/data/narrmon/ > Here you are. > > Thanks, > > Wansang > > On Wed, Oct 14, 2009 at 3:55 PM, hossein lotfi wrote: > >> >> >> On Wed, Oct 14, 2009 at 3:49 PM, Wansang Ryu wrote: >> >>> My data is so big (~40MB) so I can't send it to you. >>> But my data is monthly grib data. >>> So for 30 years, each data is monthly. >>> Is it helpful? >>> >>> Wansang >>> >>> >>> On Wed, Oct 14, 2009 at 3:12 PM, hossein lotfi < >>> h.meteo.shirazu at gmail.com> wrote: >>> >>>> >>>> >>>> On Wed, Oct 14, 2009 at 2:05 PM, Wansang Ryu wrote: >>>> >>>>> >>>>> Dear Grads users, >>>>> >>>>> I have 30 year GRIB data and I want to calculate monthly wind direction >>>>> at a station. >>>>> I found a script to calculate wind direction, but I don't know how to >>>>> calculate monthly wind direction for 30 years. >>>>> The number of times is 360 in my data. >>>>> >>>>> Could you guys help me? >>>>> >>>>> Wansang >>>>> >>>>> -- >>>>> Department of Geography >>>>> Texas A&M University >>>>> College Station, TX 77843-3147 >>>>> (979) 845-2719 >>>>> >>>>> >>>>> >>>>> -- >>>>> Department of Geography >>>>> Texas A&M University >>>>> College Station, TX 77843-3147 >>>>> (979) 845-2719 >>>>> >>>> >>>> hi >>>> can you send me your data ? >>>> I will try to solve your problem >>>> thanks >>>> >>> >>> >>> >>> -- >>> Department of Geography >>> Texas A&M University >>> College Station, TX 77843-3147 >>> (979) 845-2719 >>> >> >> can you send me its link (internet address) >> I have high speed internet I can download it in 30 second >> > > > > -- > Department of Geography > Texas A&M University > College Station, TX 77843-3147 > (979) 845-2719 > I download 4 files; narrmon-a_221_19790101_0000_000.ctl 11-Mar-2008 10:51 23K narrmon-a_221_19790101_0000_000.grb 05-Nov-2007 11:27 49M narrmon-a_221_19790101_0000_000.inv 11-Mar-2008 10:51 44K narrmon-a_221_19790101_0000_fff.idx 05-Nov-2007 11:28 10K the command: (open narrmon-a_221_19790101_0000_000.ctl ) can not open the .ctl file can you open it? if yes send me the command I resumption other command thanks alot -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/75a3c641/attachment.html From rubensinho at GMAIL.COM Wed Oct 14 19:04:42 2009 From: rubensinho at GMAIL.COM (Ruben G. C) Date: Wed, 14 Oct 2009 18:04:42 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: <5c658ce10910141516x7d860c7cnf70e6af8c97edabd@mail.gmail.com> Message-ID: Hello everyone..This is my issue: I'm trying to display a set of values points on a Grads map. I just want the single value at a certains coordinates, not an isoline or the grid value. I can display the value for a particular cordinate but just in the command screen, not in the map. Please help.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/a764a947/attachment.html From btsuang at YAHOO.COM Wed Oct 14 20:05:08 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Thu, 15 Oct 2009 08:05:08 +0800 Subject: error with netcdf file generated by cdo In-Reply-To: Message-ID: Dear All: I created a netcdf file using "CDO". (http://www.mpimet.mpg.de/fileadmin/software/cdo/) "cdo -f nc chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908" I can read the netcdf file using ncdump. But when I try to sdfopen it using grads v2.0.a7.oga.2. The error "SDF file does not have any non-coordinate variables" occurs. More details of the error and the messange of ncdump are listed as attatched. Your help are appreciated. Ben ------------------------------ Config: v2.0.a7.oga.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff Issue 'q config' command for more information. Loading User Defined Extensions table ... ok. Landscape mode? ('n' for portrait): y GX Package Initialization: Size = 11 8.5 ga-> sdfopen sst.200908.nc Scanning self-describing file: sst.200908.nc SDF file has no discernable time coordinate -- using default values. gadsdf: SDF file does not have any non-coordinate variables. ----------------------------- -- Ben-Jei Tsuang ================================== [btsuang at nuwaln01 flx]$ ncdump sst.200908.nc |more netcdf sst.200908 { dimensions: lon = 192 ; lat = 94 ; time = UNLIMITED ; // (31 currently) variables: double lon(lon) ; lon:long_name = "longitude" ; lon:units = "degrees_east" ; lon:standard_name = "longitude" ; double lat(lat) ; lat:long_name = "latitude" ; lat:units = "degrees_north" ; lat:standard_name = "latitude" ; double time(time) ; time:units = "day as %Y%m%d.%f" ; time:calendar = "proleptic_gregorian" ; float sst(time, lat, lon) ; sst:code = 11 ; sst:table = 132 ; sst:grid_type = "gaussian" ; // global attributes: :CDI = "Climate Data Interface version 1.3.2" ; :Conventions = "CF-1.0" ; :history = "Thu Oct 15 06:51:52 2009: cdo -f nc chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908 sst.200908.nc" ; :CDO = "Climate Data Operators version 1.3.2 (http://www.mpimet.mpg.de/cdo)" ; data: lon = 0, 1.875, 3.75, 5.625, 7.5, 9.375, 11.25, 13.125, 15, 16.875, 18.75, -- Ben-Jei Tsuang Dept. of Environmental Engineering National Chung-Hsing University From hersala at GMAIL.COM Wed Oct 14 21:07:53 2009 From: hersala at GMAIL.COM (hersala) Date: Wed, 14 Oct 2009 22:07:53 -0300 Subject: How to obtain an slice of Antarctic topography? Message-ID: Hi Grads Users, Please, could you help me with this issue: I am trying to draw a 2-D topography contour of complete Antarctica from one coast to the other one at an arbitrary longitud. I am using the file elev.1-deg.nc from http://jisao.washington.edu/data/elevation/index.html#grads So, when I define set lat -90 -60 of course, I obtain an slice but only from the south pole to 60?S when I set set lat -50 50 the plot is only between 50?S and 50?N (not including south pole) How can I get an slice, for instance, from 50?S to 50?N passing by the south pole ? Thanks in advance. Hernan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/9ec9344b/attachment.html From wansryu at GMAIL.COM Wed Oct 14 22:41:24 2009 From: wansryu at GMAIL.COM (Wansang Ryu) Date: Wed, 14 Oct 2009 21:41:24 -0500 Subject: Script for monthly wind direction at a station In-Reply-To: <5c658ce10910141516x7d860c7cnf70e6af8c97edabd@mail.gmail.com> Message-ID: yes, i can open it. I think you need to open it with GradsC instead of Grads. Wansang On Wed, Oct 14, 2009 at 5:16 PM, hossein lotfi wrote: > > > On Wed, Oct 14, 2009 at 4:43 PM, Wansang Ryu wrote: > >> http://nomads.ncdc.noaa.gov/data/narrmon/ >> Here you are. >> >> Thanks, >> >> Wansang >> >> On Wed, Oct 14, 2009 at 3:55 PM, hossein lotfi > > wrote: >> >>> >>> >>> On Wed, Oct 14, 2009 at 3:49 PM, Wansang Ryu wrote: >>> >>>> My data is so big (~40MB) so I can't send it to you. >>>> But my data is monthly grib data. >>>> So for 30 years, each data is monthly. >>>> Is it helpful? >>>> >>>> Wansang >>>> >>>> >>>> On Wed, Oct 14, 2009 at 3:12 PM, hossein lotfi < >>>> h.meteo.shirazu at gmail.com> wrote: >>>> >>>>> >>>>> >>>>> On Wed, Oct 14, 2009 at 2:05 PM, Wansang Ryu wrote: >>>>> >>>>>> >>>>>> Dear Grads users, >>>>>> >>>>>> I have 30 year GRIB data and I want to calculate monthly wind >>>>>> direction at a station. >>>>>> I found a script to calculate wind direction, but I don't know how to >>>>>> calculate monthly wind direction for 30 years. >>>>>> The number of times is 360 in my data. >>>>>> >>>>>> Could you guys help me? >>>>>> >>>>>> Wansang >>>>>> >>>>>> -- >>>>>> Department of Geography >>>>>> Texas A&M University >>>>>> College Station, TX 77843-3147 >>>>>> (979) 845-2719 >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Department of Geography >>>>>> Texas A&M University >>>>>> College Station, TX 77843-3147 >>>>>> (979) 845-2719 >>>>>> >>>>> >>>>> hi >>>>> can you send me your data ? >>>>> I will try to solve your problem >>>>> thanks >>>>> >>>> >>>> >>>> >>>> -- >>>> Department of Geography >>>> Texas A&M University >>>> College Station, TX 77843-3147 >>>> (979) 845-2719 >>>> >>> >>> can you send me its link (internet address) >>> I have high speed internet I can download it in 30 second >>> >> >> >> >> -- >> Department of Geography >> Texas A&M University >> College Station, TX 77843-3147 >> (979) 845-2719 >> > > I download 4 files; > narrmon-a_221_19790101_0000_000.ctl 11-Mar-2008 10:51 23K > narrmon-a_221_19790101_0000_000.grb 05-Nov-2007 11:27 49M > narrmon-a_221_19790101_0000_000.inv 11-Mar-2008 10:51 44K > narrmon-a_221_19790101_0000_fff.idx 05-Nov-2007 11:28 10K > the command: (open narrmon-a_221_19790101_0000_000.ctl ) can not open the > .ctl file > can you open it? if yes send me the command I resumption other command > thanks alot > -- Department of Geography Texas A&M University College Station, TX 77843-3147 (979) 845-2719 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091014/2431ea04/attachment.html From arlindo.dasilva at GMAIL.COM Thu Oct 15 01:50:03 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 15 Oct 2009 01:50:03 -0400 Subject: error with netcdf file generated by cdo In-Reply-To: Message-ID: B.-J., Here is your problem: double time(time) ; time:units = "day as %Y%m%d.%f" ; time:calendar = "proleptic_gregorian" ; This is not coards compliant. The time units should say something like "days since 2009-08-01". If you can't fix the file you can always create a DDF for it fixing the time axis. Arlindo On Wed, Oct 14, 2009 at 8:05 PM, Ben-Jei Tsuang wrote: > Dear All: > > I created a netcdf file using "CDO". > (http://www.mpimet.mpg.de/fileadmin/software/cdo/) > > "cdo -f nc chname,var11,sst -selhour,12 -selltype,1 -selcode,11 > flx.ft06.200908" > > I can read the netcdf file using ncdump. But when I try to sdfopen it > using grads v2.0.a7.oga.2. The error "SDF file does not have any > non-coordinate variables" occurs. > > More details of the error and the messange of ncdump are listed as > attatched. Your help are appreciated. > > > Ben > > ------------------------------ > Config: v2.0.a7.oga.2 little-endian readline printim grib2 netcdf > hdf4-sds hdf5 opendap-grids,stn athena geotiff > Issue 'q config' command for more information. > Loading User Defined Extensions table > ... ok. > Landscape mode? ('n' for portrait): y > GX Package Initialization: Size = 11 8.5 > ga-> sdfopen sst.200908.nc > Scanning self-describing file: sst.200908.nc > SDF file has no discernable time coordinate -- using default values. > gadsdf: SDF file does not have any non-coordinate variables. > ----------------------------- > > > -- > Ben-Jei Tsuang > > > ================================== > [btsuang at nuwaln01 flx]$ ncdump sst.200908.nc |more > netcdf sst.200908 { > dimensions: > lon = 192 ; > lat = 94 ; > time = UNLIMITED ; // (31 currently) > variables: > double lon(lon) ; > lon:long_name = "longitude" ; > lon:units = "degrees_east" ; > lon:standard_name = "longitude" ; > double lat(lat) ; > lat:long_name = "latitude" ; > lat:units = "degrees_north" ; > lat:standard_name = "latitude" ; > double time(time) ; > time:units = "day as %Y%m%d.%f" ; > time:calendar = "proleptic_gregorian" ; > float sst(time, lat, lon) ; > sst:code = 11 ; > sst:table = 132 ; > sst:grid_type = "gaussian" ; > > // global attributes: > :CDI = "Climate Data Interface version 1.3.2" ; > :Conventions = "CF-1.0" ; > :history = "Thu Oct 15 06:51:52 2009: cdo -f nc > chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908 > sst.200908.nc" ; > :CDO = "Climate Data Operators version 1.3.2 > (http://www.mpimet.mpg.de/cdo)" ; > data: > > lon = 0, 1.875, 3.75, 5.625, 7.5, 9.375, 11.25, 13.125, 15, 16.875, 18.75, > > > > -- > Ben-Jei Tsuang > Dept. of Environmental Engineering > National Chung-Hsing University > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/85fcddac/attachment.html From arabonis at YAHOO.COM Thu Oct 15 03:07:27 2009 From: arabonis at YAHOO.COM (Jean Pierre Arabonis) Date: Thu, 15 Oct 2009 00:07:27 -0700 Subject: g2ctl and wgrib2 problems In-Reply-To: <4AD616C7.8040804@noaa.gov> Message-ID: Thanks Wesley all works now, the download site is a little ambiguous with the link taking one to the old precompiled 1.7.1 version. ?Thanks Again ?Jean Pierre -- Jean Pierre Arabonis arabonis at yahoo.com Tel +27 21 780 1021 cell +27 84 401 1365 --- On Wed, 10/14/09, Wesley Ebisuzaki wrote: From: Wesley Ebisuzaki Subject: Re: g2ctl and wgrib2 problems To: GRADSUSR at LIST.CINECA.IT Date: Wednesday, October 14, 2009, 6:21 PM Jean Pierre, > *** FATAL ERROR: unknown option -ctl_ens *** The -ctl_ens option was added to wgrib2 in order to support ensemble control files.? v0.1.7.2 is too old. So change line 42 of g2ctl to point to a newer version. > > /usr/local/Grads/bin/wgrib2 > wgrib2 v0.1.7.2.oga.1 ? ? Wesley Ebisuzaki Jean Pierre Arabonis wrote: > Hi > >? I am trying to get the g2ctl script to work under opensuse 11.1. >? I downloaded wgrib2 directly from cpc.ncep.noaa.gov and established > that it does work is in my path etc. >? It runs fine on a nww3 file eg: > > >wgrib2 -ctl_inv nww3.t18z.grib.grib2 > 1:0:WIND 1,0 0,2,1 none Wind Speed [m/s] > 2:41554:WDIR 1,0 0,2,0 none Wind Direction (from which blowing) [deg] > etc ..... > > But if I try using g2ctl i get the following > > wam/wave.20091013> /work/Gradsextra/g2ctl.pl nww3.t18z.grib.grib2 > > *** FATAL ERROR: unknown option -ctl_ens *** > > Big problem: >???either nww3.t18z.grib.grib2 is missing or not a grib file >???or wgrib2 is not on your path or wgrib2 is too old >???or can not write to /tmp/g15864.tmp (full disk or permissions). > wam/wave.20091013> /work/Gradsextra/g2ctl.pl nww3.t18z.grib.grib2 > > *** FATAL ERROR: unknown option -ctl_ens *** > > Big problem: >???either nww3.t18z.grib.grib2 is missing or not a grib file >???or wgrib2 is not on your path or wgrib2 is too old >???or can not write to /tmp/g15882.tmp (full disk or permissions). > > In Line 42 of g2ctl I have pointed to wgrib2 in the right place, and > its in may path ie > $wgrib2='/usr/local/Grads/bin/wgrib2'; > > Which is the latest available and seems to work > > > /usr/local/Grads/bin/wgrib2 > wgrib2 v0.1.7.2.oga.1 wesley ebisuzaki, Jaakko Hyv?tti, Karl Pfeiffer, > Manfred Schwarb, Kristian Nilssen, Sergey Varlamov > >? Built Thu Mar 20 11:46:55 EDT 2008 for i686-pc-linux-gnu > > Finally my disk is not fiull and I have write permission. > > Anyone have some ideas where I am going wong and have some suggestions. > > Many Thanks >???Jean Pierre > > > > > > > > > > > > -- > Jean Pierre Arabonis > arabonis at yahoo.com > Tel +27 21 780 1021 cell +27 84 401 1365 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/7202875a/attachment.html From Guilong.Li at EC.GC.CA Thu Oct 15 13:13:20 2009 From: Guilong.Li at EC.GC.CA (Li,Guilong [Ontario]) Date: Thu, 15 Oct 2009 13:13:20 -0400 Subject: calculate monthly mean by using daily data In-Reply-To: A<1972176224.911111254370159824.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: Hi Everyone, I have daily GCM output data with leap year and want to change it to monthly mean. I try to do the average and modify it to seasonal, but I didn't get the right monthly value. Do you have a code I can use to do this? Thanks. Guilong -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/bffd6f4a/attachment.html From rubensinho at GMAIL.COM Thu Oct 15 13:15:36 2009 From: rubensinho at GMAIL.COM (Ruben G. C) Date: Thu, 15 Oct 2009 12:15:36 -0500 Subject: DISPLAY SINGLE VALUE Message-ID: Hello everyone..This is my issue: I'm trying to display a set of points values on a x,y Grads map. I just want the single value at a certains coordinates, not an isoline or the grid value. I can display the value for a particular cordinate but just in the command screen, not in the map. Please help.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/ac613f95/attachment.html From teddyallen at YAHOO.COM Thu Oct 15 13:24:00 2009 From: teddyallen at YAHOO.COM (Teddy Allen) Date: Thu, 15 Oct 2009 10:24:00 -0700 Subject: DISPLAY SINGLE VALUE In-Reply-To: Message-ID: I take it the set gxout grid command?does not accomplish your goal? ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: Ruben G. C To: GRADSUSR at LIST.CINECA.IT Sent: Thu, October 15, 2009 1:15:36 PM Subject: DISPLAY SINGLE VALUE Hello everyone..This is my issue: I'm trying to display a set of? points values on a x,y Grads map. I just want the single value at a certains coordinates, not an isoline or the grid value. I can? display the value for a particular cordinate but just in the command screen, not in the map. Please help.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/16ca1afc/attachment.html From rubensinho at GMAIL.COM Thu Oct 15 13:28:06 2009 From: rubensinho at GMAIL.COM (Ruben G. C) Date: Thu, 15 Oct 2009 12:28:06 -0500 Subject: DISPLAY SINGLE VALUE In-Reply-To: <890162.33742.qm@web51509.mail.re2.yahoo.com> Message-ID: T On Thu, Oct 15, 2009 at 12:24 PM, Teddy Allen wrote: > I take it the set gxout grid command does not accomplish your goal? > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go *together*." > > African Proverb > > > ------------------------------ > *From:* Ruben G. C > *To:* GRADSUSR at LIST.CINECA.IT > *Sent:* Thu, October 15, 2009 1:15:36 PM > *Subject:* DISPLAY SINGLE VALUE > > Hello everyone..This is my issue: I'm trying to display a set of points > values on a x,y Grads map. I just want the single value at a certains > coordinates, not an isoline or the grid value. I can display the value for > a particular cordinate but just in the command screen, not in the map. > Please help.. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/7e08f570/attachment.html From rubensinho at GMAIL.COM Thu Oct 15 13:36:41 2009 From: rubensinho at GMAIL.COM (Ruben G. C) Date: Thu, 15 Oct 2009 12:36:41 -0500 Subject: DISPLAY SINGLE VALUE In-Reply-To: <890162.33742.qm@web51509.mail.re2.yahoo.com> Message-ID: Hi, the gxout grid command is useless for my purpose because it just give to me the value in the grid point coordinate. If I want the value for a point that is, let's say, to the right or to the left or between two grids points How can I deploy this single value on a map? On Thu, Oct 15, 2009 at 12:24 PM, Teddy Allen wrote: > I take it the set gxout grid command does not accomplish your goal? > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go *together*." > > African Proverb > > > ------------------------------ > *From:* Ruben G. C > *To:* GRADSUSR at LIST.CINECA.IT > *Sent:* Thu, October 15, 2009 1:15:36 PM > *Subject:* DISPLAY SINGLE VALUE > > Hello everyone..This is my issue: I'm trying to display a set of points > values on a x,y Grads map. I just want the single value at a certains > coordinates, not an isoline or the grid value. I can display the value for > a particular cordinate but just in the command screen, not in the map. > Please help.. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/031767df/attachment.html From michael.l.sestak at NAVY.MIL Thu Oct 15 14:33:46 2009 From: michael.l.sestak at NAVY.MIL (Sestak, Michael L CIV 63134) Date: Thu, 15 Oct 2009 11:33:46 -0700 Subject: DISPLAY SINGLE VALUE In-Reply-To: Message-ID: You can set lat and set lon to any single values, then display the variable and it will print the value for that point in the terminal window (not print it on the map window). However, I'm pretty sure that just gives you the value at the nearest grid point. To interpolate to a specific location, I think you have to do your own calculation. Then if you want it printed on the map, you have to do that as well (though there are lots of examples for that in the user group archive and maybe other places online. Michael Sestak Fleet Numerical Meteorology and Oceanography Center Monterey, CA From: Ruben G. C Sent: Thu 10/15/2009 10:36 To: GRADSUSR at LIST.CINECA.IT Subject: Re: DISPLAY SINGLE VALUE Hi, the gxout grid command is useless for my purpose because it just give to me the value in the grid point coordinate. If I want the value for a point that is, let's say, to the right or to the left or between two grids points How can I deploy this single value on a map? On Thu, Oct 15, 2009 at 12:24 PM, Teddy Allen wrote: I take it the set gxout grid command does not accomplish your goal? http://www.teddyallen.com/ "To move quickly, go alone. To move far, go together." African Proverb From: Ruben G. C To: GRADSUSR at LIST.CINECA.IT Sent: Thu, October 15, 2009 1:15:36 PM Subject: DISPLAY SINGLE VALUE Hello everyone..This is my issue: I'm trying to display a set of points values on a x,y Grads map. I just want the single value at a certains coordinates, not an isoline or the grid value. I can display the value for a particular cordinate but just in the command screen, not in the map. Please help.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/bbb43765/attachment.html From dipakmath at GMAIL.COM Thu Oct 15 14:47:15 2009 From: dipakmath at GMAIL.COM (dipak sahu) Date: Fri, 16 Oct 2009 00:17:15 +0530 Subject: how to plot the wind following two-dimensional terrain in Grads Message-ID: Dear Grads User Is it possible to plot a any parameter like wind following two-dimensional terrain in Grads?Actually i want to plot a figure like the attached one. with regards dipak sahu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091016/1fb057ae/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: TFwind.bmp Type: image/bmp Size: 433786 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091016/1fb057ae/attachment.bmp From pdjakow at GMAIL.COM Thu Oct 15 15:00:45 2009 From: pdjakow at GMAIL.COM (=?UTF-8?Q?Piotr_Djak=C3=B3w?=) Date: Thu, 15 Oct 2009 21:00:45 +0200 Subject: DISPLAY SINGLE VALUE In-Reply-To: Message-ID: 2009/10/15 Ruben G. C > > Hi, the gxout grid command is useless for my purpose because it just give > to me the value in the grid point coordinate. If I want the value for a > point that is, let's say, to the right or to the left or between two grids > points How can I deploy this single value on a map? > > Set Lat,Lon to specific value ie. 'set lat 51' 'set lon 17' then 'define t2 = tmp2m-273.15' 'q defval t2 1 1' TMP=subwrd(result,3) say TMP Regards Piotr Djakow -- http://www.gfspl.rootnode.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/9e1791b2/attachment.html From yi_zhou01 at YAHOO.CA Thu Oct 15 23:01:57 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Thu, 15 Oct 2009 20:01:57 -0700 Subject: DISPLAY SINGLE VALUE In-Reply-To: <277f61790910151200u3258df41h65bcb1a7df43aea9@mail.gmail.com> Message-ID: Hi Piotr, Try this script that I found from Grads20 a2.3, it may help you. ============ *? Plots a string using current attributes *? at "clicked on" position.? String can be provided *? as an argument or will be prompted for * function string (args) ? if (args='') ??? say 'Enter string:' ??? pull args ? endif ? say 'Click where you want the string' ? 'query bpos' ? x = subwrd(result,3) ? y = subwrd(result,4) ? 'draw string 'x' 'y' 'args ============================= Emily --- On Thu, 10/15/09, Piotr Djak?w wrote: From: Piotr Djak?w Subject: Re: DISPLAY SINGLE VALUE To: GRADSUSR at LIST.CINECA.IT Received: Thursday, October 15, 2009, 3:00 PM 2009/10/15 Ruben G. C Hi, the gxout grid command is useless for my purpose because it just give to me the value in the grid point coordinate. If I want the value for a point that is, let's say, to the right or to the left? or between two grids points How can I deploy this single value on a map? Set Lat,Lon to specific value ie. 'set lat 51' 'set lon 17' then 'define t2 = tmp2m-273.15' 'q defval t2 1 1' TMP=subwrd(result,3) say TMP Regards Piotr Djakow -- http://www.gfspl.rootnode.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091015/95f82400/attachment.html From btsuang at YAHOO.COM Thu Oct 15 23:22:08 2009 From: btsuang at YAHOO.COM (Ben-Jei Tsuang) Date: Fri, 16 Oct 2009 11:22:08 +0800 Subject: error with netcdf file generated by cdo In-Reply-To: <77fcd6b20910142250q6f31aeau405939c03d188f5f@mail.gmail.com> Message-ID: Dear Arlindo: Thank you. It works. The default of netcdf file created by cdo is "absolute time axis". I have to use the option "-r" to create the file in "relative time axis". Then, the netcdf file can be read by grads. That is, -r Convert from an absolute to a relative time axis cdo -r -f nc chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908 Ben 2009/10/15 Arlindo da Silva : > B.-J., > Here is your problem: > double time(time) ; > time:units = "day as %Y%m%d.%f" ; > time:calendar = "proleptic_gregorian" ; > This is not coards compliant. The time units should say something like > "days since 2009-08-01". > If you can't fix the file you can always create a DDF for it fixing the time > axis. > Arlindo > > On Wed, Oct 14, 2009 at 8:05 PM, Ben-Jei Tsuang wrote: >> >> Dear All: >> >> I created a netcdf file using "CDO". >> (http://www.mpimet.mpg.de/fileadmin/software/cdo/) >> >> "cdo -f nc chname,var11,sst -selhour,12 -selltype,1 -selcode,11 >> flx.ft06.200908" >> >> I can read the netcdf file using ncdump. But when I try to sdfopen it >> using grads v2.0.a7.oga.2. The error "SDF file does not have any >> non-coordinate variables" occurs. >> >> More details of the error and the messange of ncdump are listed as >> attatched. Your help are appreciated. >> >> >> Ben >> >> ------------------------------ >> Config: v2.0.a7.oga.2 little-endian readline printim grib2 netcdf >> hdf4-sds hdf5 opendap-grids,stn athena geotiff >> Issue 'q config' command for more information. >> Loading User Defined Extensions table >> ... ok. >> Landscape mode? ('n' for portrait): y >> GX Package Initialization: Size = 11 8.5 >> ga-> sdfopen sst.200908.nc >> Scanning self-describing file: sst.200908.nc >> SDF file has no discernable time coordinate -- using default values. >> gadsdf: SDF file does not have any non-coordinate variables. >> ----------------------------- >> >> >> -- >> Ben-Jei Tsuang >> >> >> ================================== >> [btsuang at nuwaln01 flx]$ ncdump sst.200908.nc |more >> netcdf sst.200908 { >> dimensions: >> lon = 192 ; >> lat = 94 ; >> time = UNLIMITED ; // (31 currently) >> variables: >> double lon(lon) ; >> lon:long_name = "longitude" ; >> lon:units = "degrees_east" ; >> lon:standard_name = "longitude" ; >> double lat(lat) ; >> lat:long_name = "latitude" ; >> lat:units = "degrees_north" ; >> lat:standard_name = "latitude" ; >> double time(time) ; >> time:units = "day as %Y%m%d.%f" ; >> time:calendar = "proleptic_gregorian" ; >> float sst(time, lat, lon) ; >> sst:code = 11 ; >> sst:table = 132 ; >> sst:grid_type = "gaussian" ; >> >> // global attributes: >> :CDI = "Climate Data Interface version 1.3.2" ; >> :Conventions = "CF-1.0" ; >> :history = "Thu Oct 15 06:51:52 2009: cdo -f nc >> chname,var11,sst -selhour,12 -selltype,1 -selcode,11 flx.ft06.200908 >> sst.200908.nc" ; >> :CDO = "Climate Data Operators version 1.3.2 >> (http://www.mpimet.mpg.de/cdo)" ; >> data: >> >> lon = 0, 1.875, 3.75, 5.625, 7.5, 9.375, 11.25, 13.125, 15, 16.875, >> 18.75, >> >> >> >> -- >> Ben-Jei Tsuang >> Dept. of Environmental Engineering >> National Chung-Hsing University > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -- Ben-Jei Tsuang Dept. of Environmental Engineering National Chung-Hsing University From M.Liszewska at ICM.EDU.PL Fri Oct 16 10:42:45 2009 From: M.Liszewska at ICM.EDU.PL (Malgorzata Liszewska) Date: Fri, 16 Oct 2009 16:42:45 +0200 Subject: rotated coordinates & opendap Message-ID: Hi, I have problems with rotating ncdf files through opendap: if I download a file with rotated coordinates on my computer and use a suitable ctl file with pdef etc. all work excellent, but if I try to use the same ctl file to read a file which is on an opendap server it doesn't work. Is it possible to rotate fields using opendap connection? Maybe I should prepare a different ctl file?? I would be very grateful for any suggestions! Thank you! Malgorzata From arlindo.dasilva at GMAIL.COM Fri Oct 16 12:18:46 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Fri, 16 Oct 2009 12:18:46 -0400 Subject: rotated coordinates & opendap In-Reply-To: <200910161642.45451.M.Liszewska@icm.edu.pl> Message-ID: On Fri, Oct 16, 2009 at 10:42 AM, Malgorzata Liszewska < M.Liszewska at icm.edu.pl> wrote: > Hi, > > I have problems with rotating ncdf files through opendap: if I download a > file with rotated coordinates on my computer and use a suitable ctl file > with > pdef etc. all work excellent, but if I try to use the same ctl file to read > a > file which is on an opendap server it doesn't work. > > Is it possible to rotate fields using opendap connection? > Maybe I should prepare a different ctl file?? > > You need to give us more information. From the gradsusr guidelines ( http://grads.iges.org/grads/users.html): *When reporting bugs or problems, please include the following information in your post: * 1. *The version of GrADS you are running (it is a good idea to include all the output from 'q config')* 2. *The platform you are running GrADS on (e.g. SunOS, DEC Alpha, Windows95...)* 3. *A brief description of the problem* 4. *The simplest possible script that illustrates the problem* 5. *The error messages from GrADS* 6. *The output from running "ncdump -c" on your NetCDF file if you're having trouble getting GrADS to read the file.* -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091016/56874c3e/attachment.html From Charles.Seman at NOAA.GOV Fri Oct 16 13:02:46 2009 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Fri, 16 Oct 2009 13:02:46 -0400 Subject: how to plot the wind following two-dimensional terrain in Grads In-Reply-To: <8562142e0910151147r2c8b5efp6c0bcdad25d6824c@mail.gmail.com> Message-ID: Dear Dipak, Here are copies of parts of email exchanges to the GrADS Listserv from Wesley Ebisuzaki and Mary Jo Nath which may be of some help? from Wesley Ebisuzaki: --- Subject: Re: vertical acorss section From: Wesley Ebisuzaki Date: Tue, 24 Aug 2004 14:57:46 -0400 To: GRADSUSR at LIST.CINECA.IT Found this .gs file in a dusty directory. Need to change the ccols for white/black orography. -------------------------- orog.gs ------------------------ * * Display orography on vertical profile * * pressfc = surface pressure in Pa * lev is assumed to be in hPa * * display is assumed to be in "shaded" and vertical profile * 'define t1pm1=lev-pressfc/100' 'set gxout grfill' 'set clevs -1 1' 'set ccols 1 1' 'set ccols 0 0' 'd maskout(0,t1pm1)' 'set gxout shaded' ------------------------------------------------------------ Wesley Ebisuzaki --- and from Mary Jo Nath: --- How is your topography defined? Is it a separate variable? Or is it indicated by the grid points with missing values in the field you are plotting? If it's the missing values, then you can use "const" to redefine the missing values, then use grfill to color them. I don't know of a way to just outline them. Hope the example below helps. - MJ Ex: * missing value grid points now = 1.; all non-missing values = -var/var = -1 define tmp=const(-var/var,1,-u) * mask out the non-topography grid points define topo=maskout(tmp,tmp) * color the non-missing grid points in "topo" (the topography) set gxout grfill set ccolor 2 d topo --- Hope this helps, Chuck dipak sahu wrote: > Dear Grads User > Is it possible to plot a any parameter like wind following > two-dimensional terrain in Grads?Actually i want to plot a figure like > the attached one. > > > with regards > dipak sahu > > > ------------------------------------------------------------------------ > -- 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 M.Liszewska at ICM.EDU.PL Fri Oct 16 13:18:06 2009 From: M.Liszewska at ICM.EDU.PL (Malgorzata Liszewska) Date: Fri, 16 Oct 2009 19:18:06 +0200 Subject: rotated coordinates & opendap Message-ID: Dear Arlindo, Please find some more information: GrADS 2.0.a7.1 ga-> q config Config: v2.0.a7.1 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7.1 Copyright (c) 1988-2009 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Fri Aug 14 15:55:34 MDT 2009 for i686-pc-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.4 o NetCDF interface ENABLED http://www.opendap.org libnc-dap "3.7.0" of Feb 15 2008 17:38:52 $ o HDF interface ENABLED http://hdfgroup.org HDF 4.2r2 HDF5 1.8.3 o Athena Widget GUI DISABLED o OPeNDAP gridded data interface ENABLED http://www.opendap.org libdap 3.7.8 o OPeNDAP station data interface ENABLED http://iges.org/grads/gadoc/supplibs.html libgadap 2.0 o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org Platform: Linux, 2.6.27.29-0.1-pae, OpenSUSE ... 'open rot01b.ctl' 'd t2m' .... DSET ^http://ensemblesrt3.dmi.dk/cgi-bin/nph-dods/data/prudence/monthly/GKSS/CTL/t2m.GKSS.CTL.nc.gz DTYPE netcdf TITLE test UNDEF 1.e+30 PDEF 85 91 ROTLLR -170 32.5 0.5 0.5 -17.5 -27.5 #PDEF isize jsize ROTLLR lonpol latpol dlon dlat lonll latll XDEF 100 linear -14.75 0.5 YDEF 80 linear 35.25 0.5 ZDEF 1 linear 1 1 TDEF 360 linear 01jan1961 1mon VARS 1 t2m 1 t,z,y,x 2-meter temperature ENDVARS The error messages from GrADS Notice: Implied interpolation for file rot01b.ctl Interpolation will be performed on any data displayed from this file gancgrid error: nc_get_vara_double failed; NetCDF: Start+count exceeds dimension bound Data Request Error: Error for variable 't2m' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = t2m Cannot plot color bar: No shading information but if instead I put the following (same file is on my disk) it WORKS excellently! DSET ^/home/staff/mali/DATA/PRUDENCE/t2m.GKSS.CTL.nc best regards, Malgorzata From teddyallen at YAHOO.COM Fri Oct 16 13:59:33 2009 From: teddyallen at YAHOO.COM (Teddy Allen) Date: Fri, 16 Oct 2009 10:59:33 -0700 Subject: how to plot the wind following two-dimensional terrain in Grads In-Reply-To: <2092.161.53.81.2.1233842389.squirrel@cirus.dhz.hr> Message-ID: Please see this attached script that accomplishes your task. It was shared with the GrADS community last winter via email from Ivana Stiperski. The related output is attached?as well. teddy ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ----- Forwarded Message ---- From: Ivana Stiperski To: GRADSUSR at LIST.CINECA.IT Sent: Thu, February 5, 2009 8:59:49 AM Subject: Script for arbitrary cross-sections with terrain Hi As far as I know a grads script that draws terrain in an arbitrary cross section has not been compiled yet. So I've made one :) and am attaching it for general use. hope it serves its purpose! the prerequisite is that you have either a terrain variable (in this script called topo) or something that can mimic the terrain in your grib file. cheers Ivana ------------------------------------------------ Ivana Stiperski Graduate Research Assistant Hydrological and Meteorological Service, Croatia Gric 3, HR-10000 Zagreb ph.? ? + 385 1 4565 721 email: stiperski at cirus.dhz.hr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091016/5bfcb6de/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: ArbitraryCSS_Terrain.gs Type: application/octet-stream Size: 3665 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091016/5bfcb6de/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: Cross_section.gif Type: image/gif Size: 30811 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091016/5bfcb6de/attachment.gif From Guilong.Li at EC.GC.CA Fri Oct 16 14:32:20 2009 From: Guilong.Li at EC.GC.CA (Li,Guilong [Ontario]) Date: Fri, 16 Oct 2009 14:32:20 -0400 Subject: how to plot monthly time series In-Reply-To: A<1972176224.911111254370159824.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: Hi, I have a monthly time series data from 1961 to 2000, now I want to plot January time series, what should I do in GrADS? Thanks. Guilong -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091016/b1fa2eda/attachment.html From mmacleod at SCOTIAWEATHER.COM Fri Oct 16 14:55:00 2009 From: mmacleod at SCOTIAWEATHER.COM (mmacleod) Date: Fri, 16 Oct 2009 18:55:00 +0000 Subject: Sdfwrite refuses to write! Message-ID: Good afternoon. I want to extract a single field from a WRF run executed on our local computer and output it is netcdf format for another application that will read netcdf and convert to an arcview (shp) format. I am executing Grads 2.05 as follows: wrf at Sigma:~/WRF_OUT/ARW/AV2KM/postprd$ grads2 Grid Analysis and Display System (GrADS) Version 2.0.a5 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v2.0.a5 little-endian readline printim grib2 geotiff Issue 'q config' command for more information. Landscape mode? ('n' for portrait): GX Package Initialization: Size = 11 8.5 ga-> open WRF2KM.ctl Scanning description file: WRF2KM.ctl Data file wrfprs_d01.%f2 is open as file 1 LON set to -66.531 -63.3349 LAT set to 43.268 45.2316 LEV set to 1000 1000 Time values set: 2009:9:15:0 2009:9:15:0 E set to 1 1 Notice: Implied interpolation for file WRF2KM.ctl Interpolation will be performed on any data displayed from this file ga-> I want to output the 2 metre temperature for t = 1 for the entire grid The control file is as follows: options template dset ^WRFPRS_d01.%f2 index WRF1KM.map undef 9.999E+20 title wrfprs_d02 - Test of 2KM over Annapolis Valley * produced by grib2ctl v0.9.12.5p41 dtype grib 255 pdef 139 64 lcc 44.225000 -66.285000 1 1 44.800000 44.800000 -64.850000 2000 2000 xdef 139 linear -66.285000 0.0253721144699462 ydef 64 linear 44.225000 0.0181818181818182 tdef 4 linear 00Z05sep2009 1hr * z has 25 levels, for prs zdef 25 levels 1000 975 950 925 900 875 850 825 800 775 750 700 650 600 550 500 450 400 350 300 250 200 150 100 50 vars 81 z 25 7,100 Geopotential Height(gpm) u 25 33,100 U Winds (m/s) v 25 34,100 V Winds (m/s) t 25 11,100 Temperature (K) vv 25 39,100 Pressure Vertical Velocity (Pa/s) rh 25 52,100 Relative Humidity (%) slp 0 2,102,0 Sea Level Pressure (Pa) slpe 0 130,102,0 Sea Level Pressure, ETA reduction (Pa) sfcp 0 1,1,0 Pressure at model sfc (Pa) sli 0 131,101,12900 Surface Lifted Index (K) ps 0 1,1,0 Surface Pressure (Pa) zs 0 7,1,0 Geopotential Height of Surface (gpm) tpn 0 61,1,0 Total Precipitation (kg/m^2) pc 0 63,1,0 Convective Precipitation (kg/m^2) vis 0 20,1,0 Horizontal Visibility (m) cape 0 157,116,46080 Convective Available Potential Energy (J/kg) 180-0 mb above ground cin 0 156,116,46080 Convective Inhibition (J/kg) 180-0 mb above ground lftid4 0 132,116,46080 Best 4-Layer Lifted Index (K) ts 0 11,1,0 Surface Temperature (K) t2 0 11,105,2 2 Meter Temperature (K) rh2 0 52,105,2 2 Metre Relative Humidity (%) u10 0 33,105,10 10 Meter U Wind (m/s) v10 0 34,105,10 10 Meter V Wind (m/s) u30 0 33,116,7680 30-0 mb AG U Wind (m/s) v30 0 34,116,7680 30-0 mb AG V Wind (m/s) t30 0 11,116,7680 30-0 mb AG Temperature (K) u60 0 33,116,15390 60-30 mb AG U Wind (m/s) v60 0 34,116,15390 60-30 mb AG V Wind (m/s) t60 0 11,116,15390 60-30 mb AG Temperature (K) sltmp 0 85,112,10 Soil Temperature 0-10cm down (K) tcc 0 71,200,0 Total cloud in the atmos column(%) sfcr 0 83,1,0 Surface Roughness(model) (m) mask 0 81,1,0 Land-Sea Mask (1=land; 0=sea) dpt 19 17,100 Dew Point Temperature (K) q 19 51,100 Specific Humidity (kg/kg) vort 19 41,100 Absolute Vorticity (/s) pls 0 62,1,0 Large-Scale Precipitation (kg/m^2) u1829 0 33,103,1829 U Winds at 1829 Meters AMSL (m/s) u2743 0 33,103,2743 U Winds at 2743 Meters AMSL (m/s) u3658 0 33,103,3658 U Winds at 3658 Meters AMSL (m/s) u6030 0 33,116,15390 U Winds at 60-30 mb AMSL (m/s) us982 0 33,107,9823 U Winds at sigma .9823 AMSL (m/s) u03 0 33,116,7680 U Winds at 0-30 mb abv gnd (m/s) v1829 0 34,103,1829 V Winds at 1829 Meters AMSL (m/s) v2743 0 34,103,2743 V Winds at 2743 Meters AMSL (m/s) v3658 0 34,103,3658 V Winds at 3658 Meters AMSL (m/s) v6030 0 34,116,15390 V Winds at 60-30 mb AMSL (m/s) vs982 0 34,107,9823 V Winds at sigma .9823 AMSL (m/s) v03 0 34,116,7680 V Winds at 0-30 mb abv gnd (m/s) ttrop 0 11,7,0 Temperature at Tropopause ptrop 0 1,7,0 Pressure at Tropopause utrop 0 33,7,0 U Winds at Tropopause (m/s) vtrop 0 34,7,0 V Winds at Tropopause (m/s) strop 0 136,7,0 Vertical Speed Shear at Tropopause uls 0 33,107,0 U Winds at Lowest Level (m/s) vls 0 34,107,0 V Winds at Lowest Level (m/s) dpt03 0 17,116,7680 Dew Point Temperature at 0 - 30 mb abv gnd (K) shm03 0 51,116,7680 Specific Humidity at 0- 30 mb abv gnd (Kg/Kg) hmd03 0 135,116,7680 Horiz Moisture Divergence at 0 - 30 mb abv gnd (kg/kg/s) vvl03 0 39,116,7680 Vertical Velocity at 0-30 mb abv gnd (Pa/s) ncc 0 213,200,0 Non-convective Cloud Cover in Atmospheric Column (%) cvc 0 72,200,0 Convective Cloud Cover in Atmospheric Column (%) hcdc 0 75,234,0 High Level Cloud Cover (%) mcdc 0 74,224,0 Mid Level Cloud Cover (%) lcdc 0 73,214,0 Low Level Cloud Cover (%) cthgt 0 7,3,0 Height of Cloud Top - (gpm) cbhgt 0 7,2,0 Height of Cloud BAse - (gpm) csn 0 143,1,0 Categorial Snow (1 = yes, 0 = no) cip 0 142,1,0 Categorial Ice Pellets (1 = yes, 0 = no) cfzr 0 141,1,0 Categorial Freezing Rain (1 = yes, 0 = no) crn 0 140,1,0 Categorial Rain (1 = yes, 0 = no) pw 0 54,200,0 Precipitable water in the atmos Column (Kg/m^2) sltp4 0 85,112,2600 Soil Temperature 10-40 cm down dswfx 0 204,1,0 Downward Short Wave Flux at Sfc (W/m^2) dlwfx 0 205,1,0 Downward Long Wave Flux at Sfc (W/m^2) uswfx 0 211,1,0 Upward Short Wave Flux at Sfc (W/m^2) ulwfx 0 212,1,0 Upward Long Wave Flux at Sfc (W/m^2) accsn 0 65,1,0 Accumulated Snow cover (Kg/m^2) soilw 0 144,112,10 Volumetric Soil Moisture (fraction) evapt 0 57,1,0 Evaporation [kg/m^2] at sfc pevap 0 228,1,0 Pot. evaporation [kg/m^2] at sfc endvars One can see that t2 = air temperature at two metres above ground (K) Here is the execution: ga-> set sdfwrite -4d airtemp.nc SDFWrite file name = airtemp.nc SDFWrite will replace an existing file SDFwrite file will have at least 4 dimensions ga-> q sdfwrite SDFwrite file name is: airtemp.nc SDFwrite format is NetCDF SDFwrite file will have at least 4 dimensions ga-> define at = t2 -273.14 Notice: Automatic Grid Interpolation Taking Place Define memory allocation size = 112488 bytes ga-> sdfwrite at ga-> There is no error message but the file airtemp.nc is not located in any directory on the computer. This is Linux and the execution of find -name "airtemp.nc" indicates that no file by that name is located on the system. We have done this several times using different output names but can never find the named file. To show at is defined, I have generated the attached png file using the "d at " command - so the variable at exists. Any help with this will be greatly appreciated. Sincerely Mac MacLeod -- M.A. (Mac) MacLeod President and General Manager Scotia Weather Services Inc 192 Wyse Road, Suite 8, Dartmouth, N.S. B3A 1M9 Tele: 902-468-3866 Fax: 902-461-1768 E-mail: mmacleod at scotiaweather.com Visit us: www.scotiaweather.com -------------- next part -------------- A non-text attachment was scrubbed... Name: wrf_AT_Test_H00.png Type: image/png Size: 3743 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091016/a27c1e79/attachment.png From yi_zhou01 at YAHOO.CA Fri Oct 16 22:15:41 2009 From: yi_zhou01 at YAHOO.CA (Emily) Date: Fri, 16 Oct 2009 19:15:41 -0700 Subject: how to plot monthly time series In-Reply-To: Message-ID: Hi Guilong, You can fwrite the January data set out as a binary file, then write a ctl for it. Then you can plot the time series of January. Emily --- On Fri, 10/16/09, Li,Guilong [Ontario] wrote: From: Li,Guilong [Ontario] Subject: how to plot monthly time series To: GRADSUSR at LIST.CINECA.IT Received: Friday, October 16, 2009, 2:32 PM #yiv474229002 P { MARGIN:0px;} Hi, ? I have a monthly time series data from 1961 to 2000, now I want to plot January time series, what should I do in GrADS? Thanks. ? Guilong -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091016/dd971e9d/attachment.html From kwmski7 at SNU.AC.KR Sat Oct 17 04:01:35 2009 From: kwmski7 at SNU.AC.KR (=?EUC-KR?B?sei/+Lmr?=) Date: Sat, 17 Oct 2009 17:01:35 +0900 Subject: UNSUBSCRIBE Message-ID: Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091017/132772fc/attachment.html From neva_4_gotten89 at YAHOO.COM Sat Oct 17 12:50:21 2009 From: neva_4_gotten89 at YAHOO.COM (Dereka Carroll) Date: Sat, 17 Oct 2009 09:50:21 -0700 Subject: No subject Message-ID: I am analyzing narr data and I am trying to write a grads script to split time date and hour...any help will be greatly appreciate -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091017/f89daeb4/attachment.html From eliavs at GMAIL.COM Sun Oct 18 02:58:45 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Sun, 18 Oct 2009 08:58:45 +0200 Subject: No subject In-Reply-To: <370653.69425.qm@web65509.mail.ac4.yahoo.com> Message-ID: hi i dont know if this is what you mean, but here is part of a script i add to identify the date 'set t 'count 'q time' date=subwrd(result,3) hour=substr(date,1,3) day=substr(date,4,2) month=substr(date,6,3) year=substr(date,9,10) date_str=hour' 'day'/'month'/'year *.... *..... *and then in the end 'draw xlab 'hour'.'day'.'month'.'year is this what you need? eliav On Sat, Oct 17, 2009 at 6:50 PM, Dereka Carroll wrote: > I am analyzing narr data and I am trying to write a grads script to split > time date and hour...any help will be greatly appreciate > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091018/0f6f76f6/attachment.html From dipakmath at GMAIL.COM Sun Oct 18 13:21:44 2009 From: dipakmath at GMAIL.COM (dipak sahu) Date: Sun, 18 Oct 2009 22:51:44 +0530 Subject: how to plot the wind following two-dimensional terrain in Grads In-Reply-To: <449256.19723.qm@web51510.mail.re2.yahoo.com> Message-ID: Hii teddy thanks for ur valuable reply. Actually my *wrfout** file has no topo variable, so when i created the ctl and dat file from *wrfout* file it doesn't have any topo variable in the control file.I think it is in the * met_em** file, so when i tried with the *met_em** file to create the *.ctl and *.dat file it is giving some error like below. So just help me from where i can get the topo variable. *We are dealing with pressure levels here NetCDF error : bottom_top NetCDF: Invalid dimension ID or name * ** *thanks and regards* *Dipak sahu, IIT Delhi* *India* ** * * On Fri, Oct 16, 2009 at 11:29 PM, Teddy Allen wrote: > Please see this attached script that accomplishes your task. It was > shared with the GrADS community last winter via email from Ivana Stiperski. > The related output is attached as well. > teddy > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go *together*." > > African Proverb > > > ----- Forwarded Message ---- > *From:* Ivana Stiperski > *To:* GRADSUSR at LIST.CINECA.IT > *Sent:* Thu, February 5, 2009 8:59:49 AM > *Subject:* Script for arbitrary cross-sections with terrain > > Hi > > As far as I know a grads script that draws terrain in an arbitrary cross > section has not been compiled yet. So I've made one :) and am attaching it > for general use. hope it serves its purpose! > > the prerequisite is that you have either a terrain variable (in this > script called topo) or something that can mimic the terrain in your grib > file. > > cheers > Ivana > > > ------------------------------------------------ > Ivana Stiperski > Graduate Research Assistant > Hydrological and Meteorological Service, Croatia > Gric 3, HR-10000 Zagreb > ph. + 385 1 4565 721 > email: stiperski at cirus.dhz.hr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091018/70244754/attachment.html From swardika at GMAIL.COM Mon Oct 19 09:46:48 2009 From: swardika at GMAIL.COM (I Ketut Swardika Swardika) Date: Mon, 19 Oct 2009 22:46:48 +0900 Subject: UNSUBSCRIBE Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091019/68d817c2/attachment.html From hhe at ATMOS.UMD.EDU Mon Oct 19 10:26:03 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Mon, 19 Oct 2009 10:26:03 -0400 Subject: .ctl for MODIS HDF file Message-ID: Hi, I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen and xdfopen do not work for me, so I need to write a complete .ctl file. But I am confused after reading the MODIS data set (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) I am wondering if anyone has experience on it. Thanks a lot! Hao | Hao He | | Graduate Assistant | | CSS bldg 4365 | | Jull Hall lab (301)405-7625 | | Cellphone (240)672-7912 | | Department of Atmospheric & Oceanic Science | | University of Maryland | | College Park, MD 20742 | From prjayakrishnan at GMAIL.COM Mon Oct 19 10:49:18 2009 From: prjayakrishnan at GMAIL.COM (Jayakrishnan PR) Date: Mon, 19 Oct 2009 20:19:18 +0530 Subject: .ctl for MODIS HDF file In-Reply-To: Message-ID: Dear Hao, Grads can open HDF files which agrees the COARDS convention. But unfortunately the MODIS hdf files are not agreeing COARDS convention. So I think we cannot open them through grads by writing a ctl file. You can convert the data into ascii and then converting into binary we can write a ctl file and then plot in grads. That is what my experience. Good Luck....... On Mon, Oct 19, 2009 at 7:56 PM, Hao He wrote: > Hi, > I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen and > xdfopen do not work for me, so I need to write a complete .ctl file. But > I am confused after reading the MODIS data set > (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) > I am wondering if anyone has experience on it. > Thanks a lot! > > Hao > > | Hao He | > | Graduate Assistant | > | CSS bldg 4365 | > | Jull Hall lab (301)405-7625 | > | Cellphone (240)672-7912 | > | Department of Atmospheric & Oceanic Science | > | University of Maryland | > | College Park, MD 20742 | > -- 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/20091019/6b9113a8/attachment.html From zjuyanlibin at 163.COM Mon Oct 19 10:49:30 2009 From: zjuyanlibin at 163.COM (Yan Libin) Date: Mon, 19 Oct 2009 22:49:30 +0800 Subject: .ctl for MODIS HDF file Message-ID: a ctl is not enough try to use ncl. 2009-10-19 Yan Libin ???? Hao He ????? 2009-10-19 22:36:19 ???? GRADSUSR ??? ??? .ctl for MODIS HDF file Hi, I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen and xdfopen do not work for me, so I need to write a complete .ctl file. But I am confused after reading the MODIS data set (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) I am wondering if anyone has experience on it. Thanks a lot! Hao | Hao He | | Graduate Assistant | | CSS bldg 4365 | | Jull Hall lab (301)405-7625 | | Cellphone (240)672-7912 | | Department of Atmospheric & Oceanic Science | | University of Maryland | | College Park, MD 20742 | -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091019/be641f9d/attachment.html From jma at COLA.IGES.ORG Mon Oct 19 12:16:02 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Mon, 19 Oct 2009 12:16:02 -0400 Subject: .ctl for MODIS HDF file In-Reply-To: <200910192249295623668@163.com> Message-ID: I can't allow misinformation to go out to the list uncorrected: GrADS can read any HDF file containing gridded fields. This particular HDF file contains swath data. It's gridded -- there are 406 cells in the along-swath direction, and 270 cells in the across-swath direction. GrADS will read this data, but only onto an abstract x,y grid. The lat/lon values of each grid point are read in as data variables. A full 'dtype hdfsds' descriptor file would include the following lines: xdef 270 linear 1 1 ydef 406 linear 1 1 tdef 1 linear ... ... vars 4 Latitude=>scanlat 0 y,x Geodetic Latitude Longitude=>scanlon 0 y,x Geodetic Longitude Scan_Start_Time=>scantime 0 y,x International Atomic Time at Start of Scan replicated across the Swath Surface_Temperature=>tsfc 0 y,x Surface_Temperature endvars You can add more variables, including some that have a Z axis, depending on what you'd like to look at in the file. The rest of the required descriptor file entries are discussed in the documentation page http://iges.org/grads/gadoc/SDFdescriptorfile.html --Jennifer On Oct 19, 2009, at 10:49 AM, Yan Libin wrote: > a ctl is not enough On Oct 19, 2009, at 10:49 AM, Jayakrishnan PR wrote: > ... we cannot open them through grads by writing a ctl file. On Oct 19, 2009, at 10:26 AM, Hao He wrote: > Hi, > I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen > and > xdfopen do not work for me, so I need to write a complete .ctl file. > But > I am confused after reading the MODIS data set > (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) > I am wondering if anyone has experience on it. > Thanks a lot! > > Hao -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091019/306293f0/attachment.html From cw420 at CAM.AC.UK Mon Oct 19 14:27:15 2009 From: cw420 at CAM.AC.UK (Christian Winzer) Date: Mon, 19 Oct 2009 19:27:15 +0100 Subject: UNSUBSCRIBE In-Reply-To: Message-ID: Unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091019/e447f84e/attachment.html From alan at SONOMATECH.COM Mon Oct 19 14:42:47 2009 From: alan at SONOMATECH.COM (Alan Chan) Date: Mon, 19 Oct 2009 11:42:47 -0700 Subject: UNSUBSCRIBE In-Reply-To: <003d01ca50e9$c88398b0$598aca10$@ac.uk> Message-ID: Unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091019/6b27580d/attachment.html From hhe at ATMOS.UMD.EDU Mon Oct 19 15:49:14 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Mon, 19 Oct 2009 15:49:14 -0400 Subject: .ctl for MODIS HDF file In-Reply-To: <59821F1B-E700-4A5F-98ED-A3BDF6D3158F@cola.iges.org> Message-ID: I put this in my .ctl file as an example: set ^MOD06_L2.A2008094.0225.005.2008096042152.hdf title MODIS Level 2 cloud product undef -32768 xdef 270 linear 112.856 0.1201260 ydef 406 linear 29.1195 0.0525835 tdef 1 linear 02:25Z03APR2008 5MN zdef 1 linear 1 1 dtype hdfsds vars 3 Latitude=>scanlat 0 y,x Geodetic Latitude Longitude=>scanlon 0 y,x Geodetic Longitude Surface_Pressure=>sfcpres 0 y,x Surface Pressure endvars But I got this warning: Scanning description file: MOD06_L2.A2008094.0225.005.2008096042152.ctl Open Error: Data file type invalid --> The invalid description file record is: --> dtype hdfsds I am confused about the data type. Not HDF-SDS? Hao | Hao He | | Graduate Assistant | | CSS bldg 4365 | | Jull Hall lab (301)405-7625 | | Cellphone (240)672-7912 | | Department of Atmospheric & Oceanic Science | | University of Maryland | | College Park, MD 20742 | On Mon, 19 Oct 2009, Jennifer Adams wrote: > I can't allow misinformation to go out to the list uncorrected: GrADS > can read any HDF file containing gridded fields. > This particular HDF file contains swath data. It's gridded -- there > are 406 cells in the along-swath direction, and 270 cells in the > across-swath direction. GrADS will read this data, but only onto an > abstract x,y grid. The lat/lon values of each grid point are read in > as data variables. A full 'dtype hdfsds' descriptor file would include > the following lines: > > xdef 270 linear 1 1 > ydef 406 linear 1 1 > tdef 1 linear ... > ... > vars 4 > Latitude=>scanlat 0 y,x Geodetic Latitude > Longitude=>scanlon 0 y,x Geodetic Longitude > Scan_Start_Time=>scantime 0 y,x International Atomic Time at Start of > Scan replicated across the Swath > Surface_Temperature=>tsfc 0 y,x Surface_Temperature > endvars > > You can add more variables, including some that have a Z axis, > depending on what you'd like to look at in the file. The rest of the > required descriptor file entries are discussed in the documentation > page http://iges.org/grads/gadoc/SDFdescriptorfile.html > > --Jennifer > > > On Oct 19, 2009, at 10:49 AM, Yan Libin wrote: >> a ctl is not enough > > On Oct 19, 2009, at 10:49 AM, Jayakrishnan PR wrote: >> ... we cannot open them through grads by writing a ctl file. > > > On Oct 19, 2009, at 10:26 AM, Hao He wrote: > >> Hi, >> I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen >> and >> xdfopen do not work for me, so I need to write a complete .ctl file. >> But > >> I am confused after reading the MODIS data set >> (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) > >> I am wondering if anyone has experience on it. >> Thanks a lot! >> >> Hao From jma at COLA.IGES.ORG Mon Oct 19 15:51:35 2009 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Mon, 19 Oct 2009 15:51:35 -0400 Subject: .ctl for MODIS HDF file In-Reply-To: Message-ID: What is the output from 'q config' ? On Oct 19, 2009, at 3:49 PM, Hao He wrote: > I put this in my .ctl file as an example: > > set ^MOD06_L2.A2008094.0225.005.2008096042152.hdf > title MODIS Level 2 cloud product > undef -32768 > xdef 270 linear 112.856 0.1201260 > ydef 406 linear 29.1195 0.0525835 > tdef 1 linear 02:25Z03APR2008 5MN > zdef 1 linear 1 1 > dtype hdfsds > vars 3 > Latitude=>scanlat 0 y,x Geodetic Latitude > Longitude=>scanlon 0 y,x Geodetic Longitude > Surface_Pressure=>sfcpres 0 y,x Surface Pressure > endvars > > But I got this warning: > > Scanning description file: > MOD06_L2.A2008094.0225.005.2008096042152.ctl > Open Error: Data file type invalid > --> The invalid description file record is: > --> dtype hdfsds > > I am confused about the data type. Not HDF-SDS? > > Hao > > | Hao He | > | Graduate Assistant | > | CSS bldg 4365 | > | Jull Hall lab (301)405-7625 | > | Cellphone (240)672-7912 | > | Department of Atmospheric & Oceanic Science | > | University of Maryland | > | College Park, MD 20742 | > > On Mon, 19 Oct 2009, Jennifer Adams wrote: > >> I can't allow misinformation to go out to the list uncorrected: GrADS >> can read any HDF file containing gridded fields. >> This particular HDF file contains swath data. It's gridded -- there >> are 406 cells in the along-swath direction, and 270 cells in the >> across-swath direction. GrADS will read this data, but only onto an >> abstract x,y grid. The lat/lon values of each grid point are read in >> as data variables. A full 'dtype hdfsds' descriptor file would >> include >> the following lines: >> >> xdef 270 linear 1 1 >> ydef 406 linear 1 1 >> tdef 1 linear ... >> ... >> vars 4 >> Latitude=>scanlat 0 y,x Geodetic Latitude >> Longitude=>scanlon 0 y,x Geodetic Longitude >> Scan_Start_Time=>scantime 0 y,x International Atomic Time at Start of >> Scan replicated across the Swath >> Surface_Temperature=>tsfc 0 y,x Surface_Temperature >> endvars >> >> You can add more variables, including some that have a Z axis, >> depending on what you'd like to look at in the file. The rest of the >> required descriptor file entries are discussed in the documentation >> page http://iges.org/grads/gadoc/SDFdescriptorfile.html >> >> --Jennifer >> >> >> On Oct 19, 2009, at 10:49 AM, Yan Libin wrote: >>> a ctl is not enough >> >> On Oct 19, 2009, at 10:49 AM, Jayakrishnan PR wrote: >>> ... we cannot open them through grads by writing a ctl file. >> >> >> On Oct 19, 2009, at 10:26 AM, Hao He wrote: >> >>> Hi, >>> I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen >>> and >>> xdfopen do not work for me, so I need to write a complete .ctl file. >>> But >> >>> I am confused after reading the MODIS data set >>> (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) >> >>> I am wondering if anyone has experience on it. >>> Thanks a lot! >>> >>> Hao -- 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/20091019/fed4be01/attachment.html From hhe at ATMOS.UMD.EDU Mon Oct 19 15:55:58 2009 From: hhe at ATMOS.UMD.EDU (Hao He) Date: Mon, 19 Oct 2009 15:55:58 -0400 Subject: .ctl for MODIS HDF file In-Reply-To: Message-ID: You are right. I found this: o DTYPE netcdf and DTYPE hdfsds are DISABLED. Do you know how to turn it on? Hao | Hao He | | Graduate Assistant | | CSS bldg 4365 | | Jull Hall lab (301)405-7625 | | Cellphone (240)672-7912 | | Department of Atmospheric & Oceanic Science | | University of Maryland | | College Park, MD 20742 | On Mon, 19 Oct 2009, Jennifer Adams wrote: > What is the output from 'q config' ? > > On Oct 19, 2009, at 3:49 PM, Hao He wrote: > >> I put this in my .ctl file as an example: >> >> set ^MOD06_L2.A2008094.0225.005.2008096042152.hdf >> title MODIS Level 2 cloud product >> undef -32768 >> xdef 270 linear 112.856 0.1201260 >> ydef 406 linear 29.1195 0.0525835 >> tdef 1 linear 02:25Z03APR2008 5MN >> zdef 1 linear 1 1 >> dtype hdfsds >> vars 3 >> Latitude=>scanlat 0 y,x Geodetic Latitude >> Longitude=>scanlon 0 y,x Geodetic Longitude >> Surface_Pressure=>sfcpres 0 y,x Surface Pressure >> endvars >> >> But I got this warning: >> >> Scanning description file: >> MOD06_L2.A2008094.0225.005.2008096042152.ctl >> Open Error: Data file type invalid >> --> The invalid description file record is: >> --> dtype hdfsds >> >> I am confused about the data type. Not HDF-SDS? >> >> Hao >> >> | Hao He | >> | Graduate Assistant | >> | CSS bldg 4365 | >> | Jull Hall lab (301)405-7625 | >> | Cellphone (240)672-7912 | >> | Department of Atmospheric & Oceanic Science | >> | University of Maryland | >> | College Park, MD 20742 | >> >> On Mon, 19 Oct 2009, Jennifer Adams wrote: >> >>> I can't allow misinformation to go out to the list uncorrected: GrADS >>> can read any HDF file containing gridded fields. >>> This particular HDF file contains swath data. It's gridded -- there >>> are 406 cells in the along-swath direction, and 270 cells in the >>> across-swath direction. GrADS will read this data, but only onto an >>> abstract x,y grid. The lat/lon values of each grid point are read in >>> as data variables. A full 'dtype hdfsds' descriptor file would >>> include >>> the following lines: >>> >>> xdef 270 linear 1 1 >>> ydef 406 linear 1 1 >>> tdef 1 linear ... >>> ... >>> vars 4 >>> Latitude=>scanlat 0 y,x Geodetic Latitude >>> Longitude=>scanlon 0 y,x Geodetic Longitude >>> Scan_Start_Time=>scantime 0 y,x International Atomic Time at Start of >>> Scan replicated across the Swath >>> Surface_Temperature=>tsfc 0 y,x Surface_Temperature >>> endvars >>> >>> You can add more variables, including some that have a Z axis, >>> depending on what you'd like to look at in the file. The rest of the >>> required descriptor file entries are discussed in the documentation >>> page http://iges.org/grads/gadoc/SDFdescriptorfile.html >>> >>> --Jennifer >>> >>> >>> On Oct 19, 2009, at 10:49 AM, Yan Libin wrote: >>>> a ctl is not enough >>> >>> On Oct 19, 2009, at 10:49 AM, Jayakrishnan PR wrote: >>>> ... we cannot open them through grads by writing a ctl file. >>> >>> >>> On Oct 19, 2009, at 10:26 AM, Hao He wrote: >>> >>>> Hi, >>>> I want to read MODIS HDF file by GrADS. Unfortunately both sdfopen >>>> and >>>> xdfopen do not work for me, so I need to write a complete .ctl file. >>>> But >>> >>>> I am confused after reading the MODIS data set >>>> (http://modis-atmos.gsfc.nasa.gov/MOD07_L2/format.html) >>> >>>> I am wondering if anyone has experience on it. >>>> Thanks a lot! >>>> >>>> Hao > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > From kwmski7 at SNU.AC.KR Mon Oct 19 23:15:04 2009 From: kwmski7 at SNU.AC.KR (Kim WonMoo) Date: Tue, 20 Oct 2009 12:15:04 +0900 Subject: UNSUBSCRIBE In-Reply-To: <003d01ca50e9$c88398b0$598aca10$@ac.uk> Message-ID: plz.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091020/9310adce/attachment.html From alessandro.raolil at CMCC.IT Tue Oct 20 11:05:33 2009 From: alessandro.raolil at CMCC.IT (Sandro Raolil) Date: Tue, 20 Oct 2009 17:05:33 +0200 Subject: GRIB file problems Message-ID: Hi all, I have some problems to display GRIB files with GrADS. i know this is a known problem, but pheraphs someone could have some news. I have 2 GRIB file (Grib 1 version) and using grib2ctl and gribmap (both directly and after copygb trasformation) I'm not able to plot with GrADS correctly. The first file, with command "wgrib -d 1 -V LF.grb", display: rec 1:34:date 2009071812 UGRD kpds5=33 kpds6=100 kpds7=70 levels=(0,70) grid=41 70 mb 12hr fcst: UGRD=u wind [m/s] timerange 0 P1 12 P2 0 TimeU 1 nx -1 ny 73 GDS grid 0 num_in_ave 0 missing 0 center 74 subcenter 0 process 45 Table 2 thinned latlon: lat -90.000000 to 0.000000 by 1.250000 nxny 3447 long -30.000000 to 60.000000, 3447 grid pts (-1 x 73) scan 64 mode 128 bdsgrid 1 2 3 5 6 8 9 11 12 14 16 17 19 20 22 23 25 26 28 29 30 32 33 35 36 38 39 40 42 43 44 45 47 48 49 50 51 52 54 55 56 57 58 59 60 60 61 62 63 64 65 65 66 67 67 68 69 69 70 70 71 71 71 72 72 72 73 73 73 73 73 73 73 73 min/max data -8.53127 57.8437 num bits 10 BDS_Ref -8.53127 DecScale 0 BinScale -3 The second file, with command "wgrib -d 1 -V YM.grb", display: grib header at record 1: two values of nxny 26331 21275 LEN 31928 DataStart 14 UnusedBits 11 #Bits 12 nxny 26331 rec 1:0:date 2009071812 GP kpds5=6 kpds6=100 kpds7=950 levels=(3,182) grid=255 950 mb 9hr fcst: GP=Geopotential [m^2/s^2] timerange 0 P1 9 P2 0 TimeU 1 nx 21275 ny 1 GDS grid 0 num_in_ave 0 missing 0 center 85 subcenter 0 process 211 Table 1 latlon: lat 65.000000 to 0.000000 by 0.500000 nxny 21275 long -30.000000 to 70.000000 by 0.500000, (21275 x 1) scan 0 mode 128 bdsgrid 1 min/max data 3016.1 7111.1 num bits 12 BDS_Ref 3016.1 DecScale 0 BinScale 0 Any suggestions? Thanks Sandro From neva_4_gotten89 at YAHOO.COM Wed Oct 21 17:10:03 2009 From: neva_4_gotten89 at YAHOO.COM (Dereka Carroll) Date: Wed, 21 Oct 2009 14:10:03 -0700 Subject: No subject In-Reply-To: <128fb9ed0910172358o1670f48dt8dd4edc4c4f9ba03@mail.gmail.com> Message-ID: Thanks! :-) --- On Sun, 10/18/09, eliav schmulewitz wrote: From: eliav schmulewitz Subject: To: GRADSUSR at LIST.CINECA.IT Date: Sunday, October 18, 2009, 1:58 AM hi i dont know if this is what you mean, but here is part of a script i add to identify the date 'set t 'count ? 'q time' date=subwrd(result,3) hour=substr(date,1,3) day=substr(date,4,2) month=substr(date,6,3) year=substr(date,9,10) date_str=hour' 'day'/'month'/'year *.... *..... *and then in the end 'draw xlab 'hour'.'day'.'month'.'year is this what you need? eliav On Sat, Oct 17, 2009 at 6:50 PM, Dereka Carroll wrote: I am analyzing narr data and I am trying to write a grads script to split time date and hour...any help will be greatly appreciate -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091021/37bbab93/attachment.html From hc.nnamchi at LASG.IAP.AC.CN Thu Oct 22 05:31:27 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Thu, 22 Oct 2009 17:31:27 +0800 Subject: On tcorr and tregr functions Message-ID: Dear colleagues, I am trying to calculate the correlation coefficients between a time series and global SST using the tcorr function (http://www.iges.org/grads/gadoc/gradfunctcorr.html).But the function does not work.The tregr does not also work. 'open d:\analysis\EOF\eof_series1.ctl?"single time series:t=1,t=57; x=y=z= 1" 'open d:\analysis\DATA\winter_sst.ctl?"global: lon 0 360, lat -90 90; t=1,t=57,z=1" 'set y 1' 'set z 1' 'set t 1 57' 'set lon -180 180' 'set lat -90 10' 'set z 1' 'set t 1' 'set gxout contour' 'd tcorr(series.1,winter.2,t=1,t=57)' If I define an index using the SST data (as in the documentation, above) it works and give reliable result. Any ideas on what I've been doing wrong? Thanks, hyacinth From sajjad_met at HOTMAIL.COM Thu Oct 22 05:40:03 2009 From: sajjad_met at HOTMAIL.COM (Sajjad Saeed) Date: Thu, 22 Oct 2009 15:40:03 +0600 Subject: On tcorr and tregr functions In-Reply-To: <5761668.387331256203887012.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: Hi Hyacinth You first define the time series e.g., set t 1 100 define ts= then use d tcorr(ts,sst,t=1,t=100) Hope this will work Best Sajjad ****************************************************************************** Sajjad Saeed Max Planck Institute for Meteorology, Bundestrasse 53, 20146 Hamburg, Germany. > Date: Thu, 22 Oct 2009 17:31:27 +0800 > From: hc.nnamchi at LASG.IAP.AC.CN > Subject: On tcorr and tregr functions > To: GRADSUSR at LIST.CINECA.IT > > Dear colleagues, > I am trying to calculate the correlation coefficients between a time series and global SST > using the tcorr function (http://www.iges.org/grads/gadoc/gradfunctcorr.html).But the function does not work.The tregr does not also work. > > 'open d:\analysis\EOF\eof_series1.ctl?"single time series:t=1,t=57; x=y=z= 1" > 'open d:\analysis\DATA\winter_sst.ctl?"global: lon 0 360, lat -90 90; t=1,t=57,z=1" > > 'set y 1' > 'set z 1' > 'set t 1 57' > 'set lon -180 180' > 'set lat -90 10' > 'set z 1' > 'set t 1' > 'set gxout contour' > > 'd tcorr(series.1,winter.2,t=1,t=57)' > > If I define an index using the SST data (as in the documentation, above) it works and give reliable result. > > Any ideas on what I've been doing wrong? > > Thanks, > hyacinth _________________________________________________________________ Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091022/4edf149c/attachment.html From eromeroo at INM.ES Thu Oct 22 07:50:53 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Thu, 22 Oct 2009 13:50:53 +0200 Subject: cbarn.gs Message-ID: Hello, Is it possible to place the color legend in a diferent place from the acutal vpage position of the plot? For example if I want to draw a 4X3 plot page (12 plots in total, 4 rows and 3 columns) and the legend is the same for all of them. How can I place the legend in the bottom of the hole page not in the botton of each plot? Thanks. Esther. From eliavs at GMAIL.COM Thu Oct 22 08:11:31 2009 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Thu, 22 Oct 2009 14:11:31 +0200 Subject: cbarn.gs In-Reply-To: <1256212252.3044.78.camel@holmio> Message-ID: Esther sure you can if you open the cbarn script that is in the same file as your grads probably in a file called scripts it explains as folows: "run cbarn sf vert xmid ymid * * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. * vert - 0 FORCES a horizontal bar = 1 a vertical bar * xmid - the x position on the virtual page the center the bar * ymid - the x position on the virtual page the center the bar * * if vert,xmid,ymid are not specified, they are selected * as in the original algorithm" good luck eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091022/b78b7114/attachment.html From eromeroo at INM.ES Thu Oct 22 08:23:39 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Thu, 22 Oct 2009 14:23:39 +0200 Subject: cbarn.gs In-Reply-To: <128fb9ed0910220511t3f58f4b7rbc8fc96b676e55c8@mail.gmail.com> Message-ID: Thanks! But if I have used the "set vpage" command it will plot the legend inside the virtual page defined, even if I don't specified any parameter. If I use after the plot "set vpage off" to return to the default state where the real page equals the virtual one it says that does not have any shading information. I would like to have many plots but just one legend in the bottom of the page... Thanks again! Esther. El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > Esther > sure you can > if you open the cbarn script that is in the same file as your grads > probably in a file called scripts > it explains as folows: > "run cbarn sf vert xmid ymid > * > * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. > * vert - 0 FORCES a horizontal bar = 1 a vertical bar > * xmid - the x position on the virtual page the center the bar > * ymid - the x position on the virtual page the center the bar > * > * if vert,xmid,ymid are not specified, they are selected > * as in the original algorithm" > good luck > eliav > From michael.l.sestak at NAVY.MIL Thu Oct 22 09:39:54 2009 From: michael.l.sestak at NAVY.MIL (Sestak, Michael L CIV 63134) Date: Thu, 22 Oct 2009 06:39:54 -0700 Subject: cbarn.gs In-Reply-To: <1256214218.3044.84.camel@holmio> Message-ID: After your last plot, but before you change the vpage, put 'q shades' _shades=result From: Esther Romero Olivares Sent: Thu 10/22/2009 5:23 To: GRADSUSR at LIST.CINECA.IT Subject: Re: cbarn.gs Thanks! But if I have used the "set vpage" command it will plot the legend inside the virtual page defined, even if I don't specified any parameter. If I use after the plot "set vpage off" to return to the default state where the real page equals the virtual one it says that does not have any shading information. I would like to have many plots but just one legend in the bottom of the page... Thanks again! Esther. El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > Esther > sure you can > if you open the cbarn script that is in the same file as your grads > probably in a file called scripts > it explains as folows: > "run cbarn sf vert xmid ymid > * > * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. > * vert - 0 FORCES a horizontal bar = 1 a vertical bar > * xmid - the x position on the virtual page the center the bar > * ymid - the x position on the virtual page the center the bar > * > * if vert,xmid,ymid are not specified, they are selected > * as in the original algorithm" > good luck > eliav > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091022/60c012f3/attachment.html From c.hayes at WEERONLINE.NL Thu Oct 22 11:13:15 2009 From: c.hayes at WEERONLINE.NL (Chris Hayes) Date: Thu, 22 Oct 2009 17:13:15 +0200 Subject: maskout colours with gxout=barb Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091022/1df74777/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: WeerOnline.200x50.png Type: image/png Size: 9648 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091022/1df74777/attachment.png -------------- next part -------------- A non-text attachment was scrubbed... Name: iso.gif Type: image/gif Size: 4404 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091022/1df74777/attachment.gif From jdduda at IASTATE.EDU Thu Oct 22 13:36:24 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Thu, 22 Oct 2009 12:36:24 -0500 Subject: What is plg? Message-ID: Hello, I am using RUC model output for analyses and I have two variables that confuse me. Here is output from "q ctlinfo": capesfc 0 157 ** surface Convective Avail. Pot. Energy [J/kg] capeplg 0 157 ** Convective Avail. Pot. Energy [J/kg] cinsfc 0 156 ** surface Convective inhibition [J/kg] cinplg 0 156 ** Convective inhibition [J/kg] For each of these pairs of thermodynamic variables, what is the "...plg" one? Is it some sort of mixed layer value? Please help explain. Jeff -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091022/2cf30434/attachment.html From ousmane at IRI.COLUMBIA.EDU Thu Oct 22 13:48:13 2009 From: ousmane at IRI.COLUMBIA.EDU (Ousmane Ndiaye) Date: Thu, 22 Oct 2009 13:48:13 -0400 Subject: set parea plot with one color Message-ID: Hi, When is use set parea for the second time the graphic is plotted using only one color is there a way to deal with that ? Ousmane From ousmane at IRI.COLUMBIA.EDU Thu Oct 22 13:51:34 2009 From: ousmane at IRI.COLUMBIA.EDU (Ousmane Ndiaye) Date: Thu, 22 Oct 2009 13:51:34 -0400 Subject: defining array of characters Message-ID: Hi, I want to use loop to plot my graphics and I am wondering if there is a away to pre-define an array of character in grads that I can use for example in labeling the title of each graphic in a loop by index reference aka : title=['north','south','east'] then use title(i). Ousmane From jimp at HAWAII.EDU Thu Oct 22 14:30:15 2009 From: jimp at HAWAII.EDU (James T. Potemra) Date: Thu, 22 Oct 2009 08:30:15 -1000 Subject: defining array of characters In-Reply-To: <13939743.84741256233894960.JavaMail.root@iripogo1.ldeo.columbia.edu> Message-ID: Hi Ousmane: I think you can do something like this: title.1 = 'north' title.2 = 'south' title.3 = 'east' i = 1 while ( i <= 3 ) . . . 'draw title 'title.i i = i + 1 endwhile Jim Ousmane Ndiaye wrote: > Hi, > I want to use loop to plot my graphics and I am wondering if there is a away to pre-define an array of character in grads that I can use for example in labeling the title of each graphic in a loop by index reference aka : > title=['north','south','east'] > then use title(i). > Ousmane > From Peter.M.Smith at NASA.GOV Thu Oct 22 18:29:05 2009 From: Peter.M.Smith at NASA.GOV (Peter Smith) Date: Fri, 23 Oct 2009 00:29:05 +0200 Subject: Installing grads-2.0.a7.1 Message-ID: Hi, I am trying to install subject s/w for windows xp machine. I get two folders downloaded bin and dll. When I try to run an executable from bin I get error message that a dll file was not found. The file labeled INSTALL seems to just be an info file for unix install. What do I have to do to fix this problem? Thank you Peter From arlindo.dasilva at GMAIL.COM Thu Oct 22 21:00:46 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 22 Oct 2009 21:00:46 -0400 Subject: Installing grads-2.0.a7.1 In-Reply-To: <20091022223024.8B8D520214@mx2.cineca.it> Message-ID: On Thu, Oct 22, 2009 at 6:29 PM, Peter Smith wrote: > Hi, > I am trying to install subject s/w for windows xp machine. I get two > folders > downloaded bin and dll. > > > When I try to run an executable from bin I get error message that a dll > file > was not found. > > The file labeled INSTALL seems to just be an info file for unix install. > > > What do I have to do to fix this problem? > > Do you have cygwin installed on your system? First make sure the directory where you have your DLLs is in your path. If it still complains about missing DLLs you may need to install these using the standard cygwin setup procedure. More information about cygwin at http://cygwin.com. You may find that the Win32 Superpack more straightforward to install. It uses a traditional windows automatic installer that should get you going in less than 5 minutes. All you need is included, no need to install cygwin separately or get an X server. You will be able to run GrADS from the [Start] menu, or from an icon on your desktop (just click on Ollie, the friendly turtle.) You can download it from here: http://sourceforge.net/projects/opengrads/files/grads2-windows/2.0.a7.oga.2/ Windows specific information available on this wiki: http://opengrads.org/wiki/index.php?title=Installing_GrADS_v2.0_on_Microsoft_Windows Although this build includes the opengrads extensions, you are free to ignore them. This build should have all the same features found in the regular v2.0.a7.1 build from COLA. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091022/7f839484/attachment.html From rupak.rajbhandari at GMAIL.COM Fri Oct 23 02:07:07 2009 From: rupak.rajbhandari at GMAIL.COM (Rupak Rajbhandari) Date: Fri, 23 Oct 2009 11:52:07 +0545 Subject: cbarn.gs In-Reply-To: <1256214218.3044.84.camel@holmio> Message-ID: Hi,I think the color legend has to be inside the vpage. But for two columns map display, you may plot 'cbarn' at both the vpage forcing the same mid point so that it appears in the middle. -rupak On Thu, Oct 22, 2009 at 6:08 PM, Esther Romero Olivares wrote: > Thanks! > > But if I have used the "set vpage" command it will plot the legend > inside the virtual page defined, even if I don't specified any > parameter. > > If I use after the plot "set vpage off" to return to the default state > where the real page equals the virtual one it says that does not have > any shading information. > > I would like to have many plots but just one legend in the bottom of the > page... > > Thanks again! > > Esther. > > El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > > Esther > > sure you can > > if you open the cbarn script that is in the same file as your grads > > probably in a file called scripts > > it explains as folows: > > "run cbarn sf vert xmid ymid > > * > > * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. > > * vert - 0 FORCES a horizontal bar = 1 a vertical bar > > * xmid - the x position on the virtual page the center the bar > > * ymid - the x position on the virtual page the center the bar > > * > > * if vert,xmid,ymid are not specified, they are selected > > * as in the original algorithm" > > good luck > > eliav > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091023/bdae1aa0/attachment.html From eromeroo at INM.ES Fri Oct 23 06:41:04 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Fri, 23 Oct 2009 12:41:04 +0200 Subject: cbarn.gs In-Reply-To: <53b33a3c0910222307m2c30d918qabab308a649de041@mail.gmail.com> Message-ID: Hi! I have fixed it in a not very elegant way but a way that works. I have defined a new vpage and plot a white map (with nothing, no mapdraw, no frame...) situated where I wanted to appear the color legend :-)) Thanks to all! El vie, 23-10-2009 a las 08:07, Rupak Rajbhandari escribi?: > Hi, > I think the color legend has to be inside the vpage. But for two > columns map display, you may plot 'cbarn' at both the vpage forcing > the same mid point so that it appears in the middle. > > -rupak > > On Thu, Oct 22, 2009 at 6:08 PM, Esther Romero Olivares > wrote: > Thanks! > > But if I have used the "set vpage" command it will plot the > legend > inside the virtual page defined, even if I don't specified any > parameter. > > If I use after the plot "set vpage off" to return to the > default state > where the real page equals the virtual one it says that does > not have > any shading information. > > I would like to have many plots but just one legend in the > bottom of the > page... > > Thanks again! > > Esther. > > El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > > > Esther > > sure you can > > if you open the cbarn script that is in the same file as > your grads > > probably in a file called scripts > > it explains as folows: > > "run cbarn sf vert xmid ymid > > * > > * sf - scale the whole bar 1.0 = original 0.5 half the > size, etc. > > * vert - 0 FORCES a horizontal bar = 1 a vertical bar > > * xmid - the x position on the virtual page the center > the bar > > * ymid - the x position on the virtual page the center > the bar > > * > > * if vert,xmid,ymid are not specified, they are selected > > * as in the original algorithm" > > good luck > > eliav > > > > > From eromeroo at INM.ES Fri Oct 23 06:42:44 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Fri, 23 Oct 2009 12:42:44 +0200 Subject: FWD: cbarn.gs In-Reply-To: <1256294464.10511.8.camel@holmio> Message-ID: Ah, the result is this one. If you say any improvement that can be done, just let me know. Thanks. El vie, 23-10-2009 a las 12:41, Esther Romero Olivares escribi?: > Hi! > > I have fixed it in a not very elegant way but a way that works. I have > defined a new vpage and plot a white map (with nothing, no mapdraw, no > frame...) situated where I wanted to appear the color legend :-)) > > Thanks to all! > > El vie, 23-10-2009 a las 08:07, Rupak Rajbhandari escribi?: > > Hi, > > I think the color legend has to be inside the vpage. But for two > > columns map display, you may plot 'cbarn' at both the vpage forcing > > the same mid point so that it appears in the middle. > > > > -rupak > > > > On Thu, Oct 22, 2009 at 6:08 PM, Esther Romero Olivares > > wrote: > > Thanks! > > > > But if I have used the "set vpage" command it will plot the > > legend > > inside the virtual page defined, even if I don't specified any > > parameter. > > > > If I use after the plot "set vpage off" to return to the > > default state > > where the real page equals the virtual one it says that does > > not have > > any shading information. > > > > I would like to have many plots but just one legend in the > > bottom of the > > page... > > > > Thanks again! > > > > Esther. > > > > El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > > > > > Esther > > > sure you can > > > if you open the cbarn script that is in the same file as > > your grads > > > probably in a file called scripts > > > it explains as folows: > > > "run cbarn sf vert xmid ymid > > > * > > > * sf - scale the whole bar 1.0 = original 0.5 half the > > size, etc. > > > * vert - 0 FORCES a horizontal bar = 1 a vertical bar > > > * xmid - the x position on the virtual page the center > > the bar > > > * ymid - the x position on the virtual page the center > > the bar > > > * > > > * if vert,xmid,ymid are not specified, they are selected > > > * as in the original algorithm" > > > good luck > > > eliav > > > > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: tmax-mensual.eps Type: application/postscript Size: 391790 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091023/52bfc5f4/attachment.eps From matthias.fripp at ECI.OX.AC.UK Fri Oct 23 05:54:19 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Fri, 23 Oct 2009 10:54:19 +0100 Subject: defining array of characters In-Reply-To: <4AE0A4B7.50207@hawaii.edu> Message-ID: You could also use something like this: titles = 'north south east' 'draw title ' subwrd(titles, i) That's what I came up with before I saw Jim Potemra's answer, but it's probably less efficient. Matthias On Oct 22, 2009, at 7:30 PM, James T. Potemra wrote: > Hi Ousmane: > > I think you can do something like this: > > title.1 = 'north' > title.2 = 'south' > title.3 = 'east' > i = 1 > while ( i <= 3 ) > . > . > . > 'draw title 'title.i > i = i + 1 > endwhile > > > Jim > > Ousmane Ndiaye wrote: >> Hi, >> I want to use loop to plot my graphics and I am wondering if there >> is a away to pre-define an array of character in grads that I can >> use for example in labeling the title of each graphic in a loop by >> index reference aka : >> title=['north','south','east'] >> then use title(i). >> Ousmane >> From ykyei at YAHOO.COM Fri Oct 23 08:33:43 2009 From: ykyei at YAHOO.COM (Yaw Kyei) Date: Fri, 23 Oct 2009 05:33:43 -0700 Subject: FWD: cbarn.gs In-Reply-To: <1256294564.10511.11.camel@holmio> Message-ID: How are you able to generate one bar for all the plots with the vpage? Yaw --- On Fri, 10/23/09, Esther Romero Olivares wrote: > From: Esther Romero Olivares > Subject: FWD: cbarn.gs > To: GRADSUSR at LIST.CINECA.IT > Date: Friday, October 23, 2009, 10:42 AM > Ah, the result is this one. If you > say any improvement that can be done, > just let me know. > > Thanks. > > > > El vie, 23-10-2009 a las 12:41, Esther Romero Olivares > escribi?: > > Hi! > > > > I have fixed it in a not very elegant way but a way > that works. I have > > defined a new vpage and plot a white map (with > nothing, no mapdraw, no > > frame...) situated where I wanted to appear the color > legend :-)) > > > > Thanks to all! > > > > El vie, 23-10-2009 a las 08:07, Rupak Rajbhandari > escribi?: > > > Hi, > > > I think the color legend has to be inside the > vpage. But for two > > > columns map display, you may plot 'cbarn' at both > the vpage forcing > > > the same mid point so that it appears in the > middle. > > > > > > -rupak > > > > > > On Thu, Oct 22, 2009 at 6:08 PM, Esther Romero > Olivares > > > > wrote: > > > Thanks! > > > > > > But if I > have used the "set vpage" command it will plot the > > > legend > > > inside the > virtual page defined, even if I don't specified any > > > parameter. > > > > > > If I use > after the plot "set vpage off" to return to the > > > default > state > > > where the > real page equals the virtual one it says that does > > > not have > > > any shading > information. > > > > > > I would > like to have many plots but just one legend in the > > > bottom of > the > > > page... > > > > > > Thanks > again! > > > > > > Esther. > > > > > > El jue, > 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > > > > > > > > Esther > > > > sure > you can > > > > if you > open the cbarn script that is in the same file as > > > your grads > > > > > probably in a file called scripts > > > > it > explains as folows: > > > > "run > cbarn sf vert xmid ymid > > > > * > > > > > * sf - scale the whole bar 1.0 > = original 0.5 half the > > > size, etc. > > > > > * vert - 0 FORCES a horizontal bar = 1 a > vertical bar > > > > > * xmid - the x position on the virtual page the > center > > > the bar > > > > > * ymid - the x position on the virtual page the > center > > > the bar > > > > * > > > > > * if vert,xmid,ymid are not specified, they are > selected > > > > > * as in the original algorithm" > > > > good > luck > > > > eliav > > > > > > > > > > > > > > From Diane.Stokes at NOAA.GOV Fri Oct 23 11:54:50 2009 From: Diane.Stokes at NOAA.GOV (Diane Stokes) Date: Fri, 23 Oct 2009 11:54:50 -0400 Subject: cbarn.gs In-Reply-To: <1256214218.3044.84.camel@holmio> Message-ID: Esther, You can make a new version of cbarn.gs that includes: 'set vpage off' after the shading info is stored, but before the plot size is determined. I'm attaching a version I frequently use. It includes extra optional arguments to: reset the virtual page (what you want), modify the label thickness, and print the values diagonally (useful for horizontal bars with many values). I hope this helps. Diane Esther Romero Olivares wrote: > Thanks! > > But if I have used the "set vpage" command it will plot the legend > inside the virtual page defined, even if I don't specified any > parameter. > > If I use after the plot "set vpage off" to return to the default state > where the real page equals the virtual one it says that does not have > any shading information. > > I would like to have many plots but just one legend in the bottom of the > page... > > Thanks again! > > Esther. > > El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: >> Esther >> sure you can >> if you open the cbarn script that is in the same file as your grads >> probably in a file called scripts >> it explains as folows: >> "run cbarn sf vert xmid ymid >> * >> * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. >> * vert - 0 FORCES a horizontal bar = 1 a vertical bar >> * xmid - the x position on the virtual page the center the bar >> * ymid - the x position on the virtual page the center the bar >> * >> * if vert,xmid,ymid are not specified, they are selected >> * as in the original algorithm" >> good luck >> eliav >> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cbarnv.gs Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091023/55d40672/attachment.pl From zjuyanlibin at 163.COM Fri Oct 23 12:02:05 2009 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Sat, 24 Oct 2009 00:02:05 +0800 Subject: =?utf-8?B?UmU6IFJlOiBjYmFybi5ncw==?= Message-ID: a cbarn.gs file has caused a lot of attentions. @_@ happy everyone 2009-10-24 Yan Libin ???? Diane Stokes ????? 2009-10-23 23:55:39 ???? GRADSUSR ??? ??? Re: cbarn.gs Esther, You can make a new version of cbarn.gs that includes: 'set vpage off' after the shading info is stored, but before the plot size is determined. I'm attaching a version I frequently use. It includes extra optional arguments to: reset the virtual page (what you want), modify the label thickness, and print the values diagonally (useful for horizontal bars with many values). I hope this helps. Diane Esther Romero Olivares wrote: > Thanks! > > But if I have used the "set vpage" command it will plot the legend > inside the virtual page defined, even if I don't specified any > parameter. > > If I use after the plot "set vpage off" to return to the default state > where the real page equals the virtual one it says that does not have > any shading information. > > I would like to have many plots but just one legend in the bottom of the > page... > > Thanks again! > > Esther. > > El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: >> Esther >> sure you can >> if you open the cbarn script that is in the same file as your grads >> probably in a file called scripts >> it explains as folows: >> "run cbarn sf vert xmid ymid >> * >> * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. >> * vert - 0 FORCES a horizontal bar = 1 a vertical bar >> * xmid - the x position on the virtual page the center the bar >> * ymid - the x position on the virtual page the center the bar >> * >> * if vert,xmid,ymid are not specified, they are selected >> * as in the original algorithm" >> good luck >> eliav >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091024/fb0ad608/attachment.html From ykyei at YAHOO.COM Fri Oct 23 12:27:29 2009 From: ykyei at YAHOO.COM (Yaw Kyei) Date: Fri, 23 Oct 2009 09:27:29 -0700 Subject: cbarn.gs In-Reply-To: <200910240001573280805@163.com> Message-ID: Yan, The attachment did not come through. --- On Fri, 10/23/09, Yan Libin wrote: > From: Yan Libin > Subject: Re: Re: cbarn.gs > To: GRADSUSR at LIST.CINECA.IT > Date: Friday, October 23, 2009, 4:02 PM > ??? > > > > _filtered #yiv1301166942 { > font-family:??????; > } > _filtered #yiv1301166942 { > font-family:Verdana; > } > _filtered #yiv1301166942 { > > } > _filtered #yiv1301166942 {margin:72.0pt 90.0pt 72.0pt > 90.0pt;} > #yiv1301166942 P.MsoNormal { > TEXT-JUSTIFY:inter-ideograph;TEXT-ALIGN:justify;MARGIN:0cm > 0cm 0pt;FONT-FAMILY:"Times New Roman";FONT-SIZE:10.5pt;} > #yiv1301166942 LI.MsoNormal { > TEXT-JUSTIFY:inter-ideograph;TEXT-ALIGN:justify;MARGIN:0cm > 0cm 0pt;FONT-FAMILY:"Times New Roman";FONT-SIZE:10.5pt;} > #yiv1301166942 DIV.MsoNormal { > TEXT-JUSTIFY:inter-ideograph;TEXT-ALIGN:justify;MARGIN:0cm > 0cm 0pt;FONT-FAMILY:"Times New Roman";FONT-SIZE:10.5pt;} > #yiv1301166942 A:link { > COLOR:blue;TEXT-DECORATION:underline;} > #yiv1301166942 SPAN.MsoHyperlink { > COLOR:blue;TEXT-DECORATION:underline;} > #yiv1301166942 A:visited { > COLOR:purple;TEXT-DECORATION:underline;} > #yiv1301166942 SPAN.MsoHyperlinkFollowed { > COLOR:purple;TEXT-DECORATION:underline;} > #yiv1301166942 SPAN.EmailStyle17 { > FONT-STYLE:normal;FONT-FAMILY:Verdana;COLOR:windowtext;FONT-WEIGHT:normal;TEXT-DECORATION:none;} > #yiv1301166942 DIV.Section1 { > } > #yiv1301166942 UNKNOWN { > FONT-SIZE:10pt;} > #yiv1301166942 BLOCKQUOTE { > MARGIN-TOP:0px;MARGIN-BOTTOM:0px;MARGIN-LEFT:2em;} > #yiv1301166942 OL { > MARGIN-TOP:0px;MARGIN-BOTTOM:0px;} > #yiv1301166942 UL { > MARGIN-TOP:0px;MARGIN-BOTTOM:0px;} > > > > a > cbarn.gs file has caused a lot of > attentions. > @_@ > happy everyone > ? > ? > 2009-10-24 > > > Yan Libin > > > > ???????????? Diane Stokes > > ??????????????? > 2009-10-23? 23:55:39 > > ???????????? GRADSUSR > > ? ??????? > ????????? Re: cbarn.gs > > > > Esther, > > You? can? make? a? new? version? of? cbarn.gs? that? includes: > ? ? ? 'set? vpage? off' > after? the? shading? info? is? stored,? but? before? the? plot? size? is? determined. > > I'm? attaching? a? version? I? frequently? use.? ? It? includes? extra? optional > arguments? to:? reset? the? virtual? page? (what? you? want),? modify? the? label > thickness,? and? print? the? values? diagonally? (useful? for? horizontal? bars > with? many? values). > > ? ? ? I? hope? this? helps. > ? ? ? ? ? ? Diane > > > > Esther? Romero? Olivares? wrote: > >? Thanks! > > > >? But? if? I? have? used? the? "set? vpage"? command? it? will? plot? the? legend > >? inside? the? virtual? page? defined,? even? if? I? don't? specified? any > >? parameter. > > > >? If? I? use? after? the? plot? "set? vpage? off"? to? return? to? the? default? state > >? where? the? real? page? equals? the? virtual? one? it? says? that? does? not? have > >? any? shading? information. > > > >? I? would? like? to? have? many? plots? but? just? one? legend? in? the? bottom? of? the > >? page... > > > >? Thanks? again! > > > >? Esther. > > > >? El? jue,? 22-10-2009? a? las? 14:11,? eliav? schmulewitz? escribi??: > >>? Esther > >>? sure? you? can > >>? if? you? open? the? cbarn? script? that? is? in? the? same? file? as? your? grads > >>? probably? in? a? file? called? scripts > >>? it? explains? as? folows: > >>? "run? cbarn? sf? vert? xmid? ymid > >>? * > >>? *? ? ? ? sf? ? ? -? scale? the? whole? bar? 1.0? =? original? 0.5? half? the? size,? etc. > >>? *? ? ? ? vert? -? 0? FORCES? a? horizontal? bar? =? 1? a? vertical? bar > >>? *? ? ? ? xmid? -? the? x? position? on? the? virtual? page? the? center? the? bar > >>? *? ? ? ? ymid? -? the? x? position? on? the? virtual? page? the? center? the? bar > >>? * > >>? *? ? ? ? if? vert,xmid,ymid? are? not? specified,? they? are? selected > >>? *? ? ? ? as? in? the? original? algorithm" > >>? good? luck > >>? eliav > >> > > From sreeds82 at YAHOO.COM Fri Oct 23 14:53:51 2009 From: sreeds82 at YAHOO.COM (Srinivas Desamsetti) Date: Fri, 23 Oct 2009 11:53:51 -0700 Subject: Plotting T-Phi Diagram or Skew-T digram - Reg Message-ID: Dear Sir/Madam, I have the model predicted data and Observational dataset. The observations are available in ASCII format. With this information, I request you to please suggest me to plot both observed vs model predicted datasets on one Skew-T gram or T-Phi gram. Is there any script available directly to use both these datasets and plot to compare the observed vs model derived profiles. Is there any other software available directly to plot these variables on a T-Phi or Skew-T diagram. Thanking you for your help Sincerely Srinivas Desamsetti Srinivas Research Scholar Department of Meteorology and Oceanography Andhra University Visakhapatnam - 530 003 91 9491686740 (M) sreeds82 at yahoo.com sreeds82 at rediffmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091023/f0eb19c9/attachment.html From hc.nnamchi at LASG.IAP.AC.CN Sat Oct 24 06:44:52 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Sat, 24 Oct 2009 18:44:52 +0800 Subject: On tcorr and tregr functions In-Reply-To: Message-ID: Thanks Saeed, the trick works! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091024/4d8c1215/attachment.html From c.hayes at WEERONLINE.NL Mon Oct 26 05:54:56 2009 From: c.hayes at WEERONLINE.NL (Chris Hayes) Date: Mon, 26 Oct 2009 10:54:56 +0100 Subject: What is plg? In-Reply-To: Message-ID: Jeffrey Duda wrote: > Hello, > I am using RUC model output for analyses and I have two variables that > confuse me. > > Here is output from "q ctlinfo": > > capesfc 0 157 ** surface Convective Avail. Pot. Energy [J/kg] > capeplg 0 157 ** Convective Avail. Pot. Energy [J/kg] > > cinsfc 0 156 ** surface Convective inhibition [J/kg] > cinplg 0 156 ** Convective inhibition [J/kg] > > For each of these pairs of thermodynamic variables, what is the > "...plg" one? Is it some sort of mixed layer value? Please help explain. > For what it's worth; the variable explaining file http://dss.ucar.edu/datasets/ds090.2/docs/all-vars-subgroups says: plg layer btwn two pres levs rel to sfc hth From mqvillafuerte at GMAIL.COM Mon Oct 26 05:58:14 2009 From: mqvillafuerte at GMAIL.COM (Marcelino II Villafuerte) Date: Mon, 26 Oct 2009 17:58:14 +0800 Subject: how to plot model's grid points in grads Message-ID: Hi , can somebody help me with this? I want to plot the grid points that my model has so that I can identify the nearest grid point over land to the stations I'll be using for validation. Your help are highly appreciated! thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091026/4832db26/attachment.html From eromeroo at INM.ES Mon Oct 26 04:27:43 2009 From: eromeroo at INM.ES (Esther Romero Olivares) Date: Mon, 26 Oct 2009 09:27:43 +0100 Subject: cbarn.gs In-Reply-To: <4AE1D1CA.1020207@noaa.gov> Message-ID: Thank you very much! I have tried to place "set vpage off" many times correctly, but it never worked! Thanks again. Esther. El vie, 23-10-2009 a las 17:54, Diane Stokes escribi?: > Esther, > > You can make a new version of cbarn.gs that includes: > 'set vpage off' > after the shading info is stored, but before the plot size is determined. > > I'm attaching a version I frequently use. It includes extra optional > arguments to: reset the virtual page (what you want), modify the label > thickness, and print the values diagonally (useful for horizontal bars > with many values). > > I hope this helps. > Diane > > > > Esther Romero Olivares wrote: > > Thanks! > > > > But if I have used the "set vpage" command it will plot the legend > > inside the virtual page defined, even if I don't specified any > > parameter. > > > > If I use after the plot "set vpage off" to return to the default state > > where the real page equals the virtual one it says that does not have > > any shading information. > > > > I would like to have many plots but just one legend in the bottom of the > > page... > > > > Thanks again! > > > > Esther. > > > > El jue, 22-10-2009 a las 14:11, eliav schmulewitz escribi?: > >> Esther > >> sure you can > >> if you open the cbarn script that is in the same file as your grads > >> probably in a file called scripts > >> it explains as folows: > >> "run cbarn sf vert xmid ymid > >> * > >> * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. > >> * vert - 0 FORCES a horizontal bar = 1 a vertical bar > >> * xmid - the x position on the virtual page the center the bar > >> * ymid - the x position on the virtual page the center the bar > >> * > >> * if vert,xmid,ymid are not specified, they are selected > >> * as in the original algorithm" > >> good luck > >> eliav > >> > > ______________________________________________________________________ > * > * Script to plot a colorbar > * > * The script will assume a colorbar is wanted even if there is > * not room -- it will plot on the side or the bottom if there is > * room in either place, otherwise it will plot along the bottom and > * overlay labels there if any. This can be dealt with via > * the 'set parea' command. In version 2 the default parea will > * be changed, but we want to guarantee upward compatibility in > * sub-releases. > * > * > * modifications by mike fiorino 940614 > * rvp added by diane stokes 20040729 > * > * - the extreme colors are plotted as triangles > * - the colors are boxed in white > * - input arguments in during a run execution: > * > * run cbarn sf vert xmid ymid rvp > * > * sf - scale the whole bar 1.0 = original 0.5 half the size, etc. > * vert - 0 FORCES a horizontal bar = 1 a vertical bar > * xmid - the x position on the virtual page the center the bar > * ymid - the x position on the virtual page the center the bar > * rvp - 1 resets virtual page (one colorbar for several plots) > * thk - thickness of lines and font (default=5) > * diag - 1 draws labels diagaonally (useful for bars with many levels) > * > * if vert,xmid,ymid are not specified, they are selected > * as in the original algorithm > * > > function colorbar (args) > > sf=subwrd(args,1) > vert=subwrd(args,2) > xmid=subwrd(args,3) > ymid=subwrd(args,4) > rvp=subwrd(args,5) > thk=subwrd(args,6) > diag=subwrd(args,7) > > if(sf=''|sf="''");sf=1.0;endif > if(thk=''|thk="''");thk=5;endif > > * > * Check shading information > * > 'query shades' > shdinfo = result > if (subwrd(shdinfo,1)='None') > say 'Cannot plot color bar: No shading information' > return > endif > > * > * Check if reset of virtual page is desired > * > if(rvp = 1) > say 'Colorbar based on colors from last plot drawn' > 'set vpage off' > endif > * > * Get plot size info > * > 'query gxinfo' > rec2 = sublin(result,2) > rec3 = sublin(result,3) > rec4 = sublin(result,4) > xsiz = subwrd(rec2,4) > ysiz = subwrd(rec2,6) > ylo = subwrd(rec4,4) > xhi = subwrd(rec3,6) > xd = xsiz - xhi > > ylolim=0.6*sf > xdlim1=1.0*sf > xdlim2=1.5*sf > barsf=0.8*sf > yoffset=0.2*sf > > * > * Decide if horizontal or vertical color bar > * and set up constants. > * > if (ylo say "Not enough room in plot for a colorbar" > return > endif > cnum = subwrd(shdinfo,5) > * > * logic for setting the bar orientation with user overides > * > if (yloxdlim1) > vchk = 1 > if(vert = 0) ; vchk = 0 ; endif > else > vchk = 0 > if(vert = 1) ; vchk = 1 ; endif > endif > * > * vertical bar > * > > if (vchk = 1 ) > > if(xmid=''|xmid="''") ; xmid = xhi+xd/2 ; endif > xwid = 0.2*sf > ywid = 0.5*sf > > xl = xmid-xwid/2 > xr = xl + xwid > if (ywid*cnum > ysiz*barsf) > ywid = ysiz*barsf/cnum > endif > if(ymid = '' | xmid = "''" ) ; ymid = ysiz/2 ; endif > yb = ymid - ywid*cnum/2 > if(diag != 1) > rot=0 > stroff=0.05*sf > strxsiz=0.12*sf > strysiz=0.13*sf > else > rot=45 > stroff=0.06*sf > strxsiz=0.11*sf > strysiz=0.12*sf > endif > 'set string 1 l 'thk' 'rot > vert = 1 > > else > > * > * horizontal bar > * > > ywid = 0.4 > xwid = 0.8 > > if(ymid='' | ymid="''") ; ymid = ylo/2-ywid/2 ; endif > yt = ymid + yoffset > yb = ymid > if(xmid='' | xmid ="''") ; xmid = xsiz/2 ; endif > if (xwid*cnum > xsiz*barsf) > xwid = xsiz*barsf/cnum > endif > xl = xmid - xwid*cnum/2 > * for horizonal bar, str sizes and offset depend on whether diag or not > if(diag != 1) > stroff=0.05*sf > strxsiz=0.12*sf > strysiz=0.13*sf > rot=0 > stloc=tc > else > * stroff=0.06*sf > stroff=0.04*sf > strxsiz=0.11*sf > strysiz=0.12*sf > rot=315 > stloc=tl > endif > 'set string 1 'stloc' 'thk' 'rot > vert = 0 > endif > > > * > * Plot colorbar > * > > > 'set strsiz 'strxsiz' 'strysiz > num = 0 > while (num rec = sublin(shdinfo,num+2) > col = subwrd(rec,1) > hi = subwrd(rec,3) > if (vert) > yt = yb + ywid > else > xr = xl + xwid > endif > > * Draw the left/bottom triangle > if (num = 0) > if(vert = 1) > xm = (xl+xr)*0.5 > 'set line 'col > 'draw polyf 'xl' 'yt' 'xm' 'yb' 'xr' 'yt' 'xl' 'yt > 'set line 1 1 'thk > 'draw line 'xl' 'yt' 'xm' 'yb > 'draw line 'xm' 'yb' 'xr' 'yt > 'draw line 'xr' 'yt' 'xl' 'yt > else > ym = (yb+yt)*0.5 > 'set line 'col > 'draw polyf 'xl' 'ym' 'xr' 'yb' 'xr' 'yt' 'xl' 'ym > 'set line 1 1 'thk > 'draw line 'xl' 'ym' 'xr' 'yb > 'draw line 'xr' 'yb' 'xr' 'yt > 'draw line 'xr' 'yt' 'xl' 'ym > endif > endif > > * Draw the middle boxes > if (num!=0 & num!= cnum-1) > 'set line 'col > 'draw recf 'xl' 'yb' 'xr' 'yt > 'set line 1 1 'thk > 'draw rec 'xl' 'yb' 'xr' 'yt > endif > > * Draw the right/top triangle > if (num = cnum-1) > if (vert = 1) > 'set line 'col > 'draw polyf 'xl' 'yb' 'xm' 'yt' 'xr' 'yb' 'xl' 'yb > 'set line 1 1 'thk > 'draw line 'xl' 'yb' 'xm' 'yt > 'draw line 'xm' 'yt' 'xr' 'yb > 'draw line 'xr' 'yb' 'xl' 'yb > else > 'set line 'col > 'draw polyf 'xr' 'ym' 'xl' 'yb' 'xl' 'yt' 'xr' 'ym > 'set line 1 1 'thk > 'draw line 'xr' 'ym' 'xl' 'yb > 'draw line 'xl' 'yb' 'xl' 'yt > 'draw line 'xl' 'yt' 'xr' 'ym > endif > endif > > * Put numbers under each segment of the color key > if (num < cnum-1) > if (vert) > xp=xr+stroff > 'draw string 'xp' 'yt' 'hi > else > yp=yb-stroff > 'draw string 'xr' 'yp' 'hi > endif > endif > > * Reset variables for next loop execution > if (vert) > yb = yt > else > xl = xr > endif > num = num + 1 > > endwhile > > return > From feudale at ICTP.IT Mon Oct 26 06:21:31 2009 From: feudale at ICTP.IT (Feudale Laura) Date: Mon, 26 Oct 2009 11:21:31 +0100 Subject: how to plot model's grid points in grads In-Reply-To: <420103080910260258t3f68a2a6i62545b34f19812bf@mail.gmail.com> Message-ID: Hi, you can visualize your gridpoints by setting the following option before displaying your model's variable "var": 'set gxout grfill' 'd var' -- Laura **************************************************************** * Laura Feudale, Ph.D. (GMU/COLA) * * Earth System Physics Section: Physics of Weather and Climate * * The Abdus Salam International Centre for Theoretical Physics * * Trieste, ITALY * **************************************************************** Marcelino II Villafuerte wrote: > Hi , can somebody help me with this? > > I want to plot the grid points that my model has so that I can > identify the nearest grid point over land to the stations I'll be > using for validation. > > Your help are highly appreciated! > thanks a lot! > > From Peter.M.Smith at NASA.GOV Mon Oct 26 16:52:30 2009 From: Peter.M.Smith at NASA.GOV (Peter Smith) Date: Mon, 26 Oct 2009 21:52:30 +0100 Subject: Running Grads scripts on Windows XP platform Message-ID: Hi, I have installed a win32 copy of grads GrADS1.9. Using GRADSDODS I can run a GRADS script successfully if I place it in C:\GrADS\lib where other scripts reside (eg cbarn.gs, etc). I have tried moving this script to my own personal folder and setting the environmental variable GASCRP to point to this folder. There are two classes of environmental variables System and User. I believe you need admin privileges (which I don't have) to set up the system variables. Anyway, gradsdods is not finding this script. Any suggestions? Thank you Peter From klevey at CUSTOMWEATHER.COM Mon Oct 26 19:16:58 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Mon, 26 Oct 2009 16:16:58 -0700 Subject: Establishing a 24-hour maximum value from 4 6-hour forecast hours. Message-ID: MON 26OCT09: 1615PDT Dear Grads users It turns out my current logic is not correct. I am trying to find the highest TMAX2m value for each point on the globe from four 6-hour GFS forecast hours and then plot this value, so that the single plot will show the highest value for each of the 720x181 data points from the 0.5 GFS data covering a period of 24-hours. I know the answer is probably simple, but I seem to making this harder than it should be. Any help would be greatly appreciated. Thanks. Regards, Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town) Director of Meteorological Operations CustomWeather, Inc. San Francisco, California, USA "Taking the World by Storm!" http://www.customweather.com http://www.myforecast.com http://www.1stweather.com cell: 415-794-0411 work: 415-777-3566 email: klevey at customweather.com From jdduda at IASTATE.EDU Mon Oct 26 19:26:27 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Mon, 26 Oct 2009 18:26:27 -0500 Subject: Establishing a 24-hour maximum value from 4 6-hour forecast hours. In-Reply-To: Message-ID: I would think a simple "d max(tmp2m,t=(first),t=(last))" command should work. Granted, make sure you have your horizontal domain set to the entire globe. Jeff Duda On Mon, Oct 26, 2009 at 6:16 PM, Kevin M Levey wrote: > MON 26OCT09: 1615PDT > > Dear Grads users > > It turns out my current logic is not correct. I am trying to find the > highest TMAX2m value for each point on the globe from four 6-hour GFS > forecast hours and then plot this value, so that the single plot will > show the highest value for each of the 720x181 data points from the > 0.5 GFS data covering a period of 24-hours. I know the answer is > probably simple, but I seem to making this harder than it should be. > Any help would be greatly appreciated. > > Thanks. > > Regards, > > Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of > Cape Town) > Director of Meteorological Operations > CustomWeather, Inc. > San Francisco, California, USA > > "Taking the World by Storm!" > > http://www.customweather.com > http://www.myforecast.com > http://www.1stweather.com > > cell: 415-794-0411 > work: 415-777-3566 > email: klevey at customweather.com > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091026/f7b6960f/attachment.html From arlindo.dasilva at GMAIL.COM Mon Oct 26 20:34:31 2009 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 26 Oct 2009 20:34:31 -0400 Subject: Running Grads scripts on Windows XP platform In-Reply-To: <20091026205349.CB27A200C1@mx2.cineca.it> Message-ID: On Mon, Oct 26, 2009 at 4:52 PM, Peter Smith wrote: > Hi, > I have installed a win32 copy of grads GrADS1.9. Which version exactly? Do a "q config". > Using GRADSDODS I can run a > GRADS script successfully if I place it in C:\GrADS\lib where other scripts > reside (eg cbarn.gs, etc). > > I have tried moving this script to my own personal folder and setting the > environmental variable GASCRP to point to this folder. How did you do this? Inside a BAT file? try C:\> set GASCRP=C:\SOME\WHERE C:\> gradsdods > There are two > classes of environmental variables System and User. > > I believe you need admin privileges (which I don't have) to set up the > system variables. Anyway, gradsdods is not finding this script. > > You should be able to set this env variable from a BAT file or a VBScript. If you download the Win32 Superpack, either v2.0 (recommended) or v1.10 you can take a look at how the variables are set inside a VBScript (look at the .vbs files in the top directory) https://sourceforge.net/projects/opengrads/files/ Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091026/0df454d3/attachment.html From rmcaffera at YAHOO.COM Mon Oct 26 21:24:58 2009 From: rmcaffera at YAHOO.COM (Mario Caffera) Date: Mon, 26 Oct 2009 18:24:58 -0700 Subject: Running Grads on Windows platform In-Reply-To: <77fcd6b20910261734q6cfd3ed8s736979f9a651c8a4@mail.gmail.com> Message-ID: Hi, Is any possibility for installing GrADS in Windows Vista? I share a 64bits laptop with this toy-Operative System and somtimes I need to work on this platform. thanks mario caffera From klevey at CUSTOMWEATHER.COM Mon Oct 26 23:33:17 2009 From: klevey at CUSTOMWEATHER.COM (Kevin M Levey) Date: Mon, 26 Oct 2009 20:33:17 -0700 Subject: Establishing a 24-hour maximum value from 4 6-hour forecast hours. In-Reply-To: Message-ID: Dear Jeff, Thanks for your response. Yes, your suggestion works just great, however, there is a caveat. Without templating my GFS GRIB2 files your suggestion was not possible. I merely used the new templating feature for g2ctl (http://www.cpc.noaa.gov/products/wesley/g2ctl.html) and then used your suggestion as in 'd max((((TMAX2m-273.16) *1.8) +32),t=9,t=15)' It produced exactly what I was looking for. If templating is not used all GFS GRIB files have only one t value and t does not vary and no matter what I did, it would not work. Templating my GFS GRIB2 files actually has allowed me to process my data a lot faster overall too. 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 Oct 26, 2009, at 10/26/09 - 4:26 PM, Jeffrey Duda wrote: > I would think a simple "d max(tmp2m,t=(first),t=(last))" command > should work. Granted, make sure you have your horizontal domain set > to the entire globe. > > Jeff Duda > > On Mon, Oct 26, 2009 at 6:16 PM, Kevin M Levey > wrote: > MON 26OCT09: 1615PDT > > Dear Grads users > > It turns out my current logic is not correct. I am trying to find the > highest TMAX2m value for each point on the globe from four 6-hour GFS > forecast hours and then plot this value, so that the single plot will > show the highest value for each of the 720x181 data points from the > 0.5 GFS data covering a period of 24-hours. I know the answer is > probably simple, but I seem to making this harder than it should be. > Any help would be greatly appreciated. > > Thanks. > > Regards, > > Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of > Cape Town) > Director of Meteorological Operations > CustomWeather, Inc. > San Francisco, California, USA > > "Taking the World by Storm!" > > http://www.customweather.com > http://www.myforecast.com > http://www.1stweather.com > > cell: 415-794-0411 > work: 415-777-3566 > email: klevey at customweather.com > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091026/bcdbbd47/attachment.html From jdduda at IASTATE.EDU Tue Oct 27 00:15:58 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Mon, 26 Oct 2009 23:15:58 -0500 Subject: Establishing a 24-hour maximum value from 4 6-hour forecast hours. In-Reply-To: Message-ID: Kevin, I'm glad to hear it helped. Indeed, templating helped me do my work much faster as well. Jeff On Mon, Oct 26, 2009 at 10:33 PM, Kevin M Levey wrote: > Dear Jeff, > > Thanks for your response. Yes, your suggestion works just great, however, > there is a caveat. Without templating my GFS GRIB2 files your suggestion was > not possible. I merely used the new templating feature for g2ctl ( > http://www.cpc.noaa.gov/products/wesley/g2ctl.html) and then used your > suggestion as in > > 'd max((((TMAX2m-273.16) *1.8) +32),t=9,t=15)' > > It produced exactly what I was looking for. If templating is not used all > GFS GRIB files have only one t value and t does not vary and no matter what > I did, it would not work. Templating my GFS GRIB2 files actually has allowed > me to process my data a lot faster overall too. > > 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 Oct 26, 2009, at 10/26/09 - 4:26 PM, Jeffrey Duda wrote: > > I would think a simple "d max(tmp2m,t=(first),t=(last))" command should > work. Granted, make sure you have your horizontal domain set to the entire > globe. > > Jeff Duda > > On Mon, Oct 26, 2009 at 6:16 PM, Kevin M Levey wrote: > >> MON 26OCT09: 1615PDT >> >> Dear Grads users >> >> It turns out my current logic is not correct. I am trying to find the >> highest TMAX2m value for each point on the globe from four 6-hour GFS >> forecast hours and then plot this value, so that the single plot will >> show the highest value for each of the 720x181 data points from the >> 0.5 GFS data covering a period of 24-hours. I know the answer is >> probably simple, but I seem to making this harder than it should be. >> Any help would be greatly appreciated. >> >> Thanks. >> >> Regards, >> >> Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of >> Cape Town) >> Director of Meteorological Operations >> CustomWeather, Inc. >> San Francisco, California, USA >> >> "Taking the World by Storm!" >> >> http://www.customweather.com >> http://www.myforecast.com >> http://www.1stweather.com >> >> cell: 415-794-0411 >> work: 415-777-3566 >> email: klevey at customweather.com >> > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda > > > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091026/d25551a7/attachment.html From mqvillafuerte at GMAIL.COM Tue Oct 27 00:50:09 2009 From: mqvillafuerte at GMAIL.COM (Marcelino II Villafuerte) Date: Tue, 27 Oct 2009 12:50:09 +0800 Subject: how to plot model's grid points in grads In-Reply-To: <4AE5782B.4020208@ictp.it> Message-ID: Thank you very much for your help.. On Mon, Oct 26, 2009 at 6:21 PM, Feudale Laura wrote: > Hi, you can visualize your gridpoints by setting the following option > before displaying your model's variable "var": > > 'set gxout grfill' > 'd var' > > -- Laura > > **************************************************************** > * Laura Feudale, Ph.D. (GMU/COLA) * > * Earth System Physics Section: Physics of Weather and Climate * > * The Abdus Salam International Centre for Theoretical Physics * > * Trieste, ITALY * > **************************************************************** > > > > Marcelino II Villafuerte wrote: > > Hi , can somebody help me with this? > > > > I want to plot the grid points that my model has so that I can > > identify the nearest grid point over land to the stations I'll be > > using for validation. > > > > Your help are highly appreciated! > > thanks a lot! > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/41cb6b52/attachment.html From sachinghude at TROPMET.RES.IN Tue Oct 27 08:23:01 2009 From: sachinghude at TROPMET.RES.IN (Sachin Ghude) Date: Tue, 27 Oct 2009 17:53:01 +0530 Subject: masking In-Reply-To: <20081223094945.393D020AC0@mx2.cineca.it> Message-ID: Hi, I want to plot tropospheric NO2 only over the Indian grid points (not Nepal, Pakistan and BanglaDesh). Is there any such utility so that it will enable me to plot data only for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). please do the needful.. bye.. Sachin From dbcl at CEH.AC.UK Tue Oct 27 08:35:03 2009 From: dbcl at CEH.AC.UK (Clark, Douglas B) Date: Tue, 27 Oct 2009 12:35:03 +0000 Subject: masking In-Reply-To: <20091027122038.M62582@mail.tropmet.res.in> Message-ID: Sachin, You can use the maskout function to do this kind of thing, e.g. 'd maskout(no2,india_mask)' but you first need to create a variable (india_mask in my example) that you can use to discriminate between points in India and the rest of your domain. If you don't have such a mask available, you'll have to create one, probably outside of GrADS (e.g. using FORTRAN). See the GrADS website for details of maskout. For example, your india_mask variable would have value 1 over India and some value <0 at all other locations. Maskout needs a field that is <0 at the points to be excluded. Doug >> -----Original Message----- >> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On >> Behalf Of Sachin Ghude >> Sent: 27 October 2009 12:23 >> To: GRADSUSR at LIST.CINECA.IT >> Subject: masking >> >> Hi, >> >> I want to plot tropospheric NO2 only over the Indian grid points (not >> Nepal, Pakistan >> and BanglaDesh). Is there any such utility so that it will enable me >> to plot data only >> for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). >> >> please do the needful.. >> >> bye.. >> >> Sachin -- 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 davide.sacchetti at ARPAL.ORG Tue Oct 27 08:42:04 2009 From: davide.sacchetti at ARPAL.ORG (Davide Sacchetti) Date: Tue, 27 Oct 2009 13:42:04 +0100 Subject: masking In-Reply-To: <20091027122038.M62582@mail.tropmet.res.in> Message-ID: the only chance you have to do it is using maskout function you should prepare a mask with, as example, 1 over india only, then: display maskout(no2,mask) bye bye Davide On Tue, 2009-10-27 at 17:53 +0530, Sachin Ghude wrote: > Hi, > > I want to plot tropospheric NO2 only over the Indian grid points (not Nepal, Pakistan > and BanglaDesh). Is there any such utility so that it will enable me to plot data only > for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). > > please do the needful.. > > bye.. > > Sachin > -- Sacchetti Davide Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria ARPAL Unit? Tecnica Complessa di livello Regionale V.le Brigare Partigiane 2 16121 Genova (I) tel: +39 010 6437535 fax: +39 010 6437520 mail: davide.sacchetti at arpal.org web: www.meteoliguria.it From diego.morelli at TRS.IT Tue Oct 27 09:47:21 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Tue, 27 Oct 2009 14:47:21 +0100 Subject: No subject Message-ID: Problems 1) I need to read with grads also the grib files with lat-long "thinned" grids, I just know, by documentation, that my version (1.8SL11) isn't able to manage this kind of grib files. I put in the attachment an example of this kind of file (LFPW..) 2) I have some files that are managed by grads without error (version 1.8SL11), but the display command says: "Entire Grid Undefined". I put in the attachment an example of this kind of file (YMID..) My questions How can I view, on a picture, information contained in files like those in the attachment? Is there any version of GrADS that manage them? Is there some work-around that I can follow to satisfy my need? If no, do you know any other software that I can be used? We are willing to pay for any new SW developments or your advice. Can you help us? Best regards, Diego ------------------------------------- Diego Morelli T.R.S. S.p.A. Via della Bufalotta, 378 - 00139 Roma Tel. 06.87281.301 Fax 06.87281.550 diego.morelli at trs.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/4ecb6dc1/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: LFPW00190347.20090718153354_P4410PT779A_BPMG12.100964.b Type: application/octet-stream Size: 100964 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091027/4ecb6dc1/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: YMID46_LFPW_181200.20090718143750_P1581PTD802_BPMG10.1807774.GB Type: application/octet-stream Size: 1807774 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091027/4ecb6dc1/attachment-0001.obj From diego.morelli at TRS.IT Tue Oct 27 09:50:22 2009 From: diego.morelli at TRS.IT (Diego Morelli) Date: Tue, 27 Oct 2009 14:50:22 +0100 Subject: Manage lat-lon thinned grid Message-ID: Problems 1) I need to read with grads also the grib files with lat-long "thinned" grids, I just know, by documentation, that my version (1.8SL11) isn't able to manage this kind of grib files. I put in the attachment an example of this kind of files (LFPW..) 2) I have some files that are managed by grads without error (version 1.8SL11), but the display command says: "Entire Grid Undefined". I put in the attachment an example of this kind of files (YMID..) My questions How can I view, on a picture, information contained in files like those in the attachment? Is there any version of GrADS that manage them? Is there some work-around that I can follow to satisfy my need? If no, do you know any other software that I can be used? We are willing to pay for any new SW developments or your advice. Can you help us? Best regards, Diego ------------------------------------- Diego Morelli T.R.S. S.p.A. Via della Bufalotta, 378 - 00139 Roma Tel. 06.87281.301 Fax 06.87281.550 diego.morelli at trs.it -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/e26b8d37/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: LFPW00190347.20090718153354_P4410PT779A_BPMG12.100964.b Type: application/octet-stream Size: 100964 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091027/e26b8d37/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: YMID46_LFPW_181200.20090718143750_P1581PTD802_BPMG10.1807774.GB Type: application/octet-stream Size: 1807774 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091027/e26b8d37/attachment-0001.obj From jdduda at IASTATE.EDU Tue Oct 27 10:11:13 2009 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Tue, 27 Oct 2009 09:11:13 -0500 Subject: masking In-Reply-To: <20091027122038.M62582@mail.tropmet.res.in> Message-ID: I'm assuming you are using the WRF, and if so you should have a variable called LANDMASK in your history files...it takes on the values of 1 for land and 0 for sea. If you have that variable, you can use that as the mask. Jeff Duda On Tue, Oct 27, 2009 at 7:23 AM, Sachin Ghude wrote: > Hi, > > I want to plot tropospheric NO2 only over the Indian grid points (not > Nepal, Pakistan > and BanglaDesh). Is there any such utility so that it will enable me to > plot data only > for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). > > please do the needful.. > > bye.. > > Sachin > -- Jeff Duda Iowa State University Meteorology Graduate Student 3134 Agronomy Hall www.meteor.iastate.edu/~jdduda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/6a61c0d1/attachment.html From daniele.gandini at ARPA.PIEMONTE.IT Tue Oct 27 11:19:11 2009 From: daniele.gandini at ARPA.PIEMONTE.IT (Daniele Gandini) Date: Tue, 27 Oct 2009 16:19:11 +0100 Subject: Undefined value plotted also if I don't want so In-Reply-To: <2008836670.996331256656693693.JavaMail.root@a-topio-clzm1.ad.arpa.piemonte.it> Message-ID: Hello GrADS Users. I run GrADS 1.9b4 on Sun Blade-1000, Solaris 5.9. In my ctl file I wrote: dset ^ECMWF0250_2009102700_000-240.grb index ^ECMWF0250_2009102700_000-240.gmp undef -999.9 But when I display an undefined variable, GrADS instead of saying "Entire grid undefined", issues: Cannot plot color bar: No shading information Constant field. Value = -999.9 It is a problem when I plot a variable map on an area where there are both defined and undefined values or when I plot a time series over a gridpoint. When I work on station data instead of GRIB grid data all works fine. Any ideas? Thank you in advance. Daniele Gandini From matthias.fripp at ECI.OX.AC.UK Tue Oct 27 11:19:59 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Tue, 27 Oct 2009 15:19:59 +0000 Subject: masking In-Reply-To: Message-ID: It sounds like you will need to do something like this: 1. Create a file listing all the grid points in or near India (e.g., within a simple latitude and longitude range that covers all of India and some surrounding areas). 2. Import this list into a GIS program and intersect it with India's land area. 3. Export a list of Indian grid points from the GIS program. 4. Import this list into GRADS. Step 1 would be easy to do, e.g., in a text (.csv) file created in Excel, if your grid is regularly spaced. Step 2 and 3 are easy if you have a GIS program and difficult otherwise. I could help you with that if you want. I don't know how you would do Step 4. I can easily create a text file listing all the relevant points, but I don't know how you would reference that text file from GRADS to create a mask variable. Anyone else have ideas about this? Matthias On Tue, Oct 27, 2009 at 7:23 AM, Sachin Ghude wrote: Hi, I want to plot tropospheric NO2 only over the Indian grid points (not Nepal, Pakistan and BanglaDesh). Is there any such utility so that it will enable me to plot data only for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). please do the needful.. bye.. Sachin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/175af873/attachment.html From sulcaf5 at GMAIL.COM Tue Oct 27 11:35:03 2009 From: sulcaf5 at GMAIL.COM (juan carlos sulca jota) Date: Tue, 27 Oct 2009 10:35:03 -0500 Subject: consulta Message-ID: Buenos d?as , desear?a que alguien me pudiera decir que comando en Grads me permite representar los datos en barras. Revise el comando set gxout bar pero lo malo es que me muestra la figura como una secuencia continua de barras tipo escalera y particularmente deseo barras consecutivas pero diferenciadas en infimos espacios como un histograma discreto. Gracias. -- Juan C. Sulca Jota -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/98f92f46/attachment.html From concha at USAL.ES Tue Oct 27 13:07:43 2009 From: concha at USAL.ES (Concha Rodriguez Puebla) Date: Tue, 27 Oct 2009 18:07:43 +0100 Subject: consulta In-Reply-To: <924bf7e80910270835j5081eb91j4d2627ffd05f36d3@mail.gmail.com> Message-ID: you can use: 'set gxout bar' 'set baropts filled' 'set bargap 20' > Buenos d?as , desear?a que alguien me pudiera decir que comando en > Grads me permite representar los datos en barras. Revise el comando > set gxout bar pero lo malo es que me muestra la figura como una > secuencia continua de barras tipo escalera y particularmente deseo > barras consecutivas pero diferenciadas en infimos espacios como un > histograma discreto. > > Gracias. > > > -- > Juan C. Sulca Jota > > From sulcaf5 at GMAIL.COM Tue Oct 27 12:42:01 2009 From: sulcaf5 at GMAIL.COM (juan carlos sulca jota) Date: Tue, 27 Oct 2009 11:42:01 -0500 Subject: consulta In-Reply-To: <1256663264.5263.1.camel@nao9.fis.usal.es> Message-ID: Muchas gracias. El 27 de octubre de 2009 12:07, Concha Rodriguez Puebla escribi?: > you can use: > > 'set gxout bar' > 'set baropts filled' > 'set bargap 20' > > > > Buenos d?as , desear?a que alguien me pudiera decir que comando en > > Grads me permite representar los datos en barras. Revise el comando > > set gxout bar pero lo malo es que me muestra la figura como una > > secuencia continua de barras tipo escalera y particularmente deseo > > barras consecutivas pero diferenciadas en infimos espacios como un > > histograma discreto. > > > > Gracias. > > > > > > -- > > Juan C. Sulca Jota > > > > > -- Juan C. Sulca Jota FCF - UNMSM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/ccd81fc2/attachment.html From rubensinho at GMAIL.COM Tue Oct 27 16:01:40 2009 From: rubensinho at GMAIL.COM (Ruben G. C) Date: Tue, 27 Oct 2009 14:01:40 -0600 Subject: display station map Message-ID: Hi guys: I have two files, both in GRADS format: one of the files contains station values and the other grads file contains a times series of a particular variable....what I want to do is deploy both variables on a single graph, but when I make: 'd var.1' and then 'd var.2' GRADS sent to me a error message like this: "Invalid Operand 'var.1' not a variable or function name Error ocurred at column 1" Even when I set the time, for the time series file, the message occurs...Can anyone help me? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091027/873b2986/attachment.html From rupak.rajbhandari at GMAIL.COM Wed Oct 28 04:39:31 2009 From: rupak.rajbhandari at GMAIL.COM (Rupak Rajbhandari) Date: Wed, 28 Oct 2009 14:24:31 +0545 Subject: masking In-Reply-To: Message-ID: Hi, Creating a masking file is not a simple procedure. Here I am sending you a masking instruction I prepared (last year for small training group in Nepal). The masking file is for 0.1 resolution, so you need to edit a little. The attached RAR file consists of a instruction file and two fortran programs. In addition you will need ArcView GIS and India shape file (boundary polygon) and fortran compiler. You should first edit the program to suit your resolution. The rest should be clear from the instruction file. Once the masking file has been created, simply replace the master file with undefined values where grid point point values are zero in the masking file. Hope it helps! -rupak On Tue, Oct 27, 2009 at 9:04 PM, Matthias Fripp wrote: > It sounds like you will need to do something like this: > > 1. Create a file listing all the grid points in or near India (e.g., within > a simple latitude and longitude range that covers all of India and some > surrounding areas). > > 2. Import this list into a GIS program and intersect it with India's land > area. > > 3. Export a list of Indian grid points from the GIS program. > > 4. Import this list into GRADS. > > Step 1 would be easy to do, e.g., in a text (.csv) file created in Excel, > if your grid is regularly spaced. > > Step 2 and 3 are easy if you have a GIS program and difficult otherwise. I > could help you with that if you want. > > I don't know how you would do Step 4. I can easily create a text file > listing all the relevant points, but I don't know how you would reference > that text file from GRADS to create a mask variable. Anyone else have ideas > about this? > > Matthias > > On Tue, Oct 27, 2009 at 7:23 AM, Sachin Ghude wrote: > >> Hi, >> >> I want to plot tropospheric NO2 only over the Indian grid points (not >> Nepal, Pakistan >> and BanglaDesh). Is there any such utility so that it will enable me to >> plot data only >> for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). >> >> please do the needful.. >> >> bye.. >> >> Sachin >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091028/36e56046/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: masking.rar Type: application/octet-stream Size: 437078 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091028/36e56046/attachment.obj From matthias.fripp at ECI.OX.AC.UK Wed Oct 28 07:02:05 2009 From: matthias.fripp at ECI.OX.AC.UK (Matthias Fripp) Date: Wed, 28 Oct 2009 11:02:05 +0000 Subject: masking In-Reply-To: <53b33a3c0910280139w6f1a1ea0vfbdc450d168753cb@mail.gmail.com> Message-ID: Wow, you used almost exactly the same approach I suggested (but with more Fortran and less Excel)! Glad to know I was on to something. I'm not fluent in Fortran, so I had trouble deciphering the cr_mask_fl.f program that converts an ASCII list of points into an ASCII masking file that GRADS can read. Would you be able to send a sample of the final ASCII masking file that you produced and the command you use to load it into GRADS? Or if there's an obvious place to look in the instructions, that would be great too. So far I only know how to get GRADS to read local or remote binary files. It would be great to have a way to display data from ASCII/text files that I create myself. Best, Matthias On Oct 28, 2009, at 8:39 AM, Rupak Rajbhandari wrote: > Hi, > > Creating a masking file is not a simple procedure. Here I am sending > you a masking instruction I prepared (last year for small training > group in Nepal). The masking file is for 0.1 resolution, so you need > to edit a little. The attached RAR file consists of a instruction > file and two fortran programs. In addition you will need ArcView GIS > and India shape file (boundary polygon) and fortran compiler. You > should first edit the program to suit your resolution. The rest > should be clear from the instruction file. > > Once the masking file has been created, simply replace the master > file with undefined values where grid point point values are zero in > the masking file. > > Hope it helps! > > -rupak > > > > > > On Tue, Oct 27, 2009 at 9:04 PM, Matthias Fripp > wrote: > It sounds like you will need to do something like this: > > 1. Create a file listing all the grid points in or near India (e.g., > within a simple latitude and longitude range that covers all of > India and some surrounding areas). > > 2. Import this list into a GIS program and intersect it with India's > land area. > > 3. Export a list of Indian grid points from the GIS program. > > 4. Import this list into GRADS. > > Step 1 would be easy to do, e.g., in a text (.csv) file created in > Excel, if your grid is regularly spaced. > > Step 2 and 3 are easy if you have a GIS program and difficult > otherwise. I could help you with that if you want. > > I don't know how you would do Step 4. I can easily create a text > file listing all the relevant points, but I don't know how you would > reference that text file from GRADS to create a mask variable. > Anyone else have ideas about this? > > Matthias > > On Tue, Oct 27, 2009 at 7:23 AM, Sachin Ghude > wrote: > Hi, > > I want to plot tropospheric NO2 only over the Indian grid points > (not Nepal, Pakistan > and BanglaDesh). Is there any such utility so that it will enable me > to plot data only > for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). > > please do the needful.. > > bye.. > > Sachin > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091028/3de409c4/attachment.html From abbasmofidi at YAHOO.COM Wed Oct 28 17:47:41 2009 From: abbasmofidi at YAHOO.COM (abbas mofidi) Date: Wed, 28 Oct 2009 14:47:41 -0700 Subject: tcorr Message-ID: Dear GrADS Users, ? I am trying to calculate the correlation coefficients?by using the tcorr function, but after running the following script I just can to see a blank page. Please let me know, what the problem is! Any help would be really appreciated. ? Thanks, Abbas ? *****************Correlation*************** ?? 'reinit' 'sdfopen D:/Monsoon/DATA/Vwind1000-100mb-1Apr-31Oct2000-4timeDaily.nc' ??? 'set dfile 1' ??? 'set t 245 612' ??? 'set lat 22 45' ??? 'set lon 40 76' ??? 'set lev 850' ??? 'define p = aave(vwnd,lon=59,lon=63,lat=30,lat=36)' ? 'sdfopen D:/Monsoon/DATA/Hgt850mb-1Apr-30Sep2000-4timeDaily.nc' ??? 'set dfile 2' ??? 'set t 245 612' ??? 'set lat 22 45' ??? 'set lon 40 76' ??? 'set lev 850' ??? 'define h = hgt' ? ??? 'set gxout contour' ??? 'set csmooth on linear' ??? 'set grid off' ??? 'set grads off' ??? 'set font 1' ??? 'set cint 0.1' ??? 'set clskip 1' ??? 'set xlevs 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75' ??? 'set ylint 2' ??? 'set ylevs 23 25 27 29 31 33 35 37 39 41 43 45 47' ??? 'set cthick 12' ??? 'set xlopts 1 6 0.15' ??? 'set ylopts 1 6 0.15' ??? 'set clopts 1 6 0.13' ??? 'set mpdset hires' ??? 'set map 1 1 15' ??? 'set ccolor 1 1 6' ??? 'd tcorr(p,h,t=245,t=612)' ??? 'draw title Correlation' ??? 'printim D:/Monsoon/Correlation850hPa.gif x1200 y1100 white' say ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091028/6f1fdac7/attachment.html From hc.nnamchi at LASG.IAP.AC.CN Thu Oct 29 00:06:57 2009 From: hc.nnamchi at LASG.IAP.AC.CN (Hyacinth Cyprain Nnamchi) Date: Thu, 29 Oct 2009 12:06:57 +0800 Subject: tcorr In-Reply-To: <241834.26253.qm@web30406.mail.mud.yahoo.com> Message-ID: Dear Abbas, Before you display tcorr, you have to reset x, y, and t. I have make some changes to your code. I hope it helps or you can look at again. Also see the documentation page: http://www.iges.org/grads/gadoc/gradfunctcorr.html Good luck, hyacinth *****************Correlation*************** 'reinit' 'sdfopen D:/Monsoon/DATA/Vwind1000-100mb-1Apr-31Oct2000-4timeDaily.nc' 'sdfopen D:/Monsoon/DATA/Hgt850mb-1Apr-30Sep2000-4timeDaily.nc' 'set x 1' 'set y 1' 'set z 2' *(please you have to confirm that your lev 850 is z=2!) 'set t 245 612' 'define p = aave(vwnd.1,lon=59,lon=63,lat=30,lat=36)' *indicated .1 for the first var 'set gxout contour' 'set csmooth on linear' 'set grid off' 'set grads off' 'set font 1' 'set cint 0.1' 'set clskip 1' 'set xlevs 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75' 'set ylint 2' 'set ylevs 23 25 27 29 31 33 35 37 39 41 43 45 47' 'set cthick 12' 'set xlopts 1 6 0.15' 'set ylopts 1 6 0.15' 'set clopts 1 6 0.13' 'set mpdset hires' 'set map 1 1 15' 'set ccolor 1 1 6' 'set lat 22 45' 'set lon 40 76' 'set z 2' 'set t 1' 'd tcorr(p,hgt.2,t=245,t=612)' 'draw title Correlation' 'printim D:/Monsoon/Correlation850hPa.gif x1200 y1100 white' say -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091029/d4c1b3c5/attachment.html From abbasmofidi at YAHOO.COM Thu Oct 29 16:41:20 2009 From: abbasmofidi at YAHOO.COM (abbas mofidi) Date: Thu, 29 Oct 2009 13:41:20 -0700 Subject: tcorr In-Reply-To: <9968124.406101256789217067.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: Dear Hyacinth, ? Thanks a lot for the revise. Fortunately, that works now. ? Thanks again, Abbas ? ? --- On Thu, 10/29/09, Hyacinth Cyprain Nnamchi wrote: From: Hyacinth Cyprain Nnamchi Subject: Re: tcorr To: GRADSUSR at LIST.CINECA.IT Date: Thursday, October 29, 2009, 7:36 AM ?Dear Abbas, Before you display tcorr, you have to reset x, y, and t. I have make some changes to your code. I hope it helps or you can look at again. Also see the documentation page: http://www.iges.org/grads/gadoc/gradfunctcorr.html Good luck, hyacinth *****************Correlation*************** ?? 'reinit' 'sdfopen D:/Monsoon/DATA/Vwind1000-100mb-1Apr-31Oct2000-4timeDaily.nc' 'sdfopen D:/Monsoon/DATA/Hgt850mb-1Apr-30Sep2000-4timeDaily.nc' ? ??? 'set x 1' ?? 'set y? 1' ??? 'set z 2'?? *(please you have to confirm that your lev 850 is z=2!) ??? 'set t 245 612' ??? 'define p = aave(vwnd.1,lon=59,lon=63,lat=30,lat=36)'??? *indicated .1 for the first var ? ??? 'set gxout contour' ??? 'set csmooth on linear' ??? 'set grid off' ??? 'set grads off' ??? 'set font 1' ??? 'set cint 0.1' ??? 'set clskip 1' ??? 'set xlevs 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75' ??? 'set ylint 2' ??? 'set ylevs 23 25 27 29 31 33 35 37 39 41 43 45 47' ??? 'set cthick 12' ??? 'set xlopts 1 6 0.15' ??? 'set ylopts 1 6 0.15' ??? 'set clopts 1 6 0.13' ??? 'set mpdset hires' ??? 'set map 1 1 15' ??? 'set ccolor 1 1 6' ??? 'set lat 22 45' ??? 'set lon 40 76' ??? 'set z 2' ? 'set t 1' ??? 'd tcorr(p,hgt.2,t=245,t=612)' ??? 'draw title Correlation' ??? 'printim D:/Monsoon/Correlation850hPa.gif x1200 y1100 white' say ? ? -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091029/9dab6943/attachment.html From rupak.rajbhandari at GMAIL.COM Fri Oct 30 02:14:42 2009 From: rupak.rajbhandari at GMAIL.COM (Rupak Rajbhandari) Date: Fri, 30 Oct 2009 11:59:42 +0545 Subject: masking In-Reply-To: <890AC860-739E-4731-9469-55474FF078BE@eci.ox.ac.uk> Message-ID: Hi Matthias, I am glad you liked it. I am using FORTRAN as it is convenient to me. You can use any other language which can handle binary files. Basically, what GIS (ArcView) gives us is the IDs of the grid points which are inside the country boundary. All my program does is assign 1s to those points and 0s to rest of the points in a domain considered (mine happens to be 86x46). In binary file, replace all values by 'undefined' values (-999.0) where masking file values are zero and save this as new file. Thats it. Attached is the RAR file which comprises the following. ASCII masking file unmasked-data file masked-data file (header file is also included to import it into ArcView) control file - to display in grads BINARY unmasked data file masked data file If you have any query please let me know. cheers! -rupak On Wed, Oct 28, 2009 at 4:47 PM, Matthias Fripp wrote: > Wow, you used almost exactly the same approach I suggested (but with more > Fortran and less Excel)! Glad to know I was on to something. > > I'm not fluent in Fortran, so I had trouble deciphering the cr_mask_fl.f > program that converts an ASCII list of points into an ASCII masking file > that GRADS can read. Would you be able to send a sample of the final ASCII > masking file that you produced and the command you use to load it into > GRADS? Or if there's an obvious place to look in the instructions, that > would be great too. So far I only know how to get GRADS to read local or > remote binary files. It would be great to have a way to display data from > ASCII/text files that I create myself. > > Best, > > Matthias > > On Oct 28, 2009, at 8:39 AM, Rupak Rajbhandari wrote: > > Hi, > > Creating a masking file is not a simple procedure. Here I am sending you a > masking instruction I prepared (last year for small training group in > Nepal). The masking file is for 0.1 resolution, so you need to edit a > little. The attached RAR file consists of a instruction file and two fortran > programs. In addition you will need ArcView GIS and India shape file > (boundary polygon) and fortran compiler. You should first edit the program > to suit your resolution. The rest should be clear from the instruction file. > > Once the masking file has been created, simply replace the master file with > undefined values where grid point point values are zero in the masking file. > > Hope it helps! > > -rupak > > > > > > On Tue, Oct 27, 2009 at 9:04 PM, Matthias Fripp < > matthias.fripp at eci.ox.ac.uk> wrote: > >> It sounds like you will need to do something like this: >> >> 1. Create a file listing all the grid points in or near India (e.g., >> within a simple latitude and longitude range that covers all of India and >> some surrounding areas). >> >> 2. Import this list into a GIS program and intersect it with India's land >> area. >> >> 3. Export a list of Indian grid points from the GIS program. >> >> 4. Import this list into GRADS. >> >> Step 1 would be easy to do, e.g., in a text (.csv) file created in Excel, >> if your grid is regularly spaced. >> >> Step 2 and 3 are easy if you have a GIS program and difficult otherwise. I >> could help you with that if you want. >> >> I don't know how you would do Step 4. I can easily create a text file >> listing all the relevant points, but I don't know how you would reference >> that text file from GRADS to create a mask variable. Anyone else have ideas >> about this? >> >> Matthias >> >> On Tue, Oct 27, 2009 at 7:23 AM, Sachin Ghude > > wrote: >> >>> Hi, >>> >>> I want to plot tropospheric NO2 only over the Indian grid points (not >>> Nepal, Pakistan >>> and BanglaDesh). Is there any such utility so that it will enable me to >>> plot data only >>> for India girds in GRADs. ( my grid size is 0.25 x 0.25 degrees). >>> >>> please do the needful.. >>> >>> bye.. >>> >>> Sachin >>> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091030/447d6293/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: masking.rar Type: application/octet-stream Size: 27118 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091030/447d6293/attachment.obj From Yun.Qian at PNL.GOV Fri Oct 30 13:13:48 2009 From: Yun.Qian at PNL.GOV (Qian, Yun) Date: Fri, 30 Oct 2009 10:13:48 -0700 Subject: unsubscribe In-Reply-To: A<9968124.406101256789217067.JavaMail.coremail@mail3.iap.ac.cn> Message-ID: Please remove my e-mail from the list. Thanks, Yun From Sim.Aberson at NOAA.GOV Fri Oct 30 15:19:00 2009 From: Sim.Aberson at NOAA.GOV (Sim Aberson) Date: Fri, 30 Oct 2009 15:19:00 -0400 Subject: [Fwd: another grads question] Message-ID: I am having another frustrating GrADS issue with GrADS2 on my mac. I am trying to make more station plots. I have code to write out the station plot data. I have done this before with no problem, but get an error now. I am attaching a binary version of that file (fort.10) and a control file (fort.13). When I run that through stnmap, I get an error: stnmap -v -i fort.13 Name of binary data set: fort.10 Number of times in the data set: 1 Number of surface variables: 0 Number of level dependent variables: 5 Starting scan of station data binary file. Binary data file open: fort.10 Processing time step 1 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 Invalid sequential format levs = 0 flag = 27 time = 1.4013e-45 The contents of the file fort.13, in ascii, are: XXXXXX1 18.91675 -51.42435 0.000000 1 0 500.0000 23.24000 91.25000 -25.13000 3.820000 XXXXXX2 18.91410 -51.41340 0.000000 1 0 1000.000 20.18000 91.60000 -25.86500 8.020000 XXXXXX3 18.91055 -51.40285 0.000000 1 0 1500.000 18.57000 79.40000 -25.35000 8.525000 XXXXXX4 18.90680 -51.39260 0.000000 1 0 2000.000 15.55500 82.45000 -24.31500 9.820000 XXXXXX5 18.90230 -51.38280 0.000000 1 0 2500.000 13.33000 82.55000 -25.01000 14.16000 XXXXXX6 18.89670 -51.37290 0.000000 1 0 3000.000 10.93500 80.70000 -25.08000 15.18000 XXXXXX7 18.89175 -51.36465 0.000000 1 0 3500.000 8.165000 68.85000 -23.95500 16.06000 XXXXXX7 18.89175 -51.36465 0.000000 0 0 So, according to the first line, levs should be 1, flag should be zero, and time should be zero. But the above from stnmap has very different values. Am I missing something very fundamental from the documentation? I'm stumped. Thanks, Sim -- Sim Aberson AOML/Hurricane Research Division Miami, FL "Hurricane states erect statues in my honor." -- David Sedaris -------------- next part -------------- A non-text attachment was scrubbed... Name: fort.10 Type: application/octet-stream Size: 476 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20091030/3cf77321/attachment.obj -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fort.13 Url: http://gradsusr.org/pipermail/gradsusr/attachments/20091030/3cf77321/attachment.pl From sim.aberson at NOAA.GOV Fri Oct 30 15:23:03 2009 From: sim.aberson at NOAA.GOV (Sim Aberson) Date: Fri, 30 Oct 2009 20:23:03 +0100 Subject: stnmap problem Message-ID: I am having another frustrating GrADS issue with GrADS2 on my mac. I am trying to make more station plots. I have code to write out the station plot data. I have done this before with no problem, but get an error now. When I run that through stnmap, I get an error: stnmap -v -i fort.13 Name of binary data set: fort.10 Number of times in the data set: 1 Number of surface variables: 0 Number of level dependent variables: 5 Starting scan of station data binary file. Binary data file open: fort.10 Processing time step 1 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 Invalid sequential format levs = 0 flag = 27 time = 1.4013e-45 The contents of the file fort.13, in ascii, are: XXXXXX1 18.91675 -51.42435 0.000000 1 0 500.0000 23.24000 91.25000 -25.13000 3.820000 XXXXXX2 18.91410 -51.41340 0.000000 1 0 1000.000 20.18000 91.60000 -25.86500 8.020000 XXXXXX3 18.91055 -51.40285 0.000000 1 0 1500.000 18.57000 79.40000 -25.35000 8.525000 XXXXXX4 18.90680 -51.39260 0.000000 1 0 2000.000 15.55500 82.45000 -24.31500 9.820000 XXXXXX5 18.90230 -51.38280 0.000000 1 0 2500.000 13.33000 82.55000 -25.01000 14.16000 XXXXXX6 18.89670 -51.37290 0.000000 1 0 3000.000 10.93500 80.70000 -25.08000 15.18000 XXXXXX7 18.89175 -51.36465 0.000000 1 0 3500.000 8.165000 68.85000 -23.95500 16.06000 XXXXXX7 18.89175 -51.36465 0.000000 0 0 So, according to the first line, levs should be 1, flag should be zero, and time should be zero. But the above from stnmap has very different values. Am I missing something very fundamental from the documentation? I'm stumped. Thanks, Sim -- Sim Aberson AOML/Hurricane Research Division Miami, FL "Hurricane states erect statues in my honor." -- David Sedaris DSET ^fort.10 DTYPE station STNMAP station_data.map OPTIONS sequential UNDEF -999. TITLE dropwindsondes TDEF 1 LINEAR 11:11Z01JAN2000 1mo VARS 5 height 1 99 height tmphgt 1 99 temperature rhhgt 1 99 relative humidity ugrdhgt 1 99 u-component vgrdhgt 1 99 v-component ENDVARS From Austin.L.Conaty at NASA.GOV Fri Oct 30 16:51:09 2009 From: Austin.L.Conaty at NASA.GOV (Austin Conaty) Date: Fri, 30 Oct 2009 16:51:09 -0400 Subject: [Fwd: another grads question] In-Reply-To: <4AEB3C24.60707@noaa.gov> Message-ID: Sim, Here's the comments from our local station map "expert"... Caveat: he's still using grads1 1 check your options statement 2 check "endian ness" 3 see if you can stream the data (station map is written in C and would be happier reading streaming data) Good luck, Austin Conaty XXXXXX1 18.91675 -51.42435 0.000000 1 0 500.0000 23.24000 91.25000 -25.13000 3.820000 XXXXXX2 18.91410 -51.41340 0.000000 1 0 1000.000 20.18000 91.60000 -25.86500 8.020000 XXXXXX3 18.91055 -51.40285 0.000000 1 0 1500.000 18.57000 79.40000 -25.35000 8.525000 XXXXXX4 18.90680 -51.39260 0.000000 1 0 2000.000 15.55500 82.45000 -24.31500 9.820000 XXXXXX5 18.90230 -51.38280 0.000000 1 0 2500.000 13.33000 82.55000 -25.01000 14.16000 XXXXXX6 18.89670 -51.37290 0.000000 1 0 3000.000 10.93500 80.70000 -25.08000 15.18000 XXXXXX7 18.89175 -51.36465 0.000000 1 0 3500.000 8.165000 68.85000 -23.95500 16.06000 XXXXXX7 18.89175 -51.36465 0.000000 0 0 Sim Aberson wrote: > I am having another frustrating GrADS issue with GrADS2 on my mac. I am trying > to make more station plots. I have code to write out the station plot data. I > have done this before with no problem, but get an error now. I am attaching a > binary version of that file (fort.10) and a control file (fort.13). When I run > that through stnmap, I get an error: > > stnmap -v -i fort.13 > Name of binary data set: fort.10 > Number of times in the data set: 1 > Number of surface variables: 0 > Number of level dependent variables: 5 > > Starting scan of station data binary file. > Binary data file open: fort.10 > > Processing time step 1 > 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 > Invalid sequential format > levs = 0 flag = 27 time = 1.4013e-45 > > The contents of the file fort.13, in ascii, are: > > XXXXXX1 18.91675 -51.42435 0.000000 1 0 > 500.0000 23.24000 91.25000 -25.13000 3.820000 > XXXXXX2 18.91410 -51.41340 0.000000 1 0 > 1000.000 20.18000 91.60000 -25.86500 8.020000 > XXXXXX3 18.91055 -51.40285 0.000000 1 0 > 1500.000 18.57000 79.40000 -25.35000 8.525000 > XXXXXX4 18.90680 -51.39260 0.000000 1 0 > 2000.000 15.55500 82.45000 -24.31500 9.820000 > XXXXXX5 18.90230 -51.38280 0.000000 1 0 > 2500.000 13.33000 82.55000 -25.01000 14.16000 > XXXXXX6 18.89670 -51.37290 0.000000 1 0 > 3000.000 10.93500 80.70000 -25.08000 15.18000 > XXXXXX7 18.89175 -51.36465 0.000000 1 0 > 3500.000 8.165000 68.85000 -23.95500 16.06000 > XXXXXX7 18.89175 -51.36465 0.000000 0 0 > > > So, according to the first line, levs should be 1, flag should be zero, and time > should be zero. But the above from stnmap has very different values. Am I > missing something very fundamental from the documentation? I'm stumped. > > Thanks, > Sim > > > > -- > Sim Aberson AOML/Hurricane Research Division Miami, FL > "Hurricane states erect statues in my honor." -- David Sedaris > > ------------------------------------------------------------------------ > > DSET ^fort.10 > DTYPE station > STNMAP station_data.map > OPTIONS sequential > UNDEF -999. > TITLE dropwindsondes > TDEF 1 LINEAR 11:11Z01JAN2000 1mo > VARS 5 > height 1 99 height > tmphgt 1 99 temperature > rhhgt 1 99 relative humidity > ugrdhgt 1 99 u-component > vgrdhgt 1 99 v-component > ENDVARS > > -- Austin Conaty, SAIC Global Modeling & Assimilation Office 301-614-6149 (ph) NASA Goddard Space Flight Center 301-614-6297 (fax) Code 610.1 Greenbelt, MD 20771 Austin.L.Conaty at .nasa.gov http://gmao.gsfc.nasa.gov From dhaval.prajapati at ICCSIR.ORG Sat Oct 31 00:43:49 2009 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Sat, 31 Oct 2009 04:43:49 +0000 Subject: How to get Ascii output for each grid point of selected area Message-ID: Dear All, I am having 1 dg by 1 dg data set now I have selected the region say 5 N to 10 N and 65 E to 70 E over India If I want data in ascii for each grid at one strock how to do it (Say for eg. (5,65), (6,65).........) Is there any command for this 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/20091031/d53c8e01/attachment.html From dasilva at ALUM.MIT.EDU Sat Oct 31 21:24:51 2009 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Sat, 31 Oct 2009 21:24:51 -0400 Subject: LATS available for GrADS v2.0 Message-ID: All, I just upload to sf.net version *2.0.a7.oga.3 *of the *OpenGrADS Bundle*. This OpenGrADS release adds support for *LATS*, a feature of GrADS v1.x which has been dropped from COLA's GrADS v2.0 codebase. LATS is now implemented as an OpenGrADS extension (see http://opengrads.org/doc/udxt/lats/) giving users the ability to write NetCDF-3, NetCDF-4/HDF-5 (with and without compression), HDF-4 and GRIB-1 from a single GrADS executable. With the LATS extension, Lats4D has the same capabilities in GrADS v2.0 as it once did in GrADS v1.x. This release also adds the extension *ORB* (see http://opengrads.org/doc/udxt/orb/) which allows you to mask gridded variables according to several satellite orbits. *NOTE:* Unless you are interested in these new extensions, there is no reason to upgrade from v2.0.a7.oga.2. For downloading, *Linux, Mac OS X, sources:* http://sourceforge.net/projects/opengrads/files/grads2-windows/2.0.a7.oga.3/ *Windows:* http://sourceforge.net/projects/opengrads/files/grads2-windows/2.0.a7.oga.3/ The NEWS file is reproduced below. Remember, these extensions should be considered experimental. Use at your own risk. Enjoy and let me know of any problems. Arlindo The OpenGrADS Bundle Distribution --------------------------------- http://opengrads.org GrADS Version 2.0.a7.oga.3 Released 29 October 2009 This version is based on COLA's 2.0.a7 release which includes a new interface for the native HDF-5 format, options for templating on Julian Day and time axis, new funtion eloop, in addition to some bug fixes. See the ChangeLog for details. This OpenGrADS release adds support for LATS, a feature of GrADS v1.x which has been dropped from COLA's GrADS v2.0 codebase. LATS is now implemented as an OpenGrADS extention giving users the ability to write NetCDF-3, NetCDF-4/HDF-5 (with and without compression), HDF-4 and GRIB-1 from a single GrADS executable. This release also adds the extension ORB which allows you to mask gridded variables according to several satellite orbits. See the included "Documentation.html" for an in-depth description of these new extensions. Several other important OpenGrADS additions are available with this version: - grads is now built with NetCDF v4.0.1beta3 which includes support for NetCDF-4/HDF-5 (similar to gradsnc4 in v1.9.0-rc1) and has built in OPeNDAP support. - gradsdap is no longer provided as its functionality is now included in the single executable *grads*. - this is an OpenGrADS Bundle release, a relocatable, minimum configuration package that has all that you need to run GrADS. See INSTALL for additonal information. - we have introduced option -C to enable colorized text - preview release of the OpenGrADS Extensions; the same extensions available in GrADS v1.9.0-rc1 are now available with GrADS v2.0. Caveat: as COLA is yet to publish the official API for User Defined functions in GrADS v2.0 we have adopted here an API that is based on our work vith v1.9.0-rc1. This is a very low-level API that is *not* endorsed by COLA. As such, it is *not* advisable that users adopt this API to write their own extensions. - These extensions are still being fully tested. Please report any problems you encounter. Use them at your own risk. - The following extensions are included: see below. Documentation and Additional Information ---------------------------------------- Consult OpenGrADS Website: http://opengrads.org GrADS Website: http://grads.iges.org/grads --------------------- User Defined Commands --------------------- Command Environment Variables Function at Library ----------- --------------------------------------- -------------------------- printenv Expand environment variables c_xenv@^env.gex runenv Expand env vars and run command c_env@^env.gex @ Expand env vars and run command c_env@^env.gex getenv Get value of environment variable c_getenv@^env.gex setenv Set value of environment variable c_setenv@^env.gex Command GxYAT: Image Generation Function at Library ----------- --------------------------------------- -------------------------- gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex Command Simple Extension Example Function at Library ----------- --------------------------------------- -------------------------- hello Hello, World! sample command c_hello@^libhello.gex Command Interprocess Communication Function at Library ----------- --------------------------------------- -------------------------- ipc_verb IPC verbose toggle c_Verb@^libipc.gex ipc_open Open stream for save/load c_Open@^libipc.gex ipc_close Close stream c_Close@^libipc.gex ipc_save Save expression to stream c_Save@^libipc.gex ipc_define Define variable (obsolete) c_Define@^libipc.gex ipc_error Print IPC error message c_Error@^libipc.gex Command LATS: File Reformatting and Subsetting Function at Library ----------- --------------------------------------- -------------------------- set_lats Set LATS parameters c_lats_set@ ^liblats.gex query_lats Query LATS parameters c_lats_query@ ^liblats.gex lats_grid Define LATS grid c_lats_grid@ ^liblats.gex lats_data Write data to LATS file c_lats_data@ ^liblats.gex reinit_lats Re-init LATS parameters c_lats_reinit@ ^liblats.gex Command Mike Fiorino's Extensions Function at Library ----------- --------------------------------------- -------------------------- mfhilo Find max/min or H/L in 2D field c_mfhilo@^libmf.gex tcprop Properties radinf from central lon/lat c_tcprop@^libmf.gex grhist histogram of expr c_grhist@^libmf.gex Command Satellite Orbit Extensions Function at Library ----------- --------------------------------------- -------------------------- set_orb Set ORB parameters c_set@^orb.gex orb_track Satellite ground tracks c_track@^orb.gex Command Shapefile Extensions Function at Library ----------- --------------------------------------- -------------------------- shp_lines Draw lines from shapefile c_lines@^shape.gex shp_polyf Draw polygons from shapefile c_polyf@^shape.gex ---------------------- User Defined Functions ---------------------- Function Ben-Jei Tsuang's Extensions Function at Library ----------- --------------------------------------- -------------------------- lt Local time f_bjt@^libbjt.gex jd Julian day f_bjt@^libbjt.gex cosz Cosine solar zenith angle f_bjt@^libbjt.gex dayratio Daylight ratio f_bjt@^libbjt.gex if Conditional function f_bjt@^libbjt.gex maxv Maximum value f_bjt@^libbjt.gex minv Minimum value f_bjt@^libbjt.gex which Label gridpoints f_bjt@^libbjt.gex ftest F-test f_bjt@^libbjt.gex ttest T-test f_bjt@^libbjt.gex tfit Point linear regression f_bjt@^libbjt.gex fit Global linear regression f_bjt@^libbjt.gex tcorr2 Time correlation f_bjt@^libbjt.gex tregr2 Point linear regression f_bjt@^libbjt.gex tmave2 Time averaging w/masking f_bjt@^libbjt.gex madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex muadv Zonal advection f_bjt@^libbjt.gex mvadv Meridional advection f_bjt@^libbjt.gex mwadv Vertical advection f_bjt@^libbjt.gex satvap Saturated vapor pressure f_bjt@^libbjt.gex dew Dew point temperature f_bjt@^libbjt.gex lw Thermal infrared fluxes f_bjt@^libbjt.gex lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex pinterp Pressure interpolation f_bjt@^libbjt.gex zinterp Height interpolation f_bjt@^libbjt.gex line Draws a line f_bjt@^libbjt.gex vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex Function Streamfunction & Velocity Potential Function at Library ----------- --------------------------------------- -------------------------- fish Poisson solver f_fish@^fish.gex fish_psi Compute streamfunction f_psichi@^fish.gex fish_chi Compute velocity potential f_psichi@^fish.gex fish_vor Compute vorticity f_psichi@^fish.gex fish_div Compute divergence f_psichi@^fish.gex Function Saakeskus Wx Function Collection Function at Library ----------- --------------------------------------- -------------------------- dewpt Dew-point temperature f_gsudf@^gsudf.gex ept Equivalent potential temperature f_gsudf@^gsudf.gex epi Potential Instability f_gsudf@^gsudf.gex plcl Pressure at LCL f_gsudf@^gsudf.gex shear Wind Shear f_gsudf@^gsudf.gex srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex tlcl Temperature at LCL f_gsudf@^gsudf.gex tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex ttindex Total Totals Index f_gsudf@^gsudf.gex wchill Wind Chill Index (New) f_gsudf@^gsudf.gex Function Simple Extension Example Function at Library ----------- --------------------------------------- -------------------------- hello Hello, World! sample function f_hello@^libhello.gex Function Interprocess Communication Function at Library ----------- --------------------------------------- -------------------------- ipc_save Save expression to stream f_Save@^libipc.gex ipc_load Load variable from file f_Load@^libipc.gex Function Mike Fiorino's Extensions Function at Library ----------- --------------------------------------- -------------------------- smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex re2 General interpolator (regrid2) f_re2@^libmf.gex esmrf Saturation vapor pressure (old MRF) f_esmrf@^libmf.gex linreg Linear regression: mx + b f_linreg@^libmf.gex Function Satellite Orbit Extensions Function at Library ----------- --------------------------------------- -------------------------- orb_mask Satellite orbit masking f_mask@^orb.gex Function Regridding Functions Function at Library ----------- --------------------------------------- -------------------------- re General interpolator ffre@^re.gex re_ General interpolator (verbose) ffre_dbg@^re.gex regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex geos Interpolation to GEOS-5 Grids f_gsudf@^gsudf.gex reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex Function Spherical Harmonic Analysis Function at Library ----------- --------------------------------------- -------------------------- sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091031/427b0522/attachment.html