From jithu9907 at GMAIL.COM Fri Jan 1 00:25:35 2010 From: jithu9907 at GMAIL.COM (sreejith k.s) Date: Fri, 1 Jan 2010 10:55:35 +0530 Subject: input file Message-ID: I would like to know what type of file do we input to grads and how can other files be converted to readable file plzzzzzzzzzzzzzzzzzzzzzzzzzzz reply iam on a project work of post graguation -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100101/62cf89e7/attachment.html From hiren_dave85 at YAHOO.COM Fri Jan 1 08:16:32 2010 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Fri, 1 Jan 2010 05:16:32 -0800 Subject: Mean value Message-ID: Hi Friends ????????? ???????? I have a gridded temp. data for the 40 year in yearly gridded file. I want to find out mean temperature for particular date (for example: 2 June) for 40 years. How can i do this? Hiren Dave JRF Dept. of Physics, Electronics & Space Science, University School of Sciences, Gujarat University, Ahmedabad-380009 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100101/6bc50d72/attachment.html From yamasaki at FIS.UA.PT Fri Jan 1 16:12:04 2010 From: yamasaki at FIS.UA.PT (Y. Yamasaki) Date: Fri, 1 Jan 2010 21:12:04 +0000 Subject: a7.oga3 bundle for FreeBSD-8.0 In-Reply-To: <200912310212.nBV2C0Rq040825@ltp.upr.clu.edu> Message-ID: Em Wed, 30 Dec 2009 22:12:00 -0400 Jose F Nieves escreveu: > Hello > > I have posted in sf the FreeBSD-8.0 builds of the latest >opengrads bundle. > Let me know if there are any problems. > > Jose > g From arlindo.dasilva at GMAIL.COM Sat Jan 2 22:19:36 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sat, 2 Jan 2010 22:19:36 -0500 Subject: input file In-Reply-To: <971af1ba0912312125s1af0d512x22a929affa6021c5@mail.gmail.com> Message-ID: On Fri, Jan 1, 2010 at 12:25 AM, sreejith k.s wrote: > I would like to know what type of file do we input to grads and how can > other files be converted to readable file > plzzzzzzzzzzzzzzzzzzzzzzzzzzz reply iam on a project work of post > graguation > > You may find useful reading the User's Guide: http://grads.iges.org/grads/gadoc/users.html -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100102/0d2efcdf/attachment.html From hiren_dave85 at YAHOO.COM Mon Jan 4 00:34:21 2010 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Sun, 3 Jan 2010 21:34:21 -0800 Subject: Fw: Mean value Message-ID: Hiren Dave JRF Dept. of Physics, Electronics & Space Science, University School of Sciences, Gujarat University, Ahmedabad-380009 --- On Fri, 1/1/10, hiren dave wrote: From: hiren dave Subject: Mean value To: "grads user" Date: Friday, 1 January, 2010, 8:16 AM Hi Friends ????????? ???????? I have a gridded temp. data for the 40 year in yearly gridded file. I want to find out mean temperature for particular date (for example: 2 June) for 40 years. How can i do this? Hiren Dave JRF Dept. of Physics, Electronics & Space Science, University School of Sciences, Gujarat University, Ahmedabad-380009 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100103/948f0bcf/attachment.html From prjayakrishnan at GMAIL.COM Mon Jan 4 01:37:30 2010 From: prjayakrishnan at GMAIL.COM (Jayakrishnan PR) Date: Mon, 4 Jan 2010 12:07:30 +0530 Subject: input file In-Reply-To: <971af1ba0912312125s1af0d512x22a929affa6021c5@mail.gmail.com> Message-ID: Dear Sreejith, Grads can read gridded binary files only. Also it can read nc files. To read gridded binary files we must have a ctl file to open. It can be done using command open sample.ctl. Example ctl files are given in grads web site. To read nc files the command is sdfopen sample.nc. You will get all the details in web site tutorial. Kindly go through it. On Fri, Jan 1, 2010 at 10:55 AM, sreejith k.s wrote: > I would like to know what type of file do we input to grads and how can > other files be converted to readable file > plzzzzzzzzzzzzzzzzzzzzzzzzzzz reply iam on a project work of post > graguation > > -- 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/20100104/e80437c6/attachment.html From odoherty at IC.SUNYSB.EDU Mon Jan 4 18:31:06 2010 From: odoherty at IC.SUNYSB.EDU (Owen Doherty) Date: Mon, 4 Jan 2010 18:31:06 -0500 Subject: Error in creating netCDF for GrADS reading Message-ID: Dear Grads Users, I am having difficulties creating and writing to a netcdf file that can be read by GrADS. The data is loaded into GrADS successfully, but when displayed looks similar to improperly written binary data (e.g. all data is in the range of 0 to 9e+36 interval 1e+36). Below are the steps I take to create a 4-D gridded netCDF, write to the netCDF and finally to read the file into GrADS. First, I create an nc file using the ncgen utility. I have tried creating netCDF files with the variable both as "float" and "double" neither of which is successful and the errors from which appear to be similar. Below is my source code (.cdl file) for this step. netcdf test_ncgen{ dimensions: longitude=144; latitude =73; t=31; z=9; variables: double longitude(longitude); longitude:units = "degrees_east"; double latitude(latitude); latitude:units = "degrees_north"; double t(t); t:units = "seconds since 1970-1-1 00:00:00"; double z(z); z:units = "lev"; z:valid_range = 200.,1000.; float omejjam(longitude, latitude, t, z) ; data: omejjam = 0; Secondly, I write to the netCDF file using MATLAB. The write step is fairly simple and I suspect that I am missing something in here to have it write out as binary. I have tried outputting single precision (float) and double precision data from MATLAB both of which result in the same error. I am using MATLAB 2008b to do the writing. The write command is as follows: nc=netcdf.open('test_ncgen.nc','nc_write'); [varname, xtype, dimids, numatts] = netcdf.inqVar(nc,4)% 0 - omejjam netcdf.putVar(nc,4,omejjam); Lastly, I read the data into GrADS. I have tried using sdfopen, xdfopen and the regular open command. Adding the OPTION little_endian to the control file does not solve the issue. All of the data looks erroneous, but consistent in between each different open command. If anyone has any advice as to how to solve this problem, I would be grateful for the insight. Owen -- Owen Doherty School of Marine and Atmospheric Science Institute for Terrestrial and Planetary Atmospheres 103 Discovery Hall Stony Brook University Stony Brook, NY 11794 (631)-632-8682 (office) From Fan.Fang at NASA.GOV Tue Jan 5 10:23:48 2010 From: Fan.Fang at NASA.GOV (Fan Fang) Date: Tue, 5 Jan 2010 10:23:48 -0500 Subject: lats4d question Message-ID: Had the following error when trying to convert a grib2 file into hdf4 format. I am using lats4d in the grads-2.0.a7.oga.3 bundle. The .ctl file has the lines around soilw40_100cm: ... RH0C 0,4,0 0,1,1 ** 0C isotherm Relative Humidity [%] SHTFLsfc 0,1,0 0,0,11,0 ** surface Sensible Heat Net Flux [W/m^2] SOILW0_10cm 0,106,0,0.1 2,0,192 ** 0-0.1 m below ground Volumetric Soil Moisture Content [Fraction] SOILW10_40cm 0,106,0.1,0.4 2,0,192 ** 0.1-0.4 m below ground Volumetric Soil Moisture Content [Fraction] SOILW40_100cm 0,106,0.4,1 2,0,192 ** 0.4-1 m below ground Volumetric Soil Moisture Content [Fraction] SOILW100_200cm 0,106,1,2 2,0,192 ** 1-2 m below ground Volumetric Soil Moisture Content [Fraction] SPFH2m 0,103,2 0,1,0 ** 2 m above ground Specific Humidity [kg/kg] ... Anyone has insight into this? Thanks. -Fan > grads -blc 'run lats4d.gs -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' Welcome to the OpenGrADS Bundle Distribution -------------------------------------------- For additional information enter "grads -h". Starting "/home/ffang/grads-2.0.a7.oga.3/Contents/Linux/Versions/2.0.a7.oga.3/i686/grads -blc 'run lats4d.gs -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' " ... Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 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.3 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 No hardcopy metafile open All files closed; all defined objects released; All GrADS attributes have been reinitialized LATS error (lats_var): LATS (lats.c) --> Variable soilw40_100cm: not in the variable table, file ID 1 lats4d: fatal error defining variables lats4d: error creating hdf4 file grib2test.hdf 1 lats4d: exiting from GrADS... No hardcopy metafile open GX package terminated From jma at COLA.IGES.ORG Tue Jan 5 11:22:40 2010 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 5 Jan 2010 11:22:40 -0500 Subject: Error in creating netCDF for GrADS reading In-Reply-To: <4B427A3A.5040607@ic.sunysb.edu> Message-ID: Hi, Owen -- It sounds like you have a problem specifying the undef value in your data file. I can't help with the Matlab bit, but if you need help to figure out why GrADS can't read your file, you need to post: 1. The output from ncdump -c on your file (in case Matlab changes the metadata in some way) 2. Your descriptor file (if you are using 'open' with 'dtype netcdf' or 'xdfopen'). 3. The version of GrADS that you are using 4. The text from the GrADS session that illustrates the error. Jennifer On Jan 4, 2010, at 6:31 PM, Owen Doherty wrote: > Dear Grads Users, > > I am having difficulties creating and writing to a netcdf file that > can be read by GrADS. The data is loaded into GrADS successfully, > but when displayed looks similar to improperly written binary data > (e.g. all data is in the range of 0 to 9e+36 interval 1e+36). Below > are the steps I take to create a 4-D gridded netCDF, write to the > netCDF and finally to read the file into GrADS. > > First, I create an nc file using the ncgen utility. I have tried > creating netCDF files with the variable both as "float" and "double" > neither of which is successful and the errors from which appear to > be similar. Below is my source code (.cdl file) for this step. > > netcdf test_ncgen{ > dimensions: > longitude=144; > latitude =73; > t=31; > z=9; > > variables: > double longitude(longitude); > longitude:units = "degrees_east"; > > double latitude(latitude); > latitude:units = "degrees_north"; > double t(t); > t:units = "seconds since 1970-1-1 00:00:00"; > double z(z); > z:units = "lev"; > z:valid_range = 200.,1000.; > > float omejjam(longitude, latitude, t, z) ; > > data: > omejjam = 0; > > Secondly, I write to the netCDF file using MATLAB. The write step > is fairly simple and I suspect that I am missing something in here > to have it write out as binary. I have tried outputting single > precision (float) and double precision data from MATLAB both of > which result in the same error. I am using MATLAB 2008b to do the > writing. The write command is as follows: > > nc=netcdf.open('test_ncgen.nc','nc_write'); > [varname, xtype, dimids, numatts] = netcdf.inqVar(nc,4)% 0 - omejjam > netcdf.putVar(nc,4,omejjam); > > Lastly, I read the data into GrADS. I have tried using sdfopen, > xdfopen and the regular open command. Adding the OPTION > little_endian to the control file does not solve the issue. All of > the data looks erroneous, but consistent in between each different > open command. If anyone has any advice as to how to solve this > problem, I would be grateful for the insight. > > Owen > > -- > Owen Doherty > School of Marine and Atmospheric Science > Institute for Terrestrial and Planetary Atmospheres > 103 Discovery Hall > Stony Brook University > Stony Brook, NY 11794 > (631)-632-8682 (office) -- 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/20100105/6189c9ec/attachment.html From odoherty at IC.SUNYSB.EDU Tue Jan 5 11:35:46 2010 From: odoherty at IC.SUNYSB.EDU (Owen Doherty) Date: Tue, 5 Jan 2010 11:35:46 -0500 Subject: Error in creating netCDF for GrADS reading In-Reply-To: Message-ID: Dear Jennifer et al, Thanks for your help. Here is the information you requested. 1) ncdump output (omitting the data section for space constraints, but that looks good) owen at graupel:~/data/barbados$ ncdump -c test_ncgen6.nc netcdf test_ncgen6 { dimensions: longitude = 144 ; latitude = 73 ; t = 31 ; z = 9 ; variables: double longitude(longitude) ; longitude:units = "degrees_east" ; double latitude(latitude) ; latitude:units = "degrees_north" ; double t(t) ; t:units = "seconds since 1970-1-1 00:00:00" ; double z(z) ; z:units = "lev" ; z:valid_range = 200., 1000. ; float omejjam(longitude, latitude, t, z) ; data: 2) Control files first for XDF and then for CTL DSET ^test_ncgen6.nc DTYPE netcdf TITLE This is a test UNDEF -9999 XDEF longitude 144 LINEAR 0.0 2.5 YDEF latitude 73 LINEAR -90.0 2.5 TDEF t 31 LINEAR 0Z01JUN1979 1YR ZDEF z 9 LEVELS 1000 925 850 700 600 500 400 300 250 VARS 1 omejjam=>ome 9 99 longitude,latitude,t,z seasonal mean vertical motion ENDVARS DSET ^test_ncgen6.nc DTYPE netcdf TITLE This is a test OPTIONS little_endian UNDEF -9999 XDEF 144 LINEAR 0.0 2.5 YDEF 73 LINEAR -90.0 2.5 TDEF 31 LINEAR 0Z01JUN1979 1YR ZDEF 9 LEVELS 1000 925 850 700 600 500 400 300 250 VARS 1 omejjam=>ome 9 x,y,z,t seasonal mean vertical motion ENDVARS 3) Version of Grads: Version 2.0.a5.oga.5 4) Error message received: No error exactly, but rather all the data is displayed as 0 to 9e+36 interval 1e+36 instead of the actual values. Thanks again, Owen Jennifer Adams wrote: > Hi, Owen -- > It sounds like you have a problem specifying the undef value in your > data file. I can't help with the Matlab bit, but if you need help to > figure out why GrADS can't read your file, you need to post: > > 1. The output from ncdump -c on your file (in case Matlab changes the > metadata in some way) > 2. Your descriptor file (if you are using 'open' with 'dtype netcdf' > or 'xdfopen'). > 3. The version of GrADS that you are using > 4. The text from the GrADS session that illustrates the error. > > Jennifer > > > On Jan 4, 2010, at 6:31 PM, Owen Doherty wrote: > >> Dear Grads Users, >> >> I am having difficulties creating and writing to a netcdf file that >> can be read by GrADS. The data is loaded into GrADS successfully, >> but when displayed looks similar to improperly written binary data >> (e.g. all data is in the range of 0 to 9e+36 interval 1e+36). Below >> are the steps I take to create a 4-D gridded netCDF, write to the >> netCDF and finally to read the file into GrADS. >> >> First, I create an nc file using the ncgen utility. I have tried >> creating netCDF files with the variable both as "float" and "double" >> neither of which is successful and the errors from which appear to be >> similar. Below is my source code (.cdl file) for this step. >> >> netcdf test_ncgen{ >> dimensions: >> longitude=144; >> latitude =73; >> t=31; >> z=9; >> >> variables: >> double longitude(longitude); >> longitude:units = "degrees_east"; >> >> double latitude(latitude); >> latitude:units = "degrees_north"; >> double t(t); >> t:units = "seconds since 1970-1-1 00:00:00"; >> double z(z); >> z:units = "lev"; >> z:valid_range = 200.,1000.; >> >> float omejjam(longitude, latitude, t, z) ; >> >> data: >> omejjam = 0; >> >> Secondly, I write to the netCDF file using MATLAB. The write step is >> fairly simple and I suspect that I am missing something in here to >> have it write out as binary. I have tried outputting single >> precision (float) and double precision data from MATLAB both of which >> result in the same error. I am using MATLAB 2008b to do the writing. >> The write command is as follows: >> >> nc=netcdf.open('test_ncgen.nc','nc_write'); >> [varname, xtype, dimids, numatts] = netcdf.inqVar(nc,4)% 0 - omejjam >> netcdf.putVar(nc,4,omejjam); >> >> Lastly, I read the data into GrADS. I have tried using sdfopen, >> xdfopen and the regular open command. Adding the OPTION >> little_endian to the control file does not solve the issue. All of >> the data looks erroneous, but consistent in between each different >> open command. If anyone has any advice as to how to solve this >> problem, I would be grateful for the insight. >> >> Owen >> >> -- >> Owen Doherty >> School of Marine and Atmospheric Science >> Institute for Terrestrial and Planetary Atmospheres >> 103 Discovery Hall >> Stony Brook University >> Stony Brook, NY 11794 >> (631)-632-8682 (office) > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > -- Owen Doherty School of Marine and Atmospheric Science Institute for Terrestrial and Planetary Atmospheres 103 Discovery Hall Stony Brook University Stony Brook, NY 11794 (631)-632-8682 (office) From jma at COLA.IGES.ORG Tue Jan 5 11:46:24 2010 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 5 Jan 2010 11:46:24 -0500 Subject: Error in creating netCDF for GrADS reading In-Reply-To: <4B436A62.7050205@ic.sunysb.edu> Message-ID: On Jan 5, 2010, at 11:35 AM, Owen Doherty wrote: > Dear Jennifer et al, > > Thanks for your help. Here is the information you requested. > > 1) ncdump output (omitting the data section for space constraints, > but that looks good) > owen at graupel:~/data/barbados$ ncdump -c test_ncgen6.nc > netcdf test_ncgen6 { > dimensions: > longitude = 144 ; > latitude = 73 ; > t = 31 ; > z = 9 ; > variables: > double longitude(longitude) ; > longitude:units = "degrees_east" ; > double latitude(latitude) ; > latitude:units = "degrees_north" ; > double t(t) ; > t:units = "seconds since 1970-1-1 00:00:00" ; > double z(z) ; > z:units = "lev" ; > z:valid_range = 200., 1000. ; > float omejjam(longitude, latitude, t, z) ; Your variable has no attributes! That's a really bad file-writing practice. What is omejjam? Also, your data are written out with a highly unconventional axis order: x,y,t,z. Is that intentional? Are you sure Matlab is writing it out that way? > data: > > 2) Control files first for XDF and then for CTL > > DSET ^test_ncgen6.nc > DTYPE netcdf > TITLE This is a test > UNDEF -9999 > XDEF longitude 144 LINEAR 0.0 2.5 > YDEF latitude 73 LINEAR -90.0 2.5 > TDEF t 31 LINEAR 0Z01JUN1979 1YR > ZDEF z 9 LEVELS 1000 925 850 700 600 500 400 300 250 > VARS 1 > omejjam=>ome 9 99 longitude,latitude,t,z seasonal mean vertical > motion > ENDVARS > > DSET ^test_ncgen6.nc > DTYPE netcdf > TITLE This is a test > OPTIONS little_endian > UNDEF -9999 How do you know this is the undef value? What if you put 9e36 (or whatever the actual data value is that is causing GrADS to chose those contour intervals ... find out what the right missing value is in your file. > XDEF 144 LINEAR 0.0 2.5 > YDEF 73 LINEAR -90.0 2.5 > TDEF 31 LINEAR 0Z01JUN1979 1YR > ZDEF 9 LEVELS 1000 925 850 700 600 500 400 300 250 > VARS 1 > omejjam=>ome 9 x,y,z,t seasonal mean vertical motion > ENDVARS > > 3) Version of Grads: Version 2.0.a5.oga.5 > > 4) Error message received: > No error exactly, but rather all the data is displayed as 0 to 9e+36 > interval 1e+36 instead of the actual values. > > Thanks again, > > Owen > > Jennifer Adams wrote: >> Hi, Owen -- >> It sounds like you have a problem specifying the undef value in >> your data file. I can't help with the Matlab bit, but if you need >> help to figure out why GrADS can't read your file, you need to post: >> 1. The output from ncdump -c on your file (in case Matlab changes >> the metadata in some way) >> 2. Your descriptor file (if you are using 'open' with 'dtype >> netcdf' or 'xdfopen'). 3. The version of GrADS that you are using >> 4. The text from the GrADS session that illustrates the error. >> Jennifer >> >> >> On Jan 4, 2010, at 6:31 PM, Owen Doherty wrote: >> >>> Dear Grads Users, >>> >>> I am having difficulties creating and writing to a netcdf file >>> that can be read by GrADS. The data is loaded into GrADS >>> successfully, but when displayed looks similar to improperly >>> written binary data (e.g. all data is in the range of 0 to 9e+36 >>> interval 1e+36). Below are the steps I take to create a 4-D >>> gridded netCDF, write to the netCDF and finally to read the file >>> into GrADS. >>> >>> First, I create an nc file using the ncgen utility. I have tried >>> creating netCDF files with the variable both as "float" and >>> "double" neither of which is successful and the errors from which >>> appear to be similar. Below is my source code (.cdl file) for >>> this step. >>> >>> netcdf test_ncgen{ >>> dimensions: >>> longitude=144; >>> latitude =73; >>> t=31; >>> z=9; >>> >>> variables: >>> double longitude(longitude); >>> longitude:units = "degrees_east"; >>> >>> double latitude(latitude); >>> latitude:units = "degrees_north"; >>> double t(t); >>> t:units = "seconds since 1970-1-1 00:00:00"; >>> double z(z); >>> z:units = "lev"; >>> z:valid_range = 200.,1000.; >>> >>> float omejjam(longitude, latitude, t, z) ; >>> data: >>> omejjam = 0; >>> >>> Secondly, I write to the netCDF file using MATLAB. The write step >>> is fairly simple and I suspect that I am missing something in here >>> to have it write out as binary. I have tried outputting single >>> precision (float) and double precision data from MATLAB both of >>> which result in the same error. I am using MATLAB 2008b to do the >>> writing. The write command is as follows: >>> >>> nc=netcdf.open('test_ncgen.nc','nc_write'); >>> [varname, xtype, dimids, numatts] = netcdf.inqVar(nc,4)% 0 - omejjam >>> netcdf.putVar(nc,4,omejjam); >>> >>> Lastly, I read the data into GrADS. I have tried using sdfopen, >>> xdfopen and the regular open command. Adding the OPTION >>> little_endian to the control file does not solve the issue. All >>> of the data looks erroneous, but consistent in between each >>> different open command. If anyone has any advice as to how to >>> solve this problem, I would be grateful for the insight. >>> >>> Owen >>> >>> -- >>> Owen Doherty >>> School of Marine and Atmospheric Science >>> Institute for Terrestrial and Planetary Atmospheres >>> 103 Discovery Hall >>> Stony Brook University >>> Stony Brook, NY 11794 >>> (631)-632-8682 (office) >> >> -- >> Jennifer M. Adams >> IGES/COLA >> 4041 Powder Mill Road, Suite 302 >> Calverton, MD 20705 >> jma at cola.iges.org >> >> >> > > > -- > Owen Doherty > School of Marine and Atmospheric Science > Institute for Terrestrial and Planetary Atmospheres > 103 Discovery Hall > Stony Brook University > Stony Brook, NY 11794 > (631)-632-8682 (office) -- 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/20100105/dbb57c76/attachment.html From varun at CAOS.IISC.ERNET.IN Tue Jan 5 12:34:27 2010 From: varun at CAOS.IISC.ERNET.IN (varun murthy) Date: Tue, 5 Jan 2010 23:04:27 +0530 Subject: Problem running GrADS on Ubuntu 9.10 Message-ID: Hello all, I am a beginner, learning to use GrADS. I installed GrADS 2.0 on Ubuntu 9.04 and tried out the tutorial available online ( http://www.iges.org/grads/gadoc/tutorial.html) and everything worked out fine. I upgraded my Ubuntu installation to 9.10 and repeated the installation (place the tar file in /usr/local/bin and extract) using the same tar.gz file. But when I ran the display command after running grads, the graphic display window remains blank. Terminal output : *ga-> d p (Where p is one of the variables, defined in the control file) Contouring: 0 to 0.0008 interval 0.0001* but graphic display window remains blank. Is GrADS not supported for Ubuntu 9.10? Or are there any libraries that need to be installed before GrADS can be run? *Version Details:* 1) Version of GrADS : GrADS 2.0.a7.1 2) OS : Ubuntu 9.10 32 bit 3) GrADS "q config" output: *ga-> q config Config: v2.0.a7 little-endian readline printim grib2 netcdf hdf4-sds hdf5 geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7 Copyright (c) 1988-2009 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Fri Aug 7 14:37:28 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.5 o NetCDF interface ENABLED http://www.unidata.ucar.edu/software/netcdf netcdf "4.0.1" of Aug 8 2009 03:39:35 $ o HDF interface ENABLED http://hdfgroup.org HDF 4.2r3 HDF5 1.8.3 o Athena Widget GUI DISABLED o OPeNDAP gridded data interface DISABLED o OPeNDAP station data interface DISABLED o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org* Any help would be greatly appreciated. Thanks, Varun Murthy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100105/64a6be0a/attachment.html From jma at COLA.IGES.ORG Tue Jan 5 16:48:18 2010 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 5 Jan 2010 16:48:18 -0500 Subject: Fwd: Re: Problem running GrADS on Ubuntu 9.10 Message-ID: Begin forwarded message: > From: "Huddleston, John" > Date: January 5, 2010 4:41:30 PM EST > To: "jma at COLA.IGES.ORG" > Subject: FW: Problem running GrADS on Ubuntu 9.10 > > Jennifer, sorry, I still cannot send email to the GrADS list, > > Request a ldd on grads from his system. My grads runs on both 8.04 > and 8.10. Here is my ldd on Ubuntu 8.10, > > linux-gate.so.1 => (0xb7faa000) > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e98000) > libncurses.so.5 => /lib/libncurses.so.5 (0xb7e68000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e41000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ce3000) > libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) > libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7cc7000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cc3000) > /lib/ld-linux.so.2 (0xb7f90000) > libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cc0000) > libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cba000) > > Also, ask if Varun has a firewall operating which will block port > 6000. > > John > > John Huddleston, PhD > Research Associate > Cooperative Institute for Research in the Atmosphere > Mail Stop 1375 @ CIRA > Colorado State University > Fort Collins, CO 80521 > 970-491-8602 > > From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On > Behalf Of varun murthy > Sent: Tuesday, January 05, 2010 10:34 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: Problem running GrADS on Ubuntu 9.10 > > Hello all, > I am a beginner, learning to use GrADS. I installed GrADS 2.0 on > Ubuntu 9.04 and tried out the tutorial available online (http://www.iges.org/grads/gadoc/tutorial.html > ) and everything worked out fine. > > I upgraded my Ubuntu installation to 9.10 and repeated the > installation (place the tar file in /usr/local/bin and extract) > using the same tar.gz file. But when I ran the display command after > running grads, the graphic display window remains blank. > > Terminal output : > ga-> d p (Where p is one of the variables, defined in the control > file) > Contouring: 0 to 0.0008 interval 0.0001 > but graphic display window remains blank. > > Is GrADS not supported for Ubuntu 9.10? Or are there any libraries > that need to be installed before GrADS can be run? > > Version Details: > 1) Version of GrADS : GrADS 2.0.a7.1 > 2) OS : Ubuntu 9.10 32 bit > 3) GrADS "q config" output: > ga-> q config > Config: v2.0.a7 little-endian readline printim grib2 netcdf hdf4-sds > hdf5 geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a7 > Copyright (c) 1988-2009 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Fri Aug 7 14:37:28 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.5 > o NetCDF interface ENABLED > http://www.unidata.ucar.edu/software/netcdf > netcdf "4.0.1" of Aug 8 2009 03:39:35 $ > o HDF interface ENABLED > http://hdfgroup.org > HDF 4.2r3 > HDF5 1.8.3 > o Athena Widget GUI DISABLED > o OPeNDAP gridded data interface DISABLED > o OPeNDAP station data interface DISABLED > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org > > > Any help would be greatly appreciated. > > Thanks, > Varun Murthy -- 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/20100105/99173c28/attachment.html From varun at CAOS.IISC.ERNET.IN Tue Jan 5 20:52:37 2010 From: varun at CAOS.IISC.ERNET.IN (varun murthy) Date: Wed, 6 Jan 2010 07:22:37 +0530 Subject: Problem running GrADS on Ubuntu 9.10 In-Reply-To: <92176E54-C0E2-4D20-AD52-D9976287AD24@COLA.IGES.ORG> Message-ID: Hello John, Thanks a lot for helping me out with this. I think the problem is because of a firewall. When I ran grads on 9.04, I was at home, whereas I was at work when I ran it on 9.10.And we are behind a proxy firewall at work. I did not think of this angle at all. Is there a way to specify the Network settings within GrADS (proxy server name,username,pwd) ? Or should I be talking to the Network Administrator at work to figure out how to go about this? Thanks again for helping out with this. Regards, Varun Murthy PS: I will get the ldd on grads when I reach work and see if something is amiss. On Wed, Jan 6, 2010 at 3:18 AM, Jennifer Adams wrote: > Begin forwarded message: > > *From: *"Huddleston, John" > *Date: *January 5, 2010 4:41:30 PM EST > *To: *"jma at COLA.IGES.ORG" > *Subject: **FW: Problem running GrADS on Ubuntu 9.10* > > Jennifer, sorry, I still cannot send email to the GrADS list, > > Request a ldd on grads from his system. My grads runs on both 8.04 and > 8.10. Here is my ldd on Ubuntu 8.10, > > linux-gate.so.1 => (0xb7faa000) > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e98000) > libncurses.so.5 => /lib/libncurses.so.5 (0xb7e68000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e41000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ce3000) > libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) > libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7cc7000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cc3000) > /lib/ld-linux.so.2 (0xb7f90000) > libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cc0000) > libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cba000) > > Also, ask if Varun has a firewall operating which will block port 6000. > > John > > John Huddleston, PhD > Research Associate > Cooperative Institute for Research in the Atmosphere > Mail Stop 1375 @ CIRA > Colorado State University > Fort Collins, CO 80521 > 970-491-8602 > > *From:* GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT > ] *On Behalf Of *varun murthy > *Sent:* Tuesday, January 05, 2010 10:34 AM > *To:* GRADSUSR at LIST.CINECA.IT > *Subject:* Problem running GrADS on Ubuntu 9.10 > > Hello all, > I am a beginner, learning to use GrADS. I installed GrADS 2.0 on Ubuntu > 9.04 and tried out the tutorial available online ( > http://www.iges.org/grads/gadoc/tutorial.html) and everything worked out > fine. > > I upgraded my Ubuntu installation to 9.10 and repeated the installation > (place the tar file in /usr/local/bin and extract) using the same tar.gz > file. But when I ran the display command after running grads, the graphic > display window remains blank. > > Terminal output : > *ga-> d p (Where p is one of the variables, defined in the control file) > Contouring: 0 to 0.0008 interval 0.0001* > but graphic display window remains blank. > > Is GrADS not supported for Ubuntu 9.10? Or are there any libraries that > need to be installed before GrADS can be run? > > *Version Details:* > 1) Version of GrADS : GrADS 2.0.a7.1 > 2) OS : Ubuntu 9.10 32 bit > 3) GrADS "q config" output: > *ga-> q config > Config: v2.0.a7 little-endian readline printim grib2 netcdf hdf4-sds hdf5 > geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a7 > Copyright (c) 1988-2009 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Fri Aug 7 14:37:28 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.5 > o NetCDF interface ENABLED > http://www.unidata.ucar.edu/software/netcdf > netcdf "4.0.1" of Aug 8 2009 03:39:35 $ > o HDF interface ENABLED > http://hdfgroup.org > HDF 4.2r3 > HDF5 1.8.3 > o Athena Widget GUI DISABLED > o OPeNDAP gridded data interface DISABLED > o OPeNDAP station data interface DISABLED > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org* > > > Any help would be greatly appreciated. > > Thanks, > Varun Murthy > > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/cee50be5/attachment.html From sushantpuranik at GMAIL.COM Wed Jan 6 06:52:32 2010 From: sushantpuranik at GMAIL.COM (sushant puranik) Date: Wed, 6 Jan 2010 17:22:32 +0530 Subject: how to integrate in GrADS Message-ID: Hello everyone I want to find the moisture transport using the equation F = 1/ g (integration from 450mb to 1000 mb ) q X v dp How to calculate such integration in GrADS Sushant Puranik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/fe8da45a/attachment.html From mequitomz at YAHOO.COM.BR Wed Jan 6 08:02:05 2010 From: mequitomz at YAHOO.COM.BR (Arlindo Meque) Date: Wed, 6 Jan 2010 05:02:05 -0800 Subject: TIFF images in GrADS Message-ID: Dear? all, ? I?m trying to obtain a relief map in TIFF format from the GTOP data. ??I used the built-in command KML to produce the map: ? Set kml relief Set gxout kml d varname ? ?But the size of the map is too small and the political boundaries are not shown in the map. ? Is there a way to make bigger the map and to have the political boundaries therein? ? Please find attached the output I am getting. ? Sincerely, ? Arlindo ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: relief.tif.tif Type: image/tiff Size: 99762 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100106/4507fd26/attachment.tif From Huddleston at CIRA.COLOSTATE.EDU Wed Jan 6 10:47:52 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Wed, 6 Jan 2010 07:47:52 -0800 Subject: Problem running GrADS on Ubuntu 9.10 In-Reply-To: <352e7d751001051752x722f523ep95c32fd9c2847325@mail.gmail.com> Message-ID: Varun, You can secure shell into the server from home and add the -X option. ssh -X your_9.10_server See https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20090516/4f98cc41/attachment.txt for more information on tunneling X11 through ssh. John ________________________________ From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of varun murthy [varun at CAOS.IISC.ERNET.IN] Sent: Tuesday, January 05, 2010 6:52 PM To: GRADSUSR at LIST.CINECA.IT Subject: Re: Problem running GrADS on Ubuntu 9.10 Hello John, Thanks a lot for helping me out with this. I think the problem is because of a firewall. When I ran grads on 9.04, I was at home, whereas I was at work when I ran it on 9.10.And we are behind a proxy firewall at work. I did not think of this angle at all. Is there a way to specify the Network settings within GrADS (proxy server name,username,pwd) ? Or should I be talking to the Network Administrator at work to figure out how to go about this? Thanks again for helping out with this. Regards, Varun Murthy PS: I will get the ldd on grads when I reach work and see if something is amiss. On Wed, Jan 6, 2010 at 3:18 AM, Jennifer Adams > wrote: Begin forwarded message: From: "Huddleston, John" > Date: January 5, 2010 4:41:30 PM EST To: "jma at COLA.IGES.ORG" > Subject: FW: Problem running GrADS on Ubuntu 9.10 Jennifer, sorry, I still cannot send email to the GrADS list, Request a ldd on grads from his system. My grads runs on both 8.04 and 8.10. Here is my ldd on Ubuntu 8.10, linux-gate.so.1 => (0xb7faa000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e98000) libncurses.so.5 => /lib/libncurses.so.5 (0xb7e68000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e41000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ce3000) libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7cc7000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cc3000) /lib/ld-linux.so.2 (0xb7f90000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cc0000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cba000) Also, ask if Varun has a firewall operating which will block port 6000. John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of varun murthy Sent: Tuesday, January 05, 2010 10:34 AM To: GRADSUSR at LIST.CINECA.IT Subject: Problem running GrADS on Ubuntu 9.10 Hello all, I am a beginner, learning to use GrADS. I installed GrADS 2.0 on Ubuntu 9.04 and tried out the tutorial available online (http://www.iges.org/grads/gadoc/tutorial.html) and everything worked out fine. I upgraded my Ubuntu installation to 9.10 and repeated the installation (place the tar file in /usr/local/bin and extract) using the same tar.gz file. But when I ran the display command after running grads, the graphic display window remains blank. Terminal output : ga-> d p (Where p is one of the variables, defined in the control file) Contouring: 0 to 0.0008 interval 0.0001 but graphic display window remains blank. Is GrADS not supported for Ubuntu 9.10? Or are there any libraries that need to be installed before GrADS can be run? Version Details: 1) Version of GrADS : GrADS 2.0.a7.1 2) OS : Ubuntu 9.10 32 bit 3) GrADS "q config" output: ga-> q config Config: v2.0.a7 little-endian readline printim grib2 netcdf hdf4-sds hdf5 geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7 Copyright (c) 1988-2009 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Fri Aug 7 14:37:28 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.5 o NetCDF interface ENABLED http://www.unidata.ucar.edu/software/netcdf netcdf "4.0.1" of Aug 8 2009 03:39:35 $ o HDF interface ENABLED http://hdfgroup.org HDF 4.2r3 HDF5 1.8.3 o Athena Widget GUI DISABLED o OPeNDAP gridded data interface DISABLED o OPeNDAP station data interface DISABLED o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org Any help would be greatly appreciated. Thanks, Varun Murthy -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/c1559926/attachment.html From rupakumar.kolli at GMAIL.COM Wed Jan 6 11:28:44 2010 From: rupakumar.kolli at GMAIL.COM (Rupa Kumar Kolli) Date: Wed, 6 Jan 2010 17:28:44 +0100 Subject: Display problem on OpenSUSE 11.2 Message-ID: Dear All, I am working with OpenGrADS 2.0 on OpenSUSE 11.2. Whenever the graphics window of GrADS is overlapped by other windows, I find that the overlapped portion is wiped clean and I have to explicitly redisplay the graphics. I used to work around this problem earlier with "Option BackingStore on" in the XF86 configuration. However, in my present installation of OpenSUSE 11.2, the BackingStore option in the configuration file "xorg.conf" no longer seems to have any effect. I would greatly appreciate any clue to solve this problem. Thanks, Kumar. -- ======================================== Dr. Rupa Kumar Kolli Chief, World Climate Applications & Services Division Climate Prediction and Adaptation Branch Climate and Water Department World Meteorological Organization 7bis, av. de la Paix CH-1211 Geneva 2, Switzerland Phone: +41-22-730-8377 Fax: +41-22-730-8042 Email: RKolli at wmo.int; rupakumar.kolli at gmail.com ======================================== From Huddleston at CIRA.COLOSTATE.EDU Wed Jan 6 15:50:10 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Wed, 6 Jan 2010 12:50:10 -0800 Subject: Display problem on OpenSUSE 11.2 In-Reply-To: <41464d881001060828i2152658h3ed2cbd10570f2be@mail.gmail.com> Message-ID: Kumar, Run the command xdpyinfo-display localhost:0.0 | grep back It will tell you whether your server Backingstore is on or off, i.e. options: backing-store YES, save-unders YES John ________________________________________ From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of Rupa Kumar Kolli [rupakumar.kolli at GMAIL.COM] Sent: Wednesday, January 06, 2010 9:28 AM To: GRADSUSR at LIST.CINECA.IT Subject: Display problem on OpenSUSE 11.2 Dear All, I am working with OpenGrADS 2.0 on OpenSUSE 11.2. Whenever the graphics window of GrADS is overlapped by other windows, I find that the overlapped portion is wiped clean and I have to explicitly redisplay the graphics. I used to work around this problem earlier with "Option BackingStore on" in the XF86 configuration. However, in my present installation of OpenSUSE 11.2, the BackingStore option in the configuration file "xorg.conf" no longer seems to have any effect. I would greatly appreciate any clue to solve this problem. Thanks, Kumar. -- ======================================== Dr. Rupa Kumar Kolli Chief, World Climate Applications & Services Division Climate Prediction and Adaptation Branch Climate and Water Department World Meteorological Organization 7bis, av. de la Paix CH-1211 Geneva 2, Switzerland Phone: +41-22-730-8377 Fax: +41-22-730-8042 Email: RKolli at wmo.int; rupakumar.kolli at gmail.com ======================================== From andrewhazelden at GMAIL.COM Wed Jan 6 17:35:46 2010 From: andrewhazelden at GMAIL.COM (Andrew Hazelden) Date: Wed, 6 Jan 2010 18:35:46 -0400 Subject: TIFF images in GrADS In-Reply-To: <219429.39082.qm@web52307.mail.re2.yahoo.com> Message-ID: Hi Arlindo, This is the technique I have worked out for high quality KML ouput. I export a dummy kml file + small tiff using gxout kml just for the Google Earth GroundOverlay coordinates. Then I use printim command to export a larger image in a format like TIFF or PNG. Then I replace the reference in the KML file from the low resolution tiff to the new image on the line: base_kml.tif Also in my experience Google Earth doesn't respect the transparency in GrADS TIFF or GIF exports but does in PNG exports. You can change the image format of the high resolution output to either PNG, TIFF, etc.. by changing the file extension in the command: printim full_rez.png x2048 y1024 -t 0 Attached are two Grads Scripts. The script kml_plot_with_countries.gs will plot political boundary outlines in the exported image. The script kml_plot_no_outlines.gs disables political boundary outlines with the grads command set mpdraw off. Regards, Andrew Hazelden Weather Enthusiast On Jan 6, 2010, at 9:02 AM, Arlindo Meque wrote: > > > Dear all, > > I?m trying to obtain a relief map in TIFF format from the GTOP > data. I used the built-in command KML to produce the map: > > Set kml relief > Set gxout kml > d varname > > But the size of the map is too small and the political boundaries > are not shown in the map. > > Is there a way to make bigger the map and to have the political > boundaries therein? > > Please find attached the output I am getting. > > Sincerely, > > Arlindo > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/666a5f69/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: kml_plot_no_outlines.gs Type: application/octet-stream Size: 269 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100106/666a5f69/attachment.obj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/666a5f69/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: kml_plot_with_countries.gs Type: application/octet-stream Size: 252 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100106/666a5f69/attachment-0001.obj -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/666a5f69/attachment-0002.html From craig at SWELLNET.COM.AU Wed Jan 6 19:24:31 2010 From: craig at SWELLNET.COM.AU (Craig Brokensha) Date: Thu, 7 Jan 2010 11:24:31 +1100 Subject: GrADS won't run In-Reply-To: <3224947.3868.1262823514363.JavaMail.root@subserve> Message-ID: I have downloaded and un-zipped and tar'd the Grads program for linux i686 system (grads-2.0.a7.1-bin-i686-pc-linux-gnu) It all unpacked fine and i have the grads programs in the location /usr/local/bin/grads-2.0.a7.1/bin/ And the libraries in /usr/local/lib/grads/ I am running everything from a command line, i.e. no desktop GUI or anything, so when I got to run GrADS? by typing grads it comes up with the error " Floating Point Exception " I have also tried typing grads -b to prevent a window popping up, as I am just using a command line but this doesn't work either. My system is i686 -pc -linux -gnu Hope someone can help! Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. I have also tried typing grads -b to prevent a window popping up, as I am just using a command line but this doesn't work either. My system is i686 -pc -linux -gnu Hope someone can help! Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/d3925bff/attachment.html From arlindo.dasilva at GMAIL.COM Wed Jan 6 20:20:24 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 6 Jan 2010 20:20:24 -0500 Subject: GrADS won't run In-Reply-To: <29895998.3887.1262823871156.JavaMail.root@subserve> Message-ID: On Wed, Jan 6, 2010 at 7:24 PM, Craig Brokensha wrote: > I have downloaded and un-zipped and tar'd the Grads program for linux i686 > system (grads-2.0.a7.1-bin-i686-pc-linux-gnu) > > > See if you have better luck with an opengrads build: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle Arlindo > It all unpacked fine and i have the grads programs in the location * > /usr/local/bin/grads-2.0.a7.1/bin/* > > And the libraries in */usr/local/lib/grads/* > > > > I am running everything from a command line, i.e. no desktop GUI or > anything, so when I got to run GrADS by typing *grads* it comes up with > the error "*Floating Point Exception*" > > > > I have also tried typing *grads -b* to prevent a window popping up, as I > am just using a command line but this doesn't work either. > > My system is i686 -pc -linux -gnu > > > > Hope someone can help! > > > > Cheers, Craig > -------------------- > Swellnet Pty Ltd > Level 5, 8 West St, North Sydney, NSW 2060 > Mob 0433 266 263 || Tel 02 9965 9260 || Fax 02 9955 1536 > www.swellnet.com.au > > This email is confidential for the addressee only and is subject to > copyright where applicable. > If you have received the message in error, please advise the sender by > reply e-mail, and delete the message. Thank you. > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/bd700495/attachment.html From arlindo.dasilva at GMAIL.COM Wed Jan 6 20:27:27 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 6 Jan 2010 20:27:27 -0500 Subject: lats4d question In-Reply-To: <4B435984.50002@nasa.gov> Message-ID: On Tue, Jan 5, 2010 at 10:23 AM, Fan Fang wrote: > Had the following error when trying to convert a grib2 file into hdf4 > format. I am using lats4d in the grads-2.0.a7.oga.3 bundle. The .ctl file > has the lines around soilw40_100cm: > > ... > RH0C 0,4,0 0,1,1 ** 0C isotherm Relative Humidity [%] > SHTFLsfc 0,1,0 0,0,11,0 ** surface Sensible Heat Net Flux [W/m^2] > SOILW0_10cm 0,106,0,0.1 2,0,192 ** 0-0.1 m below ground Volumetric Soil > Moisture Content [Fraction] > SOILW10_40cm 0,106,0.1,0.4 2,0,192 ** 0.1-0.4 m below ground Volumetric > Soil Moisture Content [Fraction] > SOILW40_100cm 0,106,0.4,1 2,0,192 ** 0.4-1 m below ground Volumetric > Soil Moisture Content [Fraction] > SOILW100_200cm 0,106,1,2 2,0,192 ** 1-2 m below ground Volumetric Soil > Moisture Content [Fraction] > SPFH2m 0,103,2 0,1,0 ** 2 m above ground Specific Humidity [kg/kg] > ... > > Anyone has insight into this? Thanks. > > -Fan > > > > grads -blc 'run lats4d.gs -q -format hdf4 -i > ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' > Welcome to the OpenGrADS Bundle Distribution > -------------------------------------------- > > For additional information enter "grads -h". > > Starting > "/home/ffang/grads-2.0.a7.oga.3/Contents/Linux/Versions/2.0.a7.oga.3/i686/grads > -blc 'run lats4d.gs -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl > -o grib2test' " ... > > > Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 > 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.3 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 > No hardcopy metafile open > All files closed; all defined objects released; > All GrADS attributes have been reinitialized > LATS error (lats_var): LATS (lats.c) --> Variable soilw40_100cm: not in > the variable table, file ID 1 > lats4d: fatal error defining variables > lats4d: error creating hdf4 file grib2test.hdf > 1 > > lats4d: exiting from GrADS... > No hardcopy metafile open > GX package terminated > I think I know what the problem is. The variabble name *soilw40_100cm *is too long. Try editing your ctl and shortening the variable name, say * soilw40_100*. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100106/44978755/attachment.html From craig at SWELLNET.COM.AU Wed Jan 6 21:57:25 2010 From: craig at SWELLNET.COM.AU (Craig Brokensha) Date: Thu, 7 Jan 2010 13:57:25 +1100 Subject: GrADS won't run In-Reply-To: <77fcd6b21001061720h7dca3a2fs72baecd2c2a29cb6@mail.gmail.com> Message-ID: Ok Thanks, I downloaded the new open GrADS and installed it. I then changed the Path by typing export PATH=/usr/local/bin/grads-2.0.a7.oga.3/Contents/ Then I went to run grads and this pops up on the secreen 3 times and just hangs there, refreshing for ever... Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- For additional information enter "grads -h". Starting " usr/local/bin/grads-2.0.a7.oga.3/Contents/grads "..... Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- For additional information enter "grads -h". Starting " usr/local/bin/grads-2.0.a7.oga.3/Contents/grads "..... Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- For additional information enter "grads -h". Starting " usr/local/bin/grads-2.0.a7.oga.3/Contents/grads "..... Looks like its crashing?? Any further ideas? Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. ----- Original Message ----- From: "Arlindo da Silva" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 7, 2010 12:20:24 PM Subject: Re: GrADS won't run Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- For additional information enter "grads -h". Starting " usr/local/bin/grads-2.0.a7.oga.3/Contents/grads "..... Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- For additional information enter "grads -h". Starting " usr/local/bin/grads-2.0.a7.oga.3/Contents/grads "..... Looks like its crashing?? Any further ideas? Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. ----- Original Message ----- From: "Arlindo da Silva" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 7, 2010 12:20:24 PM Subject: Re: GrADS won't run ----- Original Message ----- From: "Arlindo da Silva" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 7, 2010 12:20:24 PM Subject: Re: GrADS won't run On Wed, Jan 6, 2010 at 7:24 PM, Craig Brokensha < craig at swellnet.com.au > wrote: I have downloaded and un-zipped and tar'd the Grads program for linux i686 system (grads-2.0.a7.1-bin-i686-pc-linux-gnu) See if you have better luck with an opengrads build: ?? ? http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle ?? ? ? Arlindo It all unpacked fine and i have the grads programs in the location /usr/local/bin/grads-2.0.a7.1/bin/ And the libraries in /usr/local/lib/grads/ I am running everything from a command line, i.e. no desktop GUI or anything, so when I got to run GrADS? by typing grads it comes up with the error " Floating Point Exception " I have also tried typing grads -b to prevent a window popping up, as I am just using a command line but this doesn't work either. My system is i686 -pc -linux -gnu Hope someone can help! Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/ba27c4a4/attachment.html From arabonis at YAHOO.COM Thu Jan 7 03:26:11 2010 From: arabonis at YAHOO.COM (Jean Pierre Arabonis) Date: Thu, 7 Jan 2010 00:26:11 -0800 Subject: Display problem on OpenSUSE 11.2 In-Reply-To: Message-ID: Hi ?Seems like a backingstore option? problem.? Be careful when enabling this using nvidia drivers - on opensuse 11.1 enabling backing store led to X no longer working and serious boot up problems. I now just live with the loss of the display when changing desktops etc. ?JP -- Jean Pierre Arabonis arabonis at yahoo.com Tel +27 21 780 1021 cell +27 84 401 1365 --- On Wed, 1/6/10, Huddleston, John wrote: From: Huddleston, John Subject: Re: Display problem on OpenSUSE 11.2 To: GRADSUSR at LIST.CINECA.IT Date: Wednesday, January 6, 2010, 8:50 PM Kumar, Run the command xdpyinfo-display localhost:0.0 | grep back It will tell you whether your server Backingstore is on or off, i.e. options:? ? backing-store YES, save-unders YES John ________________________________________ From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of Rupa Kumar Kolli [rupakumar.kolli at GMAIL.COM] Sent: Wednesday, January 06, 2010 9:28 AM To: GRADSUSR at LIST.CINECA.IT Subject: Display problem on OpenSUSE 11.2 Dear All, I am working with OpenGrADS 2.0 on OpenSUSE 11.2.? Whenever the graphics window of GrADS is overlapped by other windows, I find that the overlapped portion is wiped clean and I have to explicitly redisplay the graphics.? I used to work around this problem earlier with "Option BackingStore on" in the XF86 configuration.? However, in my present installation of OpenSUSE 11.2, the BackingStore option in the configuration file "xorg.conf" no longer seems to have any effect. I would greatly appreciate any clue to solve this problem. Thanks, Kumar. -- ======================================== Dr. Rupa Kumar Kolli Chief, World Climate Applications & Services Division Climate Prediction and Adaptation Branch Climate and Water Department World Meteorological Organization 7bis, av. de la Paix CH-1211 Geneva 2, Switzerland Phone: +41-22-730-8377 Fax: +41-22-730-8042 Email: RKolli at wmo.int; rupakumar.kolli at gmail.com ======================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/759dc1c1/attachment.html From Fan.Fang at NASA.GOV Thu Jan 7 08:06:17 2010 From: Fan.Fang at NASA.GOV (Fan Fang) Date: Thu, 7 Jan 2010 08:06:17 -0500 Subject: lats4d question In-Reply-To: <77fcd6b21001061727s56b19fa1nb82cab9424b4d381@mail.gmail.com> Message-ID: Thanks Arlindo for the hint. I thought the limit was 15 characters. But it seemed to work after the variable names are shortened. The HDF file was made, with some error messages though. Not sure if they are of concern. -Fan > grads -blc 'run lats4d.gs -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' Welcome to the OpenGrADS Bundle Distribution -------------------------------------------- For additional information enter "grads -h". Starting "/home/ffang/grads-2.0.a7.oga.3/Contents/Linux/Versions/2.0.a7.oga.3/i686/grads -blc 'run lats4d.gs -q -format hdf4 -i ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' " ... Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 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.3 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 No hardcopy metafile open All files closed; all defined objects released; All GrADS attributes have been reinitialized Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits Data Request Warning: Request is completely outside file limits lats4d: created hdf4 file grib2test.hdf lats4d: exiting from GrADS... No hardcopy metafile open GX package terminated Arlindo da Silva wrote: > On Tue, Jan 5, 2010 at 10:23 AM, Fan Fang > wrote: > > Had the following error when trying to convert a grib2 file into > hdf4 format. I am using lats4d in the grads-2.0.a7.oga.3 bundle. > The .ctl file has the lines around soilw40_100cm: > > ... > RH0C 0,4,0 0,1,1 ** 0C isotherm Relative Humidity [%] > SHTFLsfc 0,1,0 0,0,11,0 ** surface Sensible Heat Net Flux [W/m^2] > SOILW0_10cm 0,106,0,0.1 2,0,192 ** 0-0.1 m below ground > Volumetric Soil Moisture Content [Fraction] > SOILW10_40cm 0,106,0.1,0.4 2,0,192 ** 0.1-0.4 m below ground > Volumetric Soil Moisture Content [Fraction] > SOILW40_100cm 0,106,0.4,1 2,0,192 ** 0.4-1 m below ground > Volumetric Soil Moisture Content [Fraction] > SOILW100_200cm 0,106,1,2 2,0,192 ** 1-2 m below ground > Volumetric Soil Moisture Content [Fraction] > SPFH2m 0,103,2 0,1,0 ** 2 m above ground Specific Humidity [kg/kg] > ... > > Anyone has insight into this? Thanks. > > -Fan > > > > grads -blc 'run lats4d.gs -q -format hdf4 -i > ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' > Welcome to the OpenGrADS Bundle Distribution > -------------------------------------------- > > For additional information enter "grads -h". > > Starting > "/home/ffang/grads-2.0.a7.oga.3/Contents/Linux/Versions/2.0.a7.oga.3/i686/grads > -blc 'run lats4d.gs -q -format hdf4 -i > ./gblav.PGrb2F03.091222.06z.ctl -o grib2test' " ... > > > Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 > 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.3 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 > No hardcopy metafile open > All files closed; all defined objects released; > All GrADS attributes have been reinitialized > LATS error (lats_var): LATS (lats.c) --> Variable soilw40_100cm: > not in the variable table, file ID 1 > lats4d: fatal error defining variables > lats4d: error creating hdf4 file grib2test.hdf > 1 > > lats4d: exiting from GrADS... > No hardcopy metafile open > GX package terminated > > > I think I know what the problem is. The variabble name *soilw40_100cm > *is too long. Try editing your ctl and shortening the variable name, > say *soilw40_100*. > > Arlindo > > > > -- > Arlindo da Silva > dasilva at alum.mit.edu From c.hayes at WEERONLINE.NL Thu Jan 7 08:37:56 2010 From: c.hayes at WEERONLINE.NL (Chris Hayes) Date: Thu, 7 Jan 2010 14:37:56 +0100 Subject: juggling with datafiles Message-ID: Dear group, I loop through 48 subsequent files and create maps from them. Several of the weatherdata are cumulative, adding all precipitation from the runtime to the hour of the prediction. I would like to show maps of precipitation in the time period. E.g. of time #23 by subtracting val.#22 from val.#23. I need 2 files to be open at the same time to accomplish that. I am looking for a memory efficient way to open and close files, in a loop for all files. This setup came to mind: Open 1 Open 2 Display 2-1 Close 1 Open 3 Display 3-2 Close 2 Open 4 Display 4-3 But I am only allowed to close the most recently opened file. If I stop closing files I will end up having loads of files open: Open 1 Open 2 Display val.2- val.1 Open 3 Display val.3- val.2 Open 4 Display val.4- val.3 (repeat until #48) Close 1-48 when I'm at the 23rd timestep I have file #1,#2 .. #23 open. I'm afraid the server will crash having so many files open. I just need #22 and #23 for that display moment. Or I have to close all files and re-open the last as # 1: file #22 becomes file 1 and file #23 becomes file 2: Open #22 (1) Open #23 (2) Display val.2- val.1 Close #23 (2) Close #22 (1) Open #23 Open #24 Display val.2- val.1 Close #24 Close #23 But closing a file (#23 in this case) to immediately open it again seems inefficient. Is there a smart way to handle this? I was pondering: Open #1 Open #2 Display val.2- val.1 Open #3 AS and REPLACING 1 Display val.1- val.2 (effectively: #3-#2) Open #4 AS and REPLACING 2 Display val.2- val.1 (effectively: #4-#3) Is that possible? FYI: I'm using a php script to send commands to opengrads, so I'm quite flexible with the available loops. Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/b646dfdf/attachment.html From varun at CAOS.IISC.ERNET.IN Thu Jan 7 09:22:14 2010 From: varun at CAOS.IISC.ERNET.IN (varun murthy) Date: Thu, 7 Jan 2010 19:52:14 +0530 Subject: Problem running GrADS on Ubuntu 9.10 In-Reply-To: <92176E54-C0E2-4D20-AD52-D9976287AD24@COLA.IGES.ORG> Message-ID: Hi, I was partially able to solve the issue regarding the rendering of the display window. The display is now rendered only when the display window is not minimized when the "display" command is entered. However, when the display window is minimized and then maximized ,it gets blanked out again. The ldd on grads is : linux-gate.so.1 => (0xb7fd9000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7edb000) libncurses.so.5 => /lib/libncurses.so.5 (0xb7ea9000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e82000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d1f000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d05000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7d01000) /lib/ld-linux.so.2 (0xb7fda000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cfd000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cf7000) When compared to the ldd from your system, this line is missing : " libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) ". Am I missing a library? Thanks and Regards, Varun.S.Murthy On Wed, Jan 6, 2010 at 3:18 AM, Jennifer Adams wrote: > Begin forwarded message: > > *From: *"Huddleston, John" > *Date: *January 5, 2010 4:41:30 PM EST > *To: *"jma at COLA.IGES.ORG" > *Subject: **FW: Problem running GrADS on Ubuntu 9.10* > > Jennifer, sorry, I still cannot send email to the GrADS list, > > Request a ldd on grads from his system. My grads runs on both 8.04 and > 8.10. Here is my ldd on Ubuntu 8.10, > > linux-gate.so.1 => (0xb7faa000) > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e98000) > libncurses.so.5 => /lib/libncurses.so.5 (0xb7e68000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e41000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ce3000) > libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) > libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7cc7000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cc3000) > /lib/ld-linux.so.2 (0xb7f90000) > libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cc0000) > libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cba000) > > Also, ask if Varun has a firewall operating which will block port 6000. > > John > > John Huddleston, PhD > Research Associate > Cooperative Institute for Research in the Atmosphere > Mail Stop 1375 @ CIRA > Colorado State University > Fort Collins, CO 80521 > 970-491-8602 > > *From:* GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT > ] *On Behalf Of *varun murthy > *Sent:* Tuesday, January 05, 2010 10:34 AM > *To:* GRADSUSR at LIST.CINECA.IT > *Subject:* Problem running GrADS on Ubuntu 9.10 > > Hello all, > I am a beginner, learning to use GrADS. I installed GrADS 2.0 on Ubuntu > 9.04 and tried out the tutorial available online ( > http://www.iges.org/grads/gadoc/tutorial.html) and everything worked out > fine. > > I upgraded my Ubuntu installation to 9.10 and repeated the installation > (place the tar file in /usr/local/bin and extract) using the same tar.gz > file. But when I ran the display command after running grads, the graphic > display window remains blank. > > Terminal output : > *ga-> d p (Where p is one of the variables, defined in the control file) > Contouring: 0 to 0.0008 interval 0.0001* > but graphic display window remains blank. > > Is GrADS not supported for Ubuntu 9.10? Or are there any libraries that > need to be installed before GrADS can be run? > > *Version Details:* > 1) Version of GrADS : GrADS 2.0.a7.1 > 2) OS : Ubuntu 9.10 32 bit > 3) GrADS "q config" output: > *ga-> q config > Config: v2.0.a7 little-endian readline printim grib2 netcdf hdf4-sds hdf5 > geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a7 > Copyright (c) 1988-2009 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Fri Aug 7 14:37:28 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.5 > o NetCDF interface ENABLED > http://www.unidata.ucar.edu/software/netcdf > netcdf "4.0.1" of Aug 8 2009 03:39:35 $ > o HDF interface ENABLED > http://hdfgroup.org > HDF 4.2r3 > HDF5 1.8.3 > o Athena Widget GUI DISABLED > o OPeNDAP gridded data interface DISABLED > o OPeNDAP station data interface DISABLED > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org* > > > Any help would be greatly appreciated. > > Thanks, > Varun Murthy > > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/d3f530ee/attachment.html From Huddleston at CIRA.COLOSTATE.EDU Thu Jan 7 10:54:14 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Thu, 7 Jan 2010 07:54:14 -0800 Subject: Problem running GrADS on Ubuntu 9.10 In-Reply-To: <352e7d751001070622s39932978q5628cedb06e72fb7@mail.gmail.com> Message-ID: Varun The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a small footprint, latency hiding, direct access to the protocol, improved threading support, and extensibility. See http://packages.ubuntu.com/search?keywords=libx11-xcb-dev for the package name. Ubuntu 9.10 is Karmic. Karmic just came out last month; so, there may be some issues related to your Xorg libraries as well as your graphics card. John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of varun murthy Sent: Thursday, January 07, 2010 7:22 AM To: GRADSUSR at LIST.CINECA.IT Subject: Re: Problem running GrADS on Ubuntu 9.10 Hi, I was partially able to solve the issue regarding the rendering of the display window. The display is now rendered only when the display window is not minimized when the "display" command is entered. However, when the display window is minimized and then maximized ,it gets blanked out again. The ldd on grads is : linux-gate.so.1 => (0xb7fd9000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7edb000) libncurses.so.5 => /lib/libncurses.so.5 (0xb7ea9000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e82000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d1f000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7d05000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7d01000) /lib/ld-linux.so.2 (0xb7fda000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cfd000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cf7000) When compared to the ldd from your system, this line is missing : " libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) ". Am I missing a library? Thanks and Regards, Varun.S.Murthy On Wed, Jan 6, 2010 at 3:18 AM, Jennifer Adams > wrote: Begin forwarded message: From: "Huddleston, John" > Date: January 5, 2010 4:41:30 PM EST To: "jma at COLA.IGES.ORG" > Subject: FW: Problem running GrADS on Ubuntu 9.10 Jennifer, sorry, I still cannot send email to the GrADS list, Request a ldd on grads from his system. My grads runs on both 8.04 and 8.10. Here is my ldd on Ubuntu 8.10, linux-gate.so.1 => (0xb7faa000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e98000) libncurses.so.5 => /lib/libncurses.so.5 (0xb7e68000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e41000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ce3000) libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb7ce0000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7cc7000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cc3000) /lib/ld-linux.so.2 (0xb7f90000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb7cc0000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7cba000) Also, ask if Varun has a firewall operating which will block port 6000. John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of varun murthy Sent: Tuesday, January 05, 2010 10:34 AM To: GRADSUSR at LIST.CINECA.IT Subject: Problem running GrADS on Ubuntu 9.10 Hello all, I am a beginner, learning to use GrADS. I installed GrADS 2.0 on Ubuntu 9.04 and tried out the tutorial available online (http://www.iges.org/grads/gadoc/tutorial.html) and everything worked out fine. I upgraded my Ubuntu installation to 9.10 and repeated the installation (place the tar file in /usr/local/bin and extract) using the same tar.gz file. But when I ran the display command after running grads, the graphic display window remains blank. Terminal output : ga-> d p (Where p is one of the variables, defined in the control file) Contouring: 0 to 0.0008 interval 0.0001 but graphic display window remains blank. Is GrADS not supported for Ubuntu 9.10? Or are there any libraries that need to be installed before GrADS can be run? Version Details: 1) Version of GrADS : GrADS 2.0.a7.1 2) OS : Ubuntu 9.10 32 bit 3) GrADS "q config" output: ga-> q config Config: v2.0.a7 little-endian readline printim grib2 netcdf hdf4-sds hdf5 geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7 Copyright (c) 1988-2009 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Fri Aug 7 14:37:28 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.5 o NetCDF interface ENABLED http://www.unidata.ucar.edu/software/netcdf netcdf "4.0.1" of Aug 8 2009 03:39:35 $ o HDF interface ENABLED http://hdfgroup.org HDF 4.2r3 HDF5 1.8.3 o Athena Widget GUI DISABLED o OPeNDAP gridded data interface DISABLED o OPeNDAP station data interface DISABLED o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org Any help would be greatly appreciated. Thanks, Varun Murthy -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/4e984fe9/attachment.html From Charles.Seman at NOAA.GOV Thu Jan 7 12:20:14 2010 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Thu, 7 Jan 2010 12:20:14 -0500 Subject: juggling with datafiles In-Reply-To: <000001ca8f9e$9f200140$dd6003c0$%hayes@weeronline.nl> Message-ID: Chris, If all of the defined variables are for the same physical domain, perhaps you could try swapping the variables in the time loop? Maybe something like this (warning: not tested, please check for errors): n=1 open ctl.n * or whatever the name should be... define var1 = var.1 close 1 n=n+1 while (n<=48) open ctl.n define var2 = var.1 define var2m1 = var2-var1 ... var1 = var2 * update var1 for next time close 1 n=n+1 endwhile I hope this helps, Chuck Chris Hayes wrote: > > Dear group, > > I loop through 48 subsequent files and create maps from them. > > Several of the weatherdata are cumulative, adding all precipitation > from the runtime to the hour of the prediction. > > I would like to show maps of precipitation in the time period. E.g. of > time #23 by subtracting val.#22 from val.#23. > > I need 2 files to be open at the same time to accomplish that. > > I am looking for a memory efficient way to open and close files, in a > loop for all files. > > This setup came to mind: > > Open 1 > > Open 2 > > Display 2-1 > > Close 1 > > Open 3 > > Display 3-2 > > Close 2 > > Open 4 > > Display 4-3 > > But I am only allowed to close the most recently opened file. > > If I stop closing files I will end up having loads of files open: > > Open 1 > > Open 2 > > Display val.2- val.1 > > Open 3 > > Display val.3- val.2 > > Open 4 > > Display val.4- val.3 > > (repeat until #48) > > Close 1-48 > > when I?m at the 23^rd timestep I have file #1,#2 ?. #23 open. > > I?m afraid the server will crash having so many files open. > > I just need #22 and #23 for that display moment. > > Or I have to close all files and re-open the last as # 1: file #22 > becomes file 1 and file #23 becomes file 2: > > Open #22 (1) > > Open #23 (2) > > Display val.2- val.1 > > Close #23 (2) > > Close #22 (1) > > Open #23 > > Open #24 > > Display val.2- val.1 > > Close #24 > > Close #23 > > But closing a file (#23 in this case) to immediately open it again > seems inefficient. > > Is there a smart way to handle this? > > I was pondering: > > Open #1 > > Open #2 > > Display val.2- val.1 > > Open #3 AS and REPLACING 1 > > Display val.1- val.2 (effectively: #3-#2) > > Open #4 AS and REPLACING 2 > > Display val.2- val.1 (effectively: #4-#3) > > Is that possible? > > FYI: I?m using a php script to send commands to opengrads, so I?m > quite flexible with the available loops. > > Thanks, > > Chris > -- 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 azarzarrin at YAHOO.COM Thu Jan 7 12:39:52 2010 From: azarzarrin at YAHOO.COM (Azar Zarrin) Date: Thu, 7 Jan 2010 09:39:52 -0800 Subject: GrADS won't run In-Reply-To: <19190564.4707.1262833045726.JavaMail.root@subserve> Message-ID: Which version are you trying to install? I had the same problem with the x86-64 and amd64 versions the other week. A GrADS user suggested me to try i686 Version and it worked. Azar --- On Thu, 1/7/10, Craig Brokensha wrote: From: Craig Brokensha Subject: Re: GrADS won't run To: GRADSUSR at LIST.CINECA.IT Date: Thursday, January 7, 2010, 5:57 AM #yiv1839429721 p {margin:0;} Ok Thanks, I downloaded the new open GrADS and installed it. ? I then changed the Path by typing export PATH=/usr/local/bin/grads-2.0.a7.oga.3/Contents/ ? Then I went to run grads and this pops up on the secreen 3 times and just hangs there, refreshing for ever... ? Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- ? For additional information enter "grads -h". ? Starting "usr/local/bin/grads-2.0.a7.oga.3/Contents/grads"..... ? ? Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- ? For additional information enter "grads -h". ? Starting "usr/local/bin/grads-2.0.a7.oga.3/Contents/grads"..... ? ? Welcome to OpenGrADS Bundle Distribution ---------------------------------------------- ? For additional information enter "grads -h". ? Starting "usr/local/bin/grads-2.0.a7.oga.3/Contents/grads"..... ? Looks like its crashing?? Any further ideas? ? Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. ----- Original Message ----- From: "Arlindo da Silva" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 7, 2010 12:20:24 PM Subject: Re: GrADS won't run On Wed, Jan 6, 2010 at 7:24 PM, Craig Brokensha wrote: I have downloaded and un-zipped and tar'd the Grads program for linux i686 system (grads-2.0.a7.1-bin-i686-pc-linux-gnu) ? See if you have better luck with an opengrads build: ?? ?http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle ?? ? ? Arlindo ? It all unpacked fine and i have the grads programs in the location /usr/local/bin/grads-2.0.a7.1/bin/ And the libraries in /usr/local/lib/grads/ ? I am running everything from a command line, i.e. no desktop GUI or anything, so when I got to run GrADS? by typing grads it comes up with the error "Floating Point Exception" ? I have also tried typing grads -b to prevent a window popping up, as I am just using a command line but this doesn't work either. My system is i686 -pc -linux -gnu ? Hope someone can help! ? Cheers, Craig -------------------- Swellnet Pty Ltd Level 5, 8 West St, North Sydney, NSW 2060 Mob 0433 266 263 || Tel 02 9965 9260 ?|| Fax 02 9955 1536 www.swellnet.com.au This email is confidential for the addressee only and is subject to copyright where applicable. If you have received the message in error, please advise the sender by reply e-mail, and delete the message. Thank you. -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100107/f447e92e/attachment.html From pietrowicz at ZEDXINC.COM Thu Jan 7 12:55:52 2010 From: pietrowicz at ZEDXINC.COM (Joe Pietrowicz) Date: Thu, 7 Jan 2010 12:55:52 -0500 Subject: juggling with datafiles In-Reply-To: <21607299.72201262886192729.JavaMail.root@shark.zedxinc.com> Message-ID: Chris, I've found that if you are working with grib or grib2 files that are all of the same type you can "cat" them into one file, then process them to be used in GrADS. I'm not sure if you can do this with netcdf files, but I don't think so. Or you can use the template feature when making the *.ctl file. This will allow all times to be available with only one file that is open. Then the loop that Charles Seman suggests should work without the open *.ctl.n. Regards Joe ----- Original Message ----- From: "Charles Seman" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 7, 2010 12:20:14 PM GMT -05:00 US/Canada Eastern Subject: Re: juggling with datafiles Chris, If all of the defined variables are for the same physical domain, perhaps you could try swapping the variables in the time loop? Maybe something like this (warning: not tested, please check for errors): n=1 open ctl.n * or whatever the name should be... define var1 = var.1 close 1 n=n+1 while (n<=48) open ctl.n define var2 = var.1 define var2m1 = var2-var1 ... var1 = var2 * update var1 for next time close 1 n=n+1 endwhile I hope this helps, Chuck Chris Hayes wrote: > > Dear group, > > I loop through 48 subsequent files and create maps from them. > > Several of the weatherdata are cumulative, adding all precipitation > from the runtime to the hour of the prediction. > > I would like to show maps of precipitation in the time period. E.g. of > time #23 by subtracting val.#22 from val.#23. > > I need 2 files to be open at the same time to accomplish that. > > I am looking for a memory efficient way to open and close files, in a > loop for all files. > > This setup came to mind: > > Open 1 > > Open 2 > > Display 2-1 > > Close 1 > > Open 3 > > Display 3-2 > > Close 2 > > Open 4 > > Display 4-3 > > But I am only allowed to close the most recently opened file. > > If I stop closing files I will end up having loads of files open: > > Open 1 > > Open 2 > > Display val.2- val.1 > > Open 3 > > Display val.3- val.2 > > Open 4 > > Display val.4- val.3 > > (repeat until #48) > > Close 1-48 > > when I?m at the 23^rd timestep I have file #1,#2 ?. #23 open. > > I?m afraid the server will crash having so many files open. > > I just need #22 and #23 for that display moment. > > Or I have to close all files and re-open the last as # 1: file #22 > becomes file 1 and file #23 becomes file 2: > > Open #22 (1) > > Open #23 (2) > > Display val.2- val.1 > > Close #23 (2) > > Close #22 (1) > > Open #23 > > Open #24 > > Display val.2- val.1 > > Close #24 > > Close #23 > > But closing a file (#23 in this case) to immediately open it again > seems inefficient. > > Is there a smart way to handle this? > > I was pondering: > > Open #1 > > Open #2 > > Display val.2- val.1 > > Open #3 AS and REPLACING 1 > > Display val.1- val.2 (effectively: #3-#2) > > Open #4 AS and REPLACING 2 > > Display val.2- val.1 (effectively: #4-#3) > > Is that possible? > > FYI: I?m using a php script to send commands to opengrads, so I?m > quite flexible with the available loops. > > Thanks, > > Chris > -- 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 Huddleston at CIRA.COLOSTATE.EDU Thu Jan 7 16:13:04 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Thu, 7 Jan 2010 13:13:04 -0800 Subject: juggling with datafiles In-Reply-To: <6740762.72491262886952245.JavaMail.root@shark.zedxinc.com> Message-ID: Joe/Chris You can use the Climate Data Operators (CDO) http://www.mpimet.mpg.de/fileadmin/software/cdo/ to concatenate and manipulate climate data files and use the netCDF Operators (NCO) http://nco.sourceforge.net/ to concatenate and otherwise manipulate netCDF data files. See http://vista.cira.colostate.edu/nco/readme.htm for static Linux, Cygwin, and native Windows executables. John Huddleston, PhD -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of Joe Pietrowicz Sent: Thursday, January 07, 2010 10:56 AM To: GRADSUSR at LIST.CINECA.IT Subject: Re: juggling with datafiles Chris, I've found that if you are working with grib or grib2 files that are all of the same type you can "cat" them into one file, then process them to be used in GrADS. I'm not sure if you can do this with netcdf files, but I don't think so. Or you can use the template feature when making the *.ctl file. This will allow all times to be available with only one file that is open. Then the loop that Charles Seman suggests should work without the open *.ctl.n. Regards Joe ----- Original Message ----- From: "Charles Seman" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 7, 2010 12:20:14 PM GMT -05:00 US/Canada Eastern Subject: Re: juggling with datafiles Chris, If all of the defined variables are for the same physical domain, perhaps you could try swapping the variables in the time loop? Maybe something like this (warning: not tested, please check for errors): n=1 open ctl.n * or whatever the name should be... define var1 = var.1 close 1 n=n+1 while (n<=48) open ctl.n define var2 = var.1 define var2m1 = var2-var1 ... var1 = var2 * update var1 for next time close 1 n=n+1 endwhile I hope this helps, Chuck Chris Hayes wrote: > > Dear group, > > I loop through 48 subsequent files and create maps from them. > > Several of the weatherdata are cumulative, adding all precipitation > from the runtime to the hour of the prediction. > > I would like to show maps of precipitation in the time period. E.g. of > time #23 by subtracting val.#22 from val.#23. > > I need 2 files to be open at the same time to accomplish that. > > I am looking for a memory efficient way to open and close files, in a > loop for all files. > > This setup came to mind: > > Open 1 > > Open 2 > > Display 2-1 > > Close 1 > > Open 3 > > Display 3-2 > > Close 2 > > Open 4 > > Display 4-3 > > But I am only allowed to close the most recently opened file. > > If I stop closing files I will end up having loads of files open: > > Open 1 > > Open 2 > > Display val.2- val.1 > > Open 3 > > Display val.3- val.2 > > Open 4 > > Display val.4- val.3 > > (repeat until #48) > > Close 1-48 > > when I?m at the 23^rd timestep I have file #1,#2 ?. #23 open. > > I?m afraid the server will crash having so many files open. > > I just need #22 and #23 for that display moment. > > Or I have to close all files and re-open the last as # 1: file #22 > becomes file 1 and file #23 becomes file 2: > > Open #22 (1) > > Open #23 (2) > > Display val.2- val.1 > > Close #23 (2) > > Close #22 (1) > > Open #23 > > Open #24 > > Display val.2- val.1 > > Close #24 > > Close #23 > > But closing a file (#23 in this case) to immediately open it again > seems inefficient. > > Is there a smart way to handle this? > > I was pondering: > > Open #1 > > Open #2 > > Display val.2- val.1 > > Open #3 AS and REPLACING 1 > > Display val.1- val.2 (effectively: #3-#2) > > Open #4 AS and REPLACING 2 > > Display val.2- val.1 (effectively: #4-#3) > > Is that possible? > > FYI: I?m using a php script to send commands to opengrads, so I?m > quite flexible with the available loops. > > Thanks, > > Chris > -- 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 andrewhazelden at GMAIL.COM Fri Jan 8 10:15:50 2010 From: andrewhazelden at GMAIL.COM (Andrew Hazelden) Date: Fri, 8 Jan 2010 11:15:50 -0400 Subject: Listserv Problems. Message-ID: Hi. I sent a message yesterday to the grads list and it doesn't seem to have been posted. When I search the GRADSUSR Listserv Archives for the message using the Author's Address: andrewhazelden at gmail.com option I see 2 matches. The most recent message - Item# 009806 is my message. However when I click on the message to display it I get the following error: --------------------------------------------------------------------------------------------------------------------------------------------- Archives - Error The archive files could not be accessed, either because the list does not have Web-accessible archives or because they are being updated. If you know that the list has Web archives, please try again in about 30 seconds, and report the problem if it persists for more than a few minutes. The file that could not be opened is 'gradsusr/ gradsusr.ind10' and the error code was 2. LIST.CINECA.IT --------------------------------------------------------------------------------------------------------------------------------------------- Do you have any ideas what could cause this problem? Thanks, Andrew Hazelden From jmssnyder at UCDAVIS.EDU Fri Jan 8 12:55:21 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Fri, 8 Jan 2010 09:55:21 -0800 Subject: WHILE/ENDWHILE Problems Message-ID: To Whom it May Concern, I tried posting onto onto the GRADS users group website and cannot access it so I decided to post my question here. I am trying to do the while loop with the script below: 'sdfopen uwndavg2001.nc' count=1 while (count < 10) 'set t 'count 'define uwndavg' count = count + 1 endwhile however, I keep getting this error when running this script: unable to locate ENDWHILE statement for the WHILE statement at line 3. I have endwhile statement so I am not sure what is going on with this script. Can you help me with it? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100108/ed59193e/attachment.html From jimp at HAWAII.EDU Fri Jan 8 13:06:35 2010 From: jimp at HAWAII.EDU (James T. Potemra) Date: Fri, 8 Jan 2010 08:06:35 -1000 Subject: WHILE/ENDWHILE Problems In-Reply-To: Message-ID: Hi Jason: This looks okay to me in terms of the while loop, however line 5 doesn't really do anything. In fact. that line should give an error like "name to long missing =" (the syntax is define newvar=something). Is this really the entire script? Jim Jason Snyder wrote: > To Whom it May Concern, > > I tried posting onto onto the GRADS users group website and cannot > access it so I decided to post my question here. > > I am trying to do the while loop with the script below: > > 'sdfopen uwndavg2001.nc ' > count=1 > while (count < 10) > 'set t 'count > 'define uwndavg' > count = count + 1 > endwhile > > however, I keep getting this error when running this script: > > unable to locate ENDWHILE statement for the WHILE statement at line > 3. I have endwhile statement so I am not sure what is going on with > this script. Can you help me with it? > > Thanks, > > Jason > > From Ron.Goodson at EC.GC.CA Fri Jan 8 13:17:36 2010 From: Ron.Goodson at EC.GC.CA (Goodson,Ron [Edm]) Date: Fri, 8 Jan 2010 11:17:36 -0700 Subject: WHILE/ENDWHILE Problems In-Reply-To: A<4B47742B.1060600@hawaii.edu> Message-ID: I'd be more inclined to search for spaces or unprintable characters at the end of the endwhile line... just in case. ron -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of James T. Potemra Sent: January 8, 2010 11:07 AM To: GRADSUSR at LIST.CINECA.IT Subject: Re: WHILE/ENDWHILE Problems Hi Jason: This looks okay to me in terms of the while loop, however line 5 doesn't really do anything. In fact. that line should give an error like "name to long missing =" (the syntax is define newvar=something). Is this really the entire script? Jim Jason Snyder wrote: > To Whom it May Concern, > > I tried posting onto onto the GRADS users group website and cannot > access it so I decided to post my question here. > > I am trying to do the while loop with the script below: > > 'sdfopen uwndavg2001.nc ' > count=1 > while (count < 10) > 'set t 'count > 'define uwndavg' > count = count + 1 > endwhile > > however, I keep getting this error when running this script: > > unable to locate ENDWHILE statement for the WHILE statement at line 3. > I have endwhile statement so I am not sure what is going on with this > script. Can you help me with it? > > Thanks, > > Jason > > From jmssnyder at UCDAVIS.EDU Fri Jan 8 13:54:10 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Fri, 8 Jan 2010 10:54:10 -0800 Subject: WHILE/ENDWHILE Problems In-Reply-To: <4B47742B.1060600@hawaii.edu> Message-ID: I attached the script with the problem so you cod look at the spacing on the script but I am continuing to have problems with the While/Endwhile loop. Thanks, Jason On Fri, Jan 8, 2010 at 10:06 AM, James T. Potemra wrote: > Hi Jason: > > This looks okay to me in terms of the while loop, however line 5 doesn't > really do anything. In fact. that line should give an error like "name to > long missing =" (the syntax is define newvar=something). Is this really the > entire script? > > Jim > > Jason Snyder wrote: > >> To Whom it May Concern, >> I tried posting onto onto the GRADS users group website and cannot access >> it so I decided to post my question here. >> I am trying to do the while loop with the script below: >> 'sdfopen uwndavg2001.nc ' >> >> count=1 >> while (count < 10) >> 'set t 'count >> 'define uwndavg' >> count = count + 1 >> endwhile >> however, I keep getting this error when running this script: >> unable to locate ENDWHILE statement for the WHILE statement at line 3. I >> have endwhile statement so I am not sure what is going on with this script. >> Can you help me with it? >> Thanks, >> Jason >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100108/d2ac4964/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: while.gs Type: application/octet-stream Size: 99 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100108/d2ac4964/attachment.obj From msponsler at COMCAST.NET Fri Jan 8 13:58:06 2010 From: msponsler at COMCAST.NET (Mark Sponsler) Date: Fri, 8 Jan 2010 18:58:06 +0000 Subject: WHILE/ENDWHILE Problems In-Reply-To: <4A6AB38B55B49C44A22E021A83CBEDDB06938338@sr-pnr-exch3.prairie.int.ec.gc.ca> Message-ID: Another option is to make sure to put a carriage return after your Endwhile statement. Grads needs to see an end-of-line marker or it will not execute the command on the last line.?? This holds true for any command at the end of the script, add an extra . Thanks, Mark ----- Original Message ----- From: "Ron Goodson [Edm]" To: GRADSUSR at LIST.CINECA.IT Sent: Friday, January 8, 2010 10:17:36 AM GMT -08:00 US/Canada Pacific Subject: Re: WHILE/ENDWHILE Problems I'd be more inclined to search for spaces or unprintable characters at the end of the endwhile line... just in case. ron -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of James T. Potemra Sent: January 8, 2010 11:07 AM To: GRADSUSR at LIST.CINECA.IT Subject: Re: WHILE/ENDWHILE Problems Hi Jason: This looks okay to me in terms of the while loop, however line 5 doesn't really do anything. ?In fact. that line should give an error like "name to long missing =" (the syntax is define newvar=something). ?Is this really the entire script? Jim Jason Snyder wrote: > To Whom it May Concern, > ? > I tried posting onto onto the GRADS users group website and cannot > access it so I decided to post my question here. > ? > I am trying to do the while loop with the script below: > ? > 'sdfopen uwndavg2001.nc ' > count=1 > while (count < 10) > ? ? 'set t 'count > ? ? 'define uwndavg' > count = count + 1 > endwhile > ? > however, I keep getting this error when running this script: > ? > unable to locate ENDWHILE statement for the WHILE statement at line 3. > I have endwhile statement so I am not sure what is going on with this > script. ?Can you help me with it? > ? > Thanks, > ? > Jason > ? > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100108/eb29c04a/attachment.html From elisasiq at USP.BR Fri Jan 8 16:01:45 2010 From: elisasiq at USP.BR (MARIA ELISA SIQUEIRA SILVA) Date: Fri, 8 Jan 2010 19:01:45 -0200 Subject: day2mon regriding Message-ID: Hi, does anybody know how to construct a gs that regrids day or pentad data to monthly data? 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 jimp at HAWAII.EDU Fri Jan 8 14:39:20 2010 From: jimp at HAWAII.EDU (James T. Potemra) Date: Fri, 8 Jan 2010 09:39:20 -1000 Subject: WHILE/ENDWHILE Problems In-Reply-To: Message-ID: Hi Jason: The attached script is quite different from the earlier one in your email. First, the attached script doesn't increment the variable "icount", so you need to add a line "icount = icount + 1". Second, in this script you are not defining a variable (last one had "define uwndavg") but are displaying a variable ("d uwndavg"). Third, you're closing the while loop with all upper case "ENDWHILE" (in the attached script). This script works fine on my machine (64bit linux, grads- v2.0.a7.oga.2), but maybe your implementation has case-sensitivity issues? Jim Jason Snyder wrote: > I attached the script with the problem so you cod look at the spacing > on the script but I am continuing to have problems with the > While/Endwhile loop. > > Thanks, > > Jason > > On Fri, Jan 8, 2010 at 10:06 AM, James T. Potemra > wrote: > > Hi Jason: > > This looks okay to me in terms of the while loop, however line 5 > doesn't really do anything. In fact. that line should give an > error like "name to long missing =" (the syntax is define > newvar=something). Is this really the entire script? > > Jim > > Jason Snyder wrote: > > To Whom it May Concern, > I tried posting onto onto the GRADS users group website and > cannot access it so I decided to post my question here. > I am trying to do the while loop with the script below: > 'sdfopen uwndavg2001.nc > >' > > count=1 > while (count < 10) > 'set t 'count > 'define uwndavg' > count = count + 1 > endwhile > however, I keep getting this error when running this script: > unable to locate ENDWHILE statement for the WHILE statement > at line 3. I have endwhile statement so I am not sure what is > going on with this script. Can you help me with it? > Thanks, > Jason > > > From pietrowicz at ZEDXINC.COM Fri Jan 8 15:46:44 2010 From: pietrowicz at ZEDXINC.COM (Joe Pietrowicz) Date: Fri, 8 Jan 2010 15:46:44 -0500 Subject: WHILE/ENDWHILE Problems In-Reply-To: Message-ID: Your statement 'define uwndavg' looks strange. You say define something but not how it is to be defined. It's like saying 'define purple' but not giving the rgb levels. Should the line be 'display uwndavg' ??? Just a thought. Joe Pietrowicz, Ph.D. ----- Original Message ----- From: "Jason Snyder" To: GRADSUSR at LIST.CINECA.IT Sent: Friday, January 8, 2010 1:54:10 PM GMT -05:00 US/Canada Eastern Subject: Re: WHILE/ENDWHILE Problems I attached the script with the problem so you cod look at the spacing on the script but I am continuing to have problems with the While/Endwhile loop. Thanks, Jason On Fri, Jan 8, 2010 at 10:06 AM, James T. Potemra < jimp at hawaii.edu > wrote: Hi Jason: This looks okay to me in terms of the while loop, however line 5 doesn't really do anything. In fact. that line should give an error like "name to long missing =" (the syntax is define newvar=something). Is this really the entire script? Jim Jason Snyder wrote: To Whom it May Concern, I tried posting onto onto the GRADS users group website and cannot access it so I decided to post my question here. I am trying to do the while loop with the script below: 'sdfopen uwndavg2001.nc < http://uwndavg2001.nc >' count=1 while (count < 10) 'set t 'count 'define uwndavg' count = count + 1 endwhile however, I keep getting this error when running this script: unable to locate ENDWHILE statement for the WHILE statement at line 3. I have endwhile statement so I am not sure what is going on with this script. Can you help me with it? Thanks, Jason From kbriggs at FSU.EDU Fri Jan 8 14:48:15 2010 From: kbriggs at FSU.EDU (Kristen Briggs) Date: Fri, 8 Jan 2010 14:48:15 -0500 Subject: WHILE/ENDWHILE Problems In-Reply-To: Message-ID: I assume you've tried the script with "endwhile" not in caps? GrADS doesn't seem case-sensitive on my machine, but this script is so basic I can't see anything else that could possibly be wrong??! ----- Original Message ----- From: Jason Snyder Date: Friday, January 8, 2010 2:07 pm Subject: Re: WHILE/ENDWHILE Problems To: GRADSUSR at LIST.CINECA.IT > I attached the script with the problem so you cod look at the > spacing on the > script but I am continuing to have problems with the While/Endwhile > loop. > Thanks, > > Jason > > On Fri, Jan 8, 2010 at 10:06 AM, James T. Potemra > wrote: > > Hi Jason: > > > > This looks okay to me in terms of the while loop, however line 5 > doesn't> really do anything. In fact. that line should give an > error like "name to > > long missing =" (the syntax is define newvar=something). Is this > really the > > entire script? > > > > Jim > > > > Jason Snyder wrote: > > > >> To Whom it May Concern, > >> I tried posting onto onto the GRADS users group website and > cannot access > >> it so I decided to post my question here. > >> I am trying to do the while loop with the script below: > >> 'sdfopen uwndavg2001.nc ' > >> > >> count=1 > >> while (count < 10) > >> 'set t 'count > >> 'define uwndavg' > >> count = count + 1 > >> endwhile > >> however, I keep getting this error when running this script: > >> unable to locate ENDWHILE statement for the WHILE statement at > line 3. I > >> have endwhile statement so I am not sure what is going on with > this script. > >> Can you help me with it? > >> Thanks, > >> Jason > >> > >> > > > From pietrowicz at ZEDXINC.COM Fri Jan 8 16:33:08 2010 From: pietrowicz at ZEDXINC.COM (Joe Pietrowicz) Date: Fri, 8 Jan 2010 16:33:08 -0500 Subject: WHILE/ENDWHILE Problems In-Reply-To: Message-ID: Jason, Please check the section on defining variables http://www.iges.org/grads/gadoc/gadocindex.html You need define varname = expression you have define varname Joe Pietrowicz ----- Original Message ----- From: "Kristen Briggs" To: GRADSUSR at LIST.CINECA.IT Sent: Friday, January 8, 2010 2:48:15 PM GMT -05:00 US/Canada Eastern Subject: Re: WHILE/ENDWHILE Problems I assume you've tried the script with "endwhile" not in caps? GrADS doesn't seem case-sensitive on my machine, but this script is so basic I can't see anything else that could possibly be wrong??! ----- Original Message ----- From: Jason Snyder Date: Friday, January 8, 2010 2:07 pm Subject: Re: WHILE/ENDWHILE Problems To: GRADSUSR at LIST.CINECA.IT > I attached the script with the problem so you cod look at the > spacing on the > script but I am continuing to have problems with the While/Endwhile > loop. > Thanks, > > Jason > > On Fri, Jan 8, 2010 at 10:06 AM, James T. Potemra > wrote: > > Hi Jason: > > > > This looks okay to me in terms of the while loop, however line 5 > doesn't> really do anything. In fact. that line should give an > error like "name to > > long missing =" (the syntax is define newvar=something). Is this > really the > > entire script? > > > > Jim > > > > Jason Snyder wrote: > > > >> To Whom it May Concern, > >> I tried posting onto onto the GRADS users group website and > cannot access > >> it so I decided to post my question here. > >> I am trying to do the while loop with the script below: > >> 'sdfopen uwndavg2001.nc ' > >> > >> count=1 > >> while (count < 10) > >> 'set t 'count > >> 'define uwndavg' > >> count = count + 1 > >> endwhile > >> however, I keep getting this error when running this script: > >> unable to locate ENDWHILE statement for the WHILE statement at > line 3. I > >> have endwhile statement so I am not sure what is going on with > this script. > >> Can you help me with it? > >> Thanks, > >> Jason > >> > >> > > > From axl419 at YAHOO.COM Fri Jan 8 22:08:19 2010 From: axl419 at YAHOO.COM (See Hai Ooi) Date: Fri, 8 Jan 2010 19:08:19 -0800 Subject: WHILE/ENDWHILE Problems In-Reply-To: Message-ID: Hi Jason, It appears to me that your data is the average value of the u-component wind (i.e. uwndavg). If that is the case, you can display it directly without defining for each timestep using while/endwhile loop (Of course, you must clear the display for each timestep). If you intend to find the average of all the values in your 10 timesteps, you may wish to consider the following script:- 'reinit' * 'sdfopen d:/..../uwndavg2001.nc' * 'suw=0' * count=1 while (count <= 10) * 'suw=suw+uwndavg' count=count+1 * endwhile * 'auw=suw/('count-1')' * 'd at' * Hope this helps. Ooi New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ From zowiti at NCST.GO.KE Fri Jan 8 23:27:57 2010 From: zowiti at NCST.GO.KE (Zablone Owiti) Date: Sat, 9 Jan 2010 12:27:57 +0800 Subject: Extracting and writing data in ascii file Message-ID: Hi Grad Users, I wish to extract data from gridded netcdf file for a particular domain to get a time series (i.e of a particular month or season for a number of years) and write it in ascii file so that I can export the series to say excell. I can do this, but through the long way of using the commands for example: 'set t 1 30' 'd aave(precip,lon=39,lon=41,lat=-5,lat=0) Through this I am unable to only get the targeted months or season of the years. Furthermore I have to mannualy copy the data from Grads and paste in excell the rearrange the data to pick the months or seasons I target. My question is: How can I extract the data for the targeted months and directly write them ascii file. Thanks -- ZABLONE OWITI GRADUATE STUDENT Nanjing University of Information, Science and Technology College of International Education Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Website: www.globenuist.cn _________________________________________________ From krishmet at GMAIL.COM Sat Jan 9 09:47:24 2010 From: krishmet at GMAIL.COM (krishnamohan) Date: Sat, 9 Jan 2010 20:17:24 +0530 Subject: WHILE/ENDWHILE Problems In-Reply-To: <311761.44701.qm@web31002.mail.mud.yahoo.com> Message-ID: Hai Jason, Try the attached gs file. I tried it with coads_climatology file and is working. Krishnamohan On Sat, Jan 9, 2010 at 8:38 AM, See Hai Ooi wrote: > Hi Jason, > > It appears to me that your data is the average value of the u-component > wind (i.e. uwndavg). If that is the case, you can display it directly > without defining for each timestep using while/endwhile loop (Of course, you > must clear the display for each timestep). If you intend to find the > average of all the values in your 10 timesteps, you may wish to consider the > following script:- > > > 'reinit' > * > 'sdfopen d:/..../uwndavg2001.nc' > * > 'suw=0' > * > count=1 > while (count <= 10) > * > 'suw=suw+uwndavg' > count=count+1 > * > endwhile > * > 'auw=suw/('count-1')' > * > 'd at' > * > Hope this helps. > > Ooi > > > New Email names for you! > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > http://mail.promotions.yahoo.com/newdomains/aa/ > -- Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100109/6bbf97c8/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: while.gs Type: application/octet-stream Size: 115 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100109/6bbf97c8/attachment.obj From krishmet at GMAIL.COM Sat Jan 9 10:26:29 2010 From: krishmet at GMAIL.COM (krishnamohan) Date: Sat, 9 Jan 2010 20:56:29 +0530 Subject: Extracting and writing data in ascii file In-Reply-To: <8458.222.190.109.122.1263011277.squirrel@ncst.go.ke> Message-ID: Hi Sablone, You can use subwrd function for that. Suppose you want to have data form 2000 to 2009, you can do it as given below. Put a variable yyyy for year such that you can use while loop for time step. This script will write output in the ascii file output.txt as given in the 10th line. The gs file is attached ************************************************ 'reinit' 'sdfopen filename.nc' 'set lon 90' 'set lat 15' yyyy=2000 while(yyyy<=2009) 'set time jan'yyyy'' 'd aave(precip,lon=39,lon=41,lat=-5,lat=0)' te=subwrd(result,4) w=write(output.txt,te) yyyy=yyyy+1 endwhile *********************************************** Best wishes......... -- Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology Cochin,India On Sat, Jan 9, 2010 at 9:57 AM, Zablone Owiti wrote: > Hi Grad Users, > > I wish to extract data from gridded netcdf file for a particular domain to > get a time series (i.e of a particular month or season for a number of > years) and write it in ascii file so that I can export the series to say > excell. > > I can do this, but through the long way of using the commands for example: > > 'set t 1 30' > 'd aave(precip,lon=39,lon=41,lat=-5,lat=0) > > Through this I am unable to only get the targeted months or season of the > years. Furthermore I have to mannualy copy the data from Grads and paste > in excell the rearrange the data to pick the months or seasons I target. > > My question is: How can I extract the data for the targeted months and > directly write them ascii file. > > Thanks > -- > ZABLONE OWITI > GRADUATE STUDENT > Nanjing University of Information, Science and Technology > College of International Education > Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China > Tel: +86-25-58731402 > Fax: +86-25-58731456 > Website: www.globenuist.cn > _________________________________________________ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100109/5b0c2e0d/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: aave.gs Type: application/octet-stream Size: 213 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100109/5b0c2e0d/attachment.obj From thi_veloso at YAHOO.COM.BR Sat Jan 9 11:38:39 2010 From: thi_veloso at YAHOO.COM.BR (Thiago Veloso) Date: Sat, 9 Jan 2010 08:38:39 -0800 Subject: Open, average and convert binary to ascii Message-ID: ??Hi there! Could anyone just help me with this task? ??The fact: I have 7 years of precipitation data which is organized as hourly binary files. For example, file "2003010101" would be the information from 00 to 01h of 1st January 2003 and so on. Attached is a example of a descriptor file to read the dataset. There are some gaps in this dataset, which are not frequent. But missing files do exist. ?Note: in order to get values in mm/hr, it is necessary to multiply the varabile by 0.2. This will result in mm/hr precipitation values. ??What I need: to create daily accumulated values and write them to a ascii file which have to contain the coordinate values, the precipitation itself and the also the day (q time should solve?). ?Note: is it necessary to deal with the gap files so the daily totals are not erratic? ??Any helpful thought to write this script? ??Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100109/d2409ef7/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.ctl Type: application/octet-stream Size: 336 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100109/d2409ef7/attachment.obj From sulcaf5 at GMAIL.COM Sat Jan 9 12:35:47 2010 From: sulcaf5 at GMAIL.COM (juan carlos sulca jota) Date: Sat, 9 Jan 2010 12:35:47 -0500 Subject: consulta por material Message-ID: Hi, please can send me this paper. Guttman, N. B., 1999: Accepting the Standandardized Precipitation Index: a calculation algorithm. *J. Amer. Water Resour. Assoc.*, *35(2)*, 311-322. McKee, T.B., N. J. Doesken, and J. Kliest, 1993: The relationship of drought frequency and duration to time scales. In *Proceedings of the 8th Conference of Applied Climatology, 17-22 January, Anaheim, CA*. American Meterological Society, Boston, MA. 179-184. McKee, T.B., N.J. Doesken, and J. Kliest, 1995: Drought monitoring with multiple time scales. In *Proceedings of the 9th Conference of Applied Climatology, 15-20 January, Dallas TX*. American Meteorological Society, Boston, MA. 233-236. -- Juan C. Sulca Jota FCF - UNMSM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100109/3138901f/attachment.html From jmssnyder at UCDAVIS.EDU Sun Jan 10 14:16:49 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 10 Jan 2010 11:16:49 -0800 Subject: converting .cdf to .nc files Message-ID: To whom it may concern, I have a netcdf file with the extension .cdf and was wondering how to convert that to an .nc file so I can display it in grads. Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100110/a799ca64/attachment.html From sfeng2 at UNLNOTES.UNL.EDU Sun Jan 10 14:31:36 2010 From: sfeng2 at UNLNOTES.UNL.EDU (Song Feng) Date: Sun, 10 Jan 2010 13:31:36 -0600 Subject: converting .cdf to .nc files In-Reply-To: Message-ID: Jason: You do not need to convert .cdf to nc, as there are both 'netcdf' files. You can open and display the file with extension .cdf the same way as file with extension .nc (e.g. sdfopen file.cdf). Blessings, Song From: Jason Snyder To: GRADSUSR at LIST.CINECA.IT Date: 01/10/2010 01:17 PM Subject: converting .cdf to .nc files To whom it may concern, I have a netcdf file with the extension .cdf and was wondering how to convert that to an .nc file so I can display it in grads. Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100110/0d74bd89/attachment.html From jmssnyder at UCDAVIS.EDU Sun Jan 10 16:14:04 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 10 Jan 2010 13:14:04 -0800 Subject: advection scheme Message-ID: I am trying to do an advection scheme for olr values and am not sure how to go about doing it. I have made a nc file or average wind patterns for certain climatic patterns in the Pacific Ocean called uninan.nc. this file contains zonal winds uninan. here is the script for modeling OLR advection the start dates on both files match. 'sdfopen uninan.nc' 'sdfopen olr.day.mean.nc' 'set gxout shaded' 'set t 1' 'define temp=olr.2' count=1 while (count < 10) 'set clevs 140 160 180' 'set ccols 14 4 11' 'dtx = cdiff(temp,x)' 'dty = cdiff(temp,y)' 'dx=cdiff(temp,x)*3.14/180' 'dy=cdiff(lat,y)' 'define temp=temp-((uninan*dtx/(cos(lat*3.14/180)*dx)))/2000' 'd temp' count=count + 1 endwhile based on the zonal wind values olr anomalies should advect across the Pacific Ocean in 4 days count=4 but they are not doing so or OLR values are off by quite a bit. Do you have any suggestions? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100110/49a8598c/attachment.html From sulcaf5 at GMAIL.COM Sun Jan 10 17:54:30 2010 From: sulcaf5 at GMAIL.COM (juan carlos sulca jota) Date: Sun, 10 Jan 2010 17:54:30 -0500 Subject: converting .cdf to .nc files In-Reply-To: Message-ID: Hola: S?lo transforma tu .cdf a un binario y luego le creas su .ctl ah, si deseas abrir un cdf abre con xdfopen ....cdf. 2010/1/10, Song Feng : > > Jason: > > You do not need to convert .cdf to nc, as there are both 'netcdf' files. > You can open and display the file with extension .cdf the same way as file > with extension .nc (e.g. sdfopen file.cdf). > > Blessings, > > Song > > > > From: Jason Snyder To: GRADSUSR at LIST.CINECA.IT > Date: 01/10/2010 01:17 PM Subject: converting .cdf to .nc files > ------------------------------ > > > > To whom it may concern, > > I have a netcdf file with the extension .cdf and was wondering how to > convert that to an .nc file so I can display it in grads. Thanks, > > Jason > > -- Juan C. Sulca Jota FCF - UNMSM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100110/8c7ac25d/attachment.html From c.hayes at WEERONLINE.NL Mon Jan 11 05:41:34 2010 From: c.hayes at WEERONLINE.NL (Chris Hayes) Date: Mon, 11 Jan 2010 11:41:34 +0100 Subject: juggling with datafiles In-Reply-To: <6740762.72491262886952245.JavaMail.root@shark.zedxinc.com> Message-ID: > Subject: Re: juggling with datafiles > > I've found that if you are working with grib or grib2 files that are > all of the same type you can "cat" them into one file, then process > them to be used in GrADS Would concatenating 48 files and then opening the large file be better for the server load than opening them all together as single files? Chris From peter.m.smith at NASA.GOV Mon Jan 11 10:48:18 2010 From: peter.m.smith at NASA.GOV (Smith, Peter M. (GSFC-6102)) Date: Mon, 11 Jan 2010 09:48:18 -0600 Subject: On page http://www.iges.org/grads/users.html URL link to "Online Archive" seems to be broken Message-ID: On page http://www.iges.org/grads/users.html URL link to "Online Archive" seems to be broken ??? From hersala at GMAIL.COM Mon Jan 11 11:00:56 2010 From: hersala at GMAIL.COM (hersala) Date: Mon, 11 Jan 2010 13:00:56 -0300 Subject: On page http://www.iges.org/grads/users.html URL link to "Online Archive" seems to be broken In-Reply-To: <8F7FAA98C44B8F4AA739AFFB59DA095F19FB605E3D@NDMSSCC02.ndc.nasa.gov> Message-ID: Hi Peter: I have opened this URL some minutes ago, directly from your e-mail, and I find that it works properly. Try again or try this other URL with on line help. http://www.iges.org/grads/gadoc/gadocindex.html I hope this helps. Bye, Hern?n 2010/1/11 Smith, Peter M. (GSFC-6102) > On page http://www.iges.org/grads/users.html URL link to "Online Archive" > seems to be broken ??? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100111/2fffa648/attachment.html From hersala at GMAIL.COM Mon Jan 11 11:05:33 2010 From: hersala at GMAIL.COM (hersala) Date: Mon, 11 Jan 2010 13:05:33 -0300 Subject: On page http://www.iges.org/grads/users.html URL link to "Online Archive" seems to be broken In-Reply-To: <5b40c91001110800v5a33c421w7b2caaaeaca7b64f@mail.gmail.com> Message-ID: Sorry Peter, I was wrong, I?ve found the some problem that you mention. Hern?n 2010/1/11 hersala > Hi Peter: > I have opened this URL some minutes ago, directly from your e-mail, and I > find that it works properly. > Try again or try this other URL with on line help. > > http://www.iges.org/grads/gadoc/gadocindex.html > > I hope this helps. > Bye, > Hern?n > > > 2010/1/11 Smith, Peter M. (GSFC-6102) > > On page http://www.iges.org/grads/users.html URL link to "Online Archive" >> seems to be broken ??? >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100111/b15ea321/attachment.html From arlindo.dasilva at GMAIL.COM Mon Jan 11 21:51:06 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 11 Jan 2010 21:51:06 -0500 Subject: day2mon regriding In-Reply-To: <20100108190145.drpudovqs804kgsc@webmail.usp.br> Message-ID: 2010/1/8 MARIA ELISA SIQUEIRA SILVA > Hi, > > does anybody know how to construct a gs > that regrids day or pentad data to monthly data? > > There are several ways of doing this, for example % lats4d.sh -i my_daily_file -o jan2009 -time 1jan2009 31jan2009 -mean -v will create a single file with the monthly mean for Jan 2009 (by default a netcdf file called jan2009.nc). Do this for each month in your data set (with a script, of course.) In the end you will have a file for each month, which you can open as a single dataset using a ctl with templates. The utility lats4d.sh is shipped with the latest opengrads bundle: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle Arlindo > 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 > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100111/654f47e6/attachment.html From jmssnyder at UCDAVIS.EDU Mon Jan 11 23:13:24 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Mon, 11 Jan 2010 20:13:24 -0800 Subject: Tmave function Message-ID: I was wondering about how to find the number of data points used to calculate tmave. For example when masking for SST values less than 28 C, I would use: 'define sstmask = aave(sst,lon=120,lon=200,lat=-5,lat=5)' 'define sstmask = const(maskout(sstmask,(sstmask)-28),1)' 'd tmave(sstmask,uwnd,t=1,t=365)' How do I find the number of data points used in calculating tmave, or where sst is less 28 C? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100111/faf66f41/attachment.html From hiren_dave85 at YAHOO.COM Tue Jan 12 00:28:35 2010 From: hiren_dave85 at YAHOO.COM (hiren dave) Date: Mon, 11 Jan 2010 21:28:35 -0800 Subject: mean value for 40 years on particular day. Message-ID: ????????????????????? I have daily Gridded Temp. data for 40 years. I want to find out mean for 40 years on particular day (say for eg. on 2nd June 1960-2004). How can i ? Please help. ? Thank you.? Hiren Dave JRF Dept. of Physics, Electronics & Space Science, University School of Sciences, Gujarat University, Ahmedabad-380009 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100111/a61af582/attachment.html From mequitomz at YAHOO.COM.BR Tue Jan 12 01:59:39 2010 From: mequitomz at YAHOO.COM.BR (Arlindo Meque) Date: Mon, 11 Jan 2010 22:59:39 -0800 Subject: Plotting Black and white figures in GrADS Message-ID: ? Dear all, ? I want to produce black and white figures, for that purpose I tried the ?Set display color greyscale white? option. But this command does not affect the hardcopy output, so I am not able to save the output in black and white. ? ? Help is needed. ? Arlindo ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From doty at COLA.IGES.ORG Tue Jan 12 08:29:06 2010 From: doty at COLA.IGES.ORG (Brian Doty) Date: Tue, 12 Jan 2010 08:29:06 -0500 Subject: while/endwhile, concatenating grib files, tmave, ave on particular day, greyscale In-Reply-To: Message-ID: > > unable to locate ENDWHILE statement for the WHILE statement at line > 3. I have endwhile statement so I am not sure what is going on with > this script. Can you help me with it? > there may be a special character somewhere in the while statement or the endwhile statement (looking at it in vi would show those usually). also, the scripting language uses end-of-line (on unix, the "\n" character, or linefeed) as record delimiters. Windows and unix use different conventions for this, so it can get confused in some cases. You can also use the semicolon as a line delimiter in scripts. So maybe try putting a semicolon at the end of the while statement and the endwhile statement. tip: you can combine statements on one line, eg: if (i>15); break; endif; > Would concatenating 48 files and then opening the large file be > better for the server load than opening them all together as single > files? It depends on the file system in use. Traditional unix file systems don't seem to have noticeable overhead for opening and closing files. NFS mounted file systems can, in some cases, have more noticeable overhead. Lustre can also have noticeable overhead for using many small files. In spite of this, I still tend to use many small files for my own work, as I find it easier to manage the data, and mix-and- match stuff, that way. > I was wondering about how to find the number of data points used to > calculate tmave. For example when masking for SST values less than > 28 C, I would use: > > 'define sstmask = aave(sst,lon=120,lon=200,lat=-5,lat=5)' > 'define sstmask = const(maskout(sstmask,(sstmask)-28),1)' > 'd tmave(sstmask,uwnd,t=1,t=365)' > > How do I find the number of data points used in calculating tmave, > or where sst is less 28 C? > A combination of maskout, const, and sum should do it. > > I have daily Gridded Temp. data for 40 years. > I want to find out mean for 40 years on particular day (say for eg. > on 2nd June 1960-2004). How can i ? Please help. > Try the time increment option on ave, eg ave(temp, time=18jul1970, time=18jul2009, 1yr) > I tried the ?Set display color greyscale white? option. That command is invalid. Try "set display grey white". Also, if you are using gxps/gxeps for output, check the command line options for those utilities. From Ron.Goodson at EC.GC.CA Tue Jan 12 11:25:58 2010 From: Ron.Goodson at EC.GC.CA (Goodson,Ron [Edm]) Date: Tue, 12 Jan 2010 09:25:58 -0700 Subject: Plotting Black and white figures in GrADS In-Reply-To: A<116007.89415.qm@web52305.mail.re2.yahoo.com> Message-ID: perhaps best to create the grey-scale colours you want. Check out the doc. for set rgb and set rbcols ron -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of Arlindo Meque Sent: January 12, 2010 12:00 AM To: GRADSUSR at LIST.CINECA.IT Subject: Plotting Black and white figures in GrADS ? Dear all, ? I want to produce black and white figures, for that purpose I tried the "Set display color greyscale white" option. But this command does not affect the hardcopy output, so I am not able to save the output in black and white. ? ? Help is needed. ? Arlindo ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From hersala at GMAIL.COM Tue Jan 12 11:55:47 2010 From: hersala at GMAIL.COM (hersala) Date: Tue, 12 Jan 2010 13:55:47 -0300 Subject: Plotting Black and white figures in GrADS In-Reply-To: <4A6AB38B55B49C44A22E021A83CBEDDB06938343@sr-pnr-exch3.prairie.int.ec.gc.ca> Message-ID: Try creating your own grey-scale, for instance: * Gray scale definition 'set rgb 18 50 50 50' 'set rgb 20 65 65 65' 'set rgb 22 75 75 75' 'set rgb 24 90 90 90' 'set rgb 25 100 100 100' 'set rgb 26 115 115 115' 'set rgb 28 130 130 130' 'set rgb 30 145 145 145' 'set rgb 32 160 160 160' 'set rgb 34 175 175 175' 'set rgb 35 190 190 190' 'set rgb 36 205 205 205' 'set rgb 38 220 220 220' 'set rgb 40 235 235 235' 'set rgb 42 245 245 245' 'set rgb 44 250 250 250' 'set lat -90 -70' 'set lon 155 257' 'set gxout shaded' 'set clevs 0 250 500 750 1000 1250 1500 1750 2000 2250 2500 3000 3250 3500 3750 4000 4250' 'set ccols 0 18 20 22 24 25 26 28 30 32 34 35 36 38 40 42 44' ****************************** *********************************************************** 2010/1/12 Goodson,Ron [Edm] > > perhaps best to create the grey-scale colours you want. > > Check out the doc. for > > set rgb > and > set rbcols > > > ron > > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf > Of Arlindo Meque > Sent: January 12, 2010 12:00 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: Plotting Black and white figures in GrADS > > > > Dear all, > > I want to produce black and white figures, for that purpose I tried the > "Set display color greyscale white" option. But this command does not affect > the hardcopy output, so I am not able to save the output in black and white. > > > Help is needed. > > Arlindo > > > > ____________________________________________________________________________________ > Veja quais s?o os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100112/b10e3ffc/attachment.html From senya at ATMOS.UMD.EDU Tue Jan 12 13:19:01 2010 From: senya at ATMOS.UMD.EDU (Semyon Grodsky) Date: Tue, 12 Jan 2010 13:19:01 -0500 Subject: day2mon regriding In-Reply-To: <20100108190145.drpudovqs804kgsc@webmail.usp.br> Message-ID: Elisa, For time averaging or interpolation I use the save_time.gs script (see attachments). USAGE: save_time daily.ctl any_monthly.ctl output_filename output_filename must be without extension OUTPUT: ouput_filename.ctl and output_filename.dat Copy the three *.gs files into your current directory or your grads_script directory. Hope it helps. --Senya On Fri, 8 Jan 2010, MARIA ELISA SIQUEIRA SILVA wrote: > Hi, > > does anybody know how to construct a gs > that regrids day or pentad data to monthly data? > > 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 ----------------------------------------------------------- Semyon Grodsky Computer and Space Science Building (Bldg. #224), Room 2409 Department of Atmospheric and Oceanic Science University of Maryland College Park, MD 20742 Phone: 301-405-5330 Fax: 301-314-9482 E-mail: senya at atmos.umd.edu -------------- next part -------------- function save_time (args) *'set warn off' ver = '12/24/2009' 'set warn off' 'last_file' nf=result if nf>0 'q file' res=sublin(result,1) nfc=subwrd(res,2) 'gxstate1' dimensions=result endif * Get arguments if (args='') say '-----------------------------------------------------------------' say 'This sript changes time decimation ' say 'from INPUT.CTL to that defined by REFERENCE.CTL' say '-----------------------------------------------------------------' say 'save_time INPUT.CTL REFERENCE.CTL OUTPUTFILE{no extension} IT a b' say '-----------------------------------------------------------------' say 'IT=1 (DEFAULT) --> time averaging' say 'use IT=1 if the new time step exceeds the original time step' say '' say 'IT=0 --> time interpolation' say 'use IT=0 if the new time step is less than the original time step' say '-----------------------------------------------------------------' say 'output=a*var+b, DEFAULT: a=1, b=0' say '-----------------------------------------------------------------' say 'ver 'ver' by senya at atmos.umd.edu' say '-----------------------------------------------------------------' return else inputfile = subwrd(args,1) referencefile = subwrd(args,2) outputfile=subwrd(args,3) itime=subwrd(args,4) a=subwrd(args,5) b=subwrd(args,6) endif *********************************************************** * referencefile='/mnt/data/senya/pacific/sst/sst_month.ctl' * referencefile='/mnt/data/senya/pacific/sst/year.ctl' *********************************************************** if a='' a=1 endif if b='' b=0 endif if itime='' itime=1 endif 'get_path 'outputfile path=result 'get_filename 'outputfile fnameout=result say '********************************************************' say 'SAVE_TIME ver: 'ver say '--------------------------------------------------------' say 'INPUT CTL : 'inputfile say 'REFERENCE CTL: 'referencefile say 'OUTPUT CTL : 'outputfile%'.ctl' say '********************************************************' **************************************if 1=2 * 'reinit' 'open 'inputfile 'set dfile 'nf+1 'get_undef' undef=result 'open 'referencefile res=sublin(result,2) if subwrd(res,1)='Open' say result say 'Check referencefile' return endif * 'q files' * say result * pull dummy 'q file' res=sublin(result,5) xl=subwrd(res,3) yl=subwrd(res,6) zl=subwrd(res,9) res=sublin(result,6) nv=subwrd(res,5) 'set x 1 'xl 'set y 1 'yl 'set z 1 'zl 'set t 1 last' 'q time' res=subwrd(result,3) time1=substr(res,6,7) res=subwrd(result,5) time2=substr(res,6,7) 'set dfile 'nf+2 'q dims' res=sublin(result,5) tm1=subwrd(res,11) tm2=subwrd(res,13) tm1=math_int(tm1) tm2=math_int(tm2) say tm1' 'tm2 *pull dummy 'set gxout fwrite' 'set fwrite 'outputfile'.dat' i=tm1 while(i<=tm2) 'set dfile 'nf+2 'set t 'i 'q time' t1=subwrd(result,3) if i=tm1 timestart=t1 endif if i=tm2 timeend=t1 endif i1=i+1 'set t 'i1 'q time' t2=subwrd(result,3) 'set t 'i 'set dfile 'nf+1 'q dims' res=sublin(result,5) qt=subwrd(res,9) iqt1=math_int(qt) wt1=1-(qt-iqt1) iqt2=iqt1+1 wt2=1-wt1 **************** 'set t 1' **************** iv=1 while(iv<=nv) 'q file' res=sublin(result,6+iv) var=subwrd(res,1) zl=subwrd(res,2) if zl=0 zl=1 endif 'set z 1 'zl if i=tm1 say var' levels='zl endif *case time averaging if itime=1 say t1 ' ' t2 'varr=ave('a'*'var',time='t1',time='t2')+'b endif if itime=0 say t1 '<== 'iqt1' 'iqt2' 'wt1' 'wt2 'varr='var'(t='iqt1')*'wt1'+'var'(t='iqt2')*'wt2 'varr='a'*varr+'b endif 'varr=const(varr, 'undef', -u)' *'d varr' *---------------------------- iz=1 while (iz<=zl) 'set z 'iz 'd varr' iz=iz+1 endwhile 'set z 1 'zl *---------------------------- iv=iv+1 endwhile i=i+1 endwhile 'disable fwrite' 'set gxout contour' say '----------------------------' say timestart' 'timeend nm=tm2-tm1+1 say 'step1=' tm1 ' step2=' tm2 ' timesteps='nm *find new timestep i=1 while(i<1000) res=read(referencefile) outlin=sublin(res,2) par=subwrd(outlin,1) if (par='TDEF'|par='tdef'|par='Tdef') newtimestep=subwrd(outlin,5) i=1000 endif i=i+1 endwhile ********************************** *save CTL *************endif ***************** *nm=0 ********************* i1=0 i2=0 i=1 status=0 while(status = 0) res=read(inputfile) status=sublin(res,1) outlin=sublin(res,2) par=subwrd(outlin,1) if (par='OPTIONS'|par='options'|par='Options') say '==> OPTIONS LINE is REMOVED' outlin=' ' endif if (par='FORMAT'|par='format'|par='Format') say '==> FORMAT LINE is REMOVED' outlin=' ' endif if (par='DTYPE'|par='dtype'|par='Dtype') say '==> DTYPE LINE is REMOVED' outlin=' ' endif if (par='UNPACK'|par='unpack'|par='Unpack') say '==> UNPACK LINE is REMOVED' outlin=' ' endif if (par='DSET'|par='dset'|par='Dset') outlin='DSET ^'fnameout'.dat' endif if (par='TDEF'|par='tdef'|par='Tdef') outlin='TDEF ' math_int(nm) ' LINEAR ' timestart ' 'newtimestep endif if (par='ENDVARS'|par='endvars'|par='Endvars') outlin='ENDVARS' endif if (par='VARS'|par='vars'|par='Vars') i1=i+1 ni=subwrd(outlin,2) i2=i+ni endif if i=1 dum=write(outputfile'.ctl',outlin) else if status=0 & (i-i1)*(i-i2)>0 dum=write(outputfile'.ctl',outlin, append) endif if status=0 & (i-i1)*(i-i2)<=0 ******change vars format to float ********** outlin_new='' j=1 while subwrd(outlin,j)!='' if j!=3 outlin_new = outlin_new%subwrd(outlin,j)%' ' else outlin_new = outlin_new%'99 ' endif j=j+1 endwhile dum=write(outputfile'.ctl',outlin_new, append) endif *********************************************** endif i=i+1 endwhile say '********************************************************' say 'SAVE_TIME ver: 'ver say '--------------------------------------------------------' say 'INPUT CTL : 'inputfile say 'REFERENCE CTL: 'referencefile say 'OUTPUT CTL : 'outputfile%'.ctl' say '********************************************************' 'close 'nf+2 'close 'nf+1 if nf>0 'set dfile 'nfc 'gxstate1 'dimensions endif -------------- next part -------------- ****************************************************** function gxstate(args) * * Get or restore dimensions * get dimension USAGE: gxstate1 * restore dimension USAGE: gxstate1 dimensions * dimeansions is the output of get dimension by gxstate1() ****************** if args='' 'query dim' dinf = result lx = sublin(dinf,2) ly = sublin(dinf,3) lz = sublin(dinf,4) lt = sublin(dinf,5) if ( subwrd(lx,7) = 'to') lons = subwrd(lx,6) lone = subwrd(lx,8) xs = subwrd(lx,11) xe = subwrd(lx,13) else lons = subwrd(lx,6) lone = subwrd(lx,6) xs = subwrd(lx,9) xe = subwrd(lx,9) endif if ( subwrd(ly,7) = 'to') lats = subwrd(ly,6) late = subwrd(ly,8) ys = subwrd(ly,11) ye = subwrd(ly,13) else lats = subwrd(ly,6) late = subwrd(ly,6) ys = subwrd(ly,9) ye = subwrd(ly,9) endif if ( subwrd(lz,7) = 'to') levs = subwrd(lz,6) leve = subwrd(lz,8) zs = subwrd(lz,11) ze = subwrd(lz,13) else levs = subwrd(lz,6) leve = subwrd(lz,6) zs = subwrd(lz,9) ze = subwrd(lz,9) endif if ( subwrd(lt,7) = 'to') tims = subwrd(lt,6) time = subwrd(lt,8) ts = subwrd(lt,11) te = subwrd(lt,13) else tims = subwrd(lt,6) time = subwrd(lt,6) ts = subwrd(lt,9) te = subwrd(lt,9) endif return(lons' 'lone' 'xs' 'xe' 'lats' 'late' 'ys' 'ye' 'levs' 'leve' 'zs' 'ze' 'tims' 'time' 'ts' 'te) ********end get dimension*********** else 'set lon 'subwrd(args,1)' 'subwrd(args,2) 'set lat 'subwrd(args,5)' 'subwrd(args,6) 'set lev 'subwrd(args,9)' 'subwrd(args,10) *'set time 'subwrd(args,13)' 'subwrd(args,14) 'set t 'subwrd(args,15)' 'subwrd(args,16) endif ***************************************************** -------------- next part -------------- function last_file () 'q files' f=result if subwrd(result,1)='No' return(0) else ln='qqq' i=1 while (ln != '') ln=sublin(f,i) if subwrd(ln,1)='File' nf=subwrd(ln,2) endif i=i+1 endwhile return(nf) endif From abbasmofidi at YAHOO.COM Tue Jan 12 15:32:18 2010 From: abbasmofidi at YAHOO.COM (abbas mofidi) Date: Tue, 12 Jan 2010 12:32:18 -0800 Subject: tcorr function! Message-ID: Hi GrADS Users, I have a 15 years data set and I would like to make an average correlation coefficient plot between meridional wind (V) and relative vorticity (U,V) for the whole time period by using tcorr function. I can plot correlation map for each year separately, however, I don't know how to make an average correlation plot. I believe that, I should calculate correlation for each year separately (I can not use a long-term mean data for the period) and then make an average correlation plot for the whole period. Attached file is script for the first year. Any help would be greatly appreciated. Thanks, Abbas -------------- next part -------------- A non-text attachment was scrubbed... Name: Correlation.gs Type: application/octet-stream Size: 980 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100112/3cc3d6c3/attachment.obj From Huddleston at CIRA.COLOSTATE.EDU Wed Jan 13 14:30:30 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Wed, 13 Jan 2010 11:30:30 -0800 Subject: Specifying a fill value for geotiff images Message-ID: Good afternoon, I was using the 'set gxout geotiff' functionality and noticed that GrADS is inserting a -9.99e8 value into the TIF images. Is there any way to override this value with a value of my own choosing? John Huddleston From jma at COLA.IGES.ORG Wed Jan 13 14:59:30 2010 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Wed, 13 Jan 2010 14:59:30 -0500 Subject: Specifying a fill value for geotiff images In-Reply-To: Message-ID: Hi, John -- The 'set undef' command changes the missing value in all GrADS output, including the geotiff. --Jennifer On Jan 13, 2010, at 2:30 PM, Huddleston, John wrote: > Good afternoon, > > I was using the 'set gxout geotiff' functionality and noticed that > GrADS is inserting a -9.99e8 value into the TIF images. > > Is there any way to override this value with a value of my own > choosing? > > John Huddleston -- 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/20100113/b6e150f4/attachment.html From fallspinach at GMAIL.COM Wed Jan 13 15:37:26 2010 From: fallspinach at GMAIL.COM (Ming Pan) Date: Wed, 13 Jan 2010 15:37:26 -0500 Subject: loop over x,y,z in user defined function (opengrads) Message-ID: Dear Users/Developers, I'm using grads-2.0.a7.oga.3 and trying to write a customized function to compute low-level cape. In this case, I need to loop over 3 dimension x, y, and z, but it seems the current udf interface only allows passing 2-D grids (isiz, jsiz). Anyone ran into a similar situation and came up with a solution/work-around? Thanks! ming From puffy78 at GMAIL.COM Wed Jan 13 17:52:19 2010 From: puffy78 at GMAIL.COM (Alexandre Santos) Date: Wed, 13 Jan 2010 19:52:19 -0300 Subject: Tutorial opengrads Message-ID: Hello , Someone has an tutorial step-step with installer opengrands grads-2.0.a7.oga.3-bundle option shp_lines for ubuntu 8.04? Thanks [image: ?ui=2&view=att&th=1261f85e7cd22864&attid=0.1&disp=attd&realattid=ii_1261f85e7cd22864&zw] ALEXANDRE S. DOS SANTOS PESQUISADOR EXP-NIVEL 1 CNPq EMPRESA DE PESQUISA AGROPECU?RIA DO RIO GRANDE DO NORTE Ger?ncia de Meteorologia www.emparn.rn.gov.br -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100113/f7f370cb/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 3472 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100113/f7f370cb/attachment.jpe From arlindo.dasilva at GMAIL.COM Wed Jan 13 21:54:02 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 13 Jan 2010 21:54:02 -0500 Subject: Tutorial opengrads In-Reply-To: Message-ID: 2010/1/13 Alexandre Santos > > Hello , > > Someone has an tutorial step-step with installer opengrands > grads-2.0.a7.oga.3-bundle option shp_lines for ubuntu 8.04? > > Follow these instructions: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle to download and install the latest OpenGrADS Bundle. All is included and installation is usually not much more than untar and set your path. All the OpenGrADS extensions, including shp_lines, are included. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100113/64bc4291/attachment.html From arlindo.dasilva at GMAIL.COM Wed Jan 13 21:59:50 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 13 Jan 2010 21:59:50 -0500 Subject: loop over x,y,z in user defined function (opengrads) In-Reply-To: Message-ID: On Wed, Jan 13, 2010 at 3:37 PM, Ming Pan wrote: > Dear Users/Developers, > > I'm using grads-2.0.a7.oga.3 and trying to write a customized function > to compute low-level cape. In this case, I need to loop over 3 > dimension x, y, and z, but it seems the current udf interface only > allows passing 2-D grids (isiz, jsiz). Anyone ran into a similar > situation and came up with a solution/work-around? > > GrADS functions in general are only 2D. The opengrads extensions are limited by this GrADS requirement. This only means that the output must be 2D. Internally, the function may be able to change the dimension environment and loop over other dimensions. Study the ave() function, for example. There other examples in libbjt. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100113/a2cff236/attachment.html From Ext-Davide.Tononi at VTT.FI Thu Jan 14 02:31:39 2010 From: Ext-Davide.Tononi at VTT.FI (Tononi Davide) Date: Thu, 14 Jan 2010 09:31:39 +0200 Subject: Exporting data from Grads to excel Message-ID: Dear users. I need to export some data reconrd from grads to excel file but i'm not able to do this. I have written this command line but doesn't work. Say that there is a problems on this command: 'display rh2m' filename='test.xls' 'set gxout print' 'd rh2m' 'rc=(test.xls,rh2m)' That i've written to export. Some of you can suggest to me how can i export the value of this variable rh2m. Another question it's about the command IF that in my programme doesn't work. I write some like this but says that it is not correct unknow command: 'if (t2m>273.15)' 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' 'else' 'define eps1=exp((-6141/t2m)+24.3)' 'endif' Thank you so much davide * Statistics on 2m air temperature and relative humidity in Europe from * 1/1/1999 to 31/12/2008 * The source data are ECMWF ERA Interim Reanalysis, provided by the European * Centre for Medium-Range Weather Forecast, in grib format, with spatial * resolution of 1,5deg x 1,5deg lat/lon, and temporal resolution of 6h (data * at 00, 06, 12, 18 UTC) * There are 49x28 grid points (LON from -27 to 45, LAT from 33 to 73.5), and * 14612 time steps 'reinit' 'open temperature_Europe_10y.ctl' 'set grads off' 'set t 1 14612' 'define t2m=no2tsfc.1' 'set t 1 1461' 'set lat 45' 'set lon 23' 'draw title 2mT at lat45 lon23' 'draw ylab 2m Temperature' 'set ccolor 2' 'set cmark 0' *'display (t2m-273.15)' *'set fwrite t2m_lat45_lon23.gif' *'printim t2m_lat45_lon23.gif white gif' 'open dptemperature_Europe_10y.ctl' 'set t 1 1461' 'define tdp2m=no2dsfc.2' *Calculation of saturated pressure of water vapour 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' *Calculation of water vapour pressure 'define eps2=exp((-6763.6/tdp2m)-4.9283*log(tdp2m)+54.23)' *Calculation of relative humidity 'define rh2m=eps2/eps1' 'display rh2m' filename='test.xls' 'set gxout print' 'd rh2m' 'rc=(test.xls,rh2m)' -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100114/8137dc35/attachment.html From teddyallen at YAHOO.COM Thu Jan 14 02:47:57 2010 From: teddyallen at YAHOO.COM (Teddy Allen) Date: Wed, 13 Jan 2010 23:47:57 -0800 Subject: Exporting data from Grads to excel In-Reply-To: <36186D2E0727CE4E8D6465C0F305A3397EB658E576@VTTMAIL.ad.vtt.fi> Message-ID: Davide. What I typically?do is to output GrADS data into an ASCII textfile and then read that directly into Excel. There are many resources on how to export ASCII textfiles from GrADS (cookbooks...),? let me know if you can't locate them. Good Luck, teddy ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: Tononi Davide To: GRADSUSR at LIST.CINECA.IT Sent: Wed, January 13, 2010 9:31:39 PM Subject: Exporting data from Grads to excel Dear users. I need to export some data reconrd from grads to excel file but i'm not able to do this. I have written this command line but doesn't work. Say that there is a problems on this command: 'display rh2m' filename='test.xls' 'set gxout print' 'd rh2m' 'rc=(test.xls,rh2m)' ? That i've written to export. Some of you can suggest to me how can i export the value of this variable rh2m. Another question it's about the command IF that in my programme doesn't work. I write some like this but says that it is not correct unknow command: 'if (t2m>273.15)' ??? 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' 'else' ??? 'define eps1=exp((-6141/t2m)+24.3)' 'endif' ? Thank you so much davide ? * Statistics on 2m air temperature and relative humidity in Europe from *? 1/1/1999 to 31/12/2008 * The source data are ECMWF ERA Interim Reanalysis, provided by the European *? Centre for Medium-Range Weather Forecast, in grib format, with spatial *? resolution of 1,5deg x 1,5deg lat/lon, and temporal resolution of 6h (data *? at 00, 06, 12, 18 UTC) * There are 49x28 grid points (LON from -27 to 45, LAT from 33 to 73.5), and * 14612 time steps ? 'reinit' 'open temperature_Europe_10y.ctl' 'set grads off' 'set t 1 14612' 'define t2m=no2tsfc.1' ? 'set t 1 1461' 'set lat 45' 'set lon 23' 'draw title 2mT at lat45 lon23' 'draw ylab 2m Temperature' 'set ccolor 2' 'set cmark 0' *'display (t2m-273.15)' *'set fwrite t2m_lat45_lon23.gif' *'printim t2m_lat45_lon23.gif white gif' ? 'open dptemperature_Europe_10y.ctl' 'set t 1 1461' 'define tdp2m=no2dsfc.2' ? *Calculation of saturated pressure of water vapour ? ??? 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' ? *Calculation of water vapour pressure ? ??? 'define eps2=exp((-6763.6/tdp2m)-4.9283*log(tdp2m)+54.23)' ? *Calculation of relative humidity ? 'define rh2m=eps2/eps1' 'display rh2m' filename='test.xls' 'set gxout print' 'd rh2m' 'rc=(test.xls,rh2m)' -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100113/4a5766bf/attachment.html From daniele.gandini at ARPA.PIEMONTE.IT Thu Jan 14 03:45:24 2010 From: daniele.gandini at ARPA.PIEMONTE.IT (Daniele Gandini) Date: Thu, 14 Jan 2010 09:45:24 +0100 Subject: Exporting data from Grads to excel In-Reply-To: <193443049.207311263458364473.JavaMail.root@a-topio-clzm2.ad.arpa.piemonte.it> Message-ID: Dear Davide, I haven't used 'set gxout print' until now; but to have the output in a file with 'set gxout stat' I did so: outfile="/pub/file_to_pc/cnal.txt" 'set gxout stat' # Alessandria 'set lat 44.94' 'set lon 8.7' 'd rh' statstr=sublin(result,8) vmin=subwrd(statstr,4) vmax=subwrd(statstr,5) write(outfile,'Alessandria: minima:'round(vmin)' massima:'round(vmax),append) if, else and endif must be without superscripts ''; for example if (flagstampe=yes) var='st_'%var endif Saluti a Firenze. Daniele ----- Messaggio originale ----- Da: "Tononi Davide" A: GRADSUSR at LIST.CINECA.IT Inviato: Gioved?, 14 gennaio 2010 8:31:39 GMT +01:00 Amsterdam/Berlino/Berna/Roma/Stoccolma/Vienna Oggetto: Exporting data from Grads to excel Dear users. I need to export some data reconrd from grads to excel file but i'm not able to do this. I have written this command line but doesn't work. Say that there is a problems on this command: 'display rh2m' filename='test.xls' 'set gxout print' 'd rh2m' 'rc=(test.xls,rh2m)' That i've written to export. Some of you can suggest to me how can i export the value of this variable rh2m. Another question it's about the command IF that in my programme doesn't work. I write some like this but says that it is not correct unknow command: 'if (t2m>273.15)' 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' 'else' 'define eps1=exp((-6141/t2m)+24.3)' 'endif' Thank you so much davide * Statistics on 2m air temperature and relative humidity in Europe from * 1/1/1999 to 31/12/2008 * The source data are ECMWF ERA Interim Reanalysis, provided by the European * Centre for Medium-Range Weather Forecast, in grib format, with spatial * resolution of 1,5deg x 1,5deg lat/lon, and temporal resolution of 6h (data * at 00, 06, 12, 18 UTC) * There are 49x28 grid points (LON from -27 to 45, LAT from 33 to 73.5), and * 14612 time steps 'reinit' 'open temperature_Europe_10y.ctl' 'set grads off' 'set t 1 14612' 'define t2m=no2tsfc.1' 'set t 1 1461' 'set lat 45' 'set lon 23' 'draw title 2mT at lat45 lon23' 'draw ylab 2m Temperature' 'set ccolor 2' 'set cmark 0' *'display (t2m-273.15)' *'set fwrite t2m_lat45_lon23.gif' *'printim t2m_lat45_lon23.gif white gif' 'open dptemperature_Europe_10y.ctl' 'set t 1 1461' 'define tdp2m=no2dsfc.2' *Calculation of saturated pressure of water vapour 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' *Calculation of water vapour pressure 'define eps2=exp((-6763.6/tdp2m)-4.9283*log(tdp2m)+54.23)' *Calculation of relative humidity 'define rh2m=eps2/eps1' 'display rh2m' filename='test.xls' 'set gxout print' 'd rh2m' 'rc=(test.xls,rh2m)' From zowiti at NCST.GO.KE Thu Jan 14 07:02:32 2010 From: zowiti at NCST.GO.KE (Zablone Owiti) Date: Thu, 14 Jan 2010 20:02:32 +0800 Subject: Problem running day2pen.gs Message-ID: Dear Grads Users, I am running a function day2pen.gs on Windows( Grads V 2.0.a7.oga.3 ) to regrid daily data to pentad data. When I run it, I get the following error message: cp: missing destination file operand after `c:\windows\temp\day2pen.dat~.olr_pen.dat' Try `cp --help' for more information. Open Error: Can't open binary data file File name = \day2pen.dat~ See attached day2pen.gs and the driving code (penta.gs) Any fix for this problem? Thanks -- ZABLONE OWITI GRADUATE STUDENT College of Atmospheric Science Nanjing University of Information, Science and Technology College of International Education Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Website: www.globenuist.cn _________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: day2pen.gs Type: application/octet-stream Size: 5202 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100114/4a63276f/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: penta.gs Type: application/octet-stream Size: 130 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100114/4a63276f/attachment-0001.obj From hersala at GMAIL.COM Thu Jan 14 09:35:30 2010 From: hersala at GMAIL.COM (hersala) Date: Thu, 14 Jan 2010 11:35:30 -0300 Subject: Exporting data from Grads to excel In-Reply-To: <1619069617.208531263458724810.JavaMail.root@a-topio-clzm2.ad.arpa.piemonte.it> Message-ID: Hi Tononi: To obtain ASCII files from GrADS I usually use the script fprintf.gs you will found it here: http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file Cheers, Hern?n 2010/1/14 Daniele Gandini > Dear Davide, > > I haven't used 'set gxout print' until now; > but to have the output in a file with 'set gxout stat' I did so: > > outfile="/pub/file_to_pc/cnal.txt" > 'set gxout stat' > > # Alessandria > 'set lat 44.94' > 'set lon 8.7' > 'd rh' > statstr=sublin(result,8) > vmin=subwrd(statstr,4) > vmax=subwrd(statstr,5) > write(outfile,'Alessandria: minima:'round(vmin)' > massima:'round(vmax),append) > > if, else and endif must be without superscripts ''; for example > > if (flagstampe=yes) > var='st_'%var > endif > > Saluti a Firenze. > > Daniele > > > ----- Messaggio originale ----- > Da: "Tononi Davide" > A: GRADSUSR at LIST.CINECA.IT > Inviato: Gioved?, 14 gennaio 2010 8:31:39 GMT +01:00 > Amsterdam/Berlino/Berna/Roma/Stoccolma/Vienna > Oggetto: Exporting data from Grads to excel > > > Dear users. > I need to export some data reconrd from grads to excel file but i'm not > able to do this. > I have written this command line but doesn't work. > Say that there is a problems on this command: > > 'display rh2m' > filename='test.xls' > 'set gxout print' > 'd rh2m' > 'rc=(test.xls,rh2m)' > > That i've written to export. > Some of you can suggest to me how can i export the value of this variable > rh2m. > Another question it's about the command IF that in my programme doesn't > work. > I write some like this but says that it is not correct unknow command: > > 'if (t2m>273.15)' > 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' > 'else' > 'define eps1=exp((-6141/t2m)+24.3)' > 'endif' > > Thank you so much > davide > > > * Statistics on 2m air temperature and relative humidity in Europe from > * 1/1/1999 to 31/12/2008 > * The source data are ECMWF ERA Interim Reanalysis, provided by the > European > * Centre for Medium-Range Weather Forecast, in grib format, with spatial > * resolution of 1,5deg x 1,5deg lat/lon, and temporal resolution of 6h > (data > * at 00, 06, 12, 18 UTC) > * There are 49x28 grid points (LON from -27 to 45, LAT from 33 to 73.5), > and > * 14612 time steps > > 'reinit' > 'open temperature_Europe_10y.ctl' > 'set grads off' > 'set t 1 14612' > 'define t2m=no2tsfc.1' > > 'set t 1 1461' > 'set lat 45' > 'set lon 23' > 'draw title 2mT at lat45 lon23' > 'draw ylab 2m Temperature' > 'set ccolor 2' > 'set cmark 0' > *'display (t2m-273.15)' > *'set fwrite t2m_lat45_lon23.gif' > *'printim t2m_lat45_lon23.gif white gif' > > 'open dptemperature_Europe_10y.ctl' > 'set t 1 1461' > 'define tdp2m=no2dsfc.2' > > *Calculation of saturated pressure of water vapour > > 'define eps1=exp((-6763.6/t2m)-4.9283*log(t2m)+54.23)' > > *Calculation of water vapour pressure > > 'define eps2=exp((-6763.6/tdp2m)-4.9283*log(tdp2m)+54.23)' > > *Calculation of relative humidity > > 'define rh2m=eps2/eps1' > 'display rh2m' > filename='test.xls' > 'set gxout print' > 'd rh2m' > 'rc=(test.xls,rh2m)' > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100114/d4bb75fb/attachment.html From Huddleston at CIRA.COLOSTATE.EDU Thu Jan 14 09:46:18 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Thu, 14 Jan 2010 06:46:18 -0800 Subject: Problem running day2pen.gs In-Reply-To: <13392.222.190.109.122.1263470552.squirrel@ncst.go.ke> Message-ID: Zablone The cp utility takes two arguments. In your script there is only one. There is a tilde in the line '!cp 'mytmpdir'\day2pen.dat~'_.path.1'\'_.file.1'.dat' Perhaps that is supposed to be a space? John Huddleston ________________________________________ From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of Zablone Owiti [zowiti at NCST.GO.KE] Sent: Thursday, January 14, 2010 5:02 AM To: GRADSUSR at LIST.CINECA.IT Subject: Problem running day2pen.gs Dear Grads Users, I am running a function day2pen.gs on Windows( Grads V 2.0.a7.oga.3 ) to regrid daily data to pentad data. When I run it, I get the following error message: cp: missing destination file operand after `c:\windows\temp\day2pen.dat~.olr_pen.dat' Try `cp --help' for more information. Open Error: Can't open binary data file File name = \day2pen.dat~ See attached day2pen.gs and the driving code (penta.gs) Any fix for this problem? Thanks -- ZABLONE OWITI GRADUATE STUDENT College of Atmospheric Science Nanjing University of Information, Science and Technology College of International Education Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Website: www.globenuist.cn _________________________________________________ From rupakumar.kolli at GMAIL.COM Fri Jan 15 16:18:51 2010 From: rupakumar.kolli at GMAIL.COM (Rupa Kumar Kolli) Date: Fri, 15 Jan 2010 22:18:51 +0100 Subject: Display problem on OpenSUSE 11.2 - Solved ! Message-ID: Dear John and Jean-Pierre, Finally I could solve this problem. I realized that the graphics driver my installation automatically configured was not the ideal one, though all the graphics otherwise were perfect. I included the original nvidia software repository ( ftp://download.nvidia.com/opensuse/11.2/) in yast and looked for suitable nvidia driver. I found that my system could successfully install and configure the driver "nvidia-gfx-kmp-default". I then added the line Option BackingStore "True" in all instances of Section "Device",and restarted my X11. To my great relief, my GrADS display is now perfect, and I no longer need to redisplay the graphics whenever the window is overlapped by others. Also, my X11 is behaving perfectly even with BackingStore turned on. "xdpyinfo -display" still shows "save-unders NO", so that was not a critical issue. Thank you both for your feedback. Cheers, Kumar. On Thu, Jan 7, 2010 at 9:26 AM, Jean Pierre Arabonis wrote: > Hi > > Seems like a backingstore option problem. Be careful when enabling this > using nvidia drivers - on opensuse 11.1 enabling backing store led to X no > longer working and serious boot up problems. I now just live with the loss > of the display when changing desktops etc. > > JP > > -- > Jean Pierre Arabonis > arabonis at yahoo.com > Tel +27 21 780 1021 cell +27 84 401 1365 > > --- On *Wed, 1/6/10, Huddleston, John *wrote: > > > From: Huddleston, John > Subject: Re: Display problem on OpenSUSE 11.2 > > To: GRADSUSR at LIST.CINECA.IT > Date: Wednesday, January 6, 2010, 8:50 PM > > > Kumar, > > Run the command > > xdpyinfo-display localhost:0.0 | grep back > > It will tell you whether your server Backingstore is on or off, i.e. > > options: backing-store YES, save-unders YES > > John > ________________________________________ > From: GRADSUSR at LIST.CINECA.IT[ > GRADSUSR at LIST.CINECA.IT ] On > Behalf Of Rupa Kumar Kolli [rupakumar.kolli at GMAIL.COM > ] > Sent: Wednesday, January 06, 2010 9:28 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: Display problem on OpenSUSE 11.2 > > Dear All, > > I am working with OpenGrADS 2.0 on OpenSUSE 11.2. Whenever the > graphics window of GrADS is overlapped by other windows, I find that > the overlapped portion is wiped clean and I have to explicitly > redisplay the graphics. I used to work around this problem earlier > with "Option BackingStore on" in the XF86 configuration. However, in > my present installation of OpenSUSE 11.2, the BackingStore option in > the configuration file "xorg.conf" no longer seems to have any effect. > > I would greatly appreciate any clue to solve this problem. > > Thanks, > Kumar. > -- > ======================================== > Dr. Rupa Kumar Kolli > Chief, World Climate Applications & Services Division > Climate Prediction and Adaptation Branch > Climate and Water Department > World Meteorological Organization > 7bis, av. de la Paix > CH-1211 Geneva 2, Switzerland > > Phone: +41-22-730-8377 > Fax: +41-22-730-8042 > Email: RKolli at wmo.int ; > rupakumar.kolli at gmail.com > ======================================== > > > -- ======================================== Dr. Rupa Kumar Kolli Chief, World Climate Applications & Services Division Climate Prediction and Adaptation Branch Climate and Water Department World Meteorological Organization 7bis, av. de la Paix CH-1211 Geneva 2, Switzerland Phone: +41-22-730-8377 Fax: +41-22-730-8042 Email: RKolli at wmo.int; rupakumar.kolli at gmail.com ======================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100115/1ab31464/attachment.html From fdaryabor at GOOGLEMAIL.COM Fri Jan 15 22:48:05 2010 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Sat, 16 Jan 2010 11:48:05 +0800 Subject: create climatology file Message-ID: Dear All I have the 12 netcdf files from WAVE model meaning that for 12 month from January to December is the 12 netcdf single file, I need combine them for create 1 the netcdf climatology file for inject to Ocean Model. Anybody know about that how help me. for example: *THE FIRST FILE:* netcdf January_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- float January_data(depth,lon,lat) -------------------- ----------------------------- *THE SECOND FILE* netcdf February_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- float February_data(depth,lon,lat) -------------------- ----------------------------- etc. . . . . . . *THE TWELFTH FILE* netcdf December_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- float December_data(depth,lon,lat) -------------------- ----------------------------- *I need the 1 climatology file the like follow*: netcdf climatology_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (12 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- doubel time(time); ---------------------- -------------------------- float climatology_data(time,depth,lon,lat) -------------------- ----------------------------- *Best Regards For All F.Daryabor * *F.Daryabor (Ph.D Student) Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selongor Malaysia * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100116/d25e5b01/attachment.html From scsebnic at LIBERO.IT Sat Jan 16 02:20:24 2010 From: scsebnic at LIBERO.IT (nicola sebastiani) Date: Sat, 16 Jan 2010 07:20:24 -0000 Subject: Hail and Storm database for China Message-ID: Hi All, I am looking for historical data of hail and storm occurred in China during the last 10 - 20 years. Thank you in advance for your help Best Regards Nicola Sebastiani ---------------------------------------------------------------------------------------------------------------------------------- Are you interested in Weather Satellite and Earth Observation for educational purposes? Please, visit ----------->> http://www.scsebnic.net ---------------------------------------------------------------------------------------------------------------------------------- ----- Original Message ----- From: Farshid Daryabor To: GRADSUSR at LIST.CINECA.IT Sent: Saturday, January 16, 2010 3:48 AM Subject: create climatology file Dear All I have the 12 netcdf files from WAVE model meaning that for 12 month from January to December is the 12 netcdf single file, I need combine them for create 1 the netcdf climatology file for inject to Ocean Model. Anybody know about that how help me. for example: THE FIRST FILE: netcdf January_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- float January_data(depth,lon,lat) -------------------- ----------------------------- THE SECOND FILE netcdf February_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- float February_data(depth,lon,lat) -------------------- ----------------------------- etc. . . . . . . THE TWELFTH FILE netcdf December_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- float December_data(depth,lon,lat) -------------------- ----------------------------- I need the 1 climatology file the like follow: netcdf climatology_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (12 currently) variables; float lat(lat); --------------------- ---------------------- float lon(lon); -------------------- ------------------- doubel time(time); ---------------------- -------------------------- float climatology_data(time,depth,lon,lat) -------------------- ----------------------------- Best Regards For All F.Daryabor F.Daryabor (Ph.D Student) Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selongor Malaysia -- I am using the free version of SPAMfighter. We are a community of 6 million users fighting spam. SPAMfighter has removed 118 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len The Professional version does not have this message -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100116/0ea09426/attachment.html From appopson at YAHOO.FR Sat Jan 16 03:21:01 2010 From: appopson at YAHOO.FR (louis Vonder) Date: Sat, 16 Jan 2010 08:21:01 +0000 Subject: create climatology file In-Reply-To: <9b8832d51001151948u4892c0c0t742d514bfebf9314@mail.gmail.com> Message-ID: Perhaps? you can how to do it with? NCO? or? CDO Good luck --- En date de?: Sam 16.1.10, Farshid Daryabor a ?crit?: De: Farshid Daryabor Objet: create climatology file ?: GRADSUSR at LIST.CINECA.IT Date: Samedi 16 Janvier 2010, 4h48 Dear All I have the 12 netcdf files from WAVE model meaning that for 12 month from January to December is the 12 netcdf single file, I need combine them for create 1 the netcdf climatology file for inject to Ocean Model. Anybody know about that how help me. for example: THE FIRST FILE: ? ? ? netcdf January_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently)? variables; ?? float?? lat(lat); --------------------- ---------------------- ? float??? lon(lon); -------------------- ------------------- ?float???? January_data(depth,lon,lat) -------------------- ----------------------------- ? THE SECOND FILE ? ? ? netcdf February_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently)? variables; ?? float ? ?? lat(lat); --------------------- ---------------------- ? float ? ? ? lon(lon); -------------------- ------------------- ?float???? February_data(depth,lon,lat) -------------------- ----------------------------- etc. . . . . . . THE TWELFTH FILE ? ? ? netcdf December_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (1 currently)? variables; ?? float lat(lat); --------------------- ---------------------- ? float lon(lon); -------------------- ------------------- ?float December_data(depth,lon,lat) -------------------- ----------------------------- I need the 1 climatology file the like follow: ? ? ? netcdf climatology_data { dimension: lon=192; lat=94; time=UNLIMITED ; // (12 currently)? variables; ?? float lat(lat); --------------------- ---------------------- ? float lon(lon); -------------------- ------------------- doubel time(time); ---------------------- -------------------------- ?float climatology_data(time,depth,lon,lat) -------------------- ----------------------------- Best Regards For All F.Daryabor F.Daryabor (Ph.D Student) Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selongor Malaysia -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100116/c9aea562/attachment.html From hersala at GMAIL.COM Sat Jan 16 10:33:50 2010 From: hersala at GMAIL.COM (hersala) Date: Sat, 16 Jan 2010 12:33:50 -0300 Subject: create climatology file In-Reply-To: <9b8832d51001151948u4892c0c0t742d514bfebf9314@mail.gmail.com> Message-ID: Hi Farshid I think you should use templates, look for templates at this link: http://www.iges.org/grads/gadoc/gadocindex.html Hern?n 2010/1/16 Farshid Daryabor > Dear All > I have the 12 netcdf files from WAVE model meaning that for 12 month from > January to December is the 12 netcdf single file, I need combine them for > create 1 the netcdf climatology file for inject to Ocean Model. Anybody know > about that how help me. > > for example: > > > > *THE FIRST FILE:* > > netcdf January_data { > dimension: > lon=192; > lat=94; > time=UNLIMITED ; // (1 currently) > variables; > float lat(lat); > --------------------- > ---------------------- > float lon(lon); > -------------------- > ------------------- > float January_data(depth,lon,lat) > -------------------- > ----------------------------- > > > *THE SECOND FILE* > > netcdf February_data { > dimension: > > lon=192; > lat=94; > time=UNLIMITED ; // (1 currently) > variables; > float lat(lat); > --------------------- > ---------------------- > float lon(lon); > -------------------- > ------------------- > float February_data(depth,lon,lat) > -------------------- > ----------------------------- > etc. > . > . > . > . > . > . > *THE TWELFTH FILE* > > > netcdf December_data { > dimension: > > lon=192; > lat=94; > time=UNLIMITED ; // (1 currently) > variables; > float lat(lat); > --------------------- > ---------------------- > float lon(lon); > -------------------- > ------------------- > float December_data(depth,lon,lat) > -------------------- > ----------------------------- > > > *I need the 1 climatology file the like follow*: > > > > > netcdf climatology_data { > dimension: > > lon=192; > lat=94; > time=UNLIMITED ; // (12 currently) > variables; > float lat(lat); > --------------------- > ---------------------- > float lon(lon); > -------------------- > ------------------- > > doubel time(time); > ---------------------- > -------------------------- > > float climatology_data(time,depth,lon,lat) > -------------------- > ----------------------------- > > *Best Regards For All > F.Daryabor > * > > *F.Daryabor (Ph.D Student) > Center for Tropical and Climate Change System > Faculty of Sciences and Technology > National University of Malaysia (UKM) > Bangi 43600 > Selongor > Malaysia > * > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100116/855fa465/attachment.html From mmahakur at TROPMET.RES.IN Sun Jan 17 11:26:27 2010 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Sun, 17 Jan 2010 21:56:27 +0530 Subject: Logic error 8 in gxshad In-Reply-To: <9b8832d51001151948u4892c0c0t742d514bfebf9314@mail.gmail.com> Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100117/3ac75d2a/attachment.html From mmahakur at TROPMET.RES.IN Sun Jan 17 12:36:52 2010 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Sun, 17 Jan 2010 23:06:52 +0530 Subject: Logic error 8 in gxshad In-Reply-To: <9b8832d51001151948u4892c0c0t742d514bfebf9314@mail.gmail.com> Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100117/0d405796/attachment.html From munia_c at YAHOO.CO.IN Mon Jan 18 01:00:22 2010 From: munia_c at YAHOO.CO.IN (tanusri chakraborty) Date: Mon, 18 Jan 2010 11:30:22 +0530 Subject: No subject Message-ID: I am using windows version of grads(GRADS 2.0.a7.oga.3).I want mask the land area using the basemap.gs. But? ga>basemap L 1 showing error, the error is sh:bash:command not found Error reading lpoly_lowers.asc please help me to shout out the error The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100118/376c72d0/attachment.html From madhusoodanan at GMAIL.COM Mon Jan 18 01:08:42 2010 From: madhusoodanan at GMAIL.COM (Madhusoodanan M.S.) Date: Mon, 18 Jan 2010 11:38:42 +0530 Subject: No subject In-Reply-To: <860337.18463.qm@web8316.mail.in.yahoo.com> Message-ID: hi, pls download the .asc file from grads-URL and keep it in your grads folder. cheers -- Madhusoodanan M.S. Nansen Environmental Research Centre, India (NERCI) Gopal Residency - II Floor Thottekkatt Road, Ernakulam Kerala - 682 011, India Tel. +91 484 2383351 Fax. +91 484 2353124 Mobile. +91 99954 36771 Email: madhu at nerci.in URL: http://www.nerci.in/index.php?option=com_comprofiler&task=userProfile&user=67&Itemid=103 From sahidul at GMAIL.COM Mon Jan 18 01:09:37 2010 From: sahidul at GMAIL.COM (Sahidul) Date: Mon, 18 Jan 2010 11:39:37 +0530 Subject: No subject In-Reply-To: <860337.18463.qm@web8316.mail.in.yahoo.com> Message-ID: put proper PATH of basemap i.e., location of "basemap" command On Mon, Jan 18, 2010 at 11:30 AM, tanusri chakraborty wrote: > I am using windows version of grads(GRADS 2.0.a7.oga.3).I want mask the > land area using the basemap.gs. > But > *ga>basemap L 1* > *showing error, the error is sh:bash:command not found* > *Error reading lpoly_lowers.asc* > please help me to shout out the error > > ------------------------------ > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage > . > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100118/ab1c6223/attachment.html From jmssnyder at UCDAVIS.EDU Mon Jan 18 20:35:54 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Mon, 18 Jan 2010 17:35:54 -0800 Subject: **Aerosol data problems with NASA GMAO GEOS-5** Message-ID: I am trying to download a netcdf file with sulfate aerosol and bin 4 dust mixing ratio data from the following website: http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv I get this error message when I do this: The website cannot display the page HTTP 500 Most likely causes: - The website is under maintenance. - The website has a programming error. What you can try: Refresh the page. Go back to the previous page. [image: More information] The website cannot display the page HTTP 500 Most likely causes: - The website is under maintenance. - The website has a programming error. What you can try: Refresh the page. Go back to the previous page. [image: More information] I have been trying this several times and still I keep getting this error message. For the tme steps on the data requested I need to have start on 0 hours time wise to be compatible with other data sets. Can you help me get data from this website or if you have these data files already to e-mail them to me? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100118/dc4432ef/attachment.html From Ext-Davide.Tononi at VTT.FI Tue Jan 19 04:55:47 2010 From: Ext-Davide.Tononi at VTT.FI (Tononi Davide) Date: Tue, 19 Jan 2010 11:55:47 +0200 Subject: Data from ECMWF ERA Interim Reanalysis In-Reply-To: <1619069617.208531263458724810.JavaMail.root@a-topio-clzm2.ad.arpa.piemonte.it> Message-ID: Dear users, I'm doing some analyses by using data from this source: ECMWF ERA Interim Reanalysis, provided by the European Centre for Medium-Range Weather Forecast in grib format. The resolution is 1,5 deg * 1,5 deg lat/lon and temporal resolution of 6h. I need to know more things about the way in which ERA finds these data and processes is on them to supply them according to this grid. Some of you know if they are made according to the average space areas? Thank you very much for the help Best regards Davide Tononi VTT researcher From shimon at CYCLONE.TAU.AC.IL Tue Jan 19 09:48:22 2010 From: shimon at CYCLONE.TAU.AC.IL (Simon Krichak) Date: Tue, 19 Jan 2010 16:48:22 +0200 Subject: analyzing climatological time series Message-ID: Dear Gradsusr Members, I am currently analizing results of a 100 y (1960-2060) climate simulation experiment. I want to draw a graph representing variation with time of difference between area averaged SON precipitation for each year after 2000 with that of the current climate (1961-1990). The script I wrote (also attached is the monmask.gs by Wesley Ebisuzaki) seems to be producing wrong results however. My impression is that the mmask remains constant for all months. Please let me know your recommendations. Best, Simon ======================================== Simon O. Krichak ======================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100119/54368417/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: monmask.gs Type: application/octet-stream Size: 1104 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/54368417/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: SON-Pre.gs Type: application/octet-stream Size: 667 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/54368417/attachment-0001.obj From diego333medina at YAHOO.ES Tue Jan 19 11:53:27 2010 From: diego333medina at YAHOO.ES (diego) Date: Tue, 19 Jan 2010 16:53:27 +0000 Subject: Subscripts and superscripts In-Reply-To: <36186D2E0727CE4E8D6465C0F305A3397EB65EAE62@VTTMAIL.ad.vtt.fi> Message-ID: hi: as I can write text with subscripts and superscripts in grads ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100119/5e732573/attachment.html From jma at COLA.IGES.ORG Tue Jan 19 11:59:48 2010 From: jma at COLA.IGES.ORG (Jennifer Adams) Date: Tue, 19 Jan 2010 11:59:48 -0500 Subject: Subscripts and superscripts In-Reply-To: <599187.88651.qm@web23703.mail.ird.yahoo.com> Message-ID: Here's an example of how to draw symbols, superscripts, and subscripts: draw string 1 1 `0Normal `3,s`0`a2`n a`b2`n again `a --- superscript `n ---- normal `b --- subscript `0 -- font 0 `3 -- font 3 On Jan 19, 2010, at 11:53 AM, diego wrote: > hi: > > as I can write text with subscripts and superscripts in grads ? > > Thanks > -- 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/20100119/eab54b96/attachment.html From doty at COLA.IGES.ORG Tue Jan 19 12:15:59 2010 From: doty at COLA.IGES.ORG (Brian Doty) Date: Tue, 19 Jan 2010 12:15:59 -0500 Subject: loop over x,y,z in user defined function (opengrads) In-Reply-To: Message-ID: The expression handling part of grads is fundamentally limited to grids with a maximum of 2D varying dimensions. This goes back to the early 90s when I designed and implemented the language known as the "grads expression". This design has stood the test of time -- if anything, experience since then has shown this to be extremely important, as it limits the amount of memory that grads consumes. You can, of course, override this at any time by staging data in memory via the "define" feature. Define can use great amounts of memory very rapidly, but it is under your control. There are functions, such as ave, that loop over some dimension and evaluate a target expression that results in a 2D or less grid, and then does some operation on those grids (such as sum them and divide by n). Note that at no time is there a grid present that is more than 2D. The looping results in potentially a lot of I/O. If the data is going to be looped through more than once (or sliced in some non- efficient way), then putting the data into memory in advance, via define, can yield large performance improvements. (It is important to understand the way grads evaluates expressions and what implications this has for I/O if you are working with a lot of data -- the way you do certain things can have huge performance differences.) The functions that loop through a dimension (eg, ave) operate recursively. They are thus not suitable as UDF functions, since I don't see how to easily provide a standardized interface without very high long term maintenance costs. Thus I would personally recommend that you implement such a function as a source code mod, this being much safer in the long term, as it will make clear to future users the nature of the function and the level of burden for maintaining it. As a side note, it is also important that no function outputs a grid that has fundamentally different dimensions than the input dimension environment. This is a necessary restriction to preserve the internal consistency of the expression handling. What I mean by this can be shown by an example: if the input dimension environment is X and Y varying, it would be invalid to output a grid with some dimension other than X and Y varying (eg, T). It is ok to output a grid that is a subset, ie, with just X varying. Another approach is to do what I do in this situation: I write a script and a C program, and my script outputs the needed data into a file, and the C program does the calculation, and the script reads in the data output by the C program. Somewhat kludgy, but not all functions are worth the time and effort to implement within grads and maintain over the longer term, IMO. I am working through the design of some sort of interface to allow tasks to be done directly on "defined" objects. This is an outgrowth of our recent implementation of netCDF file output. Jennifer and I had extensive design discussions on this feature, and it became clear that we needed to collect large amounts of data in memory to optimize the I/O, and define was the obvious way to do this. Now I am working on a way to do a "sort" operation on a "defined" data object, where the sort would operate though one of the dimensions. I am also thinking that this type of thing could be generalized and a "UDF" style capability could be provided to perform some arbitrary task on a defined object. This would not be part of the expression capability, but would be for one-shot types of things. I've been trying to figure out how to provide a sort feature and this is the only way I can see to do it cleanly... Brian On Jan 13, 2010, at 3:37 PM, Ming Pan wrote: > Dear Users/Developers, > > I'm using grads-2.0.a7.oga.3 and trying to write a customized function > to compute low-level cape. In this case, I need to loop over 3 > dimension x, y, and z, but it seems the current udf interface only > allows passing 2-D grids (isiz, jsiz). Anyone ran into a similar > situation and came up with a solution/work-around? > > Thanks! > > ming From doty at COLA.IGES.ORG Tue Jan 19 12:18:41 2010 From: doty at COLA.IGES.ORG (Brian Doty) Date: Tue, 19 Jan 2010 12:18:41 -0500 Subject: Logic error 8 in gxshad In-Reply-To: <20100117162250.M13280@tropmet.res.in> Message-ID: Usually due to invalid numbers (ie, IEEE NAN values). Try looking at the data using "gxout grid" to see what the actual data values are. On Jan 17, 2010, at 11:26 AM, M.Mahakur wrote: > Respected All, > > I gets the following error while displaying (both versions: 1.9 and > 2.0). What could be > the region? > > ga-> d var > Contouring: 100 to 320 interval 20 > Logic error 8 in gxshad > Error in gxshad > ga-> > > With Regards, > > Mahakur > From doty at COLA.IGES.ORG Tue Jan 19 12:27:35 2010 From: doty at COLA.IGES.ORG (Brian Doty) Date: Tue, 19 Jan 2010 12:27:35 -0500 Subject: Subscripts and superscripts In-Reply-To: <08C8AB1A-D8C0-403F-9C41-9A82BAAC2748@cola.iges.org> Message-ID: These font operators (font change, subscript, superscript) can be used wherever a text string appears in a grads command. An example would be to use multiple fonts in a contour label: set clab %g`3.`0K That's a percent sign, a backquote, a period, and a zero (the font number) -- to draw a contour label that has the degree symbol in it. Or perhaps: set clab F`b%g to draw the contour value as a subscript. Not sure what that's good for, but who knows... Brian On Jan 19, 2010, at 11:59 AM, Jennifer Adams wrote: > Here's an example of how to draw symbols, superscripts, and > subscripts: > > draw string 1 1 `0Normal `3,s`0`a2`n a`b2`n again > > > `a --- superscript > `n ---- normal > `b --- subscript > > `0 -- font 0 > `3 -- font 3 > > > > On Jan 19, 2010, at 11:53 AM, diego wrote: > >> hi: >> >> as I can write text with subscripts and superscripts in grads ? >> >> Thanks >> > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > From shimon at CYCLONE.TAU.AC.IL Tue Jan 19 12:37:33 2010 From: shimon at CYCLONE.TAU.AC.IL (Simon Krichak) Date: Tue, 19 Jan 2010 19:37:33 +0200 Subject: analyzing climatological time series (updated) Message-ID: Dear Gradsusr Members, I am currently analizing results of a 100 y (1960-2060) climate simulation experiment. I want to draw graphs with time variations of difference between area averaged seasonal precipitation for each year after 2000 and that for the current climate (30-year mean). The script I wrote (also attached is the monmask.gs by Wesley Ebisuzaki) seems to be producing wrong results - in the example attached the two graphs for SON and MAM are almost identical. What is wrong in my actions? Regards, Simon ======================================== Simon O. Krichak ======================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100119/af2de9b2/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: monmask.gs Type: application/octet-stream Size: 1104 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/af2de9b2/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: SON-Pre.gs Type: application/octet-stream Size: 667 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/af2de9b2/attachment-0001.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: MAM-Prec.gs Type: application/octet-stream Size: 650 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/af2de9b2/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: Prec-MAM.ps Type: application/postscript Size: 89414 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/af2de9b2/attachment.ps -------------- next part -------------- A non-text attachment was scrubbed... Name: Prec-SON.ps Type: application/postscript Size: 93456 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100119/af2de9b2/attachment-0001.ps From Charles.Seman at NOAA.GOV Tue Jan 19 15:47:06 2010 From: Charles.Seman at NOAA.GOV (Charles Seman) Date: Tue, 19 Jan 2010 15:47:06 -0500 Subject: Archives login... Message-ID: Listserv, I recently tried logging in to the Archives via http://list.cineca.it/cgi-bin/wa?LOGON=A0%3dGRADSUSR&L=GRADSUSR and got a message about it not being a trusted or secure site... Is this true? Thanks, Chuck -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not necessarily reflect any position of the Government or NOAA." From jmssnyder at UCDAVIS.EDU Tue Jan 19 20:31:47 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Tue, 19 Jan 2010 17:31:47 -0800 Subject: **Aerosol data problems with NASA GMAO GEOS-5** In-Reply-To: Message-ID: I am still having problem with this website: http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv I am trying to download data and I need to set up the times so that the time steps are every 0 hours (ie January 3 2009 0:00Z, NOT January 3 2009 0:00Z, so I can use it with NCEP wind data also with time times ending on 0 hours (ie January 3 2009 0:00Z). I tried to make the start time for the data I ordered January 3 2009 0:00 Z(I used many start and end dates including March 14 2009, etc.). I get a netcdf file but when I try to open it in GrADS I get the following message: ga-> sdfopen inst3_3d_aer_Nv-201001200048.nc Scanning self-describing file: inst3_3d_aer_Nv-201001200048.nc NetCDF: Index exceeds dimension bound SDF Error: nc_get_vara_double failed to read coordinate axis value gadsdf: Error reading first time value in SDF file. ga-> How can I download aerosol data so that I can use it with NCEP data ( http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html)? I tried downloading data from http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv using the original begin and end time values under time range (January 1 2009 3:00 Z) and I cannot use this data set with the NCEP data from website : http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html since this data has time steps ending with 0 hours Z instead od 3 hours Z from the aerosol data. How do I resolve this or at least how where can I find aerosol/wind data that I can use together? Thanks, Jason On Mon, Jan 18, 2010 at 5:35 PM, Jason Snyder wrote: > I am trying to download a netcdf file with sulfate aerosol and bin 4 dust > mixing ratio data from the following website: > > > http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv > > I get this error message when I do this: > The website cannot display the page HTTP 500 > Most likely causes: > > - The website is under maintenance. > - The website has a programming error. > > What you can try: Refresh the page. Go back to the > previous page. [image: More information] > The website cannot display the page HTTP 500 > Most likely causes: > > - The website is under maintenance. > - The website has a programming error. > > What you can try: Refresh the page. Go back to the > previous page. [image: More information] > I have been trying this several times and still I keep getting this error > message. > For the tme steps on the data requested I need to have start on 0 hours > time wise to be compatible with other data sets. > > Can you help me get data from this website or if you have these data files > already to e-mail them to me? > > Thanks, > > Jason > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100119/952de82f/attachment.html From h.meteo.shirazu at GMAIL.COM Wed Jan 20 02:45:05 2010 From: h.meteo.shirazu at GMAIL.COM (hossein lotfi) Date: Wed, 20 Jan 2010 11:15:05 +0330 Subject: **Aerosol data problems with NASA GMAO GEOS-5** In-Reply-To: Message-ID: Hi Jason I am realy sorry,I have problem with this website too, chek this website ( http://gdata1.sci.gsfc.nasa.gov/daac-bin/G3/gui.cgi?instance_id=MODIS_DAILY_L3) I think it is useful for you pleas tell me if it is useful oh I have a question!! what is (bin 01) (bin 02).... in your first website that we have problem with it? On Wed, Jan 20, 2010 at 5:01 AM, Jason Snyder wrote: > I am still having problem with this website: > > > http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv > I am trying to download data and I need to set up the times so that the > time steps are every 0 hours (ie January 3 2009 0:00Z, NOT January 3 2009 > 0:00Z, so I can use it with NCEP wind data also with time times ending on 0 > hours (ie January 3 2009 0:00Z). I tried to make the start time for the > data I ordered January 3 2009 0:00 Z(I used many start and end dates > including March 14 2009, etc.). I get a netcdf file but when I try to open > it in GrADS I get the following message: > > ga-> sdfopen inst3_3d_aer_Nv-201001200048.nc > Scanning self-describing file: inst3_3d_aer_Nv-201001200048.nc > NetCDF: Index exceeds dimension bound > SDF Error: nc_get_vara_double failed to read coordinate axis value > gadsdf: Error reading first time value in SDF file. > ga-> > > How can I download aerosol data so that I can use it with NCEP data ( > http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html)? > > I tried downloading data from > > > http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv > > using the original begin and end time values under time range (January 1 > 2009 3:00 Z) > > and I cannot use this data set with the NCEP data from website : > http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html > > since this data has time steps ending with 0 hours Z instead od 3 hours Z > from the aerosol data. How do I resolve this or at least how where can I > find aerosol/wind data that I can use together? > > Thanks, > > Jason > On Mon, Jan 18, 2010 at 5:35 PM, Jason Snyder wrote: > >> I am trying to download a netcdf file with sulfate aerosol and bin 4 dust >> mixing ratio data from the following website: >> >> >> http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv >> >> I get this error message when I do this: >> The website cannot display the page HTTP 500 >> Most likely causes: >> >> - The website is under maintenance. >> - The website has a programming error. >> >> What you can try: Refresh the page. Go back to the >> previous page. [image: More information] >> The website cannot display the page HTTP 500 >> Most likely causes: >> >> - The website is under maintenance. >> - The website has a programming error. >> >> What you can try: Refresh the page. Go back to the >> previous page. [image: More information] >> I have been trying this several times and still I keep getting this error >> message. >> For the tme steps on the data requested I need to have start on 0 hours >> time wise to be compatible with other data sets. >> >> Can you help me get data from this website or if you have these data files >> already to e-mail them to me? >> >> Thanks, >> >> Jason >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100120/ed78ab94/attachment.html From jmssnyder at UCDAVIS.EDU Wed Jan 20 02:49:54 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Tue, 19 Jan 2010 23:49:54 -0800 Subject: **Aerosol data problems with NASA GMAO GEOS-5** In-Reply-To: <5c658ce11001192345j630f486dg26857bea70a1b1d5@mail.gmail.com> Message-ID: I think bin 1, 2, 3, 4 are particle size bins. the larger the size bin number the smaller the dust particle diameter. On Tue, Jan 19, 2010 at 11:45 PM, hossein lotfi wrote: > Hi Jason > I am realy sorry,I have problem with this website too, > chek this website ( > http://gdata1.sci.gsfc.nasa.gov/daac-bin/G3/gui.cgi?instance_id=MODIS_DAILY_L3) > I think it is useful for you > pleas tell me if it is useful > oh I have a question!! what is (bin 01) (bin 02).... in your first website > that we have problem with it? > > On Wed, Jan 20, 2010 at 5:01 AM, Jason Snyder wrote: > >> I am still having problem with this website: >> >> >> http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv >> I am trying to download data and I need to set up the times so that the >> time steps are every 0 hours (ie January 3 2009 0:00Z, NOT January 3 2009 >> 0:00Z, so I can use it with NCEP wind data also with time times ending on 0 >> hours (ie January 3 2009 0:00Z). I tried to make the start time for the >> data I ordered January 3 2009 0:00 Z(I used many start and end dates >> including March 14 2009, etc.). I get a netcdf file but when I try to open >> it in GrADS I get the following message: >> >> ga-> sdfopen inst3_3d_aer_Nv-201001200048.nc >> Scanning self-describing file: inst3_3d_aer_Nv-201001200048.nc >> NetCDF: Index exceeds dimension bound >> SDF Error: nc_get_vara_double failed to read coordinate axis value >> gadsdf: Error reading first time value in SDF file. >> ga-> >> >> How can I download aerosol data so that I can use it with NCEP data ( >> http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html)? >> >> I tried downloading data from >> >> >> http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv >> >> using the original begin and end time values under time range (January 1 >> 2009 3:00 Z) >> >> and I cannot use this data set with the NCEP data from website : >> http://www.esrl.noaa.gov/psd/data/gridded/data.ncep.reanalysis.html >> >> since this data has time steps ending with 0 hours Z instead od 3 hours Z >> from the aerosol data. How do I resolve this or at least how where can I >> find aerosol/wind data that I can use together? >> >> Thanks, >> >> Jason >> On Mon, Jan 18, 2010 at 5:35 PM, Jason Snyder wrote: >> >>> I am trying to download a netcdf file with sulfate aerosol and bin 4 dust >>> mixing ratio data from the following website: >>> >>> >>> http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv >>> >>> I get this error message when I do this: >>> The website cannot display the page HTTP 500 >>> Most likely causes: >>> >>> - The website is under maintenance. >>> - The website has a programming error. >>> >>> What you can try: Refresh the page. Go back to the >>> previous page. [image: More information] >>> The website cannot display the page HTTP 500 >>> Most likely causes: >>> >>> - The website is under maintenance. >>> - The website has a programming error. >>> >>> What you can try: Refresh the page. Go back to the >>> previous page. [image: More information] >>> I have been trying this several times and still I keep getting this error >>> message. >>> For the tme steps on the data requested I need to have start on 0 hours >>> time wise to be compatible with other data sets. >>> >>> Can you help me get data from this website or if you have these data >>> files already to e-mail them to me? >>> >>> Thanks, >>> >>> Jason >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100119/e22b829b/attachment.html From jmssnyder at UCDAVIS.EDU Wed Jan 20 03:27:28 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Wed, 20 Jan 2010 00:27:28 -0800 Subject: Asian dust aerosol data to be displayed in GrADS Message-ID: I just need to find access to TOMS, MODIS, ACE data which shows dust/sulfate aerosols. I do not care which data set it is. I tried using the GODDARD data and it would not display in GrADS becuase of some time compatibility issue. The website for this is: http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv What other data sets are available. Unfortunately, I am running grads from a Windows based PC and do not have much of any resources to use in which to produce fortran programs for reformatting data sets (I am trying to get linux configured on my computer) so I need to access ready to use data in netcd format. I am trying to display this with NCEP data, which has time steps ending on 0 hours Z, therefore, I need to aerosol data that way. I currently have aerosol data from the above website but unfortunately it ends on 3 hours z. How am I able to modify this file given my computational resources at the moment? Is it possible to do so? Anyway, please help me out with this. Anyway, help would really greatly be appreciated, whether in the form of using the above website, modifying the file I have, or accessing ready to use aerosol files. Again I am trying to examine aerosol files from both Asia and also southern California. Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100120/1fb2d954/attachment.html From dhaval.prajapati at ICCSIR.ORG Wed Jan 20 04:52:01 2010 From: dhaval.prajapati at ICCSIR.ORG (Dhaval Prajapati) Date: Wed, 20 Jan 2010 09:52:01 +0000 Subject: Grads Function error Message-ID: Dear All, I am working with EOF analysis scrit in grads when I run it it give following error. How to solve this error?? ga-> open test1.ctl Scanning description file: test1.ctl Data file July_Mag_GT_1SD_LE_2SD.out is open as file 1 LON set to 66.5 100.5 LAT set to 6.5 38.5 LEV set to 1 1 Time values set: 1951:1:1:0 1951:1:1:0 ga-> set lat 6.5 38.5 LAT set to 6.5 38.5 ga-> set lon 66.5 100.5 LON set to 66.5 100.5 ga-> set t 1 57 Time values set: 1951:1:1:0 2007:1:1:0 ga-> eof rf Writing data to transfer file... Executing eofudf binary ... Syntax Error: Invalid Operand 'eofudf' not a variable or function name Error ocurred at column 1 DISPLAY error: Invalid expression Expression = eofudf(rf,57,12,-1,70,rf_) eof.gs: First call of eofudf returned Error. STOP 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/20100120/cd1fa336/attachment.html From ss612 at CAM.AC.UK Wed Jan 20 04:53:17 2010 From: ss612 at CAM.AC.UK (Shital Shirsat) Date: Wed, 20 Jan 2010 09:53:17 +0000 Subject: unsubscribe Message-ID: -- Shital.Shirsat Doctoral researcher, Department of Geography, University of Cambridge, Cambridge - CB2 3EN, UK http://www.geog.cam.ac.uk/people/shirsat/ From peter.r.colarco at NASA.GOV Wed Jan 20 10:15:54 2010 From: peter.r.colarco at NASA.GOV (Colarco, Peter R. (GSFC-6133)) Date: Wed, 20 Jan 2010 09:15:54 -0600 Subject: Asian dust aerosol data to be displayed in GrADS In-Reply-To: Message-ID: Jason- I agree the website you are pointing to seems not to be behaving properly. That's being look at. But I'm confused about what you want. This web site points to output from a chemical transport model. Although we try to make our simulations as realistic as possible, it is not the same as real "data" from a satellite or other observing system. If (as you seem to indicate) you're looking for satellite data (TOMS, MODIS, etc.) I would suggest you start with the Giovanni web site: http://daac.gsfc.nasa.gov/giovanni/ They provide downloadable, Grads read (I think) files of a number of satellite data sets. Pete On Jan 20, 2010, at 3:27 AM, Jason Snyder wrote: I just need to find access to TOMS, MODIS, ACE data which shows dust/sulfate aerosols. I do not care which data set it is. I tried using the GODDARD data and it would not display in GrADS becuase of some time compatibility issue. The website for this is: http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv What other data sets are available. Unfortunately, I am running grads from a Windows based PC and do not have much of any resources to use in which to produce fortran programs for reformatting data sets (I am trying to get linux configured on my computer) so I need to access ready to use data in netcd format. I am trying to display this with NCEP data, which has time steps ending on 0 hours Z, therefore, I need to aerosol data that way. I currently have aerosol data from the above website but unfortunately it ends on 3 hours z. How am I able to modify this file given my computational resources at the moment? Is it possible to do so? Anyway, please help me out with this. Anyway, help would really greatly be appreciated, whether in the form of using the above website, modifying the file I have, or accessing ready to use aerosol files. Again I am trying to examine aerosol files from both Asia and also southern California. Thanks, Jason -------------------------------------------------------------------- Peter Colarco NASA GSFC Code 613.3 NASA Goddard Space Flight Center Greenbelt, MD 20771 301.614.6382 (ph) 301.614.5903 (fax) peter.r.colarco at nasa.gov http://hyperion.gsfc.nasa.gov/People/Colarco -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100120/71f1220c/attachment.html From Chris.Lynnes at NASA.GOV Wed Jan 20 10:22:34 2010 From: Chris.Lynnes at NASA.GOV (Christopher Lynnes) Date: Wed, 20 Jan 2010 10:22:34 -0500 Subject: Asian dust aerosol data to be displayed in GrADS In-Reply-To: Message-ID: On Jan 20, 2010, at 3:27 AM, Jason Snyder wrote: > I just need to find access to TOMS, MODIS, ACE data which shows dust/ > sulfate aerosols. I do not care which data set it is. I tried > using the GODDARD data and it would not display in GrADS becuase of > some time compatibility issue. The website for this is: > > http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv > Jason, I can't speak to the portal.nccs.nasa.gov site, but there is another Goddard site, called Giovanni, that has *some* of the data you seem to be looking for. That site is at: http://giovanni.gsfc.nasa.gov Giovanni has a number of different portals or "instances" as we call them. I suggest you start with the Aerosol Daily instance: http://gdata1.sci.gsfc.nasa.gov/daac-bin/G3/gui.cgi?instance_id=aerosol_daily which includes MODIS Daily, OMI Daily, MISR Daily and GOCART models. GOCART includes specific parameters for dust and sulfate, but our holdings only go up to 2007. We have TOMS data in the TOMS instance, but it only goes up to 2005. However, there are more recent aerosols from the follow-on OMI instrument. There is also MISR data. We do not have any ACE data, however. To obtain data downloads for GrADS, select the "Lat-Lon map Time- averaged" Visualization. If you want daily files, you will have to do this with single-day time slices in the Temporal window. Run "Generate Visualization". In the results screen, you will see a Download Data tab. Click on that to see the Download Data screen. Then click the NCD box in the Two Dimensional Map Plot section, then click Download in Batch. (Due to a bug, you have to use Download in Batch, even if you only want one file). This will give you a tar file of NetCDF files that are readable in GrADS using the sdfopen command. (However, they do not include a time coordinate so you will have set that yourself to compare with other datasets.) Here is a an example of sdfopen on a Giovanni-downloaded data file. ga-> sdfopen MOD08_D3 .A2009003.005.2009011045601 .pscs_000500347353.Optical_Depth_Land_And_Ocean_Mean.G3.gridSubsetter.nc Scanning self-describing file: MOD08_D3 .A2009003.005.2009011045601 .pscs_000500347353.Optical_Depth_Land_And_Ocean_Mean.G3.gridSubsetter.nc SDF file has no discernable time coordinate -- using default values. SDF file MOD08_D3 .A2009003.005.2009011045601 .pscs_000500347353 .Optical_Depth_Land_And_Ocean_Mean.G3.gridSubsetter.nc is open as file 1 LON set to 83.5 140.5 LAT set to 16.5 48.5 LEV set to 0 0 Time values set: 1:1:1:0 1:1:1:0 E set to 1 1 ga-> q file 1 File 1 : Descriptor: MOD08_D3 .A2009003.005.2009011045601 .pscs_000500347353.Optical_Depth_Land_And_Ocean_Mean.G3.gridSubsetter.nc Binary: MOD08_D3 .A2009003.005.2009011045601 .pscs_000500347353.Optical_Depth_Land_And_Ocean_Mean.G3.gridSubsetter.nc Type = Gridded Xsize = 58 Ysize = 33 Zsize = 1 Tsize = 1 Esize = 1 Number of Variables = 1 optical_depth_l 0 y,x Aerosol Optical Thickness at 0.55 microns for both Ocean (best) and Land (corrected): Mean ga-> set gxout shaded ga-> d optical_depth_lContouring: 0 to 3.5 interval 0.5 CAUTION: Please be careful about comparing aerosol parameters with each other or with models. Sometimes two apparently similar parameters measure very different things (e.g., AOD vs. UV Aerosol Index), or measure them at different times during the day, which can produce a significant sampling bias. > > What other data sets are available. Unfortunately, I am running > grads from a Windows based PC and do not have much of any resources > to use in which to produce fortran programs for reformatting data > sets (I am trying to get linux configured on my computer) so I need > to access ready to use data in netcd format. I am trying to display > this with NCEP data, which has time steps ending on 0 hours Z, > therefore, I need to aerosol data that way. I currently have > aerosol data from the above website but unfortunately it ends on 3 > hours z. How am I able to modify this file given my computational > resources at the moment? Is it possible to do so? Anyway, please > help me out with this. Anyway, help would really greatly be > appreciated, whether in the form of using the above website, > modifying the file I have, or accessing ready to use aerosol files. > Again I am trying to examine aerosol files from both Asia and also > southern California. > > Thanks, > > Jason > -- Christopher Lynnes NASA/GSFC, Code 610.2 301-614-5185 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100120/51116afe/attachment.html From dasilva at ALUM.MIT.EDU Wed Jan 20 19:51:42 2010 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Wed, 20 Jan 2010 19:51:42 -0500 Subject: Develop new capability for GRADS: Save animated gifs. In-Reply-To: <79ba4a7f1001201317t4b9a4abwf6889b72516d6d97@mail.gmail.com> Message-ID: Alex. I am not quite sure what you are suggesting. Are you talking about an on-line or off-line capability? In either case, this can be achieved rather easily with imagemagick's convert utility. For example, if you have a metafile with multiple frames, gxyat will create a series of PNG image files: % gxyat -o frame-%02d.png frames.gx Creating animated GIF can be accomplished with something like: % convert -adjoin -o frames.gif frame-*.png Of course, the individual image flles would be better created inside grads with gxyat or printim. Arlindo On Wed, Jan 20, 2010 at 4:17 PM, Alex Fierro wrote: > HI Arlindo: > > As you remember as long time ago I argued/proposed that saving data into > TXT file would be quite useful, which has been done successfully after many > other users did request it as well. > > Another, I believe, quite useful capability that is sadly not present in > GRADS is the ability to SAVE Animated GIF files produced by grads using > gxgif. It is easy to loop over time but impossible to SAVE the resulting > animation with a single command in GRADS. > > Any plans of including this function soon ? For modelers like us, this > would be a *very* welcome capability. This new command, like gxgif, could > include flags for the x and y resolution which would allow users to reduce > the usually large size of the animations (although gifs are usually small) > > Cheers and let me know what you think, > > Alex- > > -- > ------------------------------------------------------------- > > Alexandre Fierro, PhD > Post-Doctoral Fellow-Research Associate/ > Los Alamos National Laboratory, Los Alamos, NM (LANL) > Computational Atmospheric/Fluid Dynamics - EES-16 > MS D 401, Los Alamos, NM 87545 > Phone: 505-664-0303 > E-mail: alexfierro at lanl.gov > > "Yesterday is History, Tomorrow is a Mystery and Today is a Gift; That is > why it is called the Present" > > "There are only 10 types of people in the world: > Those who understand binary, and those who don't" > > "My opinions are my own and not representative of OU, NSSL, > AOML, HRD, LANL or any affiliates." > ^.^ > (o o) > /( V )\ > ---m---m---- > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100120/40a64cbe/attachment.html From krishmet at GMAIL.COM Wed Jan 20 23:18:51 2010 From: krishmet at GMAIL.COM (krishnamohan) Date: Thu, 21 Jan 2010 09:48:51 +0530 Subject: Grads Function error In-Reply-To: Message-ID: hai Dhaval, Please check your eof installation properly. In grads type 'q udft', then it will give the list of user defined functions on it. If it is not the problem, then check for the library file which they have provided. We have already posted the detailed step by step installation procedure for installing eof in linux. i am posting it again ************************************************************************************************************* if you are using linux 32bit OS download PC(i386) Linux (32bit) from http://www.atmos.ucla.edu/~munnich/Grads/EOF/ open teminal then gedit .bashrc (your bash file) your gradspath(where grads is installed) may be (eg: /home/alice/grads ) export GRADS="/home/your_home/grads" export GADDIR="/home/your_home/grads/data" export GASCRP="/home/your_home/grads/lib" PATH=${PATH}:$GRADS/bin put the following line export GAUDFT="/home/your_home/grads/udft.txt" then it will become export GRADS="/home/your_home/grads" export GADDIR="/home/your_home/grads/data" export GASCRP="/home/your_home/grads/lib" export GAUDFT="/home/your_home/grads/udft.txt" PATH=${PATH}:$GRADS/bin before the last line ( that is PATH=${PATH}:$GRADS/bin) save and exit bashrc then copy the eofudf file from the extracted directory to your grads folder. then create a blank file called udft.txt inside your grads folder. then add the following lines to it eofudf 2 6 expr value value value value char sequential /your/path/to/eofudf <-- Your path to the eofudf executable eofudf.in eofudf.out here set the /your/path/to/eofudf as /home/your_home/grads/eofudf (where you have copied eofudf) then it will become excatly in format(dont change the order) eofudf 2 6 expr value value value value char sequential /home/your_home/grads/eofudf eofudf.in eofudf.out then as root copy the library file libcxa.so.3 to /usr/lib from treminal from the extracted folder (ie: cp libcxa,s0.3 /usr/lib) go to /usr/lib and change its permission with chmod (ie chmod 777 libcxa.so.3) now exit from root either open a new terminal otherwise in current terminal give command: source /home/your_home/.bashrc now open grads and open your data. then type command: q udft if it is properly installed it will give somthing like eofudf Args: 2 6 Exec: /home/your_home/grads/eofudf done........................... now set you time (eg: set t 1 20) set your lat and lon then type eof your_variable it will display and create some output files as ctl and data files. ********************************************************************************************************** Please check that everything is ok. Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology Cochin,India On Wed, Jan 20, 2010 at 3:22 PM, Dhaval Prajapati < dhaval.prajapati at iccsir.org> wrote: > Dear All, > > I am working with EOF analysis scrit in grads when I run > it it give following error. How to solve this error?? > > ga-> open test1.ctl > Scanning description file: test1.ctl > Data file July_Mag_GT_1SD_LE_2SD.out is open as file 1 > LON set to 66.5 100.5 > LAT set to 6.5 38.5 > LEV set to 1 1 > Time values set: 1951:1:1:0 1951:1:1:0 > ga-> set lat 6.5 38.5 > LAT set to 6.5 38.5 > ga-> set lon 66.5 100.5 > LON set to 66.5 100.5 > ga-> set t 1 57 > Time values set: 1951:1:1:0 2007:1:1:0 > ga-> eof rf > Writing data to transfer file... > Executing eofudf binary ... > > Syntax Error: Invalid Operand > 'eofudf' not a variable or function name > Error ocurred at column 1 > DISPLAY error: Invalid expression > Expression = eofudf(rf,57,12,-1,70,rf_) > eof.gs: First call of eofudf returned Error. STOP > > > > 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/20100121/5dccc842/attachment.html From mmahakur at TROPMET.RES.IN Thu Jan 21 01:30:59 2010 From: mmahakur at TROPMET.RES.IN (M.Mahakur) Date: Thu, 21 Jan 2010 12:00:59 +0530 Subject: Logic error 8 in gxshad In-Reply-To: <58E172B9-293D-45EF-81D3-4618CED1FCEA@cola.iges.org> Message-ID: Respected Brian, Thank you. I was able to display using grfill also as contours. Values at certain grids are noisy, sometimes over an enntire lat. But, without NaN. There are problems with the data. With Best Regards, Mahakur ---------- Original Message ----------- From: Brian Doty To: GRADSUSR at list.cineca.it Sent: Tue, 19 Jan 2010 12:18:41 -0500 Subject: Re: Logic error 8 in gxshad > Usually due to invalid numbers (ie, IEEE NAN values). > > Try looking at the data using "gxout grid" to see what the actual data > values are. > > On Jan 17, 2010, at 11:26 AM, M.Mahakur wrote: > > > Respected All, > > > > I gets the following error while displaying (both versions: 1.9 and > > 2.0). What could be > > the region? > > > > ga-> d var > > Contouring: 100 to 320 interval 20 > > Logic error 8 in gxshad > > Error in gxshad > > ga-> > > > > With Regards, > > > > Mahakur > > ------- End of Original Message ------- From jmssnyder at UCDAVIS.EDU Thu Jan 21 02:43:27 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Wed, 20 Jan 2010 23:43:27 -0800 Subject: Time Settings for Data Message-ID: I have a data set with time signatures so that at time 1 (when I enter set t 1) for example the date is January 1 2009 3:00z. There is another data set that I want to use with this data set with time signatures so that at time 1,(when I enter set t 1) the date is January 1 2009 0:00 z. How am I able to use the two data sets together in calculations when each has time steps starting on different hours Z (3:00 z versus 0:00 z)? Or how do I correct the time on the first data set where each time step begins on 3:00 z? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100120/feb0bda9/attachment.html From littaaj at REDIFFMAIL.COM Thu Jan 21 05:34:32 2010 From: littaaj at REDIFFMAIL.COM (Litta AJ) Date: Thu, 21 Jan 2010 10:34:32 -0000 Subject: grib2ctl.pl problem Message-ID: Hi, I have got half hourly output files for 24 hours by running wrf post processor(WPP). The following are the examples.. WRFPRS_d01.000_00, WRFPRS_d01.000_30, WRFPRS_d01.000_30WRFPRS_d01.001_30, ....., WRFPRS_d01.023_00, WRFPRS_d01.023_30, WRFPRS_d01.024_00. I have created .ctl files by using grib2ctl.pl For that, i have made a concatenated file by cat command. then grib2ctl.pl and gribmap cat WRFPRS_d01.000_00, WRFPRS_d01.000_30, ....., WRFPRS_d01.023_30, WRFPRS_d01.024_00 > wrfprs_d01 grib2ctl.pl -verf wrfprs_d01 > wrfprs_d01.ctl gribmap -i wrfprs_d01.ctl But i am not getting the half hourly output. It is producing hourly output. I have changed the time definition of wrfprs_d01.ctl file from tdef 25 linear 00Z11may2009 1hr to tdef 49 linear 00Z11may2009 30 mn Then also i didn't get the output... How can we plot the half hourly outputs through grads using grib2ctl.pl? Please help with best regards, Litta Ms. Litta A. J. Project Scientist Centre for Atmospheric Sciences Indian Institute of Technology (IIT) Hauz Khas New Delhi - 110016 Ph: 09891717507 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/14fec006/attachment.html From javier.p at EREDA.COM Thu Jan 21 05:48:26 2010 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Thu, 21 Jan 2010 11:48:26 +0100 Subject: How join severals NetCDF files in one file NetCDF Message-ID: Hello all: I need to join several NetCDF in a single file NetCDF. Is it possible in PCGrads for windows? How can I do it? Thank you very much. -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/1f7ad0b2/attachment.html From Rodney.Teck at NUIM.IE Thu Jan 21 06:08:33 2010 From: Rodney.Teck at NUIM.IE (Rodney Teck) Date: Thu, 21 Jan 2010 11:08:33 +0000 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001210248g415d1c72h8c6d45595bc9f6d6@mail.gmail.com> Message-ID: Download CDO (climate data operators version 1.3.0) it will do all you require and more. On Thu, 2010-01-21 at 10:48, Javier Pe?a wrote: > Hello all: > > I need to join several NetCDF in a single file NetCDF. Is it possible > in PCGrads for windows? How can I do it? > > Thank you very much. > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com -- Dr.Rodney Teck ICARUS Climatic Research Unit Laraghbryan House NUI Maynooth Co Kildare Ireland tel: ++353 (1)7083769 email: rodney.teck at nuim.ie http://icarus.nuim.ie From mitchell at ATMOS.WASHINGTON.EDU Thu Jan 21 12:38:27 2010 From: mitchell at ATMOS.WASHINGTON.EDU (Todd MItchell) Date: Thu, 21 Jan 2010 09:38:27 -0800 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001210248g415d1c72h8c6d45595bc9f6d6@mail.gmail.com> Message-ID: Hi Javier, Thursday 21 January 2010 One can do this with a set of command line utilities callled NetCDF operators (NCOs). They are extremely powerful and you should know about them. Appending variables and files with the same variable for different times are described at http://jisao.washington.edu/data/nco/ Todd Mitchell Javier Pe?a wrote: > Hello all: > > I need to join several NetCDF in a single file NetCDF. Is it possible > in PCGrads for windows? How can I do it? > > Thank you very much. > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com -- Joint Institute for the Study of the Atmosphere and Ocean (JISAO) University of Washington; Box 355672, Seattle WA 98195-5672 Phone: 206 685 3786; Fax: 206 685 3397; jisao.washington.edu Street Address: 3737 Brooklyn Ave. NE, Seattle WA 98105 From eliavs at GMAIL.COM Thu Jan 21 14:07:27 2010 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Thu, 21 Jan 2010 21:07:27 +0200 Subject: Time Settings for Data In-Reply-To: Message-ID: jason you can use the unix uitility date to convert the date in to a number i did that once i will look for the code i wrote good luck eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/f9a20793/attachment.html From eliavs at GMAIL.COM Thu Jan 21 14:10:28 2010 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Thu, 21 Jan 2010 21:10:28 +0200 Subject: Time Settings for Data In-Reply-To: <128fb9ed1001211107v67363fc7p90635d1ef708d1d9@mail.gmail.com> Message-ID: On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz wrote: > > Jason > Hi again i found the old script i wrote here is the part that turns string date to number: ' '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 -d 'date' +%m >> date.txt' a=read('date.txt') month1=sublin(a,2) ' > eliav > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/d9fdd76a/attachment.html From peter.r.colarco at NASA.GOV Thu Jan 21 14:16:02 2010 From: peter.r.colarco at NASA.GOV (Colarco, Peter R. (GSFC-6133)) Date: Thu, 21 Jan 2010 13:16:02 -0600 Subject: Time Settings for Data In-Reply-To: Message-ID: Jason- You can achieve the desired result by writing a control file (sometimes called a data descriptor file) to redefine the times on one set of files to match the times on the other set. For example, the contents of the data descriptor file might look like DSET filename_template.%y4%m2%d2.nc4 OPTIONS template TDEF time 8 linear 0z1jan2009 3hr where in my example filename_template.%y4%m2%d2.nc4 is the path and filename template describing the dataset you wish to modify and I assume you are dealing a total of 8 times spaced 3 hours apart in time. You'd need to edit that DSET line to look like the particular filenames you're working with, obviously. See the documentation for data descriptor files: http://www.iges.org/grads/gadoc/descriptorfile.html and look especially at the link for "Using Templates". Then you can xdfopen the data descriptor file to work with that data set and open the other file set as before. Pete On Jan 21, 2010, at 2:43 AM, Jason Snyder wrote: I have a data set with time signatures so that at time 1 (when I enter set t 1) for example the date is January 1 2009 3:00z. There is another data set that I want to use with this data set with time signatures so that at time 1,(when I enter set t 1) the date is January 1 2009 0:00 z. How am I able to use the two data sets together in calculations when each has time steps starting on different hours Z (3:00 z versus 0:00 z)? Or how do I correct the time on the first data set where each time step begins on 3:00 z? Thanks, Jason -------------------------------------------------------------------- Peter Colarco NASA GSFC Code 613.3 NASA Goddard Space Flight Center Greenbelt, MD 20771 301.614.6382 (ph) 301.614.5903 (fax) peter.r.colarco at nasa.gov http://hyperion.gsfc.nasa.gov/People/Colarco -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/f2898326/attachment.html From rmcaffera at YAHOO.COM Thu Jan 21 14:22:39 2010 From: rmcaffera at YAHOO.COM (Mario Caffera) Date: Thu, 21 Jan 2010 11:22:39 -0800 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001210248g415d1c72h8c6d45595bc9f6d6@mail.gmail.com> Message-ID: Hi Javier Pe?a, I never found how to do this in this Operative System. So I install an ubuntu linux OS in addition in my PC. Then, I install both grads and the NCO device . By means of this, I join together several .nc files in only one. And most of the time I return to Windows in order to continue with the job en Grads. Maybe there is another solution. If it is the case please forward me a better answer that this one. hasta pronto mario caffera --- On Thu, 1/21/10, Javier Pe?a wrote: > From: Javier Pe?a > Subject: How join severals NetCDF files in one file NetCDF > To: GRADSUSR at LIST.CINECA.IT > Date: Thursday, January 21, 2010, 8:48 AM > Hello all: > ? > I need to join several NetCDF in a single file NetCDF. > Is it possible in PCGrads for windows? How can I do > it? > ? > Thank you very much. > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > ? ? ? ? ? ? ? ? ? ? ? ? ? ?Tel: ?+34 91 > 5014755 > ? ? ? ? ? ? ? ? ? ? ? ? ? ?Fax: +34 91 > 5014756 > > ? ? ? ? ? ? ? ? ?c/ T?llez 26, 28007 MADRID > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?www.ereda.com > > From jmssnyder at UCDAVIS.EDU Thu Jan 21 15:06:34 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Thu, 21 Jan 2010 12:06:34 -0800 Subject: Time Settings for Data In-Reply-To: <128fb9ed1001211110t2a4dc9d2n7fad5ec109cec06e@mail.gmail.com> Message-ID: I tried the script but how do I get it to turn the date to a number? I ran this script and it does not seem to do anything except create the text file date.txt, which shows the date as December 31 2008 0 hours. when I enter ga-'>set t 1 I still get the date Time values set: 2009:1:1:3 2009:1:1:3, where I would like it to be Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf file has. Nothing has really changed in terms of the time settings when I used this script. How do I use it? Do I have to run it on both .nc files I want to use and then I can use them together? Let me know. Thank, Jason On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz wrote: > > > On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz wrote: > >> >> Jason >> > Hi again > i found the old script i wrote here is the part that turns string date to > number: > ' > '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 -d 'date' +%m >> date.txt' > a=read('date.txt') > month1=sublin(a,2) > ' > >> eliav >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/edb00ee2/attachment.html From jdduda at IASTATE.EDU Thu Jan 21 15:12:54 2010 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Thu, 21 Jan 2010 14:12:54 -0600 Subject: Time Settings for Data In-Reply-To: Message-ID: Jason, Have you tried simply changing the TDEF line in the .ctl file to the time you want? Jeff Duda On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder wrote: > I tried the script but how do I get it to turn the date to a number? I ran > this script and it does not seem to do anything except create the text file > date.txt, which shows the date as December 31 2008 0 hours. when I enter > ga-'>set t 1 > > I still get the date > Time values set: 2009:1:1:3 2009:1:1:3, > > where I would like it to be > > Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf > file has. > > > Nothing has really changed in terms of the time settings when I used this > script. How do I use it? Do I have to run it on both .nc files I want to > use and then I can use them together? > > Let me know. > > Thank, > > Jason > > > On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz wrote: > >> >> >> On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz wrote: >> >>> >>> Jason >>> >> Hi again >> i found the old script i wrote here is the part that turns string date to >> number: >> ' >> '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 -d 'date' +%m >> date.txt' >> a=read('date.txt') >> month1=sublin(a,2) >> ' >> >>> eliav >>> >> >> > -- 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/20100121/b01216d9/attachment.html From jdduda at IASTATE.EDU Thu Jan 21 15:15:59 2010 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Thu, 21 Jan 2010 14:15:59 -0600 Subject: Time Settings for Data In-Reply-To: Message-ID: I tried it out on one of my own .ctl files and it worked just fine. Realize that you won't be able to plot data outside the time range of the initial data, but it syncs up the times just fine. On Thu, Jan 21, 2010 at 2:12 PM, Jeffrey Duda wrote: > > Jason, > > Have you tried simply changing the TDEF line in the .ctl file to the time > you want? > > Jeff Duda > > > On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder wrote: > >> I tried the script but how do I get it to turn the date to a number? I >> ran this script and it does not seem to do anything except create the text >> file date.txt, which shows the date as December 31 2008 0 hours. when I >> enter >> ga-'>set t 1 >> >> I still get the date >> Time values set: 2009:1:1:3 2009:1:1:3, >> >> where I would like it to be >> >> Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf >> file has. >> >> >> Nothing has really changed in terms of the time settings when I used this >> script. How do I use it? Do I have to run it on both .nc files I want to >> use and then I can use them together? >> >> Let me know. >> >> Thank, >> >> Jason >> >> >> On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz wrote: >> >>> >>> >>> On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz wrote: >>> >>>> >>>> Jason >>>> >>> Hi again >>> i found the old script i wrote here is the part that turns string date to >>> number: >>> ' >>> '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 -d 'date' +%m >> date.txt' >>> a=read('date.txt') >>> month1=sublin(a,2) >>> ' >>> >>>> eliav >>>> >>> >>> >> > > > -- > 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/20100121/622bd59d/attachment.html From jmssnyder at UCDAVIS.EDU Thu Jan 21 15:21:26 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Thu, 21 Jan 2010 12:21:26 -0800 Subject: Time Settings for Data In-Reply-To: Message-ID: I cannot find a .ctl file for this data set. I got it from the following website: http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv I tried changing the hours from 3 to 0 there but I got buggy files that do not open in GrADS. I could not find a control file. Can I make one and redefine TDEF? If so how? On Thu, Jan 21, 2010 at 12:15 PM, Jeffrey Duda wrote: > I tried it out on one of my own .ctl files and it worked just fine. > Realize that you won't be able to plot data outside the time range of the > initial data, but it syncs up the times just fine. > > > On Thu, Jan 21, 2010 at 2:12 PM, Jeffrey Duda wrote: > >> >> Jason, >> >> Have you tried simply changing the TDEF line in the .ctl file to the time >> you want? >> >> Jeff Duda >> >> >> On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder wrote: >> >>> I tried the script but how do I get it to turn the date to a number? I >>> ran this script and it does not seem to do anything except create the text >>> file date.txt, which shows the date as December 31 2008 0 hours. when I >>> enter >>> ga-'>set t 1 >>> >>> I still get the date >>> Time values set: 2009:1:1:3 2009:1:1:3, >>> >>> where I would like it to be >>> >>> Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf >>> file has. >>> >>> >>> Nothing has really changed in terms of the time settings when I used this >>> script. How do I use it? Do I have to run it on both .nc files I want to >>> use and then I can use them together? >>> >>> Let me know. >>> >>> Thank, >>> >>> Jason >>> >>> >>> On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz wrote: >>> >>>> >>>> >>>> On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz wrote: >>>> >>>>> >>>>> Jason >>>>> >>>> Hi again >>>> i found the old script i wrote here is the part that turns string date >>>> to number: >>>> ' >>>> '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 -d 'date' +%m >> date.txt' >>>> a=read('date.txt') >>>> month1=sublin(a,2) >>>> ' >>>> >>>>> eliav >>>>> >>>> >>>> >>> >> >> >> -- >> 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/20100121/f3a059ac/attachment.html From jdduda at IASTATE.EDU Thu Jan 21 15:27:35 2010 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Thu, 21 Jan 2010 14:27:35 -0600 Subject: Time Settings for Data In-Reply-To: Message-ID: Jason, Download the data either in netCDF or GRIB format. If you download into netCDF you can either run the WRF Post Processor or ARW Post on it to get a .ctl file. If you download it as GRIB data, then just run grib2ctl.pl on it (i.e., ./grib2ctl.pl (GRIB file) > (name of .ctl file you want to make). Then adjust the times in the TDEF line of the file, then save it and run gribmap -e -i (.ctl file). That will create a .idx file that will allow you to view the contents of the GRIB file in Grads. Feel free to send me a message individually if you have more questions on this. Hopefully this helps. Jeff Duda On Thu, Jan 21, 2010 at 2:21 PM, Jason Snyder wrote: > I cannot find a .ctl file for this data set. I got it from the following > website: > > > http://portal.nccs.nasa.gov/cgi-lats4d/webform.cgi?&i=GEOS-5/yotc/0.25_deg/assim/inst3_3d_aer_Nv > > I tried changing the hours from 3 to 0 there but I got buggy files that do > not open in GrADS. I could not find a control file. Can I make one and > redefine TDEF? If so how? > > On Thu, Jan 21, 2010 at 12:15 PM, Jeffrey Duda wrote: > >> I tried it out on one of my own .ctl files and it worked just fine. >> Realize that you won't be able to plot data outside the time range of the >> initial data, but it syncs up the times just fine. >> >> >> On Thu, Jan 21, 2010 at 2:12 PM, Jeffrey Duda wrote: >> >>> >>> Jason, >>> >>> Have you tried simply changing the TDEF line in the .ctl file to the time >>> you want? >>> >>> Jeff Duda >>> >>> >>> On Thu, Jan 21, 2010 at 2:06 PM, Jason Snyder wrote: >>> >>>> I tried the script but how do I get it to turn the date to a number? I >>>> ran this script and it does not seem to do anything except create the text >>>> file date.txt, which shows the date as December 31 2008 0 hours. when I >>>> enter >>>> ga-'>set t 1 >>>> >>>> I still get the date >>>> Time values set: 2009:1:1:3 2009:1:1:3, >>>> >>>> where I would like it to be >>>> >>>> Time values set: 2009:1:1:0 2009:1:1:0., which is what the other netcdf >>>> file has. >>>> >>>> >>>> Nothing has really changed in terms of the time settings when I used >>>> this script. How do I use it? Do I have to run it on both .nc files I want >>>> to use and then I can use them together? >>>> >>>> Let me know. >>>> >>>> Thank, >>>> >>>> Jason >>>> >>>> >>>> On Thu, Jan 21, 2010 at 11:10 AM, eliav schmulewitz wrote: >>>> >>>>> >>>>> >>>>> On Thu, Jan 21, 2010 at 9:07 PM, eliav schmulewitz wrote: >>>>> >>>>>> >>>>>> Jason >>>>>> >>>>> Hi again >>>>> i found the old script i wrote here is the part that turns string date >>>>> to number: >>>>> ' >>>>> '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 -d 'date' +%m >> date.txt' >>>>> a=read('date.txt') >>>>> month1=sublin(a,2) >>>>> ' >>>>> >>>>>> eliav >>>>>> >>>>> >>>>> >>>> >>> >>> >>> -- >>> 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 >> > > -- 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/20100121/69d8e2aa/attachment.html From Chi.Nguyen at SCI.MONASH.EDU.AU Thu Jan 21 15:42:14 2010 From: Chi.Nguyen at SCI.MONASH.EDU.AU (Chi Mai Nguyen) Date: Fri, 22 Jan 2010 07:42:14 +1100 Subject: Gxout stat Message-ID: Hi All, I think I have some suspicion with Grads's output in 'gxout stat' mode. I use version v1.9b4 32-bit. Sometimes it gives standard deviation equal 0 exactly, which is not right. For example, the output may look like this (please see the last two lines): Data Type = grid Dimensions = 1 -1 I Dimension = 1 to 49 Linear 17.5 0.0499992 J Dimension = -999 to -999 Sizes = 49 1 49 Undef value = 9.96921e+36 Undef count = 0 Valid count = 49 Min, Max = 302.61 303.098 Cmin, cmax, cint = 302.55 303.15 0.05 Stats[sum,sumsqr,root(sumsqr),n]: 14844.4 4.49706e+06 2120.63 49 Stats[(sum,sumsqr,root(sumsqr))/n]: 302.947 91776.8 302.947 Stats[(sum,sumsqr,root(sumsqr))/(n-1)]: 309.258 93688.8 306.086 Stats[(sigma,var)(n)]: 0 0 Stats[(sigma,var)(n-1)]: 0 0 Could anyone give me an explanation for that? Thank you very much! Mai -- ********************************* Nguyen Chi Mai School of Mathematical Sciences Rm 225, Bld. 28, Clayton Campus Monash University Work Ph. +61 3 9905 4458 www.maths.monash.edu.au/~cmnguyen From andfried at BERKELEY.EDU Thu Jan 21 15:56:57 2010 From: andfried at BERKELEY.EDU (Andrew Friedman) Date: Thu, 21 Jan 2010 12:56:57 -0800 Subject: filtering data Message-ID: Hi GrADS users, Are there any resources about applying different filters (such as Gaussian or triangular) to 1-D data in GrADS? Thanks, Andrew ---------------------------------------------------- Andrew Friedman Geography Department, UC Berkeley andfried at berkeley.edu 510.295.8056 From jmssnyder at UCDAVIS.EDU Thu Jan 21 16:44:32 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Thu, 21 Jan 2010 13:44:32 -0800 Subject: Resolving incompatible grid issues between 2 files Message-ID: I am trying to graph 2 variables from different netcdf files together in a calculation (i.e. sulfure * zonal wind) however when I open both netcdf files and try multiplying variables from both data sets I get the following message: *Operation error: Incompatible grids* * Dimension ranges aren't equivalent* * Dimension equals 0* * 1st grid range = -119 25 2nd 1 1080* * Error occurred at column 13* *DiISPLAY error: Invalid expression* * Expression = uln.2*sulfur* ** The first data set sulfur has the following dimensions lon -180 180, lat -90 90, while the second data set has the following dimensions lon 120 255, lat -5 90. How can I resolve this problem so that I can graph both these files together and perform computations using both files? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/332e9561/attachment.html From pietrowicz at ZEDXINC.COM Thu Jan 21 16:58:39 2010 From: pietrowicz at ZEDXINC.COM (Joe Pietrowicz) Date: Thu, 21 Jan 2010 16:58:39 -0500 Subject: Resolving incompatible grid issues between 2 files In-Reply-To: Message-ID: Jason, You need to set the lat and lon extends to cover the same area, like lon set 120 to 180 and lat set to -30 to 30 on both data sets. If the grid resolution is the same on both grids, then you are in luck. Otherwise you need to use a UDF like 'regrid2' or if you are using the latest version of 'opengrads' it is built in with the 're' command. You will need to do some research on how to use it. Best of luck, Joe Pietrowicz,Ph.D. ----- Original Message ----- From: "Jason Snyder" To: GRADSUSR at LIST.CINECA.IT Sent: Thursday, January 21, 2010 4:44:32 PM GMT -05:00 US/Canada Eastern Subject: Resolving incompatible grid issues between 2 files I am trying to graph 2 variables from different netcdf files together in a calculation (i.e. sulfure * zonal wind) however when I open both netcdf files and try multiplying variables from both data sets I get the following message: Operation error: Incompatible grids Dimension ranges aren't equivalent Dimension equals 0 1st grid range = -119 25 2nd 1 1080 Error occurred at column 13 DiISPLAY error: Invalid expression Expression = uln.2*sulfur The first data set sulfur has the following dimensions lon -180 180, lat -90 90, while the second data set has the following dimensions lon 120 255, lat -5 90. How can I resolve this problem so that I can graph both these files together and perform computations using both files? Thanks, Jason From arocha at FIS.UA.PT Thu Jan 21 17:36:16 2010 From: arocha at FIS.UA.PT (Alfredo Rocha) Date: Thu, 21 Jan 2010 23:36:16 +0100 Subject: wrfpost, GrADS andTemplating 'idx' grib files Message-ID: Hi, I ran the script run_wrfpost with a WRF output file with N time frames and I get, for each time frame, a 'grib', 'ctl' and 'idx' files. Is there a way of using GrADS templating for the 'idx' files (index ^wrfprs_d01.%ch.idx) in the same way as for GrADS type files (dset ^dados.% ch.dat)? I just want to open a sigle 'ctl' file to read all time frames. Thanks Alfredo From jmssnyder at UCDAVIS.EDU Fri Jan 22 02:33:50 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Thu, 21 Jan 2010 23:33:50 -0800 Subject: Changing spatial resolution on data file (from 2 X 2.5 degrees to 2.5 X 2.5 degrees) Message-ID: Hi, I obtained this data file on sulfate aerosols from: http://gdata1.sci.gsfc.nasa.gov/daac-bin/G3/gui.cgi?instance_id=aerosol_daily It does not have a defined time value but still displays in GrADS as when I specify set t 1, I get time 1:1:1:0. That is not a problem, however, the problem is that I need this data to have a spatial resolution of 2.5X2.5 to be compatible with other data. It currently has a spatial resolution of 2X2.5. How can I change the spatial resoluton from 2X2.5 to 2.5 X 2.5? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100121/a8e1f77c/attachment.html From eliavs at GMAIL.COM Fri Jan 22 06:22:34 2010 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Fri, 22 Jan 2010 13:22:34 +0200 Subject: Time Settings for Data In-Reply-To: Message-ID: Jason Hi i am really sorry i read only part of your message i gave you a solution for a problem you did not have i feel a bit silly eliav -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/361b4db4/attachment.html From javier.p at EREDA.COM Fri Jan 22 08:01:58 2010 From: javier.p at EREDA.COM (=?ISO-8859-1?Q?Javier_Pe=F1a?=) Date: Fri, 22 Jan 2010 14:01:58 +0100 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <1264072113.3069.8.camel@localhost.localdomain> Message-ID: Hello: I have tried join sereral netcdf files in a simple file with CDO but I've obtained the following error: cdo copy: Open failed on .../file.nc Unsupported file type(library support not compiled in) Does anyone know how I can solve this? Thank you very much all. 2010/1/21 Rodney Teck > Download CDO (climate data operators version 1.3.0) it will do all you > require and more. > > > On Thu, 2010-01-21 at 10:48, Javier Pe?a wrote: > > Hello all: > > > > I need to join several NetCDF in a single file NetCDF. Is it possible > > in PCGrads for windows? How can I do it? > > > > Thank you very much. > > > > -- > > Javier Pe?a ?lvarez > > Energ?as Renovables > > javier.p at ereda.com > > EREDA > > > > Tel: +34 91 5014755 > > Fax: +34 91 5014756 > > c/ T?llez 26, 28007 MADRID > > www.ereda.com > -- > Dr.Rodney Teck > ICARUS Climatic Research Unit > Laraghbryan House > NUI Maynooth > Co Kildare > Ireland > > tel: ++353 (1)7083769 > email: rodney.teck at nuim.ie > http://icarus.nuim.ie > -- Javier Pe?a ?lvarez Energ?as Renovables javier.p at ereda.com EREDA Tel: +34 91 5014755 Fax: +34 91 5014756 c/ T?llez 26, 28007 MADRID www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/9f0c5922/attachment.html From Monica.Ionita at AWI.DE Fri Jan 22 08:22:33 2010 From: Monica.Ionita at AWI.DE (Monica Ionita) Date: Fri, 22 Jan 2010 14:22:33 +0100 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001220501m68e88ad7q482ffcbf4e509fbf@mail.gmail.com> Message-ID: Hi Javier, Try to use cat instead of copy: cdo cat i f i l e1 i f i l e2 i f i l e3 o f i l e where ifile1 it's your first file, ifile2 the second.....and so on. Try to have a look at the cdo commands pdf document. You will find there lots of helpful hints. http://www.mpimet.mpg.de/fileadmin/software/cdo/cdo.pdf Regards, Monica Javier Pe?a wrote: > Hello: > > I have tried join sereral netcdf files in a simple file with CDO but > I've obtained the following error: > > cdo copy: Open failed on .../file.nc > Unsupported file type(library support not compiled in) > > Does anyone know how I can solve this? > > Thank you very much all. > > > > 2010/1/21 Rodney Teck > > > Download CDO (climate data operators version 1.3.0) it will do all you > require and more. > > > On Thu, 2010-01-21 at 10:48, Javier Pe?a wrote: > > Hello all: > > > > I need to join several NetCDF in a single file NetCDF. Is it > possible > > in PCGrads for windows? How can I do it? > > > > Thank you very much. > > > > -- > > Javier Pe?a ?lvarez > > Energ?as Renovables > > javier.p at ereda.com > > EREDA > > > > Tel: +34 91 5014755 > > Fax: +34 91 5014756 > > c/ T?llez 26, 28007 MADRID > > www.ereda.com > > -- > Dr.Rodney Teck > ICARUS Climatic Research Unit > Laraghbryan House > NUI Maynooth > Co Kildare > Ireland > > tel: ++353 (1)7083769 > email: rodney.teck at nuim.ie > http://icarus.nuim.ie > > > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com From krishmet at GMAIL.COM Fri Jan 22 08:22:54 2010 From: krishmet at GMAIL.COM (krishnamohan) Date: Fri, 22 Jan 2010 18:52:54 +0530 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001220501m68e88ad7q482ffcbf4e509fbf@mail.gmail.com> Message-ID: hai Rodney Teck Compile cdo with netcdf. it hink it will solve that problem Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology Cochin,India On Fri, Jan 22, 2010 at 6:31 PM, Javier Pe?a wrote: > Hello: > > I have tried join sereral netcdf files in a simple file with CDO but I've > obtained the following error: > > cdo copy: Open failed on .../file.nc > Unsupported file type(library support not compiled in) > > Does anyone know how I can solve this? > > Thank you very much all. > > > > 2010/1/21 Rodney Teck > > Download CDO (climate data operators version 1.3.0) it will do all you >> require and more. >> >> >> On Thu, 2010-01-21 at 10:48, Javier Pe?a wrote: >> > Hello all: >> > >> > I need to join several NetCDF in a single file NetCDF. Is it possible >> > in PCGrads for windows? How can I do it? >> > >> > Thank you very much. >> > >> > -- >> > Javier Pe?a ?lvarez >> > Energ?as Renovables >> > javier.p at ereda.com >> > EREDA >> > >> > Tel: +34 91 5014755 >> > Fax: +34 91 5014756 >> > c/ T?llez 26, 28007 MADRID >> > www.ereda.com >> -- >> Dr.Rodney Teck >> ICARUS Climatic Research Unit >> Laraghbryan House >> NUI Maynooth >> Co Kildare >> Ireland >> >> tel: ++353 (1)7083769 >> email: rodney.teck at nuim.ie >> http://icarus.nuim.ie >> > > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/9d85c094/attachment.html From jgmsantos at GMAIL.COM Fri Jan 22 08:32:11 2010 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Fri, 22 Jan 2010 11:32:11 -0200 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <4B59A699.2070400@awi.de> Message-ID: Hi all, Try this: ga-> sdfopen uwnd.1980.nc uwnd.%y4.nc 36 uwnd.1980.nc = your first netcdf file uwnd.%y4.nc = your template 36 = numbers time you want This example is monthly dataset begin in january/1980 up to december/1982 I hope you understand. Guilherme. 2010/1/22 Monica Ionita > Hi Javier, > > Try to use cat instead of copy: > > cdo cat i f i l e1 i f i l e2 i f i l e3 o f i l e > > where ifile1 it's your first file, ifile2 the second.....and so on. > > Try to have a look at the cdo commands pdf document. You will find there > lots of helpful hints. > http://www.mpimet.mpg.de/fileadmin/software/cdo/cdo.pdf > > Regards, > Monica > > > Javier Pe?a wrote: > >> Hello: >> >> I have tried join sereral netcdf files in a simple file with CDO but I've >> obtained the following error: >> >> cdo copy: Open failed on .../file.nc >> >> Unsupported file type(library support not compiled in) >> >> Does anyone know how I can solve this? >> >> Thank you very much all. >> >> >> >> 2010/1/21 Rodney Teck > >> >> >> Download CDO (climate data operators version 1.3.0) it will do all you >> require and more. >> >> >> On Thu, 2010-01-21 at 10:48, Javier Pe?a wrote: >> > Hello all: >> > >> > I need to join several NetCDF in a single file NetCDF. Is it >> possible >> > in PCGrads for windows? How can I do it? >> > >> > Thank you very much. >> > >> > -- >> > Javier Pe?a ?lvarez >> > Energ?as Renovables >> > javier.p at ereda.com >> >> > EREDA >> > >> > Tel: +34 91 5014755 >> > Fax: +34 91 5014756 >> > c/ T?llez 26, 28007 MADRID >> > www.ereda.com >> >> >> -- >> Dr.Rodney Teck >> ICARUS Climatic Research Unit >> Laraghbryan House >> NUI Maynooth >> Co Kildare >> Ireland >> >> tel: ++353 (1)7083769 >> email: rodney.teck at nuim.ie >> >> http://icarus.nuim.ie >> >> >> >> >> -- >> Javier Pe?a ?lvarez >> Energ?as Renovables >> javier.p at ereda.com >> >> EREDA >> >> Tel: +34 91 5014755 >> Fax: +34 91 5014756 >> c/ T?llez 26, 28007 MADRID >> www.ereda.com >> > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento - DMD Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE Rodovia Presidente Dutra, km 39 - CEP 12630-000 Cachoeira Paulista, SP, Brasil Telefone(CP): +55 12 3186 8502 Celular(SJC): +55 12 91678770 / +55 12 81528580 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://guilhermemartins.hd1.com.br/ ----------------------------------------------------------- Sent from Sao Jose Dos Campos, SP, Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/e650654c/attachment.html From Rodney.Teck at NUIM.IE Fri Jan 22 09:22:09 2010 From: Rodney.Teck at NUIM.IE (Rodney.Teck at NUIM.IE) Date: Fri, 22 Jan 2010 14:22:09 +0000 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001220501m68e88ad7q482ffcbf4e509fbf@mail.gmail.com> Message-ID: Try cdo merge File 1 , File 2 etc Rod Teck ----- Original Message ----- From: Javier Pe?a Date: Friday, January 22, 2010 1:12 pm Subject: Re: How join severals NetCDF files in one file NetCDF To: GRADSUSR at LIST.CINECA.IT > Hello: > > I have tried join sereral netcdf files in a simple file with CDO but I've obtained the following error: > > cdo copy: Open failed on .../file.nc > Unsupported file type(library support not compiled in) > > Does anyone know how I can solve this? > > Thank you very much all. > > > > 2010/1/21 Rodney Teck > Download CDO (climate data operators version 1.3.0) it will do all you > require and more. > > > On Thu, 2010-01-21 at 10:48, Javier Pe?a wrote: > > Hello all: > > > > I need to join several NetCDF in a single file NetCDF. Is it possible > > in PCGrads for windows? How can I do it? > > > > Thank you very much. > > > > -- > > Javier Pe?a ?lvarez > > Energ?as Renovables > > javier.p at ereda.com > > EREDA > > > > Tel: +34 91 5014755 > > Fax: +34 91 5014756 > > c/ T?llez 26, 28007 MADRID > > www.ereda.com > -- > Dr.Rodney Teck > ICARUS Climatic Research Unit > Laraghbryan House > NUI Maynooth > Co Kildare > Ireland > > tel: ++353 (1)7083769 > email: rodney.teck at nuim.ie > http://icarus.nuim.ie > > > > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/a43b6063/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Fri Jan 22 09:48:31 2010 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Fri, 22 Jan 2010 09:48:31 -0500 Subject: grib2ctl.pl problem In-Reply-To: <20100121103432.40462.qmail@f4mail207.rediffmail.com> Message-ID: Litta, grib2ctl doesn't minute time steps. The only way is to try to modify the TDEF statement as you have attempted. Your attempt may have failed because of a space between 30 and mn. It could have also failed because the TDEF has a starting time 00Z11may2009 where your file may have started NN minutes after the hour. (00:NNZ11may2009). You should use the gribmap -v option to check for matches. I have no plans to add minutes to grib2ctl because grib2 is replacing grib1. I'll think of adding minutes to g2ctl. Wesley Litta AJ wrote: > Hi, > > I have got half hourly output files for 24 hours by running wrf post > processor(WPP). The following are the examples.. > WRFPRS_d01.000_00, WRFPRS_d01.000_30, > WRFPRS_d01.000_30WRFPRS_d01.001_30, ....., WRFPRS_d01.023_00, > WRFPRS_d01.023_30, WRFPRS_d01.024_00. > > I have created .ctl files by using grib2ctl.pl > > For that, i have made a concatenated file by cat command. then > grib2ctl.pl and gribmap > > cat WRFPRS_d01.000_00, WRFPRS_d01.000_30, ....., WRFPRS_d01.023_30, > WRFPRS_d01.024_00 > wrfprs_d01 > grib2ctl.pl -verf wrfprs_d01 > wrfprs_d01.ctl > gribmap -i wrfprs_d01.ctl > > But i am not getting the half hourly output. It is producing hourly > output. I have changed the time definition of wrfprs_d01.ctl file > from > tdef 25 linear 00Z11may2009 1hr > to > tdef 49 linear 00Z11may2009 30 mn > > Then also i didn't get the output... How can we plot the half hourly > outputs through grads using grib2ctl.pl? > Please help > > with best regards, > Litta > > Ms. Litta A. J. > Project Scientist > Centre for Atmospheric Sciences > Indian Institute of Technology (IIT) > Hauz Khas > New Delhi - 110016 > Ph: 09891717507 > > > From masscotm at ERAU.EDU Fri Jan 22 09:52:02 2010 From: masscotm at ERAU.EDU (Michael E Masscotte) Date: Fri, 22 Jan 2010 09:52:02 -0500 Subject: grib2ctl.pl problem In-Reply-To: <4B59BABF.8000401@noaa.gov> Message-ID: Wesley, I would like to second the request for adding minutes to g2ctl. We run models in house with output every 15 minutes. We handle it now with some scripts to modify the ctl file, but it would be really nice to have g2ctl handle it internally. Thanks, -Mike Michael Masscotte Weather Systems Administrator Embry-Riddle Aeronautical University 600 S. Clyde Morris Blvd Daytona Beach, FL 32114 Phone: (386) 323-8033 On Fri, 2010-01-22 at 09:48 -0500, Wesley Ebisuzaki wrote: > Litta, > > grib2ctl doesn't minute time steps. The only way is to try to > modify the TDEF > statement as you have attempted. Your attempt may have failed because > of a space between > 30 and mn. It could have also failed because the TDEF has a starting > time 00Z11may2009 > where your file may have started NN minutes after the hour. > (00:NNZ11may2009). > You should use the gribmap -v option to check for matches. > > I have no plans to add minutes to grib2ctl because grib2 is > replacing grib1. I'll > think of adding minutes to g2ctl. > > Wesley > > > > > > > > Litta AJ wrote: > > Hi, > > > > I have got half hourly output files for 24 hours by running wrf post > > processor(WPP). The following are the examples.. > > WRFPRS_d01.000_00, WRFPRS_d01.000_30, > > WRFPRS_d01.000_30WRFPRS_d01.001_30, ....., WRFPRS_d01.023_00, > > WRFPRS_d01.023_30, WRFPRS_d01.024_00. > > > > I have created .ctl files by using grib2ctl.pl > > > > For that, i have made a concatenated file by cat command. then > > grib2ctl.pl and gribmap > > > > cat WRFPRS_d01.000_00, WRFPRS_d01.000_30, ....., WRFPRS_d01.023_30, > > WRFPRS_d01.024_00 > wrfprs_d01 > > grib2ctl.pl -verf wrfprs_d01 > wrfprs_d01.ctl > > gribmap -i wrfprs_d01.ctl > > > > But i am not getting the half hourly output. It is producing hourly > > output. I have changed the time definition of wrfprs_d01.ctl file > > from > > tdef 25 linear 00Z11may2009 1hr > > to > > tdef 49 linear 00Z11may2009 30 mn > > > > Then also i didn't get the output... How can we plot the half hourly > > outputs through grads using grib2ctl.pl? > > Please help > > > > with best regards, > > Litta > > > > Ms. Litta A. J. > > Project Scientist > > Centre for Atmospheric Sciences > > Indian Institute of Technology (IIT) > > Hauz Khas > > New Delhi - 110016 > > Ph: 09891717507 > > > > > > From fallspinach at GMAIL.COM Fri Jan 22 13:59:23 2010 From: fallspinach at GMAIL.COM (Ming Pan) Date: Fri, 22 Jan 2010 13:59:23 -0500 Subject: loop over x,y,z in user defined function (opengrads) In-Reply-To: Message-ID: Hi Brian, I really appreciate your explanations on the design of grads and its user defined function interface. While I feel it absolutely necessary to limit memory consumption, I wish the new interface will consider allowing user program to pull more data (e.g. loop over an additional dimension) some way. For example, we can allow passing only one grid at a time, but also allow re-using that memory block for passing more in a loop. It's indeed a trade-off between how much you allow user program to do and the risk of breaking grads itself. (Re-design the software with C++ may solve some fundamental issues on API?) Arlindo's UDF design gives me really good flexibility and fast speed, though I have to read a lot of the grads source and go through many crash/debug cycles with gdb. I don't really mind about that since it's eventually the user's responsibility not to blow up the memory or cause segmentation fault. To use the less efficient external files for data transfer will completely isolate grads so that it never crashes on user's fault, and users do not have to learn too much about how grads works internally. On the other hand, it doesn't really make a difference for me whether it crashes inside grads or my functions -- both are my own fault. I completely agree that the returned grid from a user function should not have fundamentally different dimensions. At the same time I wish the new interface would allow returning more than one outputs. I once needed this desperately and ended up writing a user defined command (Arlindo's interface) to replace the default "define" command so that I can receive/define multiple grids from my customized function in one shot. ming On Tue, Jan 19, 2010 at 12:15 PM, Brian Doty wrote: > The expression handling part of grads is fundamentally limited to grids with > a maximum of 2D varying dimensions. ?This goes back to the early 90s when I > designed and implemented the language known as the "grads expression". ?This > design has stood the test of time -- if anything, experience since then has > shown this to be extremely important, as it limits the amount of memory that > grads consumes. ?You can, of course, override this at any time by staging > data in memory via the "define" feature. ?Define can use great amounts of > memory very rapidly, but it is under your control. > > There are functions, such as ave, that loop over some dimension and evaluate > a target expression that results in a 2D or less grid, and then does some > operation on those grids (such as sum them and divide by n). ?Note that at > no time is there a grid present that is more than 2D. ?The looping results > in potentially a lot of I/O. ?If the data is going to be looped through more > than once (or sliced in some non-efficient way), then putting the data into > memory in advance, via define, can yield large performance improvements. > ?(It is important to understand the way grads evaluates expressions and what > implications this has for I/O if you are working with a lot of data -- the > way you do certain things can have huge performance differences.) > > The functions that loop through a dimension (eg, ave) operate recursively. > ?They are thus not suitable as UDF functions, since I don't see how to > easily provide a standardized interface without very high long term > maintenance costs. ?Thus I would personally recommend that you implement > such a function as a source code mod, this being much safer in the long > term, as it will make clear to future users the nature of the function and > the level of burden for maintaining it. > > As a side note, it is also important that no function outputs a grid that > has fundamentally different dimensions than the input dimension environment. > ?This is a necessary restriction to preserve the internal consistency of the > expression handling. ? What I mean by this can be shown by an example: ?if > the input dimension environment is X and Y varying, it would be invalid to > output a grid with some dimension other than X and Y varying (eg, T). ? It > is ok to output a grid that is a subset, ie, with just X varying. > > Another approach is to do what I do in this situation: ?I write a script and > a C program, and my script outputs the needed data into a file, and the C > program does the calculation, and the script reads in the data output by the > C program. ?Somewhat kludgy, but not all functions are worth the time and > effort to implement within grads and maintain over the longer term, ?IMO. > > I am working through the design of some sort of interface to allow tasks to > be done directly on "defined" objects. ?This is an outgrowth of our recent > implementation of netCDF file output. ?Jennifer and I had extensive design > discussions on this feature, and it became clear that we needed to collect > large amounts of data in memory to optimize the I/O, and define was the > obvious way to do this. ?Now I am working on a way to do a "sort" operation > on a "defined" data object, where the sort would operate though one of the > dimensions. ?I am also thinking that this type of thing could be generalized > and a "UDF" style capability could be provided to perform some arbitrary > task on a defined object. ?This would not be part of the expression > capability, but would be for one-shot types of things. ?I've been trying to > figure out how to provide a sort feature and this is the only way I can see > to do it cleanly... Brian > > > On Jan 13, 2010, at 3:37 PM, Ming Pan wrote: > >> Dear Users/Developers, >> >> I'm using grads-2.0.a7.oga.3 and trying to write a customized function >> to compute low-level cape. In this case, I need to loop over 3 >> dimension x, y, and z, but it seems the current udf interface only >> allows passing 2-D grids (isiz, jsiz). Anyone ran into a similar >> situation and came up with a solution/work-around? >> >> Thanks! >> >> ming > From rsolanob at GMAIL.COM Fri Jan 22 14:09:32 2010 From: rsolanob at GMAIL.COM (Ramon Solano) Date: Fri, 22 Jan 2010 12:09:32 -0700 Subject: User extensions on OSX 10.6 Message-ID: Hello all, I have been using my own specialized GrADS user extensions since v2.0.a4 with no problem at all. I used the example udx "hello" and some techniques showed in the other user extensions (thanks for providing the code). I use the GrADS source code and the additional supplibs to configure the compilation, and then I jump into the extensions dir and then use the "make". I later copy my UDX to the official compiled GrADS distribution in my computers.This procedure have worked for my Mac OSX 10.5 (with fink) and Linux (RedHat 32 and 64 bits) with absolutely no problems. However, I just updated my Mac OSX to 10.6 and as there is no official gfortran released yet, I installed the one available on http://quatramaran.ens.fr/~coudert/gfortran/gfortran-macosx-x86.dmg, which identifies itself as "gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC) ". According to fink, I have gcc4.0 and gcc4.2 so this may be an issue. My problem is that after apparently a good compilation of the UDX, GrADS complains that "dlsym(0xe0d650, f_rsb): symbol not found" (f_rsb is my UDX). I am doing exactly the same procedure as in 10.5, but here I am getting this problem under 10.6 . GrADS is working perfectly, and all provided UDXs as well so I know this should be possible. Any advice on a workaround would be greatly appreciated. Ramon U of Arizona From doty at COLA.IGES.ORG Fri Jan 22 14:46:00 2010 From: doty at COLA.IGES.ORG (Brian Doty) Date: Fri, 22 Jan 2010 14:46:00 -0500 Subject: loop over x,y,z in user defined function (opengrads) In-Reply-To: Message-ID: Ming, this question gets into the philosophy of how one writes code that is stable long term, code that is easy to change, how to avoid bloatware, etc. So it depends on what the goals are for the code. If it is for personal use, then one may not care much. By providing defined call-back entry points, and by isolating data structures, it is possible to have a base code that can be changed easily, and also allow external functions that don't have to change when the base code changes. Even with this sort of interface, there is nothing to stop an external function from ignoring this interface and calling back into grads anywhere, or use any internal data structure. In that case, a responsible code writer would be sure to flag this behavior very prominently, since such a code would be more effort to maintain over time. One can forsee that if there ends up being a lot of external functions like this, and they circulate through the community, then when certain changes are made to the grads base code there will be many headaches (and complaints). Not really a good place to be. So do we try to provide an interface that isolates dimension-looping external functions, such that they can be protected from changes to the base code? This is a tough question. It is a harder thing to do. I would personally hesitate to commit to such a path without really thinking it through.... Brian On Jan 22, 2010, at 1:59 PM, Ming Pan wrote: > Hi Brian, > > I really appreciate your explanations on the design of grads and its > user defined function interface. > > While I feel it absolutely necessary to limit memory consumption, I > wish the new interface will consider allowing user program to pull > more data (e.g. loop over an additional dimension) some way. For > example, we can allow passing only one grid at a time, but also allow > re-using that memory block for passing more in a loop. It's indeed a > trade-off between how much you allow user program to do and the risk > of breaking grads itself. (Re-design the software with C++ may solve > some fundamental issues on API?) Arlindo's UDF design gives me really > good flexibility and fast speed, though I have to read a lot of the > grads source and go through many crash/debug cycles with gdb. I don't > really mind about that since it's eventually the user's responsibility > not to blow up the memory or cause segmentation fault. To use the less > efficient external files for data transfer will completely isolate > grads so that it never crashes on user's fault, and users do not have > to learn too much about how grads works internally. On the other hand, > it doesn't really make a difference for me whether it crashes inside > grads or my functions -- both are my own fault. > > I completely agree that the returned grid from a user function should > not have fundamentally different dimensions. At the same time I wish > the new interface would allow returning more than one outputs. I once > needed this desperately and ended up writing a user defined command > (Arlindo's interface) to replace the default "define" command so that > I can receive/define multiple grids from my customized function in one > shot. > > ming > > On Tue, Jan 19, 2010 at 12:15 PM, Brian Doty > wrote: >> The expression handling part of grads is fundamentally limited to >> grids with >> a maximum of 2D varying dimensions. This goes back to the early >> 90s when I >> designed and implemented the language known as the "grads >> expression". This >> design has stood the test of time -- if anything, experience since >> then has >> shown this to be extremely important, as it limits the amount of >> memory that >> grads consumes. You can, of course, override this at any time by >> staging >> data in memory via the "define" feature. Define can use great >> amounts of >> memory very rapidly, but it is under your control. >> >> There are functions, such as ave, that loop over some dimension and >> evaluate >> a target expression that results in a 2D or less grid, and then >> does some >> operation on those grids (such as sum them and divide by n). Note >> that at >> no time is there a grid present that is more than 2D. The looping >> results >> in potentially a lot of I/O. If the data is going to be looped >> through more >> than once (or sliced in some non-efficient way), then putting the >> data into >> memory in advance, via define, can yield large performance >> improvements. >> (It is important to understand the way grads evaluates expressions >> and what >> implications this has for I/O if you are working with a lot of data >> -- the >> way you do certain things can have huge performance differences.) >> >> The functions that loop through a dimension (eg, ave) operate >> recursively. >> They are thus not suitable as UDF functions, since I don't see how >> to >> easily provide a standardized interface without very high long term >> maintenance costs. Thus I would personally recommend that you >> implement >> such a function as a source code mod, this being much safer in the >> long >> term, as it will make clear to future users the nature of the >> function and >> the level of burden for maintaining it. >> >> As a side note, it is also important that no function outputs a >> grid that >> has fundamentally different dimensions than the input dimension >> environment. >> This is a necessary restriction to preserve the internal >> consistency of the >> expression handling. What I mean by this can be shown by an >> example: if >> the input dimension environment is X and Y varying, it would be >> invalid to >> output a grid with some dimension other than X and Y varying (eg, >> T). It >> is ok to output a grid that is a subset, ie, with just X varying. >> >> Another approach is to do what I do in this situation: I write a >> script and >> a C program, and my script outputs the needed data into a file, and >> the C >> program does the calculation, and the script reads in the data >> output by the >> C program. Somewhat kludgy, but not all functions are worth the >> time and >> effort to implement within grads and maintain over the longer >> term, IMO. >> >> I am working through the design of some sort of interface to allow >> tasks to >> be done directly on "defined" objects. This is an outgrowth of our >> recent >> implementation of netCDF file output. Jennifer and I had extensive >> design >> discussions on this feature, and it became clear that we needed to >> collect >> large amounts of data in memory to optimize the I/O, and define was >> the >> obvious way to do this. Now I am working on a way to do a "sort" >> operation >> on a "defined" data object, where the sort would operate though one >> of the >> dimensions. I am also thinking that this type of thing could be >> generalized >> and a "UDF" style capability could be provided to perform some >> arbitrary >> task on a defined object. This would not be part of the expression >> capability, but would be for one-shot types of things. I've been >> trying to >> figure out how to provide a sort feature and this is the only way I >> can see >> to do it cleanly... Brian >> >> >> On Jan 13, 2010, at 3:37 PM, Ming Pan wrote: >> >>> Dear Users/Developers, >>> >>> I'm using grads-2.0.a7.oga.3 and trying to write a customized >>> function >>> to compute low-level cape. In this case, I need to loop over 3 >>> dimension x, y, and z, but it seems the current udf interface only >>> allows passing 2-D grids (isiz, jsiz). Anyone ran into a similar >>> situation and came up with a solution/work-around? >>> >>> Thanks! >>> >>> ming >> From jmssnyder at UCDAVIS.EDU Fri Jan 22 16:22:35 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Fri, 22 Jan 2010 13:22:35 -0800 Subject: Compound variables Message-ID: I am trying to produce compound variable arrays as shown in the GrADS users guide: http://www.iges.org/grads/gadoc/script.html#while so I have a script to do the following: 'sdfopen uninan.nc' i = 1 while (i < 10) 'set t 'i var.i = uninan i = i + 1 endwhile how do I then display variables? I will be modifying this script for iterative purposes so I would like to know how to use the compound variables here. Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/23912316/attachment.html From fil at METEOPT.COM Fri Jan 22 17:12:44 2010 From: fil at METEOPT.COM (Fil) Date: Fri, 22 Jan 2010 22:12:44 +0000 Subject: GrADS multi-threading support Message-ID: Hi all, The question is simple, directed to GrADS developers. Will GrADS support multi-threading in the future? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100122/480ec53c/attachment.html From doty at COLA.IGES.ORG Fri Jan 22 17:40:43 2010 From: doty at COLA.IGES.ORG (Brian Doty) Date: Fri, 22 Jan 2010 17:40:43 -0500 Subject: GrADS multi-threading support In-Reply-To: Message-ID: There has been discussion of this and a lot of interest from some of the scientists here at COLA. It is not clear when, or if, it will get done. I am guessing that if it happens, the HDF5 data format will be the target data format for any multi-threading in the I/O subsystem. I used to write multi-threaded code for IBM operating systems, so I have an idea of how much work is involved. There may be some "low hanging fruit" that would be fairly easy to implement. I'm also guessing that if we (or anyone) does it, the resulting version will be pretty unstable for a long time... Brian On Jan 22, 2010, at 5:12 PM, Fil wrote: > Hi all, > > The question is simple, directed to GrADS developers. Will GrADS > support multi-threading in the future? > > Thanks. From msponsler at COMCAST.NET Fri Jan 22 19:33:41 2010 From: msponsler at COMCAST.NET (Mark Sponsler) Date: Sat, 23 Jan 2010 01:33:41 +0100 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug Message-ID: Hello, I'm using Grads 2.0.a7.oga.3 on an Win XP box. All works fine except when used in conjuction with ImageMagick. I run my script, then make 2 calls to ImageMagick to combine some of the output images, then try to do a few simple GRADs cleanup tasks (increment a counter, then an endhwhile statement). The issue is GRADS hangs after the ImageMagick commands and does not return to run the remainder of the script. Funny thing is when I run the exact same script under GRADS version 1.9, all works fine. Suspect there is some little bugaboo in the compile that prevents the return call to GRADS after executing the extrenal program. Here the segment of the code that fails: 'draw string 10.55 7.45 Precip' 'draw string 10.55 7.25 (in)' endif ******************************* 'printim c:/grib/dods_output/'reg'_'tx'hr.png png -b c:/grib/dods_output/test.png -t 0 x700 y541 black' ******************************** '!composite.exe -quality 100 c:/grib/output/foreground_ETA_precip_wind/back/'reg'_trans.png c:/grib/output/'reg'_'tx'hr.png c:/grib/dods_output/test1.png' '!convert.exe c:/grib/dods_output/test1.png -depth 8 +dither -colors 256 c:/grib/dods_output/'reg'_'tx'hr.png' tx = (tx+1) if tx = 30 ; break ; endif 'clear' endwhile Any help would be appreciated. From Huddleston at CIRA.COLOSTATE.EDU Fri Jan 22 22:33:57 2010 From: Huddleston at CIRA.COLOSTATE.EDU (Huddleston, John) Date: Fri, 22 Jan 2010 19:33:57 -0800 Subject: User extensions on OSX 10.6 In-Reply-To: <20F22F83-2E63-436A-ADCE-67863F809C08@gmail.com> Message-ID: Ramon In the unix world the 'ldd' command identifies the shared libraries that are required. In the windows world, it is 'cygcheck' or the 'depends' gui. What is the equivalent on the MAC? Run it on your executable. Send the results to this list. Next, your executable compiled and so it must be requiring the dlsym dynamic linking loader object. Does the MAC have an equivalent? John Huddleston ________________________________________ From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of Ramon Solano [rsolanob at GMAIL.COM] Sent: Friday, January 22, 2010 12:09 PM To: GRADSUSR at LIST.CINECA.IT Subject: User extensions on OSX 10.6 Hello all, I have been using my own specialized GrADS user extensions since v2.0.a4 with no problem at all. I used the example udx "hello" and some techniques showed in the other user extensions (thanks for providing the code). I use the GrADS source code and the additional supplibs to configure the compilation, and then I jump into the extensions dir and then use the "make". I later copy my UDX to the official compiled GrADS distribution in my computers.This procedure have worked for my Mac OSX 10.5 (with fink) and Linux (RedHat 32 and 64 bits) with absolutely no problems. However, I just updated my Mac OSX to 10.6 and as there is no official gfortran released yet, I installed the one available on http://quatramaran.ens.fr/~coudert/gfortran/gfortran-macosx-x86.dmg, which identifies itself as "gcc version 4.5.0 20090604 (experimental) [trunk revision 148180] (GCC) ". According to fink, I have gcc4.0 and gcc4.2 so this may be an issue. My problem is that after apparently a good compilation of the UDX, GrADS complains that "dlsym(0xe0d650, f_rsb): symbol not found" (f_rsb is my UDX). I am doing exactly the same procedure as in 10.5, but here I am getting this problem under 10.6 . GrADS is working perfectly, and all provided UDXs as well so I know this should be possible. Any advice on a workaround would be greatly appreciated. Ramon U of Arizona From jmssnyder at UCDAVIS.EDU Sun Jan 24 14:16:11 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 24 Jan 2010 11:16:11 -0800 Subject: Using traj.gs Message-ID: I am trying to open up two files one with a zonal wind componant and the other with the meridional wind componant to use to make a trajectory via traj.gs script. Here is the .ctl file for the zonal wind: DSET uwndavg2001.nc OPTIONS template DTYPE netcdf XDEF longitude 144 linear 0.0 2.5 YDEF latitude 73 linear -90 2.5 TDEF time 1 linear 0z1Jan2001 1dy Here is the .ctl file for the meridional wind: DSET vwndavg2001.nc OPTIONS template DTYPE netcdf XDEF longitude 144 linear 0.0 2.5 YDEF latitude 73 linear -90 2.5 TDEF time 1 linear 0z1Jan2001 1dy The variables for both are U and V respectively. However since the meridional file is open second the meridional wind becomes defined as V.2. Therefore, I have to redefine V=V.2. However when I run GrADS script traj.gs I get the following message: Please open file and draw a chart How can I avoid this message and run traj.gs successfully? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/afcee29b/attachment.html From jimp at HAWAII.EDU Sun Jan 24 17:59:28 2010 From: jimp at HAWAII.EDU (James T. Potemra) Date: Sun, 24 Jan 2010 12:59:28 -1000 Subject: Using traj.gs In-Reply-To: Message-ID: Jason: The script requires that you first display a variable (it uses the GrADS query function to get plot dimensions). If you don't want to actually display something "under" your trajectory, you can "set cmin" to something larger than U and/or V, then display U and/or V, then run traj.gs Jim Jason Snyder wrote: > I am trying to open up two files one with a zonal wind componant and > the other with the meridional wind componant to use to make a > trajectory via traj.gs script. > > Here is the .ctl file for the zonal wind: > > DSET uwndavg2001.nc > OPTIONS template > DTYPE netcdf > XDEF longitude 144 linear 0.0 2.5 > YDEF latitude 73 linear -90 2.5 > TDEF time 1 linear 0z1Jan2001 1dy > > Here is the .ctl file for the meridional wind: > > DSET vwndavg2001.nc > OPTIONS template > DTYPE netcdf > XDEF longitude 144 linear 0.0 2.5 > YDEF latitude 73 linear -90 2.5 > TDEF time 1 linear 0z1Jan2001 1dy > > The variables for both are U and V respectively. However since the > meridional file is open second the meridional wind becomes defined as > V.2. Therefore, I have to redefine V=V.2. However when I run GrADS > script traj.gs I get the following message: > > > Please open file and draw a chart > > How can I avoid this message and run traj.gs > successfully? > > Thanks, > > Jason From jmssnyder at UCDAVIS.EDU Sun Jan 24 19:17:14 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 24 Jan 2010 16:17:14 -0800 Subject: Using traj.gs In-Reply-To: Message-ID: On Sun, Jan 24, 2010 at 4:16 PM, Jason Snyder wrote: > I tried running traj.gs again after displaying a map and I got the > following message: > > ga-> d U;V > ga-> traj.gs > HR or MN missing in line TDEF of file uninan.ctl > ga-> > Here is an example of a .ctl file I have for the zonal wind part of my > data: > > DSET uninan2.nc > OPTIONS template > DTYPE netcdf > XDEF longitude 57 linear 110.0 2.5 > YDEF latitude 39 linear -5 2.5 > TDEF time 1 linear 0z1Jun1974 1dy 0hr 0mn > How do I modify this file so I can succesfuuly run traj.gs? > > Thanks, > > Jason > On Sun, Jan 24, 2010 at 2:59 PM, James T. Potemra wrote: > >> Jason: >> >> The script requires that you first display a variable (it uses the GrADS >> query function to get plot dimensions). If you don't want to actually >> display something "under" your trajectory, you can "set cmin" to something >> larger than U and/or V, then display U and/or V, then run traj.gs >> >> Jim >> >> Jason Snyder wrote: >> >>> I am trying to open up two files one with a zonal wind componant and the >>> other with the meridional wind componant to use to make a trajectory via >>> traj.gs script. >>> >>> Here is the .ctl file for the zonal wind: >>> DSET uwndavg2001.nc >>> >>> OPTIONS template >>> DTYPE netcdf >>> XDEF longitude 144 linear 0.0 2.5 >>> YDEF latitude 73 linear -90 2.5 >>> TDEF time 1 linear 0z1Jan2001 1dy >>> Here is the .ctl file for the meridional wind: >>> DSET vwndavg2001.nc >>> >>> OPTIONS template >>> DTYPE netcdf >>> XDEF longitude 144 linear 0.0 2.5 >>> YDEF latitude 73 linear -90 2.5 >>> TDEF time 1 linear 0z1Jan2001 1dy >>> The variables for both are U and V respectively. However since the >>> meridional file is open second the meridional wind becomes defined as V.2. >>> Therefore, I have to redefine V=V.2. However when I run GrADS script >>> traj.gs I get the following message: >>> >>> Please open file and draw a chart >>> How can I avoid this message and run traj.gs >>> successfully? >>> Thanks, >>> Jason >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/3fbc6f6d/attachment.html From jimp at HAWAII.EDU Sun Jan 24 19:57:05 2010 From: jimp at HAWAII.EDU (James T. Potemra) Date: Sun, 24 Jan 2010 14:57:05 -1000 Subject: Using traj.gs In-Reply-To: Message-ID: You have to change the TDEF line to be either HR or MN. Right now you have 1dy; make it 24HR. Jim Jason Snyder wrote: > > > On Sun, Jan 24, 2010 at 4:16 PM, Jason Snyder > wrote: > > I tried running traj.gs again after displaying a > map and I got the following message: > > ga-> d U;V > ga-> traj.gs > HR or MN missing in line TDEF of file uninan.ctl > ga-> > Here is an example of a .ctl file I have for the zonal wind part > of my data: > > DSET uninan2.nc > OPTIONS template > DTYPE netcdf > XDEF longitude 57 linear 110.0 2.5 > YDEF latitude 39 linear -5 2.5 > TDEF time 1 linear 0z1Jun1974 1dy 0hr 0mn > How do I modify this file so I can succesfuuly run traj.gs > ? > > Thanks, > > Jason > On Sun, Jan 24, 2010 at 2:59 PM, James T. Potemra > wrote: > > Jason: > > The script requires that you first display a variable (it uses > the GrADS query function to get plot dimensions). If you > don't want to actually display something "under" your > trajectory, you can "set cmin" to something larger than U > and/or V, then display U and/or V, then run traj.gs > > > Jim > > Jason Snyder wrote: > > I am trying to open up two files one with a zonal wind > componant and the other with the meridional wind componant > to use to make a trajectory via traj.gs > > script. > > Here is the .ctl file for the zonal wind: > DSET uwndavg2001.nc > > > > OPTIONS template > DTYPE netcdf > XDEF longitude 144 linear 0.0 2.5 > YDEF latitude 73 linear -90 2.5 > TDEF time 1 linear 0z1Jan2001 1dy > Here is the .ctl file for the meridional wind: > DSET vwndavg2001.nc > > > > OPTIONS template > DTYPE netcdf > XDEF longitude 144 linear 0.0 2.5 > YDEF latitude 73 linear -90 2.5 > TDEF time 1 linear 0z1Jan2001 1dy > The variables for both are U and V respectively. However > since the meridional file is open second the meridional > wind becomes defined as V.2. Therefore, I have to > redefine V=V.2. However when I run GrADS script traj.gs > > I get > the following message: > > Please open file and draw a chart > How can I avoid this message and run traj.gs > > > successfully? > Thanks, > Jason > > > From jmssnyder at UCDAVIS.EDU Sun Jan 24 20:16:21 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 24 Jan 2010 17:16:21 -0800 Subject: Using traj.gs In-Reply-To: <4B5CEC61.1030900@hawaii.edu> Message-ID: I still get the same message about hours or minute missing in TDEF. Jason On Sun, Jan 24, 2010 at 4:57 PM, James T. Potemra wrote: > You have to change the TDEF line to be either HR or MN. > Right now you have 1dy; make it 24HR. > > Jim > > Jason Snyder wrote: > >> >> >> On Sun, Jan 24, 2010 at 4:16 PM, Jason Snyder > jmssnyder at ucdavis.edu>> wrote: >> >> I tried running traj.gs again after displaying a >> >> map and I got the following message: >> ga-> d U;V >> ga-> traj.gs >> >> HR or MN missing in line TDEF of file uninan.ctl >> ga-> >> Here is an example of a .ctl file I have for the zonal wind part >> of my data: >> DSET uninan2.nc >> >> OPTIONS template >> DTYPE netcdf >> XDEF longitude 57 linear 110.0 2.5 >> YDEF latitude 39 linear -5 2.5 >> TDEF time 1 linear 0z1Jun1974 1dy 0hr 0mn >> How do I modify this file so I can succesfuuly run traj.gs >> ? >> >> Thanks, >> Jason >> On Sun, Jan 24, 2010 at 2:59 PM, James T. Potemra > > wrote: >> >> Jason: >> >> The script requires that you first display a variable (it uses >> the GrADS query function to get plot dimensions). If you >> don't want to actually display something "under" your >> trajectory, you can "set cmin" to something larger than U >> and/or V, then display U and/or V, then run traj.gs >> >> >> >> Jim >> >> Jason Snyder wrote: >> >> I am trying to open up two files one with a zonal wind >> componant and the other with the meridional wind componant >> to use to make a trajectory via traj.gs >> > script. >> >> >> Here is the .ctl file for the zonal wind: >> DSET uwndavg2001.nc >> > >> >> >> OPTIONS template >> DTYPE netcdf >> XDEF longitude 144 linear 0.0 2.5 >> YDEF latitude 73 linear -90 2.5 >> TDEF time 1 linear 0z1Jan2001 1dy >> Here is the .ctl file for the meridional wind: >> DSET vwndavg2001.nc >> > >> >> >> OPTIONS template >> DTYPE netcdf >> XDEF longitude 144 linear 0.0 2.5 >> YDEF latitude 73 linear -90 2.5 >> TDEF time 1 linear 0z1Jan2001 1dy >> The variables for both are U and V respectively. However >> since the meridional file is open second the meridional >> wind becomes defined as V.2. Therefore, I have to >> redefine V=V.2. However when I run GrADS script traj.gs >> > I get >> >> the following message: >> >> Please open file and draw a chart >> How can I avoid this message and run traj.gs >> > >> successfully? >> Thanks, >> Jason >> >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/80d72e78/attachment.html From jimp at HAWAII.EDU Sun Jan 24 20:17:58 2010 From: jimp at HAWAII.EDU (James T. Potemra) Date: Sun, 24 Jan 2010 15:17:58 -1000 Subject: Using traj.gs In-Reply-To: Message-ID: Make sure you change it in both U and V ctl files. Also, I noticed that you only have 1 time-step, and you'll need at least two. Jim Jason Snyder wrote: > I still get the same message about hours or minute missing in TDEF. > > > Jason > > On Sun, Jan 24, 2010 at 4:57 PM, James T. Potemra > wrote: > > You have to change the TDEF line to be either HR or MN. > Right now you have 1dy; make it 24HR. > > Jim > > Jason Snyder wrote: > > > > On Sun, Jan 24, 2010 at 4:16 PM, Jason Snyder > > >> > wrote: > > I tried running traj.gs > again after displaying a > > map and I got the following message: > ga-> d U;V > ga-> traj.gs > > HR or MN missing in line TDEF of file uninan.ctl > ga-> > Here is an example of a .ctl file I have for the zonal wind > part > of my data: > DSET uninan2.nc > > OPTIONS template > DTYPE netcdf > XDEF longitude 57 linear 110.0 2.5 > YDEF latitude 39 linear -5 2.5 > TDEF time 1 linear 0z1Jun1974 1dy 0hr 0mn > How do I modify this file so I can succesfuuly run traj.gs > > ? > > Thanks, > Jason > On Sun, Jan 24, 2010 at 2:59 PM, James T. Potemra > > >> wrote: > > Jason: > > The script requires that you first display a variable > (it uses > the GrADS query function to get plot dimensions). If you > don't want to actually display something "under" your > trajectory, you can "set cmin" to something larger than U > and/or V, then display U and/or V, then run traj.gs > > > > > Jim > > Jason Snyder wrote: > > I am trying to open up two files one with a zonal wind > componant and the other with the meridional wind > componant > to use to make a trajectory via traj.gs > > > > script. > > > Here is the .ctl file for the zonal wind: > DSET uwndavg2001.nc > > > > > > > OPTIONS template > DTYPE netcdf > XDEF longitude 144 linear 0.0 2.5 > YDEF latitude 73 linear -90 2.5 > TDEF time 1 linear 0z1Jan2001 1dy > Here is the .ctl file for the meridional wind: > DSET vwndavg2001.nc > > > > > > > OPTIONS template > DTYPE netcdf > XDEF longitude 144 linear 0.0 2.5 > YDEF latitude 73 linear -90 2.5 > TDEF time 1 linear 0z1Jan2001 1dy > The variables for both are U and V respectively. > However > since the meridional file is open second the meridional > wind becomes defined as V.2. Therefore, I have to > redefine V=V.2. However when I run GrADS script > traj.gs > > > I get > > the following message: > > Please open file and draw a chart > How can I avoid this message and run traj.gs > > > > > successfully? > Thanks, > Jason > > > > From jmssnyder at UCDAVIS.EDU Sun Jan 24 20:26:01 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 24 Jan 2010 17:26:01 -0800 Subject: Using traj.gs In-Reply-To: <4B5CF146.4000402@hawaii.edu> Message-ID: > > I changed the TDEF in both files but to no avail. I still get the same >> message. >> > jason > On Sun, Jan 24, 2010 at 4:57 PM, James T. Potemra > jimp at hawaii.edu>> wrote: >> >> You have to change the TDEF line to be either HR or MN. >> Right now you have 1dy; make it 24HR. >> >> Jim >> >> Jason Snyder wrote: >> >> >> >> On Sun, Jan 24, 2010 at 4:16 PM, Jason Snyder >> >> >> >> wrote: >> >> I tried running traj.gs >> >> again after displaying a >> >> map and I got the following message: >> ga-> d U;V >> ga-> traj.gs >> >> >> HR or MN missing in line TDEF of file uninan.ctl >> ga-> >> Here is an example of a .ctl file I have for the zonal wind >> part >> of my data: >> DSET uninan2.nc >> >> >> OPTIONS template >> DTYPE netcdf >> XDEF longitude 57 linear 110.0 2.5 >> YDEF latitude 39 linear -5 2.5 >> TDEF time 1 linear 0z1Jun1974 1dy 0hr 0mn >> How do I modify this file so I can succesfuuly run traj.gs >> >> ? >> >> Thanks, >> Jason >> On Sun, Jan 24, 2010 at 2:59 PM, James T. Potemra >> >> >> wrote: >> >> Jason: >> >> The script requires that you first display a variable >> (it uses >> the GrADS query function to get plot dimensions). If you >> don't want to actually display something "under" your >> trajectory, you can "set cmin" to something larger than U >> and/or V, then display U and/or V, then run traj.gs >> >> >> >> >> Jim >> >> Jason Snyder wrote: >> >> I am trying to open up two files one with a zonal wind >> componant and the other with the meridional wind >> componant >> to use to make a trajectory via traj.gs >> >> >> >> > script. >> >> >> Here is the .ctl file for the zonal wind: >> DSET uwndavg2001.nc >> >> >> >> > >> >> >> OPTIONS template >> DTYPE netcdf >> XDEF longitude 144 linear 0.0 2.5 >> YDEF latitude 73 linear -90 2.5 >> TDEF time 1 linear 0z1Jan2001 1dy >> Here is the .ctl file for the meridional wind: >> DSET vwndavg2001.nc >> >> >> >> > >> >> >> OPTIONS template >> DTYPE netcdf >> XDEF longitude 144 linear 0.0 2.5 >> YDEF latitude 73 linear -90 2.5 >> TDEF time 1 linear 0z1Jan2001 1dy >> The variables for both are U and V respectively. >> However >> since the meridional file is open second the meridional >> wind becomes defined as V.2. Therefore, I have to >> redefine V=V.2. However when I run GrADS script >> traj.gs >> >> >> > I get >> >> the following message: >> >> Please open file and draw a chart >> How can I avoid this message and run traj.gs >> >> >> >> > >> successfully? >> Thanks, >> Jason >> >> >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/b656803b/attachment.html From arlindo.dasilva at GMAIL.COM Sun Jan 24 21:52:55 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sun, 24 Jan 2010 21:52:55 -0500 Subject: User extensions on OSX 10.6 In-Reply-To: Message-ID: On Fri, Jan 22, 2010 at 10:33 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Ramon > > In the unix world the 'ldd' command identifies the shared libraries that > are required. > > In the windows world, it is 'cygcheck' or the 'depends' gui. > > What is the equivalent on the MAC? Run it on your executable. Send the > results to this list. > > Next, your executable compiled and so it must be requiring the dlsym > dynamic linking loader object. Does the MAC have an equivalent? > > The "ldd" equivalent on Mac OS X is "otool -L". Arlindo > John Huddleston > > ________________________________________ > From: GRADSUSR at LIST.CINECA.IT [GRADSUSR at LIST.CINECA.IT] On Behalf Of Ramon > Solano [rsolanob at GMAIL.COM] > Sent: Friday, January 22, 2010 12:09 PM > To: GRADSUSR at LIST.CINECA.IT > Subject: User extensions on OSX 10.6 > > Hello all, > > I have been using my own specialized GrADS user extensions since v2.0.a4 > with no problem at all. I used the example udx "hello" and some techniques > showed in the other user extensions (thanks for providing the code). > > I use the GrADS source code and the additional supplibs to configure the > compilation, and then I jump into the extensions dir and then use the > "make". I later copy my UDX to the official compiled GrADS distribution in > my computers.This procedure have worked for my Mac OSX 10.5 (with fink) and > Linux (RedHat 32 and 64 bits) with absolutely no problems. > > However, I just updated my Mac OSX to 10.6 and as there is no official > gfortran released yet, I installed the one available on > http://quatramaran.ens.fr/~coudert/gfortran/gfortran-macosx-x86.dmg, which > identifies itself as "gcc version 4.5.0 20090604 (experimental) [trunk > revision 148180] (GCC) ". According to fink, I have gcc4.0 and gcc4.2 so > this may be an issue. > > My problem is that after apparently a good compilation of the UDX, GrADS > complains that "dlsym(0xe0d650, f_rsb): symbol not found" (f_rsb is my UDX). > I am doing exactly the same procedure as in 10.5, but here I am getting this > problem under 10.6 . GrADS is working perfectly, and all provided UDXs as > well so I know this should be possible. > > Any advice on a workaround would be greatly appreciated. > > Ramon > U of Arizona > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/d4b8ce5e/attachment.html From arlindo.dasilva at GMAIL.COM Sun Jan 24 22:03:17 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sun, 24 Jan 2010 22:03:17 -0500 Subject: User extensions on OSX 10.6 In-Reply-To: <20F22F83-2E63-436A-ADCE-67863F809C08@gmail.com> Message-ID: On Fri, Jan 22, 2010 at 2:09 PM, Ramon Solano wrote: > Hello all, > > I have been using my own specialized GrADS user extensions since v2.0.a4 > with no problem at all. Glad to hear. Let us know if you have anything that you would like to share with the community and we will consider it for inclusion with the opengrads extensions. > I used the example udx "hello" and some techniques showed in the other user > extensions (thanks for providing the code). > > I use the GrADS source code and the additional supplibs to configure the > compilation, and then I jump into the extensions dir and then use the > "make". I later copy my UDX to the official compiled GrADS distribution in > my computers.This procedure have worked for my Mac OSX 10.5 (with fink) and > Linux (RedHat 32 and 64 bits) with absolutely no problems. > > The most recent opengrads build for Mac OS X was done on Leopard (10.5) and is a 32-bit build. Mixing these binaries with any 64-bit dylibs built on 10.6 are likely not to work. However, I just updated my Mac OSX to 10.6 and as there is no official > gfortran released yet, I installed the one available on > http://quatramaran.ens.fr/~coudert/gfortran/gfortran-macosx-x86.dmg, which > identifies itself as "gcc version 4.5.0 20090604 (experimental) [trunk > revision 148180] (GCC) ". According to fink, I have gcc4.0 and gcc4.2 so > this may be an issue. > > I personally have not used fink in a long time. Mac ports have worked more reliably for me. > My problem is that after apparently a good compilation of the UDX, GrADS > complains that "dlsym(0xe0d650, f_rsb): symbol not found" (f_rsb is my UDX). > I am doing exactly the same procedure as in 10.5, but here I am getting this > problem under 10.6 . GrADS is working perfectly, and all provided UDXs as > well so I know this should be possible. > > Any advice on a workaround would be greatly appreciated. > > Sorry, I am yet to upgrade to Snow Leopard. I've heard that the 10.5 build work fine on 10.5. A work around until I can sort this issue out is to build on 10.5. I suspect the problem is related to 32/64 bit incompatibilities. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/7bce6ffd/attachment.html From arlindo.dasilva at GMAIL.COM Sun Jan 24 22:06:24 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sun, 24 Jan 2010 22:06:24 -0500 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: Message-ID: Mark, Does the "!" work at all? For example, does ga-> ! ls return anything? Arlindo On Fri, Jan 22, 2010 at 7:33 PM, Mark Sponsler wrote: > Hello, > I'm using Grads 2.0.a7.oga.3 on an Win XP box. All works fine except when > used in conjuction with ImageMagick. > > I run my script, then make 2 calls to ImageMagick to combine some of the > output images, then try to do a few simple GRADs cleanup tasks (increment > a > counter, then an endhwhile statement). > > The issue is GRADS hangs after the ImageMagick commands and does not > return to run the remainder of the script. > > Funny thing is when I run the exact same script under GRADS version 1.9, > all > works fine. > > Suspect there is some little bugaboo in the compile that prevents the > return > call to GRADS after executing the extrenal program. > > Here the segment of the code that fails: > > > 'draw string 10.55 7.45 Precip' > 'draw string 10.55 7.25 (in)' > endif > > ******************************* > 'printim c:/grib/dods_output/'reg'_'tx'hr.png png -b > c:/grib/dods_output/test.png -t 0 x700 y541 black' > > ******************************** > '!composite.exe -quality 100 > c:/grib/output/foreground_ETA_precip_wind/back/'reg'_trans.png > c:/grib/output/'reg'_'tx'hr.png c:/grib/dods_output/test1.png' > '!convert.exe c:/grib/dods_output/test1.png -depth 8 +dither -colors 256 > c:/grib/dods_output/'reg'_'tx'hr.png' > > tx = (tx+1) > if tx = 30 ; break ; endif > > 'clear' > endwhile > > Any help would be appreciated. > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/fd7d97e8/attachment.html From arlindo.dasilva at GMAIL.COM Sun Jan 24 22:10:24 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sun, 24 Jan 2010 22:10:24 -0500 Subject: GrADS multi-threading support In-Reply-To: Message-ID: On Fri, Jan 22, 2010 at 5:12 PM, Fil wrote: > Hi all, > > The question is simple, directed to GrADS developers. Will GrADS support > multi-threading in the future? > > What exactly would you like to accomplish? -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/20557314/attachment.html From arlindo.dasilva at GMAIL.COM Sun Jan 24 22:14:01 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sun, 24 Jan 2010 22:14:01 -0500 Subject: How join severals NetCDF files in one file NetCDF In-Reply-To: <607bb2141001210248g415d1c72h8c6d45595bc9f6d6@mail.gmail.com> Message-ID: On Thu, Jan 21, 2010 at 5:48 AM, Javier Pe?a wrote: > Hello all: > > I need to join several NetCDF in a single file NetCDF. Is it possible in > PCGrads for windows? How can I do it? > > Thank you very much. > > > If you can write a ddf/ctl and template your netcdf files, you should be able to use lats4d to create a single netcdf (or binary/hdf-4/grib, etc.) file. But I agree with Rodney, the investment in learning CDO would be worthwhile. Arlindo > -- > Javier Pe?a ?lvarez > Energ?as Renovables > javier.p at ereda.com > EREDA > > Tel: +34 91 5014755 > Fax: +34 91 5014756 > c/ T?llez 26, 28007 MADRID > www.ereda.com > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/c3a0577d/attachment.html From arlindo.dasilva at GMAIL.COM Sun Jan 24 22:18:40 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Sun, 24 Jan 2010 22:18:40 -0500 Subject: Changing spatial resolution on data file (from 2 X 2.5 degrees to 2.5 X 2.5 degrees) In-Reply-To: Message-ID: On Fri, Jan 22, 2010 at 2:33 AM, Jason Snyder wrote: > Hi, > > I obtained this data file on sulfate aerosols from: > > > http://gdata1.sci.gsfc.nasa.gov/daac-bin/G3/gui.cgi?instance_id=aerosol_daily > > It does not have a defined time value but still displays in GrADS as when I > specify set t 1, I get time 1:1:1:0. > > That is not a problem, however, the problem is that I need this data to > have a spatial resolution of 2.5X2.5 to be compatible with other data. It > currently has a spatial resolution of 2X2.5. How can I change the spatial > resoluton from 2X2.5 to 2.5 X 2.5? > > See this recipe: http://cookbooks.opengrads.org/index.php?title=Recipe-018:_Regridding_of_MERRA_data_for_comparison_with_other_reanalyses -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/d9c3a414/attachment.html From zowiti at NCST.GO.KE Sun Jan 24 23:06:35 2010 From: zowiti at NCST.GO.KE (Zablone Owiti) Date: Mon, 25 Jan 2010 12:06:35 +0800 Subject: climate data operators version 1.3.0 In-Reply-To: <1264072113.3069.8.camel@localhost.localdomain> Message-ID: Dear Grads Users, I have failed to get CDO V 1.3.0 in CDO page as advised in one of the earlier postings for Windows OS users. Where can it be download it from? Thanks -- ZABLONE OWITI GRADUATE STUDENT Nanjing University of Information, Science and Technology College of Atmospheric Science From jmssnyder at UCDAVIS.EDU Mon Jan 25 00:25:42 2010 From: jmssnyder at UCDAVIS.EDU (Jason Snyder) Date: Sun, 24 Jan 2010 21:25:42 -0800 Subject: Compounds variables Message-ID: I am working with compound variables as described in the below website: http://www.iges.org/grads/gadoc/script.html#while Here is the script: 'xdfopen uninan.ctl' 'set gxout shaded' 'set t 1' 'define temp=U' i=1 count=1 While(i<5) count=count+2 say count 'set t 'i dtx.count=U 'd dtx.count' i=i+1 endwhile How do I display the compound variables or make calculations w/ them? Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100124/e5029ccb/attachment.html From arlindo.dasilva at GMAIL.COM Mon Jan 25 12:25:12 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Mon, 25 Jan 2010 12:25:12 -0500 Subject: Compounds variables In-Reply-To: Message-ID: On Mon, Jan 25, 2010 at 12:25 AM, Jason Snyder wrote: > I am working with compound variables as described in the below website: > > http://www.iges.org/grads/gadoc/script.html#while > > Here is the script: > > 'xdfopen uninan.ctl' > 'set gxout shaded' > 'set t 1' > 'define temp=U' > i=1 > count=1 > While(i<5) > count=count+2 > say count > 'set t 'i > dtx.count=U > 'd dtx.count' > i=i+1 > endwhile > How do I display the compound variables or make calculations w/ them? > > This is usually a confusing aspect of grads to many newcomers. The grads script language and the expression parser are separate, they do not share the same namespace. For example, when you say dtx.count=U you are mixing namespaces. U belongs to expression parser namespace while dtx.count belongs to the script namespace; this is not allowed. Arlindo > Thanks, > > Jason > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100125/027d4f0c/attachment.html From msponsler at COMCAST.NET Mon Jan 25 15:37:41 2010 From: msponsler at COMCAST.NET (Mark Sponsler) Date: Mon, 25 Jan 2010 20:37:41 +0000 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <77fcd6b21001241906i55472f05i1671a29d0a15f660@mail.gmail.com> Message-ID: Hi Arlindo, Interesting..... If I start Grads then type in: ! ls? Grads just hangs.?No answer set is returned.? I presume a directory list should appear. But instead?nothing.... On another subject....Multi threading.? When I run Grads 1.9 on a dual core machine, it appears to split the work between the two cores with each core getting about 50-54% of the load.? On a single core machine it takes 100% of available CPU.?? So it splits the load, but does not make 100% use of both CPUs. Thanks, Mark ----- Original Message ----- From: "Arlindo da Silva" To: GRADSUSR at LIST.CINECA.IT Sent: Sunday, January 24, 2010 7:06:24 PM GMT -08:00 US/Canada Pacific Subject: Re: WIN GRADS 2.0.a7.oga.3 - Possible Bug Mark, ??Does the "!" work at all? For example, does ga-> ! ls return anything? ?? Arlindo On Fri, Jan 22, 2010 at 7:33 PM, Mark Sponsler < msponsler at comcast.net > wrote: Hello, I'm using Grads 2.0.a7.oga.3 on an Win XP box. ?All works fine except when used in conjuction with ImageMagick. I run my script, then make 2 calls to ImageMagick to combine some of the output images, then try to do a few simple GRADs cleanup tasks ?(increment a counter, then an endhwhile statement). The issue is GRADS hangs after the ImageMagick commands and does not return to run the remainder of the script. Funny thing is when I run the exact same script under GRADS version 1.9, all works fine. Suspect there is some little bugaboo in the compile that prevents the return call to GRADS after executing the extrenal program. Here the segment of the code that fails: ? ? ?'draw string 10.55 7.45 Precip' ? ? ?'draw string 10.55 7.25 (in)' ? ?endif ******************************* 'printim c:/grib/dods_output/'reg'_'tx'hr.png png -b c:/grib/dods_output/test.png -t 0 x700 y541 black' ******************************** '!composite.exe -quality 100 c:/grib/output/foreground_ETA_precip_wind/back/'reg'_trans.png c:/grib/output/'reg'_'tx'hr.png c:/grib/dods_output/test1.png' '!convert.exe c:/grib/dods_output/test1.png -depth 8 +dither -colors 256 c:/grib/dods_output/'reg'_'tx'hr.png' tx = (tx+1) ?if tx = 30 ; break ; endif 'clear' endwhile Any help would be appreciated. -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100125/3ba00ada/attachment.html From furue at HAWAII.EDU Mon Jan 25 22:21:36 2010 From: furue at HAWAII.EDU (Ryo Furue) Date: Mon, 25 Jan 2010 17:21:36 -1000 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <1471460287.16876481264451861840.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: Hi Mark, | On another subject....Multi threading.? When I run Grads 1.9 on a | dual core machine, it appears to split the work between the two | cores with each core getting about 50-54% of the load.? On a single | core machine it takes 100% of available CPU.?? So it splits the | load, but does not make 100% use of both CPUs. Since I'm not sure how Windows gather statistics like that, this is a pure guess, but I guess GrADS is frequently switched between the two cores; that is, it is run sometimes on one core and sometimes on the other. (GrADS is not multi-threaded, I think.) So, if you take an average, you will see each 50% of each core is used. Linux kernel doesn't migrate a process from one core to another that often, so that you actually see that one process uses 100% of one core at one moment and the same process uses 100% of another core at another moment. Regards, Ryo From andy at F5DATA.COM Mon Jan 25 22:45:20 2010 From: andy at F5DATA.COM (Andrew Revering) Date: Mon, 25 Jan 2010 21:45:20 -0600 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <20100125.172136.154040384.furue@hawaii.edu> Message-ID: Yeah that's just the way windows reports it. In reality, the process is in one core, which maximizes the 'processor' at 50% if it?s a dual core machine...even though the graphs show it on two cores. With the help of Arlindo I have a very neat setup in place to create a national radar composite. I had to be creative to make it timely using an 8 thread machine (4 cores * 2 (hyperthreading))... I broke up the script into 8 sub-scripts. Each launched from a proprietary app calling the GrADS scripts from a shell command. Windows opens each instance of GrADS in its own core, so you get to utilize all cores this way. I increased my processing time on an I7 920 processor from roughly 28 minutes down to 5 minutes, and was able to increase the resolution in the process as well. Andy -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of Ryo Furue Sent: Monday, January 25, 2010 9:22 PM To: GRADSUSR at LIST.CINECA.IT Subject: Re: WIN GRADS 2.0.a7.oga.3 - Possible Bug Hi Mark, | On another subject....Multi threading.? When I run Grads 1.9 on a | dual core machine, it appears to split the work between the two | cores with each core getting about 50-54% of the load.? On a single | core machine it takes 100% of available CPU.?? So it splits the | load, but does not make 100% use of both CPUs. Since I'm not sure how Windows gather statistics like that, this is a pure guess, but I guess GrADS is frequently switched between the two cores; that is, it is run sometimes on one core and sometimes on the other. (GrADS is not multi-threaded, I think.) So, if you take an average, you will see each 50% of each core is used. Linux kernel doesn't migrate a process from one core to another that often, so that you actually see that one process uses 100% of one core at one moment and the same process uses 100% of another core at another moment. Regards, Ryo From hmjbarbosa at GMAIL.COM Tue Jan 26 07:55:46 2010 From: hmjbarbosa at GMAIL.COM (Henrique Barbosa) Date: Tue, 26 Jan 2010 10:55:46 -0200 Subject: how to average grib files Message-ID: Dear All, I have hundreds of thousands of daily model data in grib format and I would like to create monthly averages of that. I know I could do that with a grads script, but it would take too much time. If I had netCDF files, there are tools like NCO that allows one to add, subtract, merge, average, etc.. a bunch of .nc files as long as they share the same variables. Is there something like that for grib files? Thks, Henrique From arlindo.dasilva at GMAIL.COM Tue Jan 26 09:27:41 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Tue, 26 Jan 2010 09:27:41 -0500 Subject: how to average grib files In-Reply-To: Message-ID: On Tue, Jan 26, 2010 at 7:55 AM, Henrique Barbosa wrote: > Dear All, > > I have hundreds of thousands of daily model data in grib format > and I would like to create monthly averages of that. I know I could > do that with a grads script, but it would take too much time. > > If I had netCDF files, there are tools like NCO that allows one to > add, subtract, merge, average, etc.. a bunch of .nc files > as long as they share the same variables. > > Is there something like that for grib files? > > Lats4d can average GRIB and any other grads readable format. See here: http://opengrads.org/wiki/index.php?title=Lats4D There are some recipes illustrating the use of lats4d, for example http://cookbooks.opengrads.org/index.php?title=Recipe-017:_Subsetting_and_reformating_MERRA_data_with_Lats4d http://cookbooks.opengrads.org/index.php?title=Recipe-018:_Regridding_of_MERRA_data_for_comparison_with_other_reanalyses Lats4d is included with the OpenGrADS bundle, see http://opengrads.org Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100126/7a4a3683/attachment.html From gzepka at DGE.INPE.BR Tue Jan 26 09:40:29 2010 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Tue, 26 Jan 2010 12:40:29 -0200 Subject: equivalent potential temperature Message-ID: Dear all, I am interested to analyse the atmospheric instability when a storm occurrs using equivalent potential temperature from mesoscale model. What atmospheric level do I need to check to get an idea of instability? I don't have a theta_e output, so I will calculate it from temperature and humidity data from model. Please, any help will be nice. Thanks. Gisele -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 From andy at F5DATA.COM Tue Jan 26 09:59:10 2010 From: andy at F5DATA.COM (Andrew Revering) Date: Tue, 26 Jan 2010 08:59:10 -0600 Subject: equivalent potential temperature In-Reply-To: <4B5EFEDD.3090404@dge.inpe.br> Message-ID: You can calculate the Theta-E from ANY level. The typical levels of interest for severe weather are 850mb and the surface. Values of 330K or greater are usually indicative of instability great enough for severe weather. If you're looking at severe weather, I probably would use the surface. Likewise, you can use the gradient you get from Theta-E, overlay wind barbs at the level you're calculating (surface or 850) and you get a real nice idea of where the boundaries are at that level. The disclaimer is there are a LOT of other parameters needed to really identify a situation as severe-worthy though. I don't know if GrADS has a function for it, but the 'saturated' potential temperature (Theta-E) can be calculated with either of the following: Tc= temperature in degrees C Td = dew point temperature in degrees C (if needed) Mb = station pressure (be careful to note this is not sea level pressure or altimeter, they are all different) M = Mixing Ratio (calculations below if needed) RH = relative humidity Ms = Saturation Mixing Ratio (if needed, calculations below) Es = Dry Saturation Vapor Pressure (calculations below if needed) ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) OR ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * 10 ^ (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) M= RH*Ms/100 OR M= ((0.622*E)/(Mb-E))*1000 Ms = ((Val(RH) / 100) / Val(M)) * 100 OR MORE ACCURATELY Ms = 0.622 * Es/(P - Es) Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) Andrew Revering Convective Development, Inc. http://www.convectivedevelopment.com/ -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of Gisele Zepka Sent: Tuesday, January 26, 2010 8:40 AM To: GRADSUSR at LIST.CINECA.IT Subject: equivalent potential temperature Dear all, I am interested to analyse the atmospheric instability when a storm occurrs using equivalent potential temperature from mesoscale model. What atmospheric level do I need to check to get an idea of instability? I don't have a theta_e output, so I will calculate it from temperature and humidity data from model. Please, any help will be nice. Thanks. Gisele -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 From gzepka at DGE.INPE.BR Tue Jan 26 10:50:14 2010 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Tue, 26 Jan 2010 13:50:14 -0200 Subject: equivalent potential temperature In-Reply-To: <201001261459.o0QEx7Et009601@mail.authsmtp.com> Message-ID: Thanks a lot Andrew. As I said before, I will use model data to calculate theta-e. If I set the surface in the model, it is 1013 hPa. Is this the level that I need to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and RH are catch in Mb level, aren't they? Gisele Em 26/1/2010 12:59, Andrew Revering escreveu: > You can calculate the Theta-E from ANY level. The typical levels of interest > for severe weather are 850mb and the surface. Values of 330K or greater are > usually indicative of instability great enough for severe weather. If you're > looking at severe weather, I probably would use the surface. Likewise, you > can use the gradient you get from Theta-E, overlay wind barbs at the level > you're calculating (surface or 850) and you get a real nice idea of where > the boundaries are at that level. > > The disclaimer is there are a LOT of other parameters needed to really > identify a situation as severe-worthy though. > > I don't know if GrADS has a function for it, but the 'saturated' potential > temperature (Theta-E) can be calculated with either of the following: > > Tc= temperature in degrees C > Td = dew point temperature in degrees C (if needed) > Mb = station pressure (be careful to note this is not sea level pressure or > altimeter, they are all different) > M = Mixing Ratio (calculations below if needed) > RH = relative humidity > Ms = Saturation Mixing Ratio (if needed, calculations below) > Es = Dry Saturation Vapor Pressure (calculations below if needed) > > ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) > > OR > > ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * 10 ^ > (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) > > > M= RH*Ms/100 > OR > M= ((0.622*E)/(Mb-E))*1000 > > Ms = ((Val(RH) / 100) / Val(M)) * 100 > OR MORE ACCURATELY > Ms = 0.622 * Es/(P - Es) > > Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) > > Andrew Revering > Convective Development, Inc. > http://www.convectivedevelopment.com/ > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of > Gisele Zepka > Sent: Tuesday, January 26, 2010 8:40 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: equivalent potential temperature > > Dear all, > > I am interested to analyse the atmospheric instability when a storm > occurrs using equivalent potential temperature from mesoscale model. > What atmospheric level do I need to check to get an idea of instability? > I don't have a theta_e output, so I will calculate it from temperature > and humidity data from model. > > Please, any help will be nice. > > Thanks. > Gisele > > -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 From andy at F5DATA.COM Tue Jan 26 10:59:40 2010 From: andy at F5DATA.COM (Andrew Revering) Date: Tue, 26 Jan 2010 09:59:40 -0600 Subject: equivalent potential temperature In-Reply-To: <4B5F0F36.2090008@dge.inpe.br> Message-ID: If you're using GRIB data, you should find a SFC level. You don't want to set it to 1013 because that isn't necessarily the suface. In many cases that will be an imaginary, extrapolation below ground (in the mountains for example). Look for 'SFC' in the inventory of your GRIB data for the proper level. You should be able to find Tc, Td, RH for the 'SFC' level in there to do the calculations. So to clarify... MB would be the MB at the Surface. How that?s defined exactly in your data set you'll have to figure out, but you don?t want it to calculate it for 1013, unless you wanted a geopotential height like 850mb done. Andrew Revering Convective Development, Inc. http://www.convectivedevelopment.com/ -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of Gisele Zepka Sent: Tuesday, January 26, 2010 9:50 AM To: GRADSUSR at LIST.CINECA.IT Subject: Re: equivalent potential temperature Thanks a lot Andrew. As I said before, I will use model data to calculate theta-e. If I set the surface in the model, it is 1013 hPa. Is this the level that I need to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and RH are catch in Mb level, aren't they? Gisele Em 26/1/2010 12:59, Andrew Revering escreveu: > You can calculate the Theta-E from ANY level. The typical levels of interest > for severe weather are 850mb and the surface. Values of 330K or greater are > usually indicative of instability great enough for severe weather. If you're > looking at severe weather, I probably would use the surface. Likewise, you > can use the gradient you get from Theta-E, overlay wind barbs at the level > you're calculating (surface or 850) and you get a real nice idea of where > the boundaries are at that level. > > The disclaimer is there are a LOT of other parameters needed to really > identify a situation as severe-worthy though. > > I don't know if GrADS has a function for it, but the 'saturated' potential > temperature (Theta-E) can be calculated with either of the following: > > Tc= temperature in degrees C > Td = dew point temperature in degrees C (if needed) > Mb = station pressure (be careful to note this is not sea level pressure or > altimeter, they are all different) > M = Mixing Ratio (calculations below if needed) > RH = relative humidity > Ms = Saturation Mixing Ratio (if needed, calculations below) > Es = Dry Saturation Vapor Pressure (calculations below if needed) > > ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) > > OR > > ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * 10 ^ > (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) > > > M= RH*Ms/100 > OR > M= ((0.622*E)/(Mb-E))*1000 > > Ms = ((Val(RH) / 100) / Val(M)) * 100 > OR MORE ACCURATELY > Ms = 0.622 * Es/(P - Es) > > Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) > > Andrew Revering > Convective Development, Inc. > http://www.convectivedevelopment.com/ > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of > Gisele Zepka > Sent: Tuesday, January 26, 2010 8:40 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: equivalent potential temperature > > Dear all, > > I am interested to analyse the atmospheric instability when a storm > occurrs using equivalent potential temperature from mesoscale model. > What atmospheric level do I need to check to get an idea of instability? > I don't have a theta_e output, so I will calculate it from temperature > and humidity data from model. > > Please, any help will be nice. > > Thanks. > Gisele > > -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 From gzepka at DGE.INPE.BR Tue Jan 26 11:08:56 2010 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Tue, 26 Jan 2010 14:08:56 -0200 Subject: equivalent potential temperature In-Reply-To: <201001261559.o0QFxbQF079019@mail.authsmtp.com> Message-ID: Well I have a problem then. I run the wrf model and it has 42 levels. The surface pressure is defined as 1013. This is my lowest level when I set z=1. I really don't know how to get this Mb. Gisele Em 26/1/2010 13:59, Andrew Revering escreveu: > If you're using GRIB data, you should find a SFC level. You don't want to > set it to 1013 because that isn't necessarily the suface. In many cases that > will be an imaginary, extrapolation below ground (in the mountains for > example). > > Look for 'SFC' in the inventory of your GRIB data for the proper level. You > should be able to find Tc, Td, RH for the 'SFC' level in there to do the > calculations. > > So to clarify... MB would be the MB at the Surface. How that?s defined > exactly in your data set you'll have to figure out, but you don?t want it to > calculate it for 1013, unless you wanted a geopotential height like 850mb > done. > > Andrew Revering > Convective Development, Inc. > http://www.convectivedevelopment.com/ > > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of > Gisele Zepka > Sent: Tuesday, January 26, 2010 9:50 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: Re: equivalent potential temperature > > Thanks a lot Andrew. > > As I said before, I will use model data to calculate theta-e. If I set > the surface in the model, it is 1013 hPa. Is this the level that I need > to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and > RH are catch in Mb level, aren't they? > > Gisele > > > Em 26/1/2010 12:59, Andrew Revering escreveu: > >> You can calculate the Theta-E from ANY level. The typical levels of >> > interest > >> for severe weather are 850mb and the surface. Values of 330K or greater >> > are > >> usually indicative of instability great enough for severe weather. If >> > you're > >> looking at severe weather, I probably would use the surface. Likewise, you >> can use the gradient you get from Theta-E, overlay wind barbs at the level >> you're calculating (surface or 850) and you get a real nice idea of where >> the boundaries are at that level. >> >> The disclaimer is there are a LOT of other parameters needed to really >> identify a situation as severe-worthy though. >> >> I don't know if GrADS has a function for it, but the 'saturated' potential >> temperature (Theta-E) can be calculated with either of the following: >> >> Tc= temperature in degrees C >> Td = dew point temperature in degrees C (if needed) >> Mb = station pressure (be careful to note this is not sea level pressure >> > or > >> altimeter, they are all different) >> M = Mixing Ratio (calculations below if needed) >> RH = relative humidity >> Ms = Saturation Mixing Ratio (if needed, calculations below) >> Es = Dry Saturation Vapor Pressure (calculations below if needed) >> >> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) >> >> OR >> >> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * 10 >> > ^ > >> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >> >> >> M= RH*Ms/100 >> OR >> M= ((0.622*E)/(Mb-E))*1000 >> >> Ms = ((Val(RH) / 100) / Val(M)) * 100 >> OR MORE ACCURATELY >> Ms = 0.622 * Es/(P - Es) >> >> Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) >> >> Andrew Revering >> Convective Development, Inc. >> http://www.convectivedevelopment.com/ >> >> -----Original Message----- >> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf >> > Of > >> Gisele Zepka >> Sent: Tuesday, January 26, 2010 8:40 AM >> To: GRADSUSR at LIST.CINECA.IT >> Subject: equivalent potential temperature >> >> Dear all, >> >> I am interested to analyse the atmospheric instability when a storm >> occurrs using equivalent potential temperature from mesoscale model. >> What atmospheric level do I need to check to get an idea of instability? >> I don't have a theta_e output, so I will calculate it from temperature >> and humidity data from model. >> >> Please, any help will be nice. >> >> Thanks. >> Gisele >> >> >> > > -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 From andy at F5DATA.COM Tue Jan 26 11:14:41 2010 From: andy at F5DATA.COM (Andrew Revering) Date: Tue, 26 Jan 2010 10:14:41 -0600 Subject: equivalent potential temperature In-Reply-To: <4B5F1398.4040606@dge.inpe.br> Message-ID: Well what you want to do is define what the surface LEVEL is... and have that LEVEL return to you whatever the pressure is at that level. So if you can figure out what the surface level is, that "row" of data should contain a pressure to use. Not sure if that helps. -----Original Message----- From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of Gisele Zepka Sent: Tuesday, January 26, 2010 10:09 AM To: GRADSUSR at LIST.CINECA.IT Subject: Re: equivalent potential temperature Well I have a problem then. I run the wrf model and it has 42 levels. The surface pressure is defined as 1013. This is my lowest level when I set z=1. I really don't know how to get this Mb. Gisele Em 26/1/2010 13:59, Andrew Revering escreveu: > If you're using GRIB data, you should find a SFC level. You don't want to > set it to 1013 because that isn't necessarily the suface. In many cases that > will be an imaginary, extrapolation below ground (in the mountains for > example). > > Look for 'SFC' in the inventory of your GRIB data for the proper level. You > should be able to find Tc, Td, RH for the 'SFC' level in there to do the > calculations. > > So to clarify... MB would be the MB at the Surface. How that?s defined > exactly in your data set you'll have to figure out, but you don?t want it to > calculate it for 1013, unless you wanted a geopotential height like 850mb > done. > > Andrew Revering > Convective Development, Inc. > http://www.convectivedevelopment.com/ > > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf Of > Gisele Zepka > Sent: Tuesday, January 26, 2010 9:50 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: Re: equivalent potential temperature > > Thanks a lot Andrew. > > As I said before, I will use model data to calculate theta-e. If I set > the surface in the model, it is 1013 hPa. Is this the level that I need > to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and > RH are catch in Mb level, aren't they? > > Gisele > > > Em 26/1/2010 12:59, Andrew Revering escreveu: > >> You can calculate the Theta-E from ANY level. The typical levels of >> > interest > >> for severe weather are 850mb and the surface. Values of 330K or greater >> > are > >> usually indicative of instability great enough for severe weather. If >> > you're > >> looking at severe weather, I probably would use the surface. Likewise, you >> can use the gradient you get from Theta-E, overlay wind barbs at the level >> you're calculating (surface or 850) and you get a real nice idea of where >> the boundaries are at that level. >> >> The disclaimer is there are a LOT of other parameters needed to really >> identify a situation as severe-worthy though. >> >> I don't know if GrADS has a function for it, but the 'saturated' potential >> temperature (Theta-E) can be calculated with either of the following: >> >> Tc= temperature in degrees C >> Td = dew point temperature in degrees C (if needed) >> Mb = station pressure (be careful to note this is not sea level pressure >> > or > >> altimeter, they are all different) >> M = Mixing Ratio (calculations below if needed) >> RH = relative humidity >> Ms = Saturation Mixing Ratio (if needed, calculations below) >> Es = Dry Saturation Vapor Pressure (calculations below if needed) >> >> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) >> >> OR >> >> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * 10 >> > ^ > >> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >> >> >> M= RH*Ms/100 >> OR >> M= ((0.622*E)/(Mb-E))*1000 >> >> Ms = ((Val(RH) / 100) / Val(M)) * 100 >> OR MORE ACCURATELY >> Ms = 0.622 * Es/(P - Es) >> >> Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) >> >> Andrew Revering >> Convective Development, Inc. >> http://www.convectivedevelopment.com/ >> >> -----Original Message----- >> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf >> > Of > >> Gisele Zepka >> Sent: Tuesday, January 26, 2010 8:40 AM >> To: GRADSUSR at LIST.CINECA.IT >> Subject: equivalent potential temperature >> >> Dear all, >> >> I am interested to analyse the atmospheric instability when a storm >> occurrs using equivalent potential temperature from mesoscale model. >> What atmospheric level do I need to check to get an idea of instability? >> I don't have a theta_e output, so I will calculate it from temperature >> and humidity data from model. >> >> Please, any help will be nice. >> >> Thanks. >> Gisele >> >> >> > > -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 From jdduda at IASTATE.EDU Tue Jan 26 11:23:40 2010 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Tue, 26 Jan 2010 10:23:40 -0600 Subject: equivalent potential temperature In-Reply-To: <4B5F1398.4040606@dge.inpe.br> Message-ID: Which model data are you using? American models should have data for surface pressure. It's usually called pressfc. Jeff Duda On Tue, Jan 26, 2010 at 10:08 AM, Gisele Zepka wrote: > Well I have a problem then. > I run the wrf model and it has 42 levels. The surface pressure is defined > as 1013. This is my lowest level when I set z=1. > I really don't know how to get this Mb. > > Gisele > > > Em 26/1/2010 13:59, Andrew Revering escreveu: > > If you're using GRIB data, you should find a SFC level. You don't want to >> set it to 1013 because that isn't necessarily the suface. In many cases >> that >> will be an imaginary, extrapolation below ground (in the mountains for >> example). >> >> Look for 'SFC' in the inventory of your GRIB data for the proper level. >> You >> should be able to find Tc, Td, RH for the 'SFC' level in there to do the >> calculations. >> >> So to clarify... MB would be the MB at the Surface. How that?s defined >> exactly in your data set you'll have to figure out, but you don?t want it >> to >> calculate it for 1013, unless you wanted a geopotential height like 850mb >> done. >> >> Andrew Revering >> Convective Development, Inc. >> http://www.convectivedevelopment.com/ >> >> >> -----Original Message----- >> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf >> Of >> Gisele Zepka >> Sent: Tuesday, January 26, 2010 9:50 AM >> To: GRADSUSR at LIST.CINECA.IT >> Subject: Re: equivalent potential temperature >> >> Thanks a lot Andrew. >> >> As I said before, I will use model data to calculate theta-e. If I set >> the surface in the model, it is 1013 hPa. Is this the level that I need >> to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and >> RH are catch in Mb level, aren't they? >> >> Gisele >> >> >> Em 26/1/2010 12:59, Andrew Revering escreveu: >> >> >>> You can calculate the Theta-E from ANY level. The typical levels of >>> >>> >> interest >> >> >>> for severe weather are 850mb and the surface. Values of 330K or greater >>> >>> >> are >> >> >>> usually indicative of instability great enough for severe weather. If >>> >>> >> you're >> >> >>> looking at severe weather, I probably would use the surface. Likewise, >>> you >>> can use the gradient you get from Theta-E, overlay wind barbs at the >>> level >>> you're calculating (surface or 850) and you get a real nice idea of where >>> the boundaries are at that level. >>> >>> The disclaimer is there are a LOT of other parameters needed to really >>> identify a situation as severe-worthy though. >>> >>> I don't know if GrADS has a function for it, but the 'saturated' >>> potential >>> temperature (Theta-E) can be calculated with either of the following: >>> >>> Tc= temperature in degrees C >>> Td = dew point temperature in degrees C (if needed) >>> Mb = station pressure (be careful to note this is not sea level pressure >>> >>> >> or >> >> >>> altimeter, they are all different) >>> M = Mixing Ratio (calculations below if needed) >>> RH = relative humidity >>> Ms = Saturation Mixing Ratio (if needed, calculations below) >>> Es = Dry Saturation Vapor Pressure (calculations below if needed) >>> >>> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) >>> >>> OR >>> >>> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * >>> 10 >>> >>> >> ^ >> >> >>> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >>> >>> >>> M= RH*Ms/100 >>> OR >>> M= ((0.622*E)/(Mb-E))*1000 >>> >>> Ms = ((Val(RH) / 100) / Val(M)) * 100 >>> OR MORE ACCURATELY >>> Ms = 0.622 * Es/(P - Es) >>> >>> Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) >>> >>> Andrew Revering >>> Convective Development, Inc. >>> http://www.convectivedevelopment.com/ >>> >>> -----Original Message----- >>> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf >>> >>> >> Of >> >> >>> Gisele Zepka >>> Sent: Tuesday, January 26, 2010 8:40 AM >>> To: GRADSUSR at LIST.CINECA.IT >>> Subject: equivalent potential temperature >>> >>> Dear all, >>> >>> I am interested to analyse the atmospheric instability when a storm >>> occurrs using equivalent potential temperature from mesoscale model. >>> What atmospheric level do I need to check to get an idea of instability? >>> I don't have a theta_e output, so I will calculate it from temperature >>> and humidity data from model. >>> >>> Please, any help will be nice. >>> >>> Thanks. >>> Gisele >>> >>> >>> >>> >> >> >> > > > -- > Msc. Gisele dos Santos Zepka > Atmospheric Electricity Group (ELAT) > National Institute for Space Research (INPE) > Av. dos Astronautas, 1758 > S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 > Phone ++55(12)39456841 > -- 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/20100126/55c8176f/attachment.html From gzepka at DGE.INPE.BR Tue Jan 26 11:36:11 2010 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Tue, 26 Jan 2010 14:36:11 -0200 Subject: equivalent potential temperature In-Reply-To: Message-ID: I will use temperature and relative humidity at surface from wrf model (TMPsfc and RHsfc). I think that I need to find the surface pressure from the variable pressfc. Gisele Em 26/1/2010 14:23, Jeffrey Duda escreveu: > Which model data are you using? American models should have data for > surface pressure. It's usually called pressfc. > > Jeff Duda > > On Tue, Jan 26, 2010 at 10:08 AM, Gisele Zepka > wrote: > > Well I have a problem then. > I run the wrf model and it has 42 levels. The surface pressure is > defined as 1013. This is my lowest level when I set z=1. > I really don't know how to get this Mb. > > Gisele > > > Em 26/1/2010 13:59, Andrew Revering escreveu: > > If you're using GRIB data, you should find a SFC level. You > don't want to > set it to 1013 because that isn't necessarily the suface. In > many cases that > will be an imaginary, extrapolation below ground (in the > mountains for > example). > > Look for 'SFC' in the inventory of your GRIB data for the > proper level. You > should be able to find Tc, Td, RH for the 'SFC' level in there > to do the > calculations. > > So to clarify... MB would be the MB at the Surface. How that?s > defined > exactly in your data set you'll have to figure out, but you > don?t want it to > calculate it for 1013, unless you wanted a geopotential height > like 850mb > done. > > Andrew Revering > Convective Development, Inc. > http://www.convectivedevelopment.com/ > > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT > [mailto:GRADSUSR at LIST.CINECA.IT > ] On Behalf Of > Gisele Zepka > Sent: Tuesday, January 26, 2010 9:50 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: Re: equivalent potential temperature > > Thanks a lot Andrew. > > As I said before, I will use model data to calculate theta-e. > If I set > the surface in the model, it is 1013 hPa. Is this the level > that I need > to consider in Mb (station pressure). If not, what is Mb? All > Tc, Td and > RH are catch in Mb level, aren't they? > > Gisele > > > Em 26/1/2010 12:59, Andrew Revering escreveu: > > You can calculate the Theta-E from ANY level. The typical > levels of > > interest > > for severe weather are 850mb and the surface. Values of > 330K or greater > > are > > usually indicative of instability great enough for severe > weather. If > > you're > > looking at severe weather, I probably would use the > surface. Likewise, you > can use the gradient you get from Theta-E, overlay wind > barbs at the level > you're calculating (surface or 850) and you get a real > nice idea of where > the boundaries are at that level. > > The disclaimer is there are a LOT of other parameters > needed to really > identify a situation as severe-worthy though. > > I don't know if GrADS has a function for it, but the > 'saturated' potential > temperature (Theta-E) can be calculated with either of the > following: > > Tc= temperature in degrees C > Td = dew point temperature in degrees C (if needed) > Mb = station pressure (be careful to note this is not sea > level pressure > > or > > altimeter, they are all different) > M = Mixing Ratio (calculations below if needed) > RH = relative humidity > Ms = Saturation Mixing Ratio (if needed, calculations below) > Es = Dry Saturation Vapor Pressure (calculations below if > needed) > > ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) > > OR > > ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH > * (3.884266 * 10 > > ^ > > (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) > > > M= RH*Ms/100 > OR > M= ((0.622*E)/(Mb-E))*1000 > > Ms = ((Val(RH) / 100) / Val(M)) * 100 > OR MORE ACCURATELY > Ms = 0.622 * Es/(P - Es) > > Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) > + 219.522]) > > Andrew Revering > Convective Development, Inc. > http://www.convectivedevelopment.com/ > > -----Original Message----- > From: GRADSUSR at LIST.CINECA.IT > > [mailto:GRADSUSR at LIST.CINECA.IT > ] On Behalf > > Of > > Gisele Zepka > Sent: Tuesday, January 26, 2010 8:40 AM > To: GRADSUSR at LIST.CINECA.IT > Subject: equivalent potential temperature > > Dear all, > > I am interested to analyse the atmospheric instability > when a storm > occurrs using equivalent potential temperature from > mesoscale model. > What atmospheric level do I need to check to get an idea > of instability? > I don't have a theta_e output, so I will calculate it from > temperature > and humidity data from model. > > Please, any help will be nice. > > Thanks. > Gisele > > > > > > > > -- > Msc. Gisele dos Santos Zepka > Atmospheric Electricity Group (ELAT) > National Institute for Space Research (INPE) > Av. dos Astronautas, 1758 > S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 > Phone ++55(12)39456841 > > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100126/1fb87096/attachment.html From jdduda at IASTATE.EDU Tue Jan 26 11:40:16 2010 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Tue, 26 Jan 2010 10:40:16 -0600 Subject: equivalent potential temperature In-Reply-To: <4B5F19FB.9020508@dge.inpe.br> Message-ID: Are you performing your own WRF simulations or are you obtaining past data from operationally run models? Jeff On Tue, Jan 26, 2010 at 10:36 AM, Gisele Zepka wrote: > I will use temperature and relative humidity at surface from wrf model > (TMPsfc and RHsfc). > I think that I need to find the surface pressure from the variable pressfc. > > Gisele > > > > Em 26/1/2010 14:23, Jeffrey Duda escreveu: > > Which model data are you using? American models should have data for > surface pressure. It's usually called pressfc. > > Jeff Duda > > On Tue, Jan 26, 2010 at 10:08 AM, Gisele Zepka wrote: > >> Well I have a problem then. >> I run the wrf model and it has 42 levels. The surface pressure is defined >> as 1013. This is my lowest level when I set z=1. >> I really don't know how to get this Mb. >> >> Gisele >> >> >> Em 26/1/2010 13:59, Andrew Revering escreveu: >> >> If you're using GRIB data, you should find a SFC level. You don't want to >>> set it to 1013 because that isn't necessarily the suface. In many cases >>> that >>> will be an imaginary, extrapolation below ground (in the mountains for >>> example). >>> >>> Look for 'SFC' in the inventory of your GRIB data for the proper level. >>> You >>> should be able to find Tc, Td, RH for the 'SFC' level in there to do the >>> calculations. >>> >>> So to clarify... MB would be the MB at the Surface. How that?s defined >>> exactly in your data set you'll have to figure out, but you don?t want it >>> to >>> calculate it for 1013, unless you wanted a geopotential height like 850mb >>> done. >>> >>> Andrew Revering >>> Convective Development, Inc. >>> http://www.convectivedevelopment.com/ >>> >>> >>> -----Original Message----- >>> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On Behalf >>> Of >>> Gisele Zepka >>> Sent: Tuesday, January 26, 2010 9:50 AM >>> To: GRADSUSR at LIST.CINECA.IT >>> Subject: Re: equivalent potential temperature >>> >>> Thanks a lot Andrew. >>> >>> As I said before, I will use model data to calculate theta-e. If I set >>> the surface in the model, it is 1013 hPa. Is this the level that I need >>> to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and >>> RH are catch in Mb level, aren't they? >>> >>> Gisele >>> >>> >>> Em 26/1/2010 12:59, Andrew Revering escreveu: >>> >>> >>>> You can calculate the Theta-E from ANY level. The typical levels of >>>> >>>> >>> interest >>> >>> >>>> for severe weather are 850mb and the surface. Values of 330K or greater >>>> >>>> >>> are >>> >>> >>>> usually indicative of instability great enough for severe weather. If >>>> >>>> >>> you're >>> >>> >>>> looking at severe weather, I probably would use the surface. Likewise, >>>> you >>>> can use the gradient you get from Theta-E, overlay wind barbs at the >>>> level >>>> you're calculating (surface or 850) and you get a real nice idea of >>>> where >>>> the boundaries are at that level. >>>> >>>> The disclaimer is there are a LOT of other parameters needed to really >>>> identify a situation as severe-worthy though. >>>> >>>> I don't know if GrADS has a function for it, but the 'saturated' >>>> potential >>>> temperature (Theta-E) can be calculated with either of the following: >>>> >>>> Tc= temperature in degrees C >>>> Td = dew point temperature in degrees C (if needed) >>>> Mb = station pressure (be careful to note this is not sea level pressure >>>> >>>> >>> or >>> >>> >>>> altimeter, they are all different) >>>> M = Mixing Ratio (calculations below if needed) >>>> RH = relative humidity >>>> Ms = Saturation Mixing Ratio (if needed, calculations below) >>>> Es = Dry Saturation Vapor Pressure (calculations below if needed) >>>> >>>> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) >>>> >>>> OR >>>> >>>> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * >>>> 10 >>>> >>>> >>> ^ >>> >>> >>>> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >>>> >>>> >>>> M= RH*Ms/100 >>>> OR >>>> M= ((0.622*E)/(Mb-E))*1000 >>>> >>>> Ms = ((Val(RH) / 100) / Val(M)) * 100 >>>> OR MORE ACCURATELY >>>> Ms = 0.622 * Es/(P - Es) >>>> >>>> Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) >>>> >>>> Andrew Revering >>>> Convective Development, Inc. >>>> http://www.convectivedevelopment.com/ >>>> >>>> -----Original Message----- >>>> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On >>>> Behalf >>>> >>>> >>> Of >>> >>> >>>> Gisele Zepka >>>> Sent: Tuesday, January 26, 2010 8:40 AM >>>> To: GRADSUSR at LIST.CINECA.IT >>>> Subject: equivalent potential temperature >>>> >>>> Dear all, >>>> >>>> I am interested to analyse the atmospheric instability when a storm >>>> occurrs using equivalent potential temperature from mesoscale model. >>>> What atmospheric level do I need to check to get an idea of instability? >>>> I don't have a theta_e output, so I will calculate it from temperature >>>> and humidity data from model. >>>> >>>> Please, any help will be nice. >>>> >>>> Thanks. >>>> Gisele >>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> -- >> Msc. Gisele dos Santos Zepka >> Atmospheric Electricity Group (ELAT) >> National Institute for Space Research (INPE) >> Av. dos Astronautas, 1758 >> S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 >> Phone ++55(12)39456841 >> > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda > > > > -- > Msc. Gisele dos Santos Zepka > Atmospheric Electricity Group (ELAT) > National Institute for Space Research (INPE) > Av. dos Astronautas, 1758 > S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 > Phone ++55(12)39456841 > > -- 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/20100126/f87b3ed3/attachment.html From gzepka at DGE.INPE.BR Tue Jan 26 11:42:06 2010 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Tue, 26 Jan 2010 14:42:06 -0200 Subject: equivalent potential temperature In-Reply-To: Message-ID: I am running my own wrf simulations. Gisele Em 26/1/2010 14:40, Jeffrey Duda escreveu: > Are you performing your own WRF simulations or are you obtaining past > data from operationally run models? > > Jeff > > On Tue, Jan 26, 2010 at 10:36 AM, Gisele Zepka > wrote: > > I will use temperature and relative humidity at surface from wrf > model (TMPsfc and RHsfc). > I think that I need to find the surface pressure from the variable > pressfc. > > Gisele > > > > Em 26/1/2010 14:23, Jeffrey Duda escreveu: >> Which model data are you using? American models should have data >> for surface pressure. It's usually called pressfc. >> >> Jeff Duda >> >> On Tue, Jan 26, 2010 at 10:08 AM, Gisele Zepka >> > wrote: >> >> Well I have a problem then. >> I run the wrf model and it has 42 levels. The surface >> pressure is defined as 1013. This is my lowest level when I >> set z=1. >> I really don't know how to get this Mb. >> >> Gisele >> >> >> Em 26/1/2010 13:59, Andrew Revering escreveu: >> >> If you're using GRIB data, you should find a SFC level. >> You don't want to >> set it to 1013 because that isn't necessarily the suface. >> In many cases that >> will be an imaginary, extrapolation below ground (in the >> mountains for >> example). >> >> Look for 'SFC' in the inventory of your GRIB data for the >> proper level. You >> should be able to find Tc, Td, RH for the 'SFC' level in >> there to do the >> calculations. >> >> So to clarify... MB would be the MB at the Surface. How >> that?s defined >> exactly in your data set you'll have to figure out, but >> you don?t want it to >> calculate it for 1013, unless you wanted a geopotential >> height like 850mb >> done. >> >> Andrew Revering >> Convective Development, Inc. >> http://www.convectivedevelopment.com/ >> >> >> -----Original Message----- >> From: GRADSUSR at LIST.CINECA.IT >> >> [mailto:GRADSUSR at LIST.CINECA.IT >> ] On Behalf Of >> Gisele Zepka >> Sent: Tuesday, January 26, 2010 9:50 AM >> To: GRADSUSR at LIST.CINECA.IT >> Subject: Re: equivalent potential temperature >> >> Thanks a lot Andrew. >> >> As I said before, I will use model data to calculate >> theta-e. If I set >> the surface in the model, it is 1013 hPa. Is this the >> level that I need >> to consider in Mb (station pressure). If not, what is Mb? >> All Tc, Td and >> RH are catch in Mb level, aren't they? >> >> Gisele >> >> >> Em 26/1/2010 12:59, Andrew Revering escreveu: >> >> You can calculate the Theta-E from ANY level. The >> typical levels of >> >> interest >> >> for severe weather are 850mb and the surface. Values >> of 330K or greater >> >> are >> >> usually indicative of instability great enough for >> severe weather. If >> >> you're >> >> looking at severe weather, I probably would use the >> surface. Likewise, you >> can use the gradient you get from Theta-E, overlay >> wind barbs at the level >> you're calculating (surface or 850) and you get a >> real nice idea of where >> the boundaries are at that level. >> >> The disclaimer is there are a LOT of other parameters >> needed to really >> identify a situation as severe-worthy though. >> >> I don't know if GrADS has a function for it, but the >> 'saturated' potential >> temperature (Theta-E) can be calculated with either >> of the following: >> >> Tc= temperature in degrees C >> Td = dew point temperature in degrees C (if needed) >> Mb = station pressure (be careful to note this is not >> sea level pressure >> >> or >> >> altimeter, they are all different) >> M = Mixing Ratio (calculations below if needed) >> RH = relative humidity >> Ms = Saturation Mixing Ratio (if needed, calculations >> below) >> Es = Dry Saturation Vapor Pressure (calculations >> below if needed) >> >> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) >> >> OR >> >> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * >> (RH * (3.884266 * 10 >> >> ^ >> >> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >> >> >> M= RH*Ms/100 >> OR >> M= ((0.622*E)/(Mb-E))*1000 >> >> Ms = ((Val(RH) / 100) / Val(M)) * 100 >> OR MORE ACCURATELY >> Ms = 0.622 * Es/(P - Es) >> >> Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * >> Td) + 219.522]) >> >> Andrew Revering >> Convective Development, Inc. >> http://www.convectivedevelopment.com/ >> >> -----Original Message----- >> From: GRADSUSR at LIST.CINECA.IT >> >> [mailto:GRADSUSR at LIST.CINECA.IT >> ] On Behalf >> >> Of >> >> Gisele Zepka >> Sent: Tuesday, January 26, 2010 8:40 AM >> To: GRADSUSR at LIST.CINECA.IT >> >> Subject: equivalent potential temperature >> >> Dear all, >> >> I am interested to analyse the atmospheric >> instability when a storm >> occurrs using equivalent potential temperature from >> mesoscale model. >> What atmospheric level do I need to check to get an >> idea of instability? >> I don't have a theta_e output, so I will calculate it >> from temperature >> and humidity data from model. >> >> Please, any help will be nice. >> >> Thanks. >> Gisele >> >> >> >> >> >> >> >> -- >> Msc. Gisele dos Santos Zepka >> Atmospheric Electricity Group (ELAT) >> National Institute for Space Research (INPE) >> Av. dos Astronautas, 1758 >> S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 >> Phone ++55(12)39456841 >> >> >> >> >> -- >> Jeff Duda >> Iowa State University >> Meteorology Graduate Student >> 3134 Agronomy Hall >> www.meteor.iastate.edu/~jdduda >> > > > -- > Msc. Gisele dos Santos Zepka > Atmospheric Electricity Group (ELAT) > National Institute for Space Research (INPE) > Av. dos Astronautas, 1758 > S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 > Phone ++55(12)39456841 > > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100126/7cda708b/attachment.html From jdduda at IASTATE.EDU Tue Jan 26 11:44:37 2010 From: jdduda at IASTATE.EDU (Jeffrey Duda) Date: Tue, 26 Jan 2010 10:44:37 -0600 Subject: equivalent potential temperature In-Reply-To: <4B5F1B5E.2000404@dge.inpe.br> Message-ID: What are you using to post-process the data? Jeff On Tue, Jan 26, 2010 at 10:42 AM, Gisele Zepka wrote: > I am running my own wrf simulations. > > Gisele > > > Em 26/1/2010 14:40, Jeffrey Duda escreveu: > > Are you performing your own WRF simulations or are you obtaining past data > from operationally run models? > > Jeff > > On Tue, Jan 26, 2010 at 10:36 AM, Gisele Zepka wrote: > >> I will use temperature and relative humidity at surface from wrf model >> (TMPsfc and RHsfc). >> I think that I need to find the surface pressure from the variable >> pressfc. >> >> Gisele >> >> >> >> Em 26/1/2010 14:23, Jeffrey Duda escreveu: >> >> Which model data are you using? American models should have data for >> surface pressure. It's usually called pressfc. >> >> Jeff Duda >> >> On Tue, Jan 26, 2010 at 10:08 AM, Gisele Zepka wrote: >> >>> Well I have a problem then. >>> I run the wrf model and it has 42 levels. The surface pressure is defined >>> as 1013. This is my lowest level when I set z=1. >>> I really don't know how to get this Mb. >>> >>> Gisele >>> >>> >>> Em 26/1/2010 13:59, Andrew Revering escreveu: >>> >>> If you're using GRIB data, you should find a SFC level. You don't want to >>>> set it to 1013 because that isn't necessarily the suface. In many cases >>>> that >>>> will be an imaginary, extrapolation below ground (in the mountains for >>>> example). >>>> >>>> Look for 'SFC' in the inventory of your GRIB data for the proper level. >>>> You >>>> should be able to find Tc, Td, RH for the 'SFC' level in there to do the >>>> calculations. >>>> >>>> So to clarify... MB would be the MB at the Surface. How that?s defined >>>> exactly in your data set you'll have to figure out, but you don?t want >>>> it to >>>> calculate it for 1013, unless you wanted a geopotential height like >>>> 850mb >>>> done. >>>> >>>> Andrew Revering >>>> Convective Development, Inc. >>>> http://www.convectivedevelopment.com/ >>>> >>>> >>>> -----Original Message----- >>>> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On >>>> Behalf Of >>>> Gisele Zepka >>>> Sent: Tuesday, January 26, 2010 9:50 AM >>>> To: GRADSUSR at LIST.CINECA.IT >>>> Subject: Re: equivalent potential temperature >>>> >>>> Thanks a lot Andrew. >>>> >>>> As I said before, I will use model data to calculate theta-e. If I set >>>> the surface in the model, it is 1013 hPa. Is this the level that I need >>>> to consider in Mb (station pressure). If not, what is Mb? All Tc, Td and >>>> RH are catch in Mb level, aren't they? >>>> >>>> Gisele >>>> >>>> >>>> Em 26/1/2010 12:59, Andrew Revering escreveu: >>>> >>>> >>>>> You can calculate the Theta-E from ANY level. The typical levels of >>>>> >>>>> >>>> interest >>>> >>>> >>>>> for severe weather are 850mb and the surface. Values of 330K or greater >>>>> >>>>> >>>> are >>>> >>>> >>>>> usually indicative of instability great enough for severe weather. If >>>>> >>>>> >>>> you're >>>> >>>> >>>>> looking at severe weather, I probably would use the surface. Likewise, >>>>> you >>>>> can use the gradient you get from Theta-E, overlay wind barbs at the >>>>> level >>>>> you're calculating (surface or 850) and you get a real nice idea of >>>>> where >>>>> the boundaries are at that level. >>>>> >>>>> The disclaimer is there are a LOT of other parameters needed to really >>>>> identify a situation as severe-worthy though. >>>>> >>>>> I don't know if GrADS has a function for it, but the 'saturated' >>>>> potential >>>>> temperature (Theta-E) can be calculated with either of the following: >>>>> >>>>> Tc= temperature in degrees C >>>>> Td = dew point temperature in degrees C (if needed) >>>>> Mb = station pressure (be careful to note this is not sea level >>>>> pressure >>>>> >>>>> >>>> or >>>> >>>> >>>>> altimeter, they are all different) >>>>> M = Mixing Ratio (calculations below if needed) >>>>> RH = relative humidity >>>>> Ms = Saturation Mixing Ratio (if needed, calculations below) >>>>> Es = Dry Saturation Vapor Pressure (calculations below if needed) >>>>> >>>>> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + (3 * M) >>>>> >>>>> OR >>>>> >>>>> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + (3 * (RH * (3.884266 * >>>>> 10 >>>>> >>>>> >>>> ^ >>>> >>>> >>>>> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >>>>> >>>>> >>>>> M= RH*Ms/100 >>>>> OR >>>>> M= ((0.622*E)/(Mb-E))*1000 >>>>> >>>>> Ms = ((Val(RH) / 100) / Val(M)) * 100 >>>>> OR MORE ACCURATELY >>>>> Ms = 0.622 * Es/(P - Es) >>>>> >>>>> Es = 6.1078 * exp([(9.5939 * Td) - 307.004]/[(0.556 * Td) + 219.522]) >>>>> >>>>> Andrew Revering >>>>> Convective Development, Inc. >>>>> http://www.convectivedevelopment.com/ >>>>> >>>>> -----Original Message----- >>>>> From: GRADSUSR at LIST.CINECA.IT [mailto:GRADSUSR at LIST.CINECA.IT] On >>>>> Behalf >>>>> >>>>> >>>> Of >>>> >>>> >>>>> Gisele Zepka >>>>> Sent: Tuesday, January 26, 2010 8:40 AM >>>>> To: GRADSUSR at LIST.CINECA.IT >>>>> Subject: equivalent potential temperature >>>>> >>>>> Dear all, >>>>> >>>>> I am interested to analyse the atmospheric instability when a storm >>>>> occurrs using equivalent potential temperature from mesoscale model. >>>>> What atmospheric level do I need to check to get an idea of >>>>> instability? >>>>> I don't have a theta_e output, so I will calculate it from temperature >>>>> and humidity data from model. >>>>> >>>>> Please, any help will be nice. >>>>> >>>>> Thanks. >>>>> Gisele >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Msc. Gisele dos Santos Zepka >>> Atmospheric Electricity Group (ELAT) >>> National Institute for Space Research (INPE) >>> Av. dos Astronautas, 1758 >>> S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 >>> Phone ++55(12)39456841 >>> >> >> >> >> -- >> Jeff Duda >> Iowa State University >> Meteorology Graduate Student >> 3134 Agronomy Hall >> www.meteor.iastate.edu/~jdduda >> >> >> >> -- >> Msc. Gisele dos Santos Zepka >> Atmospheric Electricity Group (ELAT) >> National Institute for Space Research (INPE) >> Av. dos Astronautas, 1758 >> S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 >> Phone ++55(12)39456841 >> >> > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda > > > > -- > Msc. Gisele dos Santos Zepka > Atmospheric Electricity Group (ELAT) > National Institute for Space Research (INPE) > Av. dos Astronautas, 1758 > S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 > Phone ++55(12)39456841 > > -- 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/20100126/888317d1/attachment.html From gzepka at DGE.INPE.BR Tue Jan 26 11:51:51 2010 From: gzepka at DGE.INPE.BR (Gisele Zepka) Date: Tue, 26 Jan 2010 14:51:51 -0200 Subject: equivalent potential temperature In-Reply-To: Message-ID: Arw_post from version 2.2 Gisele Em 26/1/2010 14:44, Jeffrey Duda escreveu: > What are you using to post-process the data? > > Jeff > > On Tue, Jan 26, 2010 at 10:42 AM, Gisele Zepka > wrote: > > I am running my own wrf simulations. > > Gisele > > > Em 26/1/2010 14:40, Jeffrey Duda escreveu: >> Are you performing your own WRF simulations or are you obtaining >> past data from operationally run models? >> >> Jeff >> >> On Tue, Jan 26, 2010 at 10:36 AM, Gisele Zepka >> > wrote: >> >> I will use temperature and relative humidity at surface from >> wrf model (TMPsfc and RHsfc). >> I think that I need to find the surface pressure from the >> variable pressfc. >> >> Gisele >> >> >> >> Em 26/1/2010 14:23, Jeffrey Duda escreveu: >>> Which model data are you using? American models should have >>> data for surface pressure. It's usually called pressfc. >>> >>> Jeff Duda >>> >>> On Tue, Jan 26, 2010 at 10:08 AM, Gisele Zepka >>> > wrote: >>> >>> Well I have a problem then. >>> I run the wrf model and it has 42 levels. The surface >>> pressure is defined as 1013. This is my lowest level >>> when I set z=1. >>> I really don't know how to get this Mb. >>> >>> Gisele >>> >>> >>> Em 26/1/2010 13:59, Andrew Revering escreveu: >>> >>> If you're using GRIB data, you should find a SFC >>> level. You don't want to >>> set it to 1013 because that isn't necessarily the >>> suface. In many cases that >>> will be an imaginary, extrapolation below ground (in >>> the mountains for >>> example). >>> >>> Look for 'SFC' in the inventory of your GRIB data >>> for the proper level. You >>> should be able to find Tc, Td, RH for the 'SFC' >>> level in there to do the >>> calculations. >>> >>> So to clarify... MB would be the MB at the Surface. >>> How that?s defined >>> exactly in your data set you'll have to figure out, >>> but you don?t want it to >>> calculate it for 1013, unless you wanted a >>> geopotential height like 850mb >>> done. >>> >>> Andrew Revering >>> Convective Development, Inc. >>> http://www.convectivedevelopment.com/ >>> >>> >>> -----Original Message----- >>> From: GRADSUSR at LIST.CINECA.IT >>> >>> [mailto:GRADSUSR at LIST.CINECA.IT >>> ] On Behalf Of >>> Gisele Zepka >>> Sent: Tuesday, January 26, 2010 9:50 AM >>> To: GRADSUSR at LIST.CINECA.IT >>> >>> Subject: Re: equivalent potential temperature >>> >>> Thanks a lot Andrew. >>> >>> As I said before, I will use model data to calculate >>> theta-e. If I set >>> the surface in the model, it is 1013 hPa. Is this >>> the level that I need >>> to consider in Mb (station pressure). If not, what >>> is Mb? All Tc, Td and >>> RH are catch in Mb level, aren't they? >>> >>> Gisele >>> >>> >>> Em 26/1/2010 12:59, Andrew Revering escreveu: >>> >>> You can calculate the Theta-E from ANY level. >>> The typical levels of >>> >>> interest >>> >>> for severe weather are 850mb and the surface. >>> Values of 330K or greater >>> >>> are >>> >>> usually indicative of instability great enough >>> for severe weather. If >>> >>> you're >>> >>> looking at severe weather, I probably would use >>> the surface. Likewise, you >>> can use the gradient you get from Theta-E, >>> overlay wind barbs at the level >>> you're calculating (surface or 850) and you get >>> a real nice idea of where >>> the boundaries are at that level. >>> >>> The disclaimer is there are a LOT of other >>> parameters needed to really >>> identify a situation as severe-worthy though. >>> >>> I don't know if GrADS has a function for it, but >>> the 'saturated' potential >>> temperature (Theta-E) can be calculated with >>> either of the following: >>> >>> Tc= temperature in degrees C >>> Td = dew point temperature in degrees C (if needed) >>> Mb = station pressure (be careful to note this >>> is not sea level pressure >>> >>> or >>> >>> altimeter, they are all different) >>> M = Mixing Ratio (calculations below if needed) >>> RH = relative humidity >>> Ms = Saturation Mixing Ratio (if needed, >>> calculations below) >>> Es = Dry Saturation Vapor Pressure (calculations >>> below if needed) >>> >>> ThetaE = (Tc + 273.15) * ( 1000 / Mb ) ^ 0.286 + >>> (3 * M) >>> >>> OR >>> >>> ThetaE = (273.15 + Tc) * ( 1000 / Mb ) ^ 0.286 + >>> (3 * (RH * (3.884266 * 10 >>> >>> ^ >>> >>> (( 7.5 * Tc ) / ( 237.7 + Tc )) ) /100 )) >>> >>> >>> M= RH*Ms/100 >>> OR >>> M= ((0.622*E)/(Mb-E))*1000 >>> >>> Ms = ((Val(RH) / 100) / Val(M)) * 100 >>> OR MORE ACCURATELY >>> Ms = 0.622 * Es/(P - Es) >>> >>> Es = 6.1078 * exp([(9.5939 * Td) - >>> 307.004]/[(0.556 * Td) + 219.522]) >>> >>> Andrew Revering >>> Convective Development, Inc. >>> http://www.convectivedevelopment.com/ >>> >>> -----Original Message----- >>> From: GRADSUSR at LIST.CINECA.IT >>> >>> [mailto:GRADSUSR at LIST.CINECA.IT >>> ] On Behalf >>> >>> Of >>> >>> Gisele Zepka >>> Sent: Tuesday, January 26, 2010 8:40 AM >>> To: GRADSUSR at LIST.CINECA.IT >>> >>> Subject: equivalent potential temperature >>> >>> Dear all, >>> >>> I am interested to analyse the atmospheric >>> instability when a storm >>> occurrs using equivalent potential temperature >>> from mesoscale model. >>> What atmospheric level do I need to check to get >>> an idea of instability? >>> I don't have a theta_e output, so I will >>> calculate it from temperature >>> and humidity data from model. >>> >>> Please, any help will be nice. >>> >>> Thanks. >>> Gisele >>> >>> >>> >>> >>> >>> >>> >>> -- >>> Msc. Gisele dos Santos Zepka >>> Atmospheric Electricity Group (ELAT) >>> National Institute for Space Research (INPE) >>> Av. dos Astronautas, 1758 >>> S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 >>> Phone ++55(12)39456841 >>> >>> >>> >>> >>> -- >>> Jeff Duda >>> Iowa State University >>> Meteorology Graduate Student >>> 3134 Agronomy Hall >>> www.meteor.iastate.edu/~jdduda >>> >> >> >> -- >> Msc. Gisele dos Santos Zepka >> Atmospheric Electricity Group (ELAT) >> National Institute for Space Research (INPE) >> Av. dos Astronautas, 1758 >> S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 >> Phone ++55(12)39456841 >> >> >> >> >> -- >> Jeff Duda >> Iowa State University >> Meteorology Graduate Student >> 3134 Agronomy Hall >> www.meteor.iastate.edu/~jdduda >> > > > -- > Msc. Gisele dos Santos Zepka > Atmospheric Electricity Group (ELAT) > National Institute for Space Research (INPE) > Av. dos Astronautas, 1758 > S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 > Phone ++55(12)39456841 > > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda -- Msc. Gisele dos Santos Zepka Atmospheric Electricity Group (ELAT) National Institute for Space Research (INPE) Av. dos Astronautas, 1758 S?o Jos? dos Campos/ SP/ Brazil CEP 12227-010 Phone ++55(12)39456841 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100126/eb5978c6/attachment.html From Wesley.Ebisuzaki at NOAA.GOV Tue Jan 26 15:03:59 2010 From: Wesley.Ebisuzaki at NOAA.GOV (Wesley Ebisuzaki) Date: Tue, 26 Jan 2010 15:03:59 -0500 Subject: grib2ctl.pl problem Message-ID: All, I thought about adding minutes to g2ctl and it wasn't hard. Mike Masscotte did the testing because I didn't have any realistic samples. ftp://ftp.cpc.ncep.noaa.gov/wd51we/g2ctl/g2ctl.alpha Wesley -------- Original Message -------- Subject: Re: grib2ctl.pl problem Date: Fri, 22 Jan 2010 09:48:31 -0500 From: Wesley Ebisuzaki To: GRADSUSR at LIST.CINECA.IT References: <20100121103432.40462.qmail at f4mail207.rediffmail.com> Litta, grib2ctl doesn't minute time steps. The only way is to try to modify the TDEF statement as you have attempted. Your attempt may have failed because of a space between 30 and mn. It could have also failed because the TDEF has a starting time 00Z11may2009 where your file may have started NN minutes after the hour. (00:NNZ11may2009). You should use the gribmap -v option to check for matches. I have no plans to add minutes to grib2ctl because grib2 is replacing grib1. I'll think of adding minutes to g2ctl. Wesley Litta AJ wrote: > Hi, > > I have got half hourly output files for 24 hours by running wrf post > processor(WPP). The following are the examples.. > WRFPRS_d01.000_00, WRFPRS_d01.000_30, > WRFPRS_d01.000_30WRFPRS_d01.001_30, ....., WRFPRS_d01.023_00, > WRFPRS_d01.023_30, WRFPRS_d01.024_00. > > I have created .ctl files by using grib2ctl.pl > > For that, i have made a concatenated file by cat command. then > grib2ctl.pl and gribmap > > cat WRFPRS_d01.000_00, WRFPRS_d01.000_30, ....., WRFPRS_d01.023_30, > WRFPRS_d01.024_00 > wrfprs_d01 > grib2ctl.pl -verf wrfprs_d01 > wrfprs_d01.ctl > gribmap -i wrfprs_d01.ctl > > But i am not getting the half hourly output. It is producing hourly > output. I have changed the time definition of wrfprs_d01.ctl file > from > tdef 25 linear 00Z11may2009 1hr > to > tdef 49 linear 00Z11may2009 30 mn > > Then also i didn't get the output... How can we plot the half hourly > outputs through grads using grib2ctl.pl? > Please help > > with best regards, > Litta > > Ms. Litta A. J. > Project Scientist > Centre for Atmospheric Sciences > Indian Institute of Technology (IIT) > Hauz Khas > New Delhi - 110016 > Ph: 09891717507 > > > From sulcaf5 at GMAIL.COM Tue Jan 26 16:24:41 2010 From: sulcaf5 at GMAIL.COM (juan carlos sulca jota) Date: Tue, 26 Jan 2010 16:24:41 -0500 Subject: como funciona 'comand modify' Message-ID: Buenas tardes alguien me puede responde como funciona el comando 'modify', ya que deseo utilizarlo para crear una climatologia de los meses de enero, febrero, ..., diciembre. 'set t 1 12' 'define sstclim = ave(sst, t+0, t=600, 12)' 'modify sstclim seasonal' y los valores que me generan el sstclim representan la climatologia de dicha variable y la pregunta es, si dicho valor sstclim se puede calcular como un simplemente promedio que se le hace a todos los eneros, febreros , .. diciembre del periodo de trabajo o se utiliza otro algoritmo matematico. Gracias. -- Juan C. Sulca Jota FCF - UNMSM -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100126/38d85737/attachment.html From zjuyanlibin at 163.COM Tue Jan 26 22:59:13 2010 From: zjuyanlibin at 163.COM (Yan Libin) Date: Wed, 27 Jan 2010 11:59:13 +0800 Subject: hi, dear friends Message-ID: Hi, dear friends, I am from China and pursuing climate change research. Grads is one of useful tools for me. I am writing to know more friends from all over the world. My msn id is: cas_ribbon at hotmail.com We can chat and enchange academic puzzles. I am waiting for you. Regrads, Libin Yan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100127/c851e500/attachment.html From emirzaei at GMAIL.COM Tue Jan 26 23:26:11 2010 From: emirzaei at GMAIL.COM (ebrahim mirzaei) Date: Wed, 27 Jan 2010 07:56:11 +0330 Subject: hi, dear friends In-Reply-To: <201001271159121870363@163.com> Message-ID: Hi Dear GrADS user, I hope you will be fine and successful. I'm from IRAN. On Wed, Jan 27, 2010 at 7:29 AM, Yan Libin wrote: > Hi, dear friends, > > I am from China and pursuing climate change research. > Grads is one of useful tools for me. > > I am writing to know more friends from all over the world. > My msn id is: cas_ribbon at hotmail.com > We can chat and enchange academic puzzles. > I am waiting for you. > > Regrads, > Libin Yan > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100127/4b9a81c8/attachment.html From arocha at FIS.UA.PT Wed Jan 27 07:49:31 2010 From: arocha at FIS.UA.PT (Alfredo Rocha) Date: Wed, 27 Jan 2010 13:49:31 +0100 Subject: wrfpost, GrADS andTemplating 'idx' grib files Message-ID: Hi, I got around it! For example, having 3 grib files, each for a time instant, and each having a index (idx) and ctl file associated, like wrfprs_d02_000.grb wrfprs_d02_000.idx wrfprs_d02_000.ctl wrfprs_d02_001.grb wrfprs_d02_001.idx wrfprs_d02_001.ctl wrfprs_d02_002.grb wrfprs_d02_002.idx wrfprs_d02_002.ctl For example, the contents of file wrfprs_d02_000.ctl is: dset ^wrfprs_d02.000.grb index ^wrfprs_d02.000.idx undef 9.999E+20 title wrfprs_d02.000 * produced by grib2ctl v0.9.12.5p45 dtype grib 255 pdef 95 140 lcc 35.866000 -12.249000 1 1 40.000000 40.000000 - 12.000000 5000 5000 xdef 95 linear -12.249000 0.0560897541291416 ydef 140 linear 35.866000 0.0454545454545455 tdef 1 linear 00Z22dec2009 1mo zdef 1 linear 1 1 vars 5 PRES2m 0 1,105,2 ** 2 m above ground Pressure [Pa] PRMSLmsl 0 2,102,0 ** mean-sea level Pressure reduced to MSL [Pa] UGRD10m 0 33,105,10 ** 10 m above ground u wind [m/s] VGRD10m 0 34,105,10 ** 10 m above ground v wind [m/s] var180sfc 0 180,1,0 ** surface undefined ENDVARS Do the following: 1. Copy wrfprs_d02_000.ctl to wrfprs_d02_all.ctl. 2. Edit this file to become: dset ^wrfprs_d02.%ch.grb chsub 1 1 000 chsub 2 2 001 chsub 3 3 002 index ^wrfprs_d02_all.idx options template undef 9.999E+20 * produced by grib2ctl v0.9.12.5p45 dtype grib 255 pdef 95 140 lcc 35.866000 -12.249000 1 1 40.000000 40.000000 - 12.000000 5000 5000 xdef 95 linear -12.249000 0.0560897541291416 ydef 140 linear 35.866000 0.0454545454545455 tdef 3 linear 00Z22dec2009 1hr zdef 1 linear 1 1 vars 5 PRES2m 0 1,105,2 ** 2 m above ground Pressure [Pa] PRMSLmsl 0 2,102,0 ** mean-sea level Pressure reduced to MSL [Pa] UGRD10m 0 33,105,10 ** 10 m above ground u wind [m/s] VGRD10m 0 34,105,10 ** 10 m above ground v wind [m/s] var180sfc 0 180,1,0 ** surface undefined ENDVARS 3. Generate a single idx file by doing: gribmap -v -i wrfprs_d02_all.ctl -O which creates the file wrfprs_d02_all.idx 3. Then, run GrADS and open file wrfprs_d02_all.ctl From here on you can access all 3 time instants from a single ctl and idx file, whitout having to deal with templating idx files. Alfredo From dsouza at CPTEC.INPE.BR Wed Jan 27 12:04:04 2010 From: dsouza at CPTEC.INPE.BR (Diego Souza) Date: Wed, 27 Jan 2010 15:04:04 -0200 Subject: Question about MERRA Message-ID: Hi, I would like kown if have precipitation data in the MERRA datasets. Thanks, _________________________________________ Diego Oliveira de Souza Grupo de Estudos Ambientais Integrados (GEAI) Instituto Nacional de Pesquisas Espaciais - INPE Cachoeira Paulista - SP Fone: (12) 31869512 Cel: (12) 91219668 _________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100127/912a5c5d/attachment.html From arlindo.dasilva at GMAIL.COM Wed Jan 27 12:56:36 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Wed, 27 Jan 2010 12:56:36 -0500 Subject: equivalent potential temperature In-Reply-To: <4B5EFEDD.3090404@dge.inpe.br> Message-ID: On Tue, Jan 26, 2010 at 9:40 AM, Gisele Zepka wrote: > Dear all, > > I am interested to analyse the atmospheric instability when a storm occurrs > using equivalent potential temperature from mesoscale model. What > atmospheric level do I need to check to get an idea of instability? I don't > have a theta_e output, so I will calculate it from temperature and humidity > data from model. > > Please, any help will be nice. > > The OpenGrADS bundle includes the *Saakeskus - Collection of Thunderstorm Related Functions, *in particular: * display dewpt(T,RH) - Dew-point Temperature display ept(T,RH,P) - Equivalent potential temperature display epi(T850,RH850,T500,RH500) - Potential Instability display plcl(T2M,RH2M,PS) - Pressure at LCL display shear(U1,V1,U2,V2) - Wind Shear display srh1km(uVAR,vVAR) - Storm-relative Helicity 0-1km display srh3km(uVAR,vVAR) - Storm-relative Helicity 0-3km display tlcl(T2M,RH2M) - Temperature at LCL display tsindex(CAPE180_0mb,CIN180_0mb) - Likelihood of T-storm Initiation display ttindex(T500,T850,RH850) - Total Totals Index display wchill(T2M,U10M,V10M) - Wind Chill Index (New) * More information here: http://opengrads.org/doc/udxt/saakeskus/ You can download the OpenGrADS bundle from here: http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle Good Luck, Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100127/774232ef/attachment.html From dasilva at ALUM.MIT.EDU Wed Jan 27 13:42:35 2010 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Wed, 27 Jan 2010 13:42:35 -0500 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <1471460287.16876481264451861840.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: On Mon, Jan 25, 2010 at 3:37 PM, Mark Sponsler wrote: > Hi Arlindo, > > Interesting..... > > > > If I start Grads then type in: > > ! ls > > > > Grads just hangs. No answer set is returned. I presume a directory list > should appear. But instead nothing.... > > > Hmm... It works OK on my Windows platform. Anybody out there having similar problems on Windows? I wonder if your GrADS v1.9 installation is not conflicting with your GrADS v2. Do you explicitly set any GrADS environment (GADDIR, GASCRP, etc.)? Is the v1.9 bin/ directory on your PATH? Did you use the .exe or .zip version of the superpack? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100127/218cb598/attachment.html From thi_veloso at YAHOO.COM.BR Wed Jan 27 17:13:32 2010 From: thi_veloso at YAHOO.COM.BR (Thiago Veloso) Date: Wed, 27 Jan 2010 14:13:32 -0800 Subject: Question about MERRA In-Reply-To: Message-ID: ??Accordingly to this website (http://disc.sci.gsfc.nasa.gov/daac-bin/DataHoldings.pl), there is no precipitation dataset on the listings. ??However, I'd recommend you to look for precipitation data on GPCP, TRMM or CMORPH programs. ??Best regards, ??Thiago. --- On Wed, 27/1/10, Diego Souza wrote: From: Diego Souza Subject: Question about MERRA To: GRADSUSR at LIST.CINECA.IT Date: Wednesday, 27 January, 2010, 15:04 Hi, I would like kown if have precipitation data in the MERRA datasets. Thanks, _________________________________________ Diego Oliveira de Souza Grupo de Estudos Ambientais Integrados (GEAI) Instituto Nacional de Pesquisas Espaciais - INPE Cachoeira Paulista - SP Fone: (12) 31869512 Cel: (12) 91219668 _________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100127/c700302f/attachment.html From peter.m.smith at NASA.GOV Wed Jan 27 17:41:20 2010 From: peter.m.smith at NASA.GOV (Peter Smith) Date: Wed, 27 Jan 2010 23:41:20 +0100 Subject: Question about MERRA Message-ID: There are a number of precipitation related parameters in the MERRA data products. Please see the link http://disc.sci.gsfc.nasa.gov/mdisc/documentation/MAI3CPASM.README.MERRA.pdf or download the MERRA filespec from GMAO site's page http://gmao.gsfc.nasa.gov/research/merra/file_specifications.php A search on precipitation will provide you with a number of precip parameters eg prectot ... Total precipitation kg m-2s-1 which is the sum of three other precip parameters precanv, preclsc, preccon (large scale precip from anvils, non-anvil and convective precipitation, respectively. Peter From msponsler at COMCAST.NET Wed Jan 27 22:18:13 2010 From: msponsler at COMCAST.NET (Mark Sponsler) Date: Thu, 28 Jan 2010 03:18:13 +0000 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <1288372752.18099021264648278715.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: Hi Arlindo, I tried taking Grads completely out of the PATH using Control Panel>System>Advanced>Environmnet Variables>? so there is no instance of Grads present. Then ?in the .bat file I use to start-up Grads, I configured it as follows: set PATH=c:\Program Files\OpenGrADS\Contents\Cygwin\Versions\2.0.a7.oga.2\i686;%PATH% set PATH=c:\Program Files\ImageMagick;%PATH% grads -blc 'test_script.gs' When I run the .bat file, grads run fine but imagemagick hangs Then if I reconfigure the batch file?as follows (to point ot the Grads 1.9 installation) all works fine: set PATH=C:\Program Files\PCGrADS19\win32;%PATH% set PATH=c:\Program Files\ImageMagick;%PATH% grads -blc 'test_snow7.gs' I get the same results when I configure the PATH through the Control Panel (first pointing to 2.0.a7.oga.2 and then Grads 1.9)? Next with no version of Grads specfiied in the Control Panel>....Environment Variables> and with a?shortcut pointed to Grads 2.0, I start Grads 2.0 up and try ! ls It hangs. I try the same thing with another shortcut pointed to Grads 1.9 and I get a directory listing Hmmm Do you have any other testing scenario's I could try? Thanks, Mark ----- Original Message ----- From: "Arlindo da Silva" To: "Mark Sponsler" Cc: "gradsusr" Sent: Wednesday, January 27, 2010 10:42:35 AM GMT -08:00 US/Canada Pacific Subject: Re: WIN GRADS 2.0.a7.oga.3 - Possible Bug On Mon, Jan 25, 2010 at 3:37 PM, Mark Sponsler < msponsler at comcast.net > wrote: Hi Arlindo, Interesting..... If I start Grads then type in: ! ls? Grads just hangs.?No answer set is returned.? I presume a directory list should appear. But instead?nothing.... Hmm... It works OK on my Windows platform. Anybody out there having similar problems on Windows? I wonder if your GrADS v1.9 installation is not conflicting with your GrADS v2. Do you explicitly set any GrADS environment (GADDIR, GASCRP, etc.)? Is the ?v1.9 bin/ directory on your PATH? Did you use the .exe or .zip version of the superpack? ? ?? ? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/6261f9a3/attachment.html From msponsler at COMCAST.NET Wed Jan 27 22:45:47 2010 From: msponsler at COMCAST.NET (Mark Sponsler) Date: Thu, 28 Jan 2010 03:45:47 +0000 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <77fcd6b21001271042s1e03dd9bqe068b556b26a774e@mail.gmail.com> Message-ID: Hi Arlindo, Another finding: I have both the 1.9 and the 2.0 Grads installtions on 2 different flash drives. I went to a computer that has never had Grads installed, plugged in the 1.9 flash drive and fired up grads, then ran ! ls? and sucessfully received a directory listing.? Did the same thing with the Grads 2.0 flash drive (on the same computer) and also received a directory liating. To me that suggests that indeed there is some sort of conflict occurring?on the machine that has previous grads installations. I went back to the machine that is having problems?and pulled wgrib out of the path too (along with all grads path variables). Plugged in the 1.9 flashdrive and got a Directory list, but still no luck with the 2.0 flash drive. I also have version 1.8 installed on that machine and am thinking that maybe?when I installed it I used the installer version instead of the zip installtion, and that maybe?some remnants are still lurking in the registry that might be causing a conflict.? That's purely a guess though.? Not even sure that would make a difference.? Any other suggestions????? Thanks, Mark ----- Original Message ----- From: "Arlindo da Silva" To: "Mark Sponsler" Cc: "gradsusr" Sent: Wednesday, January 27, 2010 10:42:35 AM GMT -08:00 US/Canada Pacific Subject: Re: WIN GRADS 2.0.a7.oga.3 - Possible Bug On Mon, Jan 25, 2010 at 3:37 PM, Mark Sponsler < msponsler at comcast.net > wrote: Hi Arlindo, Interesting..... If I start Grads then type in: ! ls? Grads just hangs.?No answer set is returned.? I presume a directory list should appear. But instead?nothing.... Hmm... It works OK on my Windows platform. Anybody out there having similar problems on Windows? I wonder if your GrADS v1.9 installation is not conflicting with your GrADS v2. Do you explicitly set any GrADS environment (GADDIR, GASCRP, etc.)? Is the ?v1.9 bin/ directory on your PATH? Did you use the .exe or .zip version of the superpack? ? ?? ? Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/db5ff4d7/attachment.html From dasilva at ALUM.MIT.EDU Wed Jan 27 23:59:01 2010 From: dasilva at ALUM.MIT.EDU (Arlindo da Silva) Date: Wed, 27 Jan 2010 23:59:01 -0500 Subject: WIN GRADS 2.0.a7.oga.3 - Possible Bug In-Reply-To: <580374120.18111131264650347764.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: Mark, Because I am always trying to get a relocatable solution I never make use of the Windows registry. The only system change I make (with the user's permission) is to add something to the path. Now, when you start a version of grads cygwin sets aside a chunk of shared memory for the POSIX emulation. Since v1.9 and v2.0 uses different versions o cygwin, running both versions without an intervening reboot could cause problems as these shared memory chunks could be inconsistent. So, in the machine where you are having problems, do a reboot and then try running v2.0 without having run v1.9. Any luck? Arlindo On Wed, Jan 27, 2010 at 10:45 PM, Mark Sponsler wrote: > Hi Arlindo, > > Another finding: > > > > I have both the 1.9 and the 2.0 Grads installtions on 2 different flash > drives. > > > > I went to a computer that has never had Grads installed, plugged in the 1.9 > flash drive and fired up grads, then ran > > ! ls > > and sucessfully received a directory listing. > > > > Did the same thing with the Grads 2.0 flash drive (on the same computer) > and also received a directory liating. > > > > To me that suggests that indeed there is some sort of conflict occurring on > the machine that has previous grads installations. > > > > I went back to the machine that is having problems and pulled wgrib out of > the path too (along with all grads path variables). > > > > Plugged in the 1.9 flashdrive and got a Directory list, but still no luck > with the 2.0 flash drive. > > > > I also have version 1.8 installed on that machine and am thinking that > maybe when I installed it I used the installer version instead of the zip > installtion, and that maybe some remnants are still lurking in the registry > that might be causing a conflict. That's purely a guess though. Not even > sure that would make a difference. > > > > Any other suggestions? > > Thanks, > Mark > > > ----- Original Message ----- > From: "Arlindo da Silva" > To: "Mark Sponsler" > Cc: "gradsusr" > Sent: Wednesday, January 27, 2010 10:42:35 AM GMT -08:00 US/Canada Pacific > Subject: Re: WIN GRADS 2.0.a7.oga.3 - Possible Bug > > > > On Mon, Jan 25, 2010 at 3:37 PM, Mark Sponsler wrote: > >> Hi Arlindo, >> >> Interesting..... >> >> >> >> If I start Grads then type in: >> >> ! ls >> >> >> >> Grads just hangs. No answer set is returned. I presume a directory list >> should appear. But instead nothing.... >> >> >> > > Hmm... It works OK on my Windows platform. Anybody out there having similar > problems on Windows? > > I wonder if your GrADS v1.9 installation is not conflicting with your GrADS > v2. Do you explicitly set any GrADS environment (GADDIR, GASCRP, etc.)? Is > the v1.9 bin/ directory on your PATH? Did you use the .exe or .zip version > of the superpack? > > 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/20100127/7207ef17/attachment.html From arlindo.dasilva at GMAIL.COM Thu Jan 28 00:11:10 2010 From: arlindo.dasilva at GMAIL.COM (Arlindo da Silva) Date: Thu, 28 Jan 2010 00:11:10 -0500 Subject: Question about MERRA In-Reply-To: <749797.46603.qm@web54302.mail.re2.yahoo.com> Message-ID: On Wed, Jan 27, 2010 at 5:13 PM, Thiago Veloso wrote: > Accordingly to this website ( > http://disc.sci.gsfc.nasa.gov/daac-bin/DataHoldings.pl), there is no > precipitation dataset on the listings. > > MERRA's emphasis is on the hydrological cycle, therefore precipitation is a key parameter. If you have the opengrads bundle start % merra then click on the [Monthly]/[Surface Fluxes] and select any of the precipitation variables. > However, I'd recommend you to look for precipitation data on GPCP, TRMM > or CMORPH programs. > > Precipitation from reanalyses are model derived parameters. Although MERRA precipitation has been evaluated against GPCP and other datasets, this is not a direct measurement. It is most useful in the context of the other climate parameters provided by MERRA. Arlindo > Best regards, > > Thiago. > > --- On *Wed, 27/1/10, Diego Souza * wrote: > > > From: Diego Souza > Subject: Question about MERRA > > To: GRADSUSR at LIST.CINECA.IT > Date: Wednesday, 27 January, 2010, 15:04 > > > Hi, > > I would like kown if have precipitation data in the MERRA datasets. > > Thanks, > _________________________________________ > > Diego Oliveira de Souza > Grupo de Estudos Ambientais Integrados (GEAI) > Instituto Nacional de Pesquisas Espaciais - INPE > Cachoeira Paulista - SP > Fone: (12) 31869512 > Cel: (12) 91219668 > _________________________________________ > > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/01db2c4f/attachment.html From munia_c at YAHOO.CO.IN Thu Jan 28 03:00:01 2010 From: munia_c at YAHOO.CO.IN (tanusri chakraborty) Date: Thu, 28 Jan 2010 13:30:01 +0530 Subject: multipanel plot Message-ID: Hi, ??? For multipanel plot I want to set only once cbar for all the plots(for 2-4plots). How can i do this in grads. Plz help me. Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/e26c5b2e/attachment.html From hyacinth.1 at HOTMAIL.COM Thu Jan 28 04:06:17 2010 From: hyacinth.1 at HOTMAIL.COM (Hyacinth Nnamchi) Date: Thu, 28 Jan 2010 17:06:17 +0800 Subject: multipanel plot In-Reply-To: <963524.39467.qm@web8318.mail.in.yahoo.com> Message-ID: Tanusri, You do that by first choosing the same 'clevs' and 'ccols' for all the panels/variables. Then display the variables, say 'var.1, var.2, var.3 etc'. Finally you 'cbar.gs' or 'cbarn.gs' as the case may be only once. Eg: 'set clevs .............' 'set rbcols ...........' 'd var.1' 'd var.2' 'd var.3' 'cbar.gs' This should give a colobar of the same scale. Goodluck, Hyacinth 'set clevs . Date: Thu, 28 Jan 2010 13:30:01 +0530 From: munia_c at YAHOO.CO.IN Subject: multipanel plot To: GRADSUSR at LIST.CINECA.IT Hi, For multipanel plot I want to set only once cbar for all the plots(for 2-4plots). How can i do this in grads. Plz help me. The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. _________________________________________________________________ Hotmail: Trusted email with powerful SPAM protection. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/de3db30b/attachment.html From vpk1 at LEICESTER.AC.UK Thu Jan 28 07:20:42 2010 From: vpk1 at LEICESTER.AC.UK (Kanawade, Vijay P.) Date: Thu, 28 Jan 2010 12:20:42 +0000 Subject: unsucnsribe Message-ID: UNSUBSRIBE -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/9f2e47cc/attachment.html From SKimball at USOUTHAL.EDU Thu Jan 28 12:29:45 2010 From: SKimball at USOUTHAL.EDU (Sytske Kimball) Date: Thu, 28 Jan 2010 11:29:45 -0600 Subject: negative values on bar charts In-Reply-To: <201001261459.o0QEx7Et009601@mail.authsmtp.com> Message-ID: All, I am trying to plot a bar chart that has both positive and negative values (the difference between 2 rain gauges at a certain site). So I set my y-axis range from -5 to +5 and hoped to see bars originating at the zero line and going up or down depending on whether the rain difference is positive or negative, respectively. But that didn't happen. All bars originated at the -5 line and stopped at whatever negative or positive value was assigned to them. Any ideas how I could change this? Thanks in advance, Sytske Sytske Kimball Associate Professor of Meteorology Dept. of Earth Sciences University of South Alabama Mobile, AL phone (251) 460-7031 or (251) 445-4294 fax (251) 460-7886 email skimball at usouthal.edu web: http://chiliweb.southalabama.edu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/f803444e/attachment.html From eliavs at GMAIL.COM Thu Jan 28 12:40:48 2010 From: eliavs at GMAIL.COM (eliav schmulewitz) Date: Thu, 28 Jan 2010 19:40:48 +0200 Subject: negative values on bar charts In-Reply-To: <4B617502.5606.00B9.0@usouthal.edu> Message-ID: Hi what format is your data in? eliav On Thu, Jan 28, 2010 at 7:29 PM, Sytske Kimball wrote: > All, > > I am trying to plot a bar chart that has both positive and negative values > (the difference between 2 rain gauges > at a certain site). So I set my y-axis range from -5 to +5 and hoped to see > bars originating at the zero line and > going up or down depending on whether the rain difference is positive or > negative, respectively. But that didn't > happen. All bars originated at the -5 line and stopped at whatever negative > or positive value was assigned to them. > Any ideas how I could change this? > > Thanks in advance, > Sytske > > > > > Sytske Kimball > Associate Professor of Meteorology > Dept. of Earth Sciences > University of South Alabama > Mobile, AL > phone (251) 460-7031 > or (251) 445-4294 > fax (251) 460-7886 > email skimball at usouthal.edu > web: http://chiliweb.southalabama.edu/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/a8c5da33/attachment.html From SKimball at USOUTHAL.EDU Thu Jan 28 12:58:50 2010 From: SKimball at USOUTHAL.EDU (Sytske Kimball) Date: Thu, 28 Jan 2010 11:58:50 -0600 Subject: negative values on bar charts In-Reply-To: <128fb9ed1001280940h8ae1190gdeca1478dc289245@mail.gmail.com> Message-ID: Someone already gave me the answer: "set barbase 0" Works slick as a whistle - thanks Bob! Sytske >>> eliav schmulewitz 1/28/2010 11:40 AM >>> Hi what format is your data in? eliav On Thu, Jan 28, 2010 at 7:29 PM, Sytske Kimball wrote: All, I am trying to plot a bar chart that has both positive and negative values (the difference between 2 rain gauges at a certain site). So I set my y-axis range from -5 to +5 and hoped to see bars originating at the zero line and going up or down depending on whether the rain difference is positive or negative, respectively. But that didn't happen. All bars originated at the -5 line and stopped at whatever negative or positive value was assigned to them. Any ideas how I could change this? Thanks in advance, Sytske Sytske Kimball Associate Professor of Meteorology Dept. of Earth Sciences University of South Alabama Mobile, AL phone (251) 460-7031 or (251) 445-4294 fax (251) 460-7886 email skimball at usouthal.edu web: http://chiliweb.southalabama.edu/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/e49c29ec/attachment.html From jgmsantos at GMAIL.COM Thu Jan 28 13:18:16 2010 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Thu, 28 Jan 2010 16:18:16 -0200 Subject: negative values on bar charts In-Reply-To: <4B617BD3.5606.00B9.0@usouthal.edu> Message-ID: See the file in attach! I suppose you want this. Guilherme. 2010/1/28 Sytske Kimball > Someone already gave me the answer: "set barbase 0" > Works slick as a whistle - thanks Bob! > Sytske > > >>> eliav schmulewitz 1/28/2010 11:40 AM >>> > Hi > what format is your data in? > eliav > > On Thu, Jan 28, 2010 at 7:29 PM, Sytske Kimball wrote: > >> All, >> I am trying to plot a bar chart that has both positive and negative >> values (the difference between 2 rain gauges >> at a certain site). So I set my y-axis range from -5 to +5 and hoped to >> see bars originating at the zero line and >> going up or down depending on whether the rain difference is positive or >> negative, respectively. But that didn't >> happen. All bars originated at the -5 line and stopped at whatever >> negative or positive value was assigned to them. >> Any ideas how I could change this? >> Thanks in advance, >> Sytske >> Sytske Kimball >> Associate Professor of Meteorology >> Dept. of Earth Sciences >> University of South Alabama >> Mobile, AL >> phone (251) 460-7031 >> or (251) 445-4294 >> fax (251) 460-7886 >> email skimball at usouthal.edu >> web: http://chiliweb.southalabama.edu/ >> > > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento - DMD Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE Rodovia Presidente Dutra, km 39 - CEP 12630-000 Cachoeira Paulista, SP, Brasil Telefone(CP): +55 12 3186 8502 Celular(SJC): +55 12 91678770 / +55 12 81528580 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://guilhermemartins.hd1.com.br/ ----------------------------------------------------------- Sent from Sao Jose Dos Campos, SP, Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/e9a136b5/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Capturar.PNG Type: image/png Size: 36632 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100128/e9a136b5/attachment.png From SKimball at USOUTHAL.EDU Thu Jan 28 14:37:38 2010 From: SKimball at USOUTHAL.EDU (Sytske Kimball) Date: Thu, 28 Jan 2010 13:37:38 -0600 Subject: negative values on bar charts In-Reply-To: Message-ID: Yes, that's it! Set barbase 0 does the trick. Thanks! Sytske >>> Guilherme Martins 1/28/2010 12:18 PM >>> See the file in attach! I suppose you want this. Guilherme. 2010/1/28 Sytske Kimball Someone already gave me the answer: "set barbase 0" Works slick as a whistle - thanks Bob! Sytske Sytske >>> eliav schmulewitz 1/28/2010 11:40 AM >>> Hi what format is your data in? eliav On Thu, Jan 28, 2010 at 7:29 PM, Sytske Kimball wrote: All, I am trying to plot a bar chart that has both positive and negative values (the difference between 2 rain gauges at a certain site). So I set my y-axis range from -5 to +5 and hoped to see bars originating at the zero line and going up or down depending on whether the rain difference is positive or negative, respectively. But that didn't happen. All bars originated at the -5 line and stopped at whatever negative or positive value was assigned to them. Any ideas how I could change this? Thanks in advance, Sytske Sytske Kimball Associate Professor of Meteorology Dept. of Earth Sciences University of South Alabama Mobile, AL phone (251) 460-7031 or (251) 445-4294 fax (251) 460-7886 email skimball at usouthal.edu web: http://chiliweb.southalabama.edu/ -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento - DMD Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE Rodovia Presidente Dutra, km 39 - CEP 12630-000 Cachoeira Paulista, SP, Brasil Telefone(CP): +55 12 3186 8502 Celular(SJC): +55 12 91678770 / +55 12 81528580 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://guilhermemartins.hd1.com.br/ ----------------------------------------------------------- Sent from Sao Jose Dos Campos, SP, Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/4a4db591/attachment.html From teddyallen at YAHOO.COM Thu Jan 28 19:38:35 2010 From: teddyallen at YAHOO.COM (Teddy Allen) Date: Thu, 28 Jan 2010 16:38:35 -0800 Subject: multipanel plot In-Reply-To: <963524.39467.qm@web8318.mail.in.yahoo.com> Message-ID: Dear Tanursi, While I have not tested this idea, I have a hint that may or may not work...you tell?me? Try following the below flow chart: 1) set your?contour dimensions (clevs, ccols, etc...) 2) set vpage 3) plot multi-plots 4) set vpage off 5) cbarn The trick probably lies on turning?vpage OFF before?callling color bar into action. Does this help? teddy ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: tanusri chakraborty To: GRADSUSR at LIST.CINECA.IT Sent: Thu, January 28, 2010 3:00:01 AM Subject: multipanel plot Hi, ??? For multipanel plot I want to set only once cbar for all the plots(for 2-4plots). How can i do this in grads. Plz help me. ________________________________ The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100128/e39d878a/attachment.html From fdaryabor at GOOGLEMAIL.COM Fri Jan 29 04:07:15 2010 From: fdaryabor at GOOGLEMAIL.COM (Farshid Daryabor) Date: Fri, 29 Jan 2010 17:07:15 +0800 Subject: Fwd: latter In-Reply-To: <9b8832d51001152002o63b7a7adm1e2fd9b4d0707e1@mail.gmail.com> Message-ID: ---------- Forwarded message ---------- From: Farshid Daryabor Date: Sat, Jan 16, 2010 at 12:02 PM Subject: Fwd: latter To: fdaryabor at googlemail.com ---------- Forwarded message ---------- From: Farshid Daryabor Date: Sat, Jan 16, 2010 at 11:49 AM Subject: latter To: fdaryabor at gmail.com *Dear all* I want know how can I convert sigma to Z coordinate (S2Z) by grads. Actually I have 3D variable and a 'ctl' file they are ok but when I want display variable I face to following error. Anybody could help me. ga-> set grads off ga-> set grid off grid is off ga-> set mpdset hires MPDSET file name = hires ga-> set lon 100.1 112.5 LON set to 100.1 112.5 ga-> set lat 4 LAT set to 3.976 3.976 ga-> set lev -4744.7907 -3.4106 LEV set to -4744.79 -3.4106 ga-> set t 1 Time values set: 1950:1:1:0 1950:1:1:0 ga-> set gxout shaded ga-> d temp Data Request Warning: Varying Z dimension environment... but the requested variable has no Z dimension Entire grid contents are set to missing data Warning issued for variable = temp Cannot contour grid - all undefined values ga-> *F.Daryabor Your Sincerely * *F.Daryabor (Ph.D Student) Center for Tropical and Climate Change System Faculty of Sciences and Technology National University of Malaysia (UKM) Bangi 43600 Selongor Malaysia** * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/65f263da/attachment.html From katiusca.briones at GMAIL.COM Fri Jan 29 06:40:02 2010 From: katiusca.briones at GMAIL.COM (Katiusca Briones) Date: Fri, 29 Jan 2010 09:40:02 -0200 Subject: lterp function Message-ID: Dear all Somebody have used lterp function in grads 1.9? or 2?. I need to know how to get the function, I read the command format at GRADS web page, but I do not know how to obtain that function. Any help is welcome. Thanks, Katiusca ------------------------------------------------------------------------------- Help save paper - do you need to print this email? TURN DOWN. SWITCH OFF. RECYCLE. WALK - CHANGE 2010/1/29 Farshid Daryabor > > > ---------- Forwarded message ---------- > From: Farshid Daryabor > Date: Sat, Jan 16, 2010 at 12:02 PM > Subject: Fwd: latter > To: fdaryabor at googlemail.com > > > > > ---------- Forwarded message ---------- > From: Farshid Daryabor > Date: Sat, Jan 16, 2010 at 11:49 AM > Subject: latter > To: fdaryabor at gmail.com > > > *Dear all* > > I want know how can I convert sigma to Z coordinate (S2Z) by grads. > Actually I have 3D variable and a 'ctl' file they are ok but when I want > display variable I face to following error. Anybody could help me. > ga-> set grads off > ga-> set grid off > grid is off > ga-> set mpdset hires > MPDSET file name = hires > ga-> set lon 100.1 112.5 > LON set to 100.1 112.5 > ga-> set lat 4 > LAT set to 3.976 3.976 > ga-> set lev -4744.7907 -3.4106 > LEV set to -4744.79 -3.4106 > ga-> set t 1 > Time values set: 1950:1:1:0 1950:1:1:0 > ga-> set gxout shaded > ga-> d temp > Data Request Warning: Varying Z dimension environment... > but the requested variable has no Z dimension > Entire grid contents are set to missing data > Warning issued for variable = temp > Cannot contour grid - all undefined values > ga-> > > > > > > > *F.Daryabor > Your Sincerely * > > > *F.Daryabor (Ph.D Student) > Center for Tropical and Climate Change System > Faculty of Sciences and Technology > National University of Malaysia (UKM) > Bangi 43600 > Selongor > Malaysia** > * > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/3be16f1f/attachment.html From pdjakow at GMAIL.COM Fri Jan 29 06:51:43 2010 From: pdjakow at GMAIL.COM (=?UTF-8?Q?Piotr_Djak=C3=B3w?=) Date: Fri, 29 Jan 2010 12:51:43 +0100 Subject: Different time indices Message-ID: Hello I've try to open two GRIB files with different time indices. When i try to make a plot : d tmp2m.1 - tmp2m.2 I've got an error message: "Data Request Error: Invalid grid coordinates World coordinates convert to non-integer grid coordinates" Is there any possibility to display two files with different time indices? Best Regards Piotr Djakow -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/29818669/attachment.html From hyacinth.1 at HOTMAIL.COM Fri Jan 29 06:56:29 2010 From: hyacinth.1 at HOTMAIL.COM (Hyacinth Nnamchi) Date: Fri, 29 Jan 2010 19:56:29 +0800 Subject: Different time indices In-Reply-To: <277f61791001290351l721c4618r26b6dffc7a4bc67b@mail.gmail.com> Message-ID: Piotor, U have to spell out the time before you display the variable e.g; 'set time 01jan1950 01jan2010' 'd tmp2m.1 - tmp2m.2' Hope this give the right result. Hyacinth Date: Fri, 29 Jan 2010 12:51:43 +0100 From: pdjakow at GMAIL.COM Subject: Different time indices To: GRADSUSR at LIST.CINECA.IT Hello I've try to open two GRIB files with different time indices. When i try to make a plot : d tmp2m.1 - tmp2m.2 I've got an error message: "Data Request Error: Invalid grid coordinates World coordinates convert to non-integer grid coordinates" Is there any possibility to display two files with different time indices? Best Regards Piotr Djakow _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/b5af8947/attachment.html From pdjakow at GMAIL.COM Fri Jan 29 10:56:30 2010 From: pdjakow at GMAIL.COM (=?UTF-8?Q?Piotr_Djak=C3=B3w?=) Date: Fri, 29 Jan 2010 16:56:30 +0100 Subject: Different time indices In-Reply-To: Message-ID: 2010/1/29 Hyacinth Nnamchi > Piotor, > U have to spell out the time before you display the variable e.g; > > 'set time 01jan1950 01jan2010' > 'd tmp2m.1 - tmp2m.2' > > Hope this give the right result. > > Hyacinth > > Didn't helped, but thanks :) Regards Piotr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/61a7241f/attachment.html From jgmsantos at GMAIL.COM Fri Jan 29 11:02:25 2010 From: jgmsantos at GMAIL.COM (Guilherme Martins) Date: Fri, 29 Jan 2010 14:02:25 -0200 Subject: Different time indices In-Reply-To: <277f61791001290756y428338e3wb3a4cdebdb48bd96@mail.gmail.com> Message-ID: See the levels, coordinates from your files, number of point (latitude and longitude), they're must be the same! or try this: d var1(t=2) - var1(t=1) Guilherme. 2010/1/29 Piotr Djak?w > > > 2010/1/29 Hyacinth Nnamchi > > Piotor, >> U have to spell out the time before you display the variable e.g; >> >> 'set time 01jan1950 01jan2010' >> 'd tmp2m.1 - tmp2m.2' >> >> Hope this give the right result. >> >> Hyacinth >> >> > Didn't helped, but thanks :) > > Regards > Piotr > > -- ----------------------------------------------------------- Jos? Guilherme Martins dos Santos Grupo de Modelagem da Atmosfera e Interfaces - GMAI Divis?o de Modelagem e Desenvolvimento - DMD Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE Rodovia Presidente Dutra, km 39 - CEP 12630-000 Cachoeira Paulista, SP, Brasil Telefone(CP): +55 12 3186 8502 Celular(SJC): +55 12 91678770 / +55 12 81528580 E-mail: guilherme.martins at cptec.inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://guilhermemartins.hd1.com.br/ ----------------------------------------------------------- Sent from Sao Jose Dos Campos, SP, Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/2a8c8e54/attachment.html From cmunozc at UDEC.CL Fri Jan 29 11:24:34 2010 From: cmunozc at UDEC.CL (Cristian Gonzal =?iso-8859-1?Q?Mu=F1oz_Castillo?=) Date: Fri, 29 Jan 2010 13:24:34 -0300 Subject: Different time indices In-Reply-To: Message-ID: This worked for me, i hope it does for you too.. 'set t time1 time2' # it can be time1 = 2 and time2 = 73 for example 'define var = var.1-var.2(t-1)' # for two files > See the levels, coordinates from your files, number of point (latitude and > longitude), they're must be the same! > > or try this: > > d var1(t=2) - var1(t=1) > > Guilherme. > > 2010/1/29 Piotr Djak?w > >> >> >> 2010/1/29 Hyacinth Nnamchi >> >> Piotor, >>> U have to spell out the time before you display the variable e.g; >>> >>> 'set time 01jan1950 01jan2010' >>> 'd tmp2m.1 - tmp2m.2' >>> >>> Hope this give the right result. >>> >>> Hyacinth >>> >>> >> Didn't helped, but thanks :) >> >> Regards >> Piotr >> >> > > > -- > ----------------------------------------------------------- > Jos? Guilherme Martins dos Santos > Grupo de Modelagem da Atmosfera e Interfaces - GMAI > Divis?o de Modelagem e Desenvolvimento - DMD > Centro de Previs?o de Tempo e Estudos Clim?ticos - INPE > Rodovia Presidente Dutra, km 39 - CEP 12630-000 > Cachoeira Paulista, SP, Brasil > Telefone(CP): +55 12 3186 8502 > Celular(SJC): +55 12 91678770 / +55 12 81528580 > E-mail: guilherme.martins at cptec.inpe.br > E-mail alternativo: jgmsantos at gmail.com > Homepage: http://guilhermemartins.hd1.com.br/ > ----------------------------------------------------------- > Sent from Sao Jose Dos Campos, SP, Brazil > -- Cristian G. Mu?oz Castillo Geof?sico Licenciado en Ciencias F?sicas Oficina 442 Depto. Geof?sica (DGEO) Fono (41) 2203155 Facultad Ciencias F?sicas y Matem?ticas Universidad de Concepci?n Concepci?n Chile From mike.bosilovich at GMAIL.COM Fri Jan 29 12:10:22 2010 From: mike.bosilovich at GMAIL.COM (Mike Bosilovich) Date: Fri, 29 Jan 2010 12:10:22 -0500 Subject: Question about MERRA In-Reply-To: <77fcd6b21001272111wcf34367h3fd241885867889@mail.gmail.com> Message-ID: I think Arlindo's comment on the use of MERRA or any reanalysis precipitation is spot on. I wanted to add that there is a lot of information on the MERRA web site about variables and how it is shaping both in climate and weather. This includes a frequently asked questions list, that can only grow if questions are asked! http://gmao.gsfc.nasa.gov/merra/ I also want to call out the File Specification document, which includes information on the grid and frequency of data, as well as the variable lists and discussion on the budgets. It is searchable PDF, so all the variables about a key word could be found. There are more than 300 variables across a dozen data collections. http://gmao.gsfc.nasa.gov/research/merra/file_specifications.php There is also an email for questions on MERRA that reaches model and data site developers, which helps because sometimes folks are out of town or not always available to respond. merra-questions at listserv.gsfc.nasa.gov Have a great weekend!! Mike On Thu, Jan 28, 2010 at 12:11 AM, Arlindo da Silva < arlindo.dasilva at gmail.com> wrote: > > > On Wed, Jan 27, 2010 at 5:13 PM, Thiago Veloso wrote: > >> Accordingly to this website ( >> http://disc.sci.gsfc.nasa.gov/daac-bin/DataHoldings.pl), there is no >> precipitation dataset on the listings. >> >> > MERRA's emphasis is on the hydrological cycle, therefore precipitation is a > key parameter. If you have the opengrads bundle start > > % merra > > then click on the [Monthly]/[Surface Fluxes] and select any of the > precipitation variables. > > >> However, I'd recommend you to look for precipitation data on GPCP, TRMM >> or CMORPH programs. >> >> > Precipitation from reanalyses are model derived parameters. Although MERRA > precipitation has been evaluated against GPCP and other datasets, this is > not a direct measurement. It is most useful in the context of the other > climate parameters provided by MERRA. > > Arlindo > > > > >> Best regards, >> >> Thiago. >> >> --- On *Wed, 27/1/10, Diego Souza * wrote: >> >> >> From: Diego Souza >> Subject: Question about MERRA >> >> To: GRADSUSR at LIST.CINECA.IT >> Date: Wednesday, 27 January, 2010, 15:04 >> >> >> Hi, >> >> I would like kown if have precipitation data in the MERRA datasets. >> >> Thanks, >> _________________________________________ >> >> Diego Oliveira de Souza >> Grupo de Estudos Ambientais Integrados (GEAI) >> Instituto Nacional de Pesquisas Espaciais - INPE >> Cachoeira Paulista - SP >> Fone: (12) 31869512 >> Cel: (12) 91219668 >> _________________________________________ >> >> >> > > > -- > Arlindo da Silva > dasilva at alum.mit.edu > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100129/f7732671/attachment.html From zjuyanlibin at 163.COM Sat Jan 30 20:07:53 2010 From: zjuyanlibin at 163.COM (=?utf-8?B?WWFuIExpYmlu?=) Date: Sun, 31 Jan 2010 09:07:53 +0800 Subject: Different time indices Message-ID: http://ams.allenpress.com/perlserv/?request=get-pdf&doi=10.1175%2F2009JAMC2167.1 who can send me a copy? Tks a million. Best regards, Libin Yan 2010-01-31 Yan Libin ???? Piotr_Djak?w ????? 2010-01-29 19:51:46 ???? GRADSUSR ??? ??? Different time indices Hello I've try to open two GRIB files with different time indices. When i try to make a plot : d tmp2m.1 - tmp2m.2 I've got an error message: "Data Request Error: Invalid grid coordinates World coordinates convert to non-integer grid coordinates" Is there any possibility to display two files with different time indices? Best Regards Piotr Djakow -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100131/fe8be833/attachment.html