From sd19surf at gmail.com Sun May 2 11:21:18 2010 From: sd19surf at gmail.com (Shawn Delaney) Date: Sun, 2 May 2010 18:21:18 +0300 Subject: [gradsusr] Writing Station Data File Using Excel VBA In-Reply-To: References: Message-ID: Stephen, Here's a simple write to text code I use for a readme file it also has a loop that goes through group of cells. It's something you could modify. ///Start Code/// 'Write the Initials to a Text file for the QA monitors to use Const DELIMITER As String = "" 'Normally none Const PAD As String = " " 'or other character Dim vFieldArray As Variant Dim myRecord As Range Dim nFileNum As Long Dim i As Long Dim sOut As String 'vFieldArray contains field lengths, in characters, from field 1 to N vFieldArray = Array(20, 10) nFileNum = FreeFile Open qaLocation & "Initials_Key_Readme.txt" For Output As #nFileNum Print #nFileNum, "**********************************" Print #nFileNum, "* The Initials Key for the QA *" Print #nFileNum, "**********************************" Print #nFileNum, "" Print #nFileNum, "Name Initals" Print #nFileNum, "" For Each myRecord In Workbooks(1).Worksheets("Master").Range("D7:D25") With myRecord For i = 0 To UBound(vFieldArray) sOut = sOut & DELIMITER & Left(.Offset(0, i).Text & _ String(vFieldArray(i), PAD), vFieldArray(i)) Next i Print #nFileNum, Mid(sOut, Len(DELIMITER) + 1) sOut = Empty End With Next myRecord Print #nFileNum, "" Print #nFileNum, "* If your initials aren't what you normally use" Print #nFileNum, "then you need to have the POC for your QA program" Print #nFileNum, "change them in the master. Changes will not take effect" Print #nFileNum, "until the next month!" Print #nFileNum, "" Print #nFileNum, "This initials file is vaild for the " & qaDate & " Excel file" Close #nFileNum ///End Code/// Might not be the most professional of codes. Hope this helps get you started. Shawn On 4/30/10, Stephen McMillan wrote: > Does anyone have a "simple" example of an Excel VBA (macro) for creating a > station data file for use in GrADS? I have searched the User Archives but > came up empty. I am familiar with the format instructions and the C and > Fortran examples in the GrAD's Users Guide, but wish to use Excel to create > the file. > > I could probably eventually translate from the Fortran example to VBA, but > it would help if someone has already done that! > > Stephen M > > *************************************************** > The information contained in this e-mail message > is intended only for the use of the recipient(s) > named above and may contain information that is > privileged, confidential, and/or proprietary. > If you are not the intended recipient, you may not > review, copy or distribute this message. If you have > received this communication in error, please notify > the sender immediately by e-mail, and delete the original message. > *************************************************** > From smcmillan at planalytics.com Sun May 2 17:27:56 2010 From: smcmillan at planalytics.com (Stephen McMillan) Date: Sun, 2 May 2010 17:27:56 -0400 Subject: [gradsusr] Writing Station Data File Using Excel VBA In-Reply-To: References: Message-ID: Shawn, Thanks for sending the "simple" sample code for writing to a text file. However, I was looking for sample code for creating the type of station data file (binary) specifically suited for GrADS use. I was actually looking for an Excel VBA translation of the sample Fortran or C codes shown in the GrADS Users Guide. Sorry if my query wasn't clear enough. I do appreciate your response, and it should be a useful answer for related questions. Stephen McMillan On Sun, May 2, 2010 at 11:21 AM, Shawn Delaney wrote: > Stephen, > > Here's a simple write to text code I use for a readme file it also > has a loop that goes through group of cells. It's something you could > modify. > > ///Start Code/// > 'Write the Initials to a Text file for the QA monitors to use > Const DELIMITER As String = "" 'Normally none > Const PAD As String = " " 'or other character > Dim vFieldArray As Variant > Dim myRecord As Range > Dim nFileNum As Long > Dim i As Long > Dim sOut As String > > 'vFieldArray contains field lengths, in characters, from field 1 to > N > vFieldArray = Array(20, 10) > nFileNum = FreeFile > Open qaLocation & "Initials_Key_Readme.txt" For Output As #nFileNum > Print #nFileNum, "**********************************" > Print #nFileNum, "* The Initials Key for the QA *" > Print #nFileNum, "**********************************" > Print #nFileNum, "" > Print #nFileNum, "Name Initals" > Print #nFileNum, "" > For Each myRecord In > Workbooks(1).Worksheets("Master").Range("D7:D25") > With myRecord > For i = 0 To UBound(vFieldArray) > sOut = sOut & DELIMITER & Left(.Offset(0, i).Text & _ > String(vFieldArray(i), PAD), vFieldArray(i)) > Next i > Print #nFileNum, Mid(sOut, Len(DELIMITER) + 1) > sOut = Empty > End With > Next myRecord > Print #nFileNum, "" > Print #nFileNum, "* If your initials aren't what you normally use" > Print #nFileNum, "then you need to have the POC for your QA program" > Print #nFileNum, "change them in the master. Changes will not > take effect" > Print #nFileNum, "until the next month!" > Print #nFileNum, "" > Print #nFileNum, "This initials file is vaild for the " & > qaDate & " Excel file" > Close #nFileNum > > ///End Code/// > > Might not be the most professional of codes. Hope this helps get you > started. > > Shawn > > On 4/30/10, Stephen McMillan wrote: > > Does anyone have a "simple" example of an Excel VBA (macro) for creating > a > > station data file for use in GrADS? I have searched the User Archives > but > > came up empty. I am familiar with the format instructions and the C and > > Fortran examples in the GrAD's Users Guide, but wish to use Excel to > create > > the file. > > > > I could probably eventually translate from the Fortran example to VBA, > but > > it would help if someone has already done that! > > > > Stephen M > > > > *************************************************** > > The information contained in this e-mail message > > is intended only for the use of the recipient(s) > > named above and may contain information that is > > privileged, confidential, and/or proprietary. > > If you are not the intended recipient, you may not > > review, copy or distribute this message. If you have > > received this communication in error, please notify > > the sender immediately by e-mail, and delete the original message. > > *************************************************** > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > *************************************************** The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message. *************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100502/69593a99/attachment.html From gibiesgeorge at gmail.com Mon May 3 06:39:09 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Mon, 3 May 2010 16:09:09 +0530 Subject: [gradsusr] GrADS Version 2.0.a7.1 Message-ID: Hello friends, I am not getting xdfopen command and printim command in my GrADS Anybody those who can point out the reason for the following error message, kindly reply grads Grid Analysis and Display System (GrADS) Version 2.0.a7.1 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v2.0.a7.1 big-endian Issue 'q config' command for more information. Landscape mode? ('n' for portrait): GX Package Initialization: Size = 11 8.5 ga> script1 No hardcopy metafile open All files closed; all defined objects released; All GrADS attributes have been reinitialized Unknown command: xdfopen SET Error: No files open yet SET Error: No files open yet SET Error: No files open yet SET Error: No files open yet DISPLAY error: no file open yet PRINTIM error: command not supported in this build -- Gibies George,CSIR-RF, CGM Division,IITM, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100503/6137a968/attachment.html From gibiesgeorge at gmail.com Mon May 3 08:38:25 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Mon, 3 May 2010 18:08:25 +0530 Subject: [gradsusr] GrADS Version 2.0.a7.1 In-Reply-To: References: Message-ID: Hello friends, I am not getting xdfopen command and printim command in my GrADS Anybody those who can point out the reason for the following error message, kindly reply grads Grid Analysis and Display System (GrADS) Version 2.0.a7.1 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) GrADS comes with ABSOLUTELY NO WARRANTY See file COPYRIGHT for more information Config: v2.0.a7.1 big-endian Issue 'q config' command for more information. Landscape mode? ('n' for portrait): GX Package Initialization: Size = 11 8.5 ga> script1 No hardcopy metafile open All files closed; all defined objects released; All GrADS attributes have been reinitialized Unknown command: xdfopen SET Error: No files open yet SET Error: No files open yet SET Error: No files open yet SET Error: No files open yet DISPLAY error: no file open yet PRINTIM error: command not supported in this build -- Gibies George,CSIR-RF, CGM Division,IITM, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100503/c3834b11/attachment.html From jma at cola.iges.org Mon May 3 09:59:27 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Mon, 3 May 2010 09:59:27 -0400 Subject: [gradsusr] GrADS Version 2.0.a7.1 In-Reply-To: References: Message-ID: <6CDBBC48-AC1B-4AAD-A99C-DB1300624888@cola.iges.org> Please see http://iges.org/grads/gadoc/supplibs.html for the list of supplemental libraries you need to build in order to enable printim and the xdfopen command. To enable printim, you need zlib, libpng, libjpeg, and libgd. For xdfopen you need netcdf and udunits. --Jennifer On May 3, 2010, at 8:38 AM, gibies george wrote: > > > > Hello friends, > > I am not getting xdfopen command and printim command in my GrADS > > Anybody those who can point out the reason for the following error > message, kindly reply > > > grads > > Grid Analysis and Display System (GrADS) Version 2.0.a7.1 > Copyright (c) 1988-2008 by Brian Doty and the > Institute for Global Environment and Society (IGES) > GrADS comes with ABSOLUTELY NO WARRANTY > See file COPYRIGHT for more information > > Config: v2.0.a7.1 big-endian > Issue 'q config' command for more information. > Landscape mode? ('n' for portrait): > GX Package Initialization: Size = 11 8.5 > ga> script1 > No hardcopy metafile open > All files closed; all defined objects released; > All GrADS attributes have been reinitialized > Unknown command: xdfopen > SET Error: No files open yet > SET Error: No files open yet > SET Error: No files open yet > SET Error: No files open yet > DISPLAY error: no file open yet > PRINTIM error: command not supported in this build > > > > -- > Gibies George,CSIR-RF, > CGM Division,IITM, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100503/98fd6151/attachment.html From mnaidoo4 at csir.co.za Mon May 3 10:01:56 2010 From: mnaidoo4 at csir.co.za (Mogesh Naidoo) Date: Mon, 03 May 2010 16:01:56 +0200 Subject: [gradsusr] Time series at point Message-ID: <4BDEF373.F815.0015.1@csir.co.za> Hi users, New to grads (using for 3 months now). I was wondering what the best way to extract a time series of values at a point on a grid. I'd like the values to be output to a text file. The grid is of netcdf format. So far I constrain the grid to one point and use set gxout value to give me a plot on the grads display. How can I get this into a text file? regards, Mogesh Naidoo Atmospheric Modelling Group Natural Resources and the Environment CSIR P.O. Box 17001, Congella 4013 Durban South Africa Telephone: [int+27] (0)31 242 2318 Email: mnaidoo4 at csir.co.za -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100503/af9b219e/attachment-0001.html From gibiesgeorge at gmail.com Mon May 3 11:18:13 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Mon, 3 May 2010 20:48:13 +0530 Subject: [gradsusr] Time series at point In-Reply-To: <4BDEF373.F815.0015.1@csir.co.za> References: <4BDEF373.F815.0015.1@csir.co.za> Message-ID: Mr. Seemanth M. generously contributed his script "Text output of data from a non-uniform latitude interval grid" to get the text output of binary data for a region for different time step. Here longitude has uniform interval and latitude is varying with irregular interval. Mr.Prejesh A.G. generously contributed his script for "Matrix text output of data" to get a gridded ASCII output of 6 hourly U component wind of one month data from ecmwf. Jan 28, 2010 12:53 PM see http://sites.google.com/site/modellingearth/chapters/software-tools-list/sample-codes/grads-code But in your case, you need only the output for single point and it would be much easier if you refer to the scripts mentioned above. With Best Regards, Gibies George,CSIR-RF, CGM Division, IITM, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100503/6a0d31fb/attachment.html From teddyallen at yahoo.com Mon May 3 12:08:35 2010 From: teddyallen at yahoo.com (Teddy Allen) Date: Mon, 3 May 2010 09:08:35 -0700 (PDT) Subject: [gradsusr] Time series at point In-Reply-To: <4BDEF373.F815.0015.1@csir.co.za> References: <4BDEF373.F815.0015.1@csir.co.za> Message-ID: <624166.13530.qm@web51505.mail.re2.yahoo.com> Mogesh, Try the following: 'set gxout fwrite' 'set fwrite?[INSERT YOUR FILE PATH AND FILE NAME HERE]'?? (example: 'set fwrite c:\mogesh\variable.txt') 'd VARIABLE'?? 'disable fwrite' ?(VARIABLE is whatever you are writing out.....) Also, all of your calculations and geographic settings should be done prior to the 'set gxout fwrite' line. This should write out your variable to a .txt file in the path name that was supplied. good luck, teddy ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: Mogesh Naidoo To: gradsusr at gradsusr.org Sent: Mon, May 3, 2010 10:01:56 AM Subject: [gradsusr] Time series at point Hi users, New to grads (using for 3 months now). I was wondering what the best way to extract a time series of values at?a point on a grid. I'd like the values to be output to a text file. The grid is of netcdf format. So far I constrain the grid to one point and use set gxout value to give me a plot on the grads display. How can I get this into a text file? regards, Mogesh Naidoo Atmospheric Modelling Group Natural Resources and the Environment CSIR P.O. Box 17001, Congella 4013 Durban South Africa Telephone: [int+27] (0)31 242 2318 Email: mnaidoo4 at csir.co.za -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100503/215ad89d/attachment.html From krishmet at gmail.com Mon May 3 13:05:02 2010 From: krishmet at gmail.com (krishnamohan) Date: Mon, 3 May 2010 22:35:02 +0530 Subject: [gradsusr] Time series at point In-Reply-To: <624166.13530.qm@web51505.mail.re2.yahoo.com> References: <4BDEF373.F815.0015.1@csir.co.za> <624166.13530.qm@web51505.mail.re2.yahoo.com> Message-ID: Hai Mogesh, See the attached sample program. In that the output will be written to a file called sample.txt regards krishnamohan -- Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology Cochin,India On Mon, May 3, 2010 at 9:38 PM, Teddy Allen wrote: > Mogesh, > Try the following: > > 'set gxout fwrite' > 'set fwrite [INSERT YOUR FILE PATH AND FILE NAME HERE]' (example: 'set > fwrite c:\mogesh\variable.txt') > 'd VARIABLE' > 'disable fwrite' > > > (VARIABLE is whatever you are writing out.....) Also, all of your > calculations and geographic settings should be done prior to the 'set gxout > fwrite' line. > > > This should write out your variable to a .txt file in the path name that > was supplied. > good luck, > teddy > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go *together*." > > African Proverb > > > ------------------------------ > *From:* Mogesh Naidoo > *To:* gradsusr at gradsusr.org > *Sent:* Mon, May 3, 2010 10:01:56 AM > *Subject:* [gradsusr] Time series at point > > Hi users, > > New to grads (using for 3 months now). > > I was wondering what the best way to extract a time series of values at a > point on a grid. > I'd like the values to be output to a text file. > The grid is of netcdf format. > > So far I constrain the grid to one point and use set gxout value to give me > a plot on the grads display. How can I get this into a text file? > > regards, > > > Mogesh Naidoo > Atmospheric Modelling Group > Natural Resources and the Environment > CSIR > P.O. Box 17001, > Congella 4013 > Durban > South Africa > > Telephone: [int+27] (0)31 242 2318 > Email: mnaidoo4 at csir.co.za > > -- > This message is subject to the CSIR's copyright terms and conditions, > e-mail legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at > http://www.csir.co.za/disclaimer.html. > > > This message has been scanned for viruses and dangerous content by * > MailScanner* , > and is believed to be clean. MailScanner thanks Transtec Computersfor their support. > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100503/6f782602/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.gs Type: application/octet-stream Size: 191 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100503/6f782602/attachment.obj From Austin.L.Conaty at nasa.gov Mon May 3 14:11:28 2010 From: Austin.L.Conaty at nasa.gov (Austin Conaty) Date: Mon, 3 May 2010 14:11:28 -0400 Subject: [gradsusr] Time series at point In-Reply-To: <624166.13530.qm@web51505.mail.re2.yahoo.com> References: <4BDEF373.F815.0015.1@csir.co.za> <624166.13530.qm@web51505.mail.re2.yahoo.com> Message-ID: <4BDF11D0.3090902@nasa.gov> Teddy, 'set gxout fwrite' gives you a flat binary data file. why would Mogesh want to write it to a file called variable.txt? it won't be text output but binary. -Austin Teddy Allen wrote: > Mogesh, > Try the following: > > 'set gxout fwrite' > 'set fwrite [INSERT YOUR FILE PATH AND FILE NAME HERE]' (example: 'set fwrite c:\mogesh\variable.txt') > 'd VARIABLE' > 'disable fwrite' > > > (VARIABLE is whatever you are writing out.....) Also, all of your calculations and geographic settings should be done prior to the 'set gxout fwrite' line. > > > This should write out your variable to a .txt file in the path name that was supplied. > good luck, > teddy > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go together." > > African Proverb > > > ________________________________ > From: Mogesh Naidoo > To: gradsusr at gradsusr.org > Sent: Mon, May 3, 2010 10:01:56 AM > Subject: [gradsusr] Time series at point > > Hi users, > > New to grads (using for 3 months now). > > I was wondering what the best way to extract a time series of values at a point on a grid. > I'd like the values to be output to a text file. > The grid is of netcdf format. > > So far I constrain the grid to one point and use set gxout value to give me a plot on the grads display. How can I get this into a text file? > > regards, > > > Mogesh Naidoo > Atmospheric Modelling Group > Natural Resources and the Environment > CSIR > P.O. Box 17001, > Congella 4013 > Durban > South Africa > > Telephone: [int+27] (0)31 242 2318 > Email: mnaidoo4 at csir.co.za > > -- > This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. > > This message has been scanned for viruses and dangerous content by MailScanner, > and is believed to be clean. MailScanner thanks Transtec Computers for their support. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- Austin Conaty, SAIC Global Modeling & Assimilation Office 301-614-6149 (ph) NASA Goddard Space Flight Center 301-614-6297 (fax) Code 610.1 Greenbelt, MD 20771 Austin.L.Conaty at .nasa.gov http://gmao.gsfc.nasa.gov From Ron.Goodson at EC.gc.ca Mon May 3 14:33:33 2010 From: Ron.Goodson at EC.gc.ca (Goodson,Ron [Edm]) Date: Mon, 3 May 2010 12:33:33 -0600 Subject: [gradsusr] Time series at point In-Reply-To: <4BDF11D0.3090902@nasa.gov> Message-ID: <4A6AB38B55B49C44A22E021A83CBEDDB06938596@sr-pnr-exch3.prairie.int.ec.gc.ca> This topic about writing text comes up a lot! Anywhoo .. short form is to - set gxout print - d - which will write something but also send it to the grads pre-defined "result" - write "result" to file Here is a script I use to write out some results to a file. It has a bunch of hardcoded variable names and paths - but you can probably modify it to suit your needs. There may be other, better ways to accomplish this task .. but this works for me. ------------------------------------------------------------------------------------------- * Script in testing to write data values at lat/lon (not using gr2stn - just * nearest grid point) to a file. * * * Set the list of Variables, and some name-mapping that I'll remember. * Should be in a read-config file, but we shall throw it in here for now. var.1.1 = 'TMPl11910000 - 273.16' var.1.2 = 'Surface Temperature' var.2.1 = 'TCDCsfc' var.2.2 = 'Cloud Cover' var.3.1 = 'TMPPRS(lev=850)' var.3.2 = 'Temperature 850mb' NumVars = 3 * For now - pretend the grib file is open * * Read in the list of stations and the lat/lon and put into a some * global variables site = 1 while (1) result = read("/home/ron/GEMLAM/Meteograms/stn.cfg") EOF = sublin(result,1) if (EOF = 2) break endif line2 = sublin(result,2) _name.site = subwrd(line2, 1) _lat.site = subwrd(line2,2) _lon.site = subwrd(line2,3) ** say "name is " _name.site ' ' _lat.site ' ' _lon.site site = site + 1 endwhile _NumSites = site - 1 * Set the time to 1 and do an inquiry on the * time. We can use this to get the date/time * of our data. Will be used in the name of * the output file 'set t 1' MyDTStamp = DateTimeStamp() say "Date Time Stamp is " MyDTStamp * Now get the time range of our data, as * we want to loop through all time periods * For now, user will just have to know what * the time increment is 'q file' MyLine = sublin(result, 5) TimeSteps = subwrd(MyLine, 12) 'set t 1 ' TimeSteps * Loop through the sites and print out some values to * a file. For now, just one big file but it could * just as easily be a seperate file for each station. * * For now, just hardcode the name of the variable that is * desired. I might make some more obvious names later as * I'll want to use them in the GribViewer program MyFile = MyDTStamp".txt" rc = write (MyFile, 'Model Run ' MyDTStamp ) 'set gxout print' 'set prnopts %6.1f 17' MySite = 1 while (MySite <= _NumSites) say 'working on '_name.MySite 'set lat ' _lat.MySite 'set lon ' _lon.MySite rc = write(MyFile,'') rc = write (MyFile, 'Station '_name.MySite' ' _lat.MySite ' ' _lon.MySite) MyVar = 1 while (MyVar <= NumVars) 'd ' var.MyVar.1 rc = write(MyFile, var.MyVar.2) MyResult = sublin(result, 3) say MyResult rc = write (MyFile, MyResult) MyVar = MyVar + 1 endwhile MySite = MySite + 1 endwhile *-------------------------------------------------------------- function DateTimeStamp() month.JAN = "01" month.FEB = "02" month.MAR = "03" month.APR = "04" month.MAY = "05" month.JUN = "06" month.JUL = "07" month.AUG = "08" month.SEP = "09" month.OCT = "10" month.NOV = "11" month.DEC = "12" 'q dim' rec = sublin(result,5) time = subwrd(rec,6) MyHour = substr(time,1,2) MyDay = substr(time,4,2) MyMonth = substr(time,6,3) MyYear = substr(time,9,4) NumMonth = month.MyMonth return MyYear''NumMonth''MyDay'_'MyHour *------------------------------------------------------------------ Ron Goodson Prairie and Northern Meteorological Service of Canada Science Section Unit? des Sciences, R?gion des Prairies et du Nord, Service M?t?orologique du Canada Environment Canada Room 200 ; 4999 - 98 Avenue Edmonton Alberta T6B 2X3 Environnement Canada Pi?ce 200 ; 4999 - 98 Avenue Edmonton Alberta T6B 2X3 Telephone | T?l?phone 780 951 8791 Email | Courriel ron.goodson at ec.gc.ca -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Austin Conaty Sent: May 3, 2010 12:11 PM To: GrADS Users Forum Subject: Re: [gradsusr] Time series at point Teddy, 'set gxout fwrite' gives you a flat binary data file. why would Mogesh want to write it to a file called variable.txt? it won't be text output but binary. -Austin Teddy Allen wrote: > Mogesh, > Try the following: > > 'set gxout fwrite' > 'set fwrite [INSERT YOUR FILE PATH AND FILE NAME HERE]' (example: 'set fwrite c:\mogesh\variable.txt') > 'd VARIABLE' > 'disable fwrite' > > > (VARIABLE is whatever you are writing out.....) Also, all of your calculations and geographic settings should be done prior to the 'set gxout fwrite' line. > > > This should write out your variable to a .txt file in the path name that was supplied. > good luck, > teddy > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go together." > > African Proverb > > > ________________________________ > From: Mogesh Naidoo > To: gradsusr at gradsusr.org > Sent: Mon, May 3, 2010 10:01:56 AM > Subject: [gradsusr] Time series at point > > Hi users, > > New to grads (using for 3 months now). > > I was wondering what the best way to extract a time series of values at a point on a grid. > I'd like the values to be output to a text file. > The grid is of netcdf format. > > So far I constrain the grid to one point and use set gxout value to give me a plot on the grads display. How can I get this into a text file? > > regards, > > > Mogesh Naidoo > Atmospheric Modelling Group > Natural Resources and the Environment > CSIR > P.O. Box 17001, > Congella 4013 > Durban > South Africa > > Telephone: [int+27] (0)31 242 2318 > Email: mnaidoo4 at csir.co.za > > -- > This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. > The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. > > This message has been scanned for viruses and dangerous content by > MailScanner, > and is believed to be clean. MailScanner thanks Transtec Computers for their support. > > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- Austin Conaty, SAIC Global Modeling & Assimilation Office 301-614-6149 (ph) NASA Goddard Space Flight Center 301-614-6297 (fax) Code 610.1 Greenbelt, MD 20771 Austin.L.Conaty at .nasa.gov http://gmao.gsfc.nasa.gov _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From ldong at unm.edu Mon May 3 16:20:43 2010 From: ldong at unm.edu (Li Dong) Date: Mon, 03 May 2010 14:20:43 -0600 Subject: [gradsusr] Meridional gradient? Message-ID: <1272918043.2537.11.camel@dogen.unm.edu> Hello list, I need to calculate the meridional temperature gradient across 20 degree latitude belt using global gridded data. Below is what I did: 'open ta.ctl' 'set t 1' 'set lev 1000' 'set lon 0 360' 'set lat -80 80' 'define Tgrad=ta(lat+10)-ta(lat-10)' However, Grads complained "Cannot use an offset value with a varying dimension". If I set 'lat' at a fixed value, such as 'set lat 40', the above script did work, but the downside is that this only gives temperature meridional gradient at the specified latitude instead of over the entire latitude range. Any inputs would be highly appreciated! Best, Li From jdduda at iastate.edu Mon May 3 17:03:36 2010 From: jdduda at iastate.edu (Jeffrey Duda) Date: Mon, 3 May 2010 16:03:36 -0500 Subject: [gradsusr] Meridional gradient? In-Reply-To: <1502_1272918102_o43KLeae029315_1272918043.2537.11.camel@dogen.unm.edu> References: <1502_1272918102_o43KLeae029315_1272918043.2537.11.camel@dogen.unm.edu> Message-ID: Li, If you want to find a temperature gradient, why not just use cdiff? Just realize that you'll have to use the following expression for dy (the incremental change in meridional distance between grid points, in meters): dy = Re*cdiff(lat,y)*(3.14159/180) where Re is the radius of the Earth (about 6.371e6 meters, I believe). This is to account for the projection Grads uses to display your data. Hope this helps. Jeff Duda On Mon, May 3, 2010 at 3:20 PM, Li Dong wrote: > Hello list, > > I need to calculate the meridional temperature gradient across 20 degree > latitude belt using global gridded data. Below is what I did: > > 'open ta.ctl' > 'set t 1' > 'set lev 1000' > 'set lon 0 360' > 'set lat -80 80' > 'define Tgrad=ta(lat+10)-ta(lat-10)' > > However, Grads complained "Cannot use an offset value with a varying > dimension". If I set 'lat' at a fixed value, such as 'set lat 40', the > above script did work, but the downside is that this only gives > temperature meridional gradient at the specified latitude instead of > over the entire latitude range. Any inputs would be highly appreciated! > > Best, > > Li > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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/20100503/2e1e2cf8/attachment.html From anuradha.modi at iccsir.org Tue May 4 02:23:28 2010 From: anuradha.modi at iccsir.org (anuradha.modi at iccsir.org) Date: Tue, 04 May 2010 06:23:28 +0000 Subject: [gradsusr] Help Message-ID: Dear Users, Can anybody suggest how to plot a global data in spherical map projection in grads I attached a example plot ( made in ferret), Same kind of figure can be plotted in grads? I found these options, but I did not find a right option for my requirement ( figure attached) set mproj proj Sets current map projection. Options for proj are: latlon Lat/lon projection with aspect ratio maintained (default) scaled Lat/lon aspect ratio is not maintained; plot fills entire plotting area nps North polar stereographic sps South polar stereographic lambert Lambert conformal conic projection mollweide Mollweide projection orthogr Orthographic projection robinson Robinson projection, requires set lon -180 180, set lat -90 90 off No map is drawn; axis labels are not interpreted as lat/lon Kindly Suggest......... Thanks in Advance Anuradha -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/f021640f/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: picture.gif Type: application/octet-stream Size: 13005 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/f021640f/attachment-0001.obj From krishmet at gmail.com Tue May 4 05:02:08 2010 From: krishmet at gmail.com (krishnamohan) Date: Tue, 4 May 2010 14:32:08 +0530 Subject: [gradsusr] Help In-Reply-To: References: Message-ID: Hai Anuradha, I dont know whether spherical map projection is available but you can use Robinson projection which is similar for this purpose. The easy method is to use map.gs form grads script library http://grads.iges.org/grads/gadoc/library.html copy it to grads library or you data folder. then type "map". There you have several options in which you select "robinson". Then plot the varible. It will be like the attached figure. Also i am attaching a copy of the map.gsfile krishnamohan -- Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology Cochin,India On Tue, May 4, 2010 at 11:53 AM, wrote: > Dear Users, > Can anybody suggest how to plot a global data in spherical map projection > in grads > I attached a example plot ( made in ferret), > Same kind of figure can be plotted in grads? > > I found these options, but I did not find a right option for my requirement > ( figure attached) > > set mproj *proj* > > Sets current map projection. Options for *proj* are: > > > > latlon Lat/lon projection with aspect ratio maintained (default) > scaled Lat/lon aspect ratio is not maintained; plot fills entire > plotting area > nps North polar stereographic > sps South polar stereographic > lambert Lambert conformal conic projection > mollweide Mollweide projection > orthogr Orthographic projection > robinson Robinson projection, requires set lon -180 180, set lat -90 > 90 > off No map is drawn; axis labels are not interpreted as lat/lon > > > > > > Kindly Suggest......... > Thanks in Advance > Anuradha > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/493727f4/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.png Type: image/png Size: 19164 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/493727f4/attachment-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: map.gs Type: application/octet-stream Size: 3139 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/493727f4/attachment-0001.obj From mequitomz at yahoo.com.br Tue May 4 05:45:30 2010 From: mequitomz at yahoo.com.br (Arlindo Meque) Date: Tue, 4 May 2010 02:45:30 -0700 (PDT) Subject: [gradsusr] =?iso-8859-1?q?How_to_write_monthly_station_data_on_0?= =?iso-8859-1?q?=2E5=B0X0=2E5=B0_grid?= Message-ID: <614792.15197.qm@web52304.mail.re2.yahoo.com> Dear all, ? I am trying to put monthly station data on 0.5?X0.5? grid. ?I can read the data using a FORTRAN code but I do not know how to transform these irregular data to a regular grid (0.5?X0.5?). ? ? Can anyone help me on that?? ? Regards, ? Arlindo From gibiesgeorge at gmail.com Tue May 4 05:54:41 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Tue, 4 May 2010 15:24:41 +0530 Subject: [gradsusr] Help In-Reply-To: References: Message-ID: Krish, When we are focusing on Pacific ocean, it is better to vary longitude from 0 to 360, so that we can get 180E at the central portion of the plot. But, I think, it is not supported by Robinson projection. I once tried the following code 'open ../data/sst.ctl' 'set mproj robinson' 'set lat -90 90' 'set lon 0 360' 'set t 1' 'd sst' For this I recived an error message as follows. "Map Projection Error: Invalid coords for Robinson Will use linear lat-lon projection" I expect that this may be the problem facing by Anuradha. On 4 May 2010 14:32, krishnamohan wrote: > Hai Anuradha, > > I dont know whether spherical map projection is available but you can use > Robinson projection which is similar for this purpose. The easy method is to > use map.gs form grads script library > > http://grads.iges.org/grads/gadoc/library.html > > copy it to grads library or you data folder. then type "map". There you > have several options in which you select "robinson". Then plot the varible. > It will be like the attached figure. Also i am attaching a copy of the > map.gs file > > krishnamohan > > -- > Krishnamohan.K.S > Junior Research Fellow > Department Of Atmospheric Sciences > Cochin University of Science and Technology > Cochin,India > > > On Tue, May 4, 2010 at 11:53 AM, wrote: > >> Dear Users, >> Can anybody suggest how to plot a global data in spherical map projection >> in grads >> I attached a example plot ( made in ferret), >> Same kind of figure can be plotted in grads? >> >> I found these options, but I did not find a right option for my >> requirement ( figure attached) >> >> set mproj *proj* >> >> Sets current map projection. Options for *proj* are: >> >> >> >> latlon Lat/lon projection with aspect ratio maintained (default) >> scaled Lat/lon aspect ratio is not maintained; plot fills entire >> plotting area >> nps North polar stereographic >> sps South polar stereographic >> lambert Lambert conformal conic projection >> mollweide Mollweide projection >> orthogr Orthographic projection >> robinson Robinson projection, requires set lon -180 180, set lat >> -90 90 >> off No map is drawn; axis labels are not interpreted as >> lat/lon >> >> >> >> >> Kindly Suggest......... >> Thanks in Advance >> Anuradha >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/0e96fb2a/attachment.html From tmsvs at nus.edu.sg Mon May 3 23:38:45 2010 From: tmsvs at nus.edu.sg (Srivatsan Vijayaraghavan) Date: Tue, 4 May 2010 11:38:45 +0800 Subject: [gradsusr] Calculate monthly totals for time series Message-ID: <038600D27354214A8013AFE83F226593E4191912@MBX05.stf.nus.edu.sg> Hi all, I have a WRF output for 1 year with 1457 time steps ( 6 hourly rainfall) Since this is accumulated, I usually do, Var(t+1)-Var(t+0) to get the daily values. Question: Is there an easy way to calculate the monthly totals by subtracting by each months so that I can draw an annual time series .. How do I modify the script?? Many Thanks, Sri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/2679fa11/attachment-0001.html From mqvillafuerte at gmail.com Tue May 4 02:56:20 2010 From: mqvillafuerte at gmail.com (Marcelino II Villafuerte) Date: Tue, 4 May 2010 14:56:20 +0800 Subject: [gradsusr] Segmentation fault in GrADS V2.0.a4 In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Marcelino II Villafuerte Date: Tue, May 4, 2010 at 2:50 PM Subject: Segmentation fault in GrADS V2.0.a4 To: GRADSUSR at list.cineca.it Dear GrADS Users, I'm using this attached script to obtain a seasonal average (JJAS) of Rainfall from APHRODITE high resolution daily rainfall gridded dataset. It works with the older version (V1.8) but when i try it in Grads V2.0.a4 an error occurred "segmentation fault". The advantage of using the later version is, it was able to write an output to NetCDF format that's why I tried to switch into this version. Is defining a lot of variables its limitation? Has anyone encountered similar problem? I need your help... Thanks in advance! Mar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/7e4e5dfa/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: swm_compare.gs Type: application/octet-stream Size: 4869 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/7e4e5dfa/attachment-0001.obj From ray.river.lj at gmail.com Tue May 4 04:48:31 2010 From: ray.river.lj at gmail.com (=?GB2312?B?wNe9rQ==?=) Date: Tue, 4 May 2010 16:48:31 +0800 Subject: [gradsusr] help Message-ID: Hi,everyone Now I use a NCEP Materials(2.5*2.5, January, 2008 to December, shum.mon.mean.nc' uwnd.mon.mean.nc' vwnd.mon.mean.nc' hgt.mon.mean.nc' ) to caculate the Entire level water vapor flux. I want to know how to write a .gs file to caculate it. Can someone give me a example? regards, Ray -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/be49cb60/attachment.html From tmsvs at nus.edu.sg Tue May 4 06:26:43 2010 From: tmsvs at nus.edu.sg (Srivatsan Vijayaraghavan) Date: Tue, 4 May 2010 18:26:43 +0800 Subject: [gradsusr] Monthly Time series Message-ID: <038600D27354214A8013AFE83F226593E4191A8D@MBX05.stf.nus.edu.sg> Hi all, I have a WRF output for 1 year with 1457 time steps ( 6 hourly rainfall) Since this is accumulated, I usually do, Var(t+1)-Var(t+0) to get the daily values. Question: Is there an easy way to calculate the monthly totals by subtracting by each months so that I can draw an annual time series .. How do I modify the script?? Many Thanks, Sri -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/3e04d050/attachment.html From krishmet at gmail.com Tue May 4 06:34:30 2010 From: krishmet at gmail.com (krishnamohan) Date: Tue, 4 May 2010 03:34:30 -0700 Subject: [gradsusr] Help In-Reply-To: References: Message-ID: Hai Gibies, As the documentation says "Robinson projection, requires set lon -180 180, set lat -90 90" so it wont work for your program -- Krishnamohan.K.S Junior Research Fellow Department Of Atmospheric Sciences Cochin University of Science and Technology Cochin,India On Tue, May 4, 2010 at 2:54 AM, gibies george wrote: > Krish, > > When we are focusing on Pacific ocean, it is better to vary longitude from > 0 to 360, so that we can get 180E at the central portion of the plot. But, > I think, it is not supported by Robinson projection. I once tried the > following code > > 'open ../data/sst.ctl' > 'set mproj robinson' > 'set lat -90 90' > 'set lon 0 360' > 'set t 1' > 'd sst' > > For this I recived an error message as follows. > > "Map Projection Error: Invalid coords for Robinson > Will use linear lat-lon projection" > > I expect that this may be the problem facing by Anuradha. > > > On 4 May 2010 14:32, krishnamohan wrote: > >> Hai Anuradha, >> >> I dont know whether spherical map projection is available but you can use >> Robinson projection which is similar for this purpose. The easy method is to >> use map.gs form grads script library >> >> http://grads.iges.org/grads/gadoc/library.html >> >> copy it to grads library or you data folder. then type "map". There you >> have several options in which you select "robinson". Then plot the varible. >> It will be like the attached figure. Also i am attaching a copy of the >> map.gs file >> >> krishnamohan >> >> -- >> Krishnamohan.K.S >> Junior Research Fellow >> Department Of Atmospheric Sciences >> Cochin University of Science and Technology >> Cochin,India >> >> >> On Tue, May 4, 2010 at 11:53 AM, wrote: >> >>> Dear Users, >>> Can anybody suggest how to plot a global data in spherical map projection >>> in grads >>> I attached a example plot ( made in ferret), >>> Same kind of figure can be plotted in grads? >>> >>> I found these options, but I did not find a right option for my >>> requirement ( figure attached) >>> >>> set mproj *proj* >>> >>> Sets current map projection. Options for *proj* are: >>> >>> >>> >>> latlon Lat/lon projection with aspect ratio maintained (default) >>> >>> scaled Lat/lon aspect ratio is not maintained; plot fills entire >>> plotting area >>> nps North polar stereographic >>> sps South polar stereographic >>> lambert Lambert conformal conic projection >>> mollweide Mollweide projection >>> orthogr Orthographic projection >>> robinson Robinson projection, requires set lon -180 180, set lat >>> -90 90 >>> off No map is drawn; axis labels are not interpreted as >>> lat/lon >>> >>> >>> >>> >>> Kindly Suggest......... >>> Thanks in Advance >>> Anuradha >>> >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >>> >>> >> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > > -- > Gibies George,CSIR-RF, > Climate and Global Modelling Division, > Indian Institute of Tropical Meteorology, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/06b46a1b/attachment.html From gibiesgeorge at gmail.com Tue May 4 06:47:21 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Tue, 4 May 2010 16:17:21 +0530 Subject: [gradsusr] Segmentation fault in GrADS V2.0.a4 In-Reply-To: References: Message-ID: Hello Mar, The segmentation error is due to the overflow of allotted memory Here you are using 30 variable p61, p62, ........p90 simultaniousely. You can avoid the problem by using a loop ...... ...... ...... yyyy=1961 define sum_p = ..... while(yyyy<1990) ..... ..... define p_n = ...... sum_p= sum_p + p_n ..... ..... yyyy=yyyy+1 endwhile define pave=sum_p/30 ........ ........ ......... On 4 May 2010 12:26, Marcelino II Villafuerte wrote: > > > ---------- Forwarded message ---------- > From: Marcelino II Villafuerte > Date: Tue, May 4, 2010 at 2:50 PM > Subject: Segmentation fault in GrADS V2.0.a4 > To: GRADSUSR at list.cineca.it > > > Dear GrADS Users, > > I'm using this attached script to obtain a seasonal average (JJAS) of > Rainfall from APHRODITE high resolution daily rainfall gridded dataset. > It works with the older version (V1.8) but when i try it in Grads V2.0.a4 > an error occurred "segmentation fault". The advantage of using > the later version is, it was able to write an output to NetCDF format > that's why I tried to switch into this version. Is defining a lot of > variables > its limitation? > > Has anyone encountered similar problem? I need your help... > > Thanks in advance! > > Mar > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/8658e5cd/attachment.html From gibiesgeorge at gmail.com Tue May 4 06:49:28 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Tue, 4 May 2010 16:19:28 +0530 Subject: [gradsusr] Segmentation fault in GrADS V2.0.a4 In-Reply-To: References: Message-ID: Hello Mar, Don't forget to undefine the variables after its use. On 4 May 2010 16:17, gibies george wrote: > Hello Mar, > > The segmentation error is due to the overflow of allotted memory > Here you are using 30 variable p61, p62, ........p90 simultaniousely. You > can avoid the problem by using a loop > > ...... > ...... > ...... > yyyy=1961 > define sum_p = ..... > while(yyyy<1990) > ..... > ..... > define p_n = ...... > sum_p= sum_p + p_n > ..... > ..... > yyyy=yyyy+1 > endwhile > > define pave=sum_p/30 > > ........ > ........ > ......... > > > > On 4 May 2010 12:26, Marcelino II Villafuerte wrote: > >> >> >> ---------- Forwarded message ---------- >> From: Marcelino II Villafuerte >> Date: Tue, May 4, 2010 at 2:50 PM >> Subject: Segmentation fault in GrADS V2.0.a4 >> To: GRADSUSR at list.cineca.it >> >> >> Dear GrADS Users, >> >> I'm using this attached script to obtain a seasonal average (JJAS) of >> Rainfall from APHRODITE high resolution daily rainfall gridded dataset. >> It works with the older version (V1.8) but when i try it in Grads V2.0.a4 >> an error occurred "segmentation fault". The advantage of using >> the later version is, it was able to write an output to NetCDF format >> that's why I tried to switch into this version. Is defining a lot of >> variables >> its limitation? >> >> Has anyone encountered similar problem? I need your help... >> >> Thanks in advance! >> >> Mar >> >> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > > -- > Gibies George,CSIR-RF, > Climate and Global Modelling Division, > Indian Institute of Tropical Meteorology, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/3089cff9/attachment-0001.html From anuradha.modi at iccsir.org Tue May 4 06:56:48 2010 From: anuradha.modi at iccsir.org (anuradha.modi at iccsir.org) Date: Tue, 04 May 2010 10:56:48 +0000 Subject: [gradsusr] gradsusr Digest, Vol 3, Issue 6 Message-ID: Hi Gibies and Krish, As gibies said, I got the same error when I used set mproj robinson But, according to krish suggestion, I copied map.gs in grads/lib Then done the following 'open model-temp.ctl' 'map' 'sh' 'd temp' By running this script, it will prompt enter projection: robinson Then I got my required plot Thank you Krish and Gibies With Regards Anuradha -----Original Message----- From: gradsusr-request at gradsusr.org [mailto:gradsusr-request at gradsusr.org] Sent: Tuesday, May 4, 2010 06:25 AM To: gradsusr at gradsusr.org Subject: gradsusr Digest, Vol 3, Issue 6 Send gradsusr mailing list submissions to gradsusr at gradsusr.orgTo subscribe or unsubscribe via the World Wide Web, visit http://gradsusr.org/mailman/listinfo/gradsusror, via email, send a message with subject or body 'help' to gradsusr-request at gradsusr.orgYou can reach the person managing the list at gradsusr-owner at gradsusr.orgWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of gradsusr digest..."Today's Topics: 1. How to write monthly station data on 0.5?X0.5? grid (Arlindo Meque) 2. Re: Help (gibies george) 3. Calculate monthly totals for time series (Srivatsan Vijayaraghavan) 4. Segmentation fault in GrADS V2.0.a4 (Marcelino II Villafuerte)----------------------------------------------------------------------Message: 1Date: Tue, 4 May 2010 02:45:30 -0700 (PDT)From: Arlindo Meque Subject: [gradsusr] How to write monthly station data on 0.5?X0.5? gridTo: gradsusr at gradsusr.orgMessage-ID: <614792.15197.qm at web52304.mail.re2.yahoo.com>Content-Type: text/plain; charset=iso-8859-1Dear all,?I am trying to put monthly station data on 0.5?X0.5? grid. ?I can read the data using a FORTRAN code but I do not know how to transform these irregular data to a regular grid (0.5?X0.5?). ??Can anyone help me on that???Regards,?Arlindo ------------------------------Message: 2Date: Tue, 4 May 2010 15:24:41 +0530From: gibies george Subject: Re: [gradsusr] HelpTo: krishmet at gmail.com, GrADS Users Forum Message-ID: Content-Type: text/plain; charset="iso-8859-1"Krish,When we are focusing on Pacific ocean, it is better to vary longitude from 0to 360, so that we can get 180E at the central portion of the plot. But, Ithink, it is not supported by Robinson projection. I once tried thefollowing code'open ../data/sst.ctl''set mproj robinson''set lat -90 90''set lon 0 360''set t 1''d sst'For this I recived an error message as follows."Map Projection Error: Invalid coords for Robinson Will use linear lat-lon projection"I expect that this may be the problem facing by Anuradha.On 4 May 2010 14:32, krishnamohan wrote:> Hai Anuradha,>> I dont know whether spherical map projection is available but you can use> Robinson projection which is similar for this purpose. The easy method is to> use map.gs form grads script library>> http://grads.iges.org/grads/gadoc/library.html>> copy it to grads library or you data folder. then type "map". There you> have several options in which you select "robinson". Then plot the varible.> It will be like the attached figure. Also i am attaching a copy of the> map.gs file>> krishnamohan>> --> Krishnamohan.K.S> Junior Research Fellow> Department Of Atmospheric Sciences> Cochin University of Science and Technology> Cochin,India>>> On Tue, May 4, 2010 at 11:53 AM, wrote:>>> Dear Users,>> Can anybody suggest how to plot a global data in spherical map projection>> in grads>> I attached a example plot ( made in ferret),>> Same kind of figure can be plotted in grads?>>>> I found these options, but I did not find a right option for my>> requirement ( figure attached)>>>> set mproj *proj*>>>> Sets current map projection. Options for *proj* are:>>>>>>>> latlon Lat/lon projection with aspect ratio maintained (default)>> scaled Lat/lon aspect ratio is not maintained; plot fills entire>> plotting area>> nps North polar stereographic>> sps South polar stereographic>> lambert Lambert conformal conic projection>> mollweide Mollweide projection>> orthogr Orthographic projection>> robinson Robinson projection, requires set lon -180 180, set lat>> -90 90>> off No map is drawn; axis labels are not interpreted as>> lat/lon>>>>>>>>>> Kindly Suggest.........>> Thanks in Advance>> Anuradha>>>> _______________________________________________>> gradsusr mailing list>> gradsusr at gradsusr.org>> http://gradsusr.org/mailman/listinfo/gradsusr>>>>>>>> _______________________________________________> gradsusr mailing list> gradsusr at gradsusr.org> http://gradsusr.org/mailman/listinfo/gradsusr>>-- Gibies George,CSIR-RF,Climate and Global Modelling Division,Indian Institute of Tropical Meteorology,Dr. Homi Bhabha Road,NCL (P. O.), Pashan,Pune 411008http://sites.google.com/site/gibiesge/-------------- next part --------------An HTML attachment was scrubbed...URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/0e96fb2a/attachment-0001.html ------------------------------Message: 3Date: Tue, 4 May 2010 11:38:45 +0800From: Srivatsan Vijayaraghavan Subject: [gradsusr] Calculate monthly totals for time seriesTo: "gradsusr at gradsusr.org" Message-ID: <038600D27354214A8013AFE83F226593E4191912 at MBX05.stf.nus.edu.sg>Content-Type: text/plain; charset="us-ascii"Hi all,I have a WRF output for 1 year with 1457 time steps ( 6 hourly rainfall)Since this is accumulated, I usually do,Var(t+1)-Var(t+0) to get the daily values.Question:Is there an easy way to calculate the monthly totals by subtracting by each months so that I can draw an annual time series ..How do I modify the script??Many Thanks,Sri-------------- next part --------------An HTML attachment was scrubbed...URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/2679fa11/attachment.html ------------------------------Message: 4Date: Tue, 4 May 2010 14:56:20 +0800From: Marcelino II Villafuerte Subject: [gradsusr] Segmentation fault in GrADS V2.0.a4To: gradsusr at gradsusr.orgMessage-ID: Content-Type: text/plain; charset="iso-8859-1"---------- Forwarded message ----------From: Marcelino II Villafuerte Date: Tue, May 4, 2010 at 2:50 PMSubject: Segmentation fault in GrADS V2.0.a4To: GRADSUSR at list.cineca.itDear GrADS Users,I'm using this attached script to obtain a seasonal average (JJAS) ofRainfall from APHRODITE high resolution daily rainfall gridded dataset.It works with the older version (V1.8) but when i try it in Grads V2.0.a4 anerror occurred "segmentation fault". The advantage of usingthe later version is, it was able to write an output to NetCDF format that'swhy I tried to switch into this version. Is defining a lot of variablesits limitation?Has anyone encountered similar problem? I need your help...Thanks in advance!Mar-------------- next part --------------An HTML attachment was scrubbed...URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/7e4e5dfa/attachment.html -------------- next part --------------A non-text attachment was scrubbed...Name: swm_compare.gsType: application/octet-streamSize: 4869 bytesDesc: not availableUrl : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/7e4e5dfa/attachment.obj ------------------------------_______________________________________________gradsusr mailing listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusrEnd of gradsusr Digest, Vol 3, Issue 6************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/04533659/attachment.html From mqvillafuerte at gmail.com Tue May 4 07:04:59 2010 From: mqvillafuerte at gmail.com (Marcelino II Villafuerte) Date: Tue, 4 May 2010 19:04:59 +0800 Subject: [gradsusr] Segmentation fault in GrADS V2.0.a4 In-Reply-To: References: Message-ID: Dear Gibies, Thank you very much for your immediate response! More power to you! Mar On Tue, May 4, 2010 at 6:49 PM, gibies george wrote: > Hello Mar, > > Don't forget to undefine the variables after its use. > > > On 4 May 2010 16:17, gibies george wrote: > >> Hello Mar, >> >> The segmentation error is due to the overflow of allotted memory >> Here you are using 30 variable p61, p62, ........p90 simultaniousely. You >> can avoid the problem by using a loop >> >> ...... >> ...... >> ...... >> yyyy=1961 >> define sum_p = ..... >> while(yyyy<1990) >> ..... >> ..... >> define p_n = ...... >> sum_p= sum_p + p_n >> ..... >> ..... >> yyyy=yyyy+1 >> endwhile >> >> define pave=sum_p/30 >> >> ........ >> ........ >> ......... >> >> >> >> On 4 May 2010 12:26, Marcelino II Villafuerte wrote: >> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Marcelino II Villafuerte >>> Date: Tue, May 4, 2010 at 2:50 PM >>> Subject: Segmentation fault in GrADS V2.0.a4 >>> To: GRADSUSR at list.cineca.it >>> >>> >>> Dear GrADS Users, >>> >>> I'm using this attached script to obtain a seasonal average (JJAS) of >>> Rainfall from APHRODITE high resolution daily rainfall gridded dataset. >>> It works with the older version (V1.8) but when i try it in Grads V2.0.a4 >>> an error occurred "segmentation fault". The advantage of using >>> the later version is, it was able to write an output to NetCDF format >>> that's why I tried to switch into this version. Is defining a lot of >>> variables >>> its limitation? >>> >>> Has anyone encountered similar problem? I need your help... >>> >>> Thanks in advance! >>> >>> Mar >>> >>> >>> >>> >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >>> >>> >> >> >> -- >> Gibies George,CSIR-RF, >> Climate and Global Modelling Division, >> Indian Institute of Tropical Meteorology, >> Dr. Homi Bhabha Road, >> NCL (P. O.), Pashan, >> Pune 411008 >> >> http://sites.google.com/site/gibiesge/ >> >> > > > -- > Gibies George,CSIR-RF, > Climate and Global Modelling Division, > Indian Institute of Tropical Meteorology, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/85bcd9e2/attachment.html From gibiesgeorge at gmail.com Tue May 4 07:23:50 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Tue, 4 May 2010 16:53:50 +0530 Subject: [gradsusr] GrADS Version 2.0.a7.1 In-Reply-To: <6CDBBC48-AC1B-4AAD-A99C-DB1300624888@cola.iges.org> References: <6CDBBC48-AC1B-4AAD-A99C-DB1300624888@cola.iges.org> Message-ID: Thank you, Jennifer. On 3 May 2010 19:29, Jennifer Adams wrote: > Please see http://iges.org/grads/gadoc/supplibs.html for the list of > supplemental libraries you need to build in order to enable printim and the > xdfopen command. To enable printim, you need zlib, libpng, libjpeg, and > libgd. For xdfopen you need netcdf and udunits. > --Jennifer > > > > On May 3, 2010, at 8:38 AM, gibies george wrote: > > > > > Hello friends, > > I am not getting xdfopen command and printim command in my GrADS > > Anybody those who can point out the reason for the following error message, > kindly reply > > > grads > > Grid Analysis and Display System (GrADS) Version 2.0.a7.1 > Copyright (c) 1988-2008 by Brian Doty and the > Institute for Global Environment and Society (IGES) > GrADS comes with ABSOLUTELY NO WARRANTY > See file COPYRIGHT for more information > > Config: v2.0.a7.1 big-endian > Issue 'q config' command for more information. > Landscape mode? ('n' for portrait): > GX Package Initialization: Size = 11 8.5 > ga> script1 > No hardcopy metafile open > All files closed; all defined objects released; > All GrADS attributes have been reinitialized > Unknown command: xdfopen > SET Error: No files open yet > SET Error: No files open yet > SET Error: No files open yet > SET Error: No files open yet > DISPLAY error: no file open yet > PRINTIM error: command not supported in this build > > > > -- > Gibies George,CSIR-RF, > CGM Division,IITM, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/51f7f0c5/attachment-0001.html From thi_veloso at yahoo.com.br Tue May 4 13:43:11 2010 From: thi_veloso at yahoo.com.br (Thiago Veloso) Date: Tue, 4 May 2010 10:43:11 -0700 (PDT) Subject: [gradsusr] =?iso-8859-1?q?How_to_write_monthly_station_data_on_0?= =?iso-8859-1?q?=2E5=B0X0=2E5=B0_grid?= In-Reply-To: <614792.15197.qm@web52304.mail.re2.yahoo.com> Message-ID: <167105.77899.qm@web54303.mail.re2.yahoo.com> ??Arlindo, ??I'm also interested in the anwser to your problem. I have a similar one: I need to interpolate irregular station data to a regular grid of 8x8km, but I don't know how to properly import the station ASCII data into GrADS and perform a interpolation method (probably kriging?)... ??Please let me know if you find a solution... ??Best regards, ??Thiago. --- On Tue, 4/5/10, Arlindo Meque wrote: From: Arlindo Meque Subject: [gradsusr] How to write monthly station data on 0.5?X0.5? grid To: gradsusr at gradsusr.org Date: Tuesday, 4 May, 2010, 6:45 Dear all, ? I am trying to put monthly station data on 0.5?X0.5? grid. ?I can read the data using a FORTRAN code but I do not know how to transform these irregular data to a regular grid (0.5?X0.5?). ? ? Can anyone help me on that?? ? Regards, ? Arlindo ? ? ? _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/739f5ac5/attachment.html From mcroke at airdat.com Tue May 4 14:37:37 2010 From: mcroke at airdat.com (Meredith Croke) Date: Tue, 4 May 2010 14:37:37 -0400 Subject: [gradsusr] Local time on x-axis Message-ID: <090531DCD6745B4E8B49300999500668037FA0FF@rdu-w2k3ex01.airdat.com> Hi users, I am creating a line graph using my model output and on the x-axis instead of having UTC I would like to have local time (ie EDT), can anyone tell me if this is possible and how to do it? Thanks very much for your help. Meredith ****************************** Meredith S. Croke Meteorologist AirDat LLC ****************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/4cdc876d/attachment.html From jdduda at iastate.edu Tue May 4 14:45:31 2010 From: jdduda at iastate.edu (Jeffrey Duda) Date: Tue, 4 May 2010 13:45:31 -0500 Subject: [gradsusr] Local time on x-axis In-Reply-To: <090531DCD6745B4E8B49300999500668037FA0FF@rdu-w2k3ex01.airdat.com> References: <090531DCD6745B4E8B49300999500668037FA0FF@rdu-w2k3ex01.airdat.com> Message-ID: Meredith, Use the command "set xlabs (time 1) | (time 2) | ...". Just make sure you know what the actual axis label values correspond to in LT, because you have to input all of the labels manually with that command. Hope this helps. Jeff Duda On Tue, May 4, 2010 at 1:37 PM, Meredith Croke wrote: > Hi users, > > I am creating a line graph using my model output and on the x-axis instead > of having UTC I would like to have local time (ie EDT), can anyone tell me > if this is possible and how to do it? > > Thanks very much for your help. > > Meredith > > > > > ****************************** > Meredith S. Croke > Meteorologist > AirDat LLC > ****************************** > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- 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/20100504/7f188370/attachment.html From haohe.umcp at gmail.com Tue May 4 15:58:41 2010 From: haohe.umcp at gmail.com (Hao He) Date: Tue, 4 May 2010 15:58:41 -0400 Subject: [gradsusr] data not in GRIB format Message-ID: Hi, I have a 2D data set with uneven Lon and Lat distribution. I notice that the GRIB data for GrADS has even grids, so I am wondering whether it is possible to display this data set on GrADS? Thanks for help! Hao -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/09f2435e/attachment.html From smcmillan at planalytics.com Tue May 4 17:04:19 2010 From: smcmillan at planalytics.com (Stephen McMillan) Date: Tue, 4 May 2010 17:04:19 -0400 Subject: [gradsusr] Writing Station Data File Using Excel VBA In-Reply-To: References: Message-ID: The GrADS Users Guide, in the "Creating a Station Data File" section, shows a short sample dataset as follows: Year Month Stid Lat Lon Rainfall 1980 1 QQQ 34.3 -85.5 123.3 1980 1 RRR 44.2 -84.5 87.1 1980 1 SSS 22.4 -83.5 412.8 1980 1 TTT 33.4 -82.5 23.3 1980 2 QQQ 34.3 -85.5 145.1 1980 2 RRR 44.2 -84.5 871.4 1980 2 SSS 22.4 -83.5 223.1 1980 2 TTT 33.4 -82.5 45.5 I output the attached (test.sta.dat) binary file using an Excel VBA macro, shown here: Private Type stadathdr 'data type "station data header" (len=24) stid As String * 8 'station ID (e.g., "QQQ") len=8 lat As Single 'station latitude (world len=4 lon As Single 'station longitude coords) len=4 tim As Single 'time (grid-relative units) len=4 nlev As Integer '# data groups after header len=2 nflg As Integer 'level indep var set flag len=2 End Type Sub WriteStaDat() Close 'close any open files Dim hdr As stadathdr Dim yr, mo, flg As Integer 'year (yyyy), month (m), flag Dim rf As Single 'rainfall (mm) Dim oldyr, oldmo As Integer 'old year, old month stadatfile = "c:\projectmgr\stationdata\out\test.sta.dat" rnum = 8 '# of data reports to read/write flg = 1 'initialize flag Range("a1").Select Open stadatfile For Binary Access Write As #1 For r = 1 To rnum 'loop through data rows, read in data yr = ActiveCell.Offset(r, 0) mo = ActiveCell.Offset(r, 1) hdr.stid = ActiveCell.Offset(r, 2) hdr.lat = ActiveCell.Offset(r, 3) hdr.lon = ActiveCell.Offset(r, 4) rf = ActiveCell.Offset(r, 5) If flg = 1 Then oldyr = yr: oldmo = mo: flg = 0 End If If oldyr <> yr Or oldmo <> mo Then 'if new time group hdr.nlev = 0 Put #1, , hdr 'write station header/time group terminator (no variable) 'rec = rec + 1 End If oldyr = yr: oldmo = mo hdr.tim = 0#: hdr.nlev = 1: hdr.nflg = 1 Put #1, , hdr 'write station header Put #1, , rf Next r hdr.nlev = 0 Put #1, , hdr 'write last time group terminator Close #1 End Sub When I ran the stnmap utility, here were my results: >stnmap -i c:/projectmgr/stationdata/out/test.sta.ctl Name of binary data set: c:\projectmgr\stationdata\out\test.sta.dat Number of times in the data set: 2 Number of surface variables: 1 Number of level dependent variables: 0 Starting scan of station data binary file. Binary data file open: c:\projectmgr\stationdata\out\test.sta.dat Processing time step 1 Invalid station hdr found in station binary file Possible causes: Invalid level count in hdr Descriptor file mismatch File not station data Invalid relative time Invalid sequential format levs = 1123457434 flag = 542265938 time = 9.18369e-41 It appears the station data file was not properly formatted. Perhaps someone can understand why I'm getting this result, and how to resolve. Stephen Mc On Thu, Apr 29, 2010 at 5:15 PM, Stephen McMillan wrote: > Does anyone have a "simple" example of an Excel VBA (macro) for creating a > station data file for use in GrADS? I have searched the User Archives but > came up empty. I am familiar with the format instructions and the C and > Fortran examples in the GrAD's Users Guide, but wish to use Excel to create > the file. > > I could probably eventually translate from the Fortran example to VBA, but > it would help if someone has already done that! > > Stephen M > > > *************************************************** The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message. *************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100504/ac8c1b86/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: test.sta.ctl Type: application/octet-stream Size: 246 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/ac8c1b86/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: test.sta.dat Type: application/octet-stream Size: 272 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100504/ac8c1b86/attachment-0003.obj From Michael.Fiorino at noaa.gov Tue May 4 20:19:07 2010 From: Michael.Fiorino at noaa.gov (Michael Fiorino) Date: Wed, 05 May 2010 00:19:07 +0000 Subject: [gradsusr] =?iso-8859-1?q?How_to_write_monthly_station_data_on_0?= =?iso-8859-1?q?=2E5=B0X0=2E5=B0_grid?= In-Reply-To: <167105.77899.qm@web54303.mail.re2.yahoo.com> References: <167105.77899.qm@web54303.mail.re2.yahoo.com> Message-ID: <4BE0B97B.8000807@noaa.gov> Thiago, there are two grads function to interpolate or 'analyze' station data to a grid: 1) oacres -- Cressman successive scan analysis; and one i wrote: 2) oabin -- 'bin' the obs in a grid box(is the ob inside the box? if so accumulate and the set the grid point value to the mean) see the grads doc: http://grads.iges.org/grads/gadoc/gadocindex.html ciao ciao, mike On 5/4/10 5:43 PM, Thiago Veloso wrote: > Arlindo, > > I'm also interested in the anwser to your problem. I have a similar one: I need to interpolate irregular station data to a regular grid of 8x8km, but I don't know how to properly import the station ASCII data into GrADS and perform a interpolation method (probably kriging?)... > > Please let me know if you find a solution... > > Best regards, > > Thiago. > > --- On Tue, 4/5/10, Arlindo Meque wrote: > > > From: Arlindo Meque > Subject: [gradsusr] How to write monthly station data on 0.5?X0.5? grid > To: gradsusr at gradsusr.org > Date: Tuesday, 4 May, 2010, 6:45 > > Dear all, > > I am trying to put monthly station data on 0.5?X0.5? grid. I can read the data using a FORTRAN code but I do not know how to transform these irregular data to a regular grid (0.5?X0.5?). > > > Can anyone help me on that?? > > Regards, > > Arlindo > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/08068172/attachment.html From dukerbob at gmail.com Wed May 5 01:08:11 2010 From: dukerbob at gmail.com (bob duker) Date: Wed, 5 May 2010 01:08:11 -0400 Subject: [gradsusr] Help new to grads Message-ID: Hello All, I'm doing snow Research and looking for a program to covert the climate prediction center (CPC) Northern Hemosphere raw weekly snow data (in 1's and 0's) into a useable number. I don't have much coding experience or computer science background, so i'm not sure how to covert the data myself, or what program to use. Also I don't have any fortran compiler. The CPC does covert the data into a nice table format, but they don't keep it up todate. Their website is http://www.cpc.ncep.noaa.gov/data/snow/. On their website they have a link to grads. The program they give for reading weekly 89*89 snow data is PROGRAM AREA C********************************************************************* C C THIS PROGRAM SIMPLY READS IN THE SNOW DATA AND C WRITES IT OUT FOR A GIVEN YEAR. C C VARIABLES: C C ISNDAT - 89 X 89 SNOW DATA C C FILES: C C A YEAR OF WEEKLY SNOW DATA IS STORED IN A FILE WITH C THE NAMING CONVENTION: C C wk19xx xx - is the year (ex. wk1973) C C********************************************************************* DIMENSION ISNDAT(89,89) CHARACTER*1 ICHAR1,ICHAR2 OPEN(11,FILE='INFILE', * FORM='FORMATTED',ACCESS='SEQUENTIAL') OPEN(12,FILE='OUTFILE', * FORM='FORMATTED',ACCESS='SEQUENTIAL') DO 199 LP = 1,52 C********************************************************************* C C READS IN THE WEEKLY SNOW DATA. C C********************************************************************* DO 200 I = 1,89 READ(11,100,END=10) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) 100 FORMAT (I4,2I2,A1,45I1) READ(11,101,END=10)IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) 101 FORMAT (I4,2I2,A1,44I1) C********************************************************************* C C WRITE OUT THE WEEKLY SNOW DATA. C C********************************************************************* WRITE(12,100) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) WRITE(12,101) IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) 200 CONTINUE READ(11,102) ICONST 102 FORMAT(I4) WRITE(12,102) ICONST C 199 CONTINUE 10 CONTINUE 999 STOP END I'm using windows 7 64bit operating system. My question is how do i use grads to view the snow data or is there a fortran compiler the above program will work on that i should use instead? Thanks, Bob R Duke -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/bbee8fa1/attachment.html From afzaalkarori at gmail.com Wed May 5 06:59:54 2010 From: afzaalkarori at gmail.com (Muhammad Afzaal) Date: Wed, 5 May 2010 18:59:54 +0800 Subject: [gradsusr] cdiff Message-ID: Hello everybody I am using "cdiff" function along z-dimension to fine dvar/dz e.g -> 'set z 1 17' -> 'define dvar = cdiff(var,z) but I have following error Error from CDIFF: Specified dimension non varying Operation Error: Error from cdiff function Error ocurred at column 1 can anybody figure out the problem? Thanks -- MUHAMMAD AFZAAL KARORI -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/5da2f43d/attachment.html From haohe.umcp at gmail.com Wed May 5 07:44:56 2010 From: haohe.umcp at gmail.com (Hao He) Date: Wed, 5 May 2010 07:44:56 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: On Tue, May 4, 2010 at 3:58 PM, Hao He wrote: > Hi, > I have a 2D data set with uneven Lon and Lat distribution. I notice that > the GRIB data for GrADS has even grids, so I am wondering whether it is > possible to display this data set on GrADS? Thanks for help! > > Hao > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/3b970fc0/attachment.html From jdduda at iastate.edu Wed May 5 11:09:16 2010 From: jdduda at iastate.edu (Jeffrey Duda) Date: Wed, 5 May 2010 10:09:16 -0500 Subject: [gradsusr] cdiff In-Reply-To: References: Message-ID: Muhammad, Unfortunately, you simply can't define a variable using cdiff in the z-direction in Grads. You can display a variable, but you'd have to write out the entire formula for that variable in the display command. Jeff Duda On Wed, May 5, 2010 at 5:59 AM, Muhammad Afzaal wrote: > Hello everybody > > I am using "cdiff" function along z-dimension to fine dvar/dz e.g > > -> 'set z 1 17' > -> 'define dvar = cdiff(var,z) > > but I have following error > > Error from CDIFF: Specified dimension non varying > Operation Error: Error from cdiff function > Error ocurred at column 1 > > can anybody figure out the problem? > > Thanks > > > -- > MUHAMMAD AFZAAL KARORI > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- 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/20100505/5ba012dc/attachment.html From luis.blacutt at gmail.com Wed May 5 11:38:51 2010 From: luis.blacutt at gmail.com (luis blacutt) Date: Wed, 5 May 2010 11:38:51 -0400 Subject: [gradsusr] ctl file Message-ID: Dear Grads users, I'm using 144 netcdf files from TRMM dataset. I'm trying to write a ctl file but I'm not succeding, my ctl looks like this DSET ^3B43.%y2%m201.6.nc UNDEF 9999.9 OPTIONS template DTYPE netcdf XDEF 1440 linear -179.875000 0.250000 YDEF 400 linear -49.875000 0.250000 TDEF 144 linear jan1998 1mo ZDEF 1 linear 1 1 vars 1 pcp 0 99 Precipitation endvars The name's files are 3B43.980101.6.nc 3B43.980201.6.nc .... 3B43.990101.6.nc 3B43.990201.6.nc ... 3B43.000101.6.nc and so on the ncdump for is, netcdf 3B43.090401.6A { dimensions: time = UNLIMITED ; // (1 currently) longitude = 1440 ; latitude = 400 ; variables: double time(time) ; time:units = "hours since 2009-4-1 0" ; double longitude(longitude) ; longitude:units = "degrees_east" ; longitude:long_name = "Longitude" ; double latitude(latitude) ; latitude:units = "degrees_north" ; latitude:long_name = "Latitude" ; float pcp(time, latitude, longitude) ; pcp:comments = "Unknown1 variable comment" ; pcp:long_name = "precipitation:Precipitation" ; pcp:units = "" ; pcp:grid_name = "grid-1" ; pcp:grid_type = "linear" ; pcp:level_description = "Earth surface" ; pcp:time_statistic = "instantaneous" ; pcp:missing_value = -9999.9f ; } Whenever I try to display the variable I get: Cannot contour grid - all undefined values Any help will be greatly appreciated Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/e7de9f72/attachment-0001.html From Charles.Seman at noaa.gov Wed May 5 12:32:29 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Wed, 05 May 2010 12:32:29 -0400 Subject: [gradsusr] ctl file In-Reply-To: References: Message-ID: <4BE19D9D.30202@noaa.gov> Luis, Try these two changes to your ctl file: 1) change UNDEF to -9999.9 (if it is 9999.9) and 2) change TDEF's jan1998 to apr2004 If that doesn't work, here's a couple more ideas: 1) remove the "ZDEF" record in your ctl file (GrADS may not allow this, not sure) or 2) if you are using GrADS v2, you may be able to add a z-dimension to each netCDF file by reading in each netCDF using a GrADS ctl file and then write out the data using sdfwrite; please find attached a GrADS script TRMM_3B42.gs in which a downloaded NASA TRMM 3B42 netCDF file is read in using a locally-constructed "xdfopen_ddf" (which defines z- and t-dimensions; technique courtesy of Jennifer Adams at COLA), regrids the precipitation to a user-defined grid (you can remove this) and then uses "sdfwrite" to write out a 4d netCDF file; please let me know if you have any questions about the script -- note for your case you already have a t-dimension so you can try removing the "TDEF" record in the "xdfopen_ddf" file). Hope this helps, Chuck luis blacutt wrote: > Dear Grads users, > > I'm using 144 netcdf files from TRMM dataset. I'm trying to write a > ctl file but I'm not succeding, my ctl looks like this > > DSET ^3B43.%y2%m201.6.nc > UNDEF 9999.9 > OPTIONS template > DTYPE netcdf > XDEF 1440 linear -179.875000 0.250000 > YDEF 400 linear -49.875000 0.250000 > TDEF 144 linear jan1998 1mo > ZDEF 1 linear 1 1 > vars 1 > pcp 0 99 Precipitation > endvars > > > The name's files are > > 3B43.980101.6.nc > 3B43.980201.6.nc > .... > 3B43.990101.6.nc > 3B43.990201.6.nc > ... > 3B43.000101.6.nc > > and so on > > the ncdump for is, > > netcdf 3B43.090401.6A { > dimensions: > time = UNLIMITED ; // (1 currently) > longitude = 1440 ; > latitude = 400 ; > variables: > double time(time) ; > time:units = "hours since 2009-4-1 0" ; > double longitude(longitude) ; > longitude:units = "degrees_east" ; > longitude:long_name = "Longitude" ; > double latitude(latitude) ; > latitude:units = "degrees_north" ; > latitude:long_name = "Latitude" ; > float pcp(time, latitude, longitude) ; > pcp:comments = "Unknown1 variable comment" ; > pcp:long_name = "precipitation:Precipitation" ; > pcp:units = "" ; > pcp:grid_name = "grid-1" ; > pcp:grid_type = "linear" ; > pcp:level_description = "Earth surface" ; > pcp:time_statistic = "instantaneous" ; > pcp:missing_value = -9999.9f ; > } > > Whenever I try to display the variable I get: > > Cannot contour grid - all undefined values > > Any help will be greatly appreciated > > Luis > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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 reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TRMM_3B42.gs Url: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/16fadcce/attachment.pl From Huddleston at cira.colostate.edu Wed May 5 12:37:12 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Wed, 5 May 2010 09:37:12 -0700 Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: Bob, Use a ftp client and go to ftp.cpc.ncep.noaa.gov and then into the wd52dg/snow directory. There is a wkly_89x89 directory. Download wk2010. There is a progs directory and the readsnow.f file. Download readsnow.f file. Uncomment the open(unit=93 line and edit it to read the file wk2010 in your local path. Edit the open(unit=95 line to save the output file of a name of your choosing. Compile the application using 'gfortran -o readsnow readsnow.f'. Run it './readsnow' There is a grads_snw directory and a control file. Download plt_snw.ctl and edit the top line to be the same name as your output file from unit-95 above. grads -l open plt_snw.ctl d snow If any of this makes no sense you need to take some basic IT and programming courses. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of bob duker [dukerbob at gmail.com] Sent: Tuesday, May 04, 2010 11:08 PM To: gradsusr at gradsusr.org Subject: [gradsusr] Help new to grads Hello All, I'm doing snow Research and looking for a program to covert the climate prediction center (CPC) Northern Hemosphere raw weekly snow data (in 1's and 0's) into a useable number. I don't have much coding experience or computer science background, so i'm not sure how to covert the data myself, or what program to use. Also I don't have any fortran compiler. The CPC does covert the data into a nice table format, but they don't keep it up todate. Their website is http://www.cpc.ncep.noaa.gov/data/snow/. On their website they have a link to grads. The program they give for reading weekly 89*89 snow data is PROGRAM AREA C********************************************************************* C C THIS PROGRAM SIMPLY READS IN THE SNOW DATA AND C WRITES IT OUT FOR A GIVEN YEAR. C C VARIABLES: C C ISNDAT - 89 X 89 SNOW DATA C C FILES: C C A YEAR OF WEEKLY SNOW DATA IS STORED IN A FILE WITH C THE NAMING CONVENTION: C C wk19xx xx - is the year (ex. wk1973) C C********************************************************************* DIMENSION ISNDAT(89,89) CHARACTER*1 ICHAR1,ICHAR2 OPEN(11,FILE='INFILE', * FORM='FORMATTED',ACCESS='SEQUENTIAL') OPEN(12,FILE='OUTFILE', * FORM='FORMATTED',ACCESS='SEQUENTIAL') DO 199 LP = 1,52 C********************************************************************* C C READS IN THE WEEKLY SNOW DATA. C C********************************************************************* DO 200 I = 1,89 READ(11,100,END=10) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) 100 FORMAT (I4,2I2,A1,45I1) READ(11,101,END=10)IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) 101 FORMAT (I4,2I2,A1,44I1) C********************************************************************* C C WRITE OUT THE WEEKLY SNOW DATA. C C********************************************************************* WRITE(12,100) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) WRITE(12,101) IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) 200 CONTINUE READ(11,102) ICONST 102 FORMAT(I4) WRITE(12,102) ICONST C 199 CONTINUE 10 CONTINUE 999 STOP END I'm using windows 7 64bit operating system. My question is how do i use grads to view the snow data or is there a fortran compiler the above program will work on that i should use instead? Thanks, Bob R Duke -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/5049913d/attachment.html From Huddleston at cira.colostate.edu Wed May 5 13:52:04 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Wed, 5 May 2010 10:52:04 -0700 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: Hao If it is 36 kilometer CMAQ netCDF you can probably start with this grid control definition. dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 undef -9999 xdef 148 linear -139.285 0.57565 ydef 112 linear 16.77 0.3600 zdef 1 linear 1 1 tdef 72 linear 00:00Z20apr2006 1hr vars 8 NO2=>no2 1 t,z,y,x NO2 NO=>no 1 t,z,y,x NO O=>o 1 t,z,y,x O O3=>o3 1 t,z,y,x O3 NO3=>no3 1 t,z,y,x NO3 CO=>co 1 t,z,y,x CO CXO3=>cxo3 1 t,z,y,x cxo3 NH3=>nh3 1 t,z,y,x NH3 endvars john Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Hao He [haohe.umcp at gmail.com] Sent: Tuesday, May 04, 2010 1:58 PM To: gradsusr at gradsusr.org Subject: [gradsusr] data not in GRIB format Hi, I have a 2D data set with uneven Lon and Lat distribution. I notice that the GRIB data for GrADS has even grids, so I am wondering whether it is possible to display this data set on GrADS? Thanks for help! Hao -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/26a4c2fd/attachment.html From haohe.umcp at gmail.com Wed May 5 13:59:38 2010 From: haohe.umcp at gmail.com (Hao He) Date: Wed, 5 May 2010 13:59:38 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: That is great! My grid size is 30 km instead of 36 km, and I think the difference is trivial. I will read the format and modified it to my own grid. Thanks a lot! Hao On Wed, May 5, 2010 at 1:52 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Hao > > If it is 36 kilometer CMAQ netCDF you can probably start with this grid > control definition. > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 > undef -9999 > xdef 148 linear -139.285 0.57565 > ydef 112 linear 16.77 0.3600 > zdef 1 linear 1 1 > tdef 72 linear 00:00Z20apr2006 1hr > vars 8 > NO2=>no2 1 t,z,y,x NO2 > NO=>no 1 t,z,y,x NO > O=>o 1 t,z,y,x O > O3=>o3 1 t,z,y,x O3 > NO3=>no3 1 t,z,y,x NO3 > CO=>co 1 t,z,y,x CO > CXO3=>cxo3 1 t,z,y,x cxo3 > NH3=>nh3 1 t,z,y,x NH3 > endvars > > john Huddleston, PhD, PE > ------------------------------ > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of Hao He [haohe.umcp at gmail.com] > *Sent:* Tuesday, May 04, 2010 1:58 PM > *To:* gradsusr at gradsusr.org > *Subject:* [gradsusr] data not in GRIB format > > Hi, > I have a 2D data set with uneven Lon and Lat distribution. I notice that > the GRIB data for GrADS has even grids, so I am wondering whether it is > possible to display this data set on GrADS? Thanks for help! > > Hao > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/04f84dc5/attachment-0001.html From Huddleston at cira.colostate.edu Wed May 5 14:16:19 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Wed, 5 May 2010 11:16:19 -0700 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: , Message-ID: Hao, this might be closer if it is 30KM. Change the ytime and year accordingly. John dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 94 67 lcc 24.87 -127.10 1 1 33 45 -114.00 30000 30000 undef -9999 xdef 94 linear -131.336 0.48 ydef 67 linear 24.87 0.300 zdef 1 linear 1 1 tdef 24 linear 00:00Z20apr2006 1hr vars 8 NO2=>no2 1 t,z,y,x NO2 NO=>no 1 t,z,y,x NO O=>o 1 t,z,y,x O O3=>o3 1 t,z,y,x O3 NO3=>no3 1 t,z,y,x NO3 CO=>co 1 t,z,y,x CO CXO3=>cxo3 1 t,z,y,x cxo3 NH3=>nh3 1 t,z,y,x NH3 endvars ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Hao He [haohe.umcp at gmail.com] Sent: Wednesday, May 05, 2010 11:59 AM To: GrADS Users Forum Subject: Re: [gradsusr] data not in GRIB format That is great! My grid size is 30 km instead of 36 km, and I think the difference is trivial. I will read the format and modified it to my own grid. Thanks a lot! Hao On Wed, May 5, 2010 at 1:52 PM, Huddleston, John > wrote: Hao If it is 36 kilometer CMAQ netCDF you can probably start with this grid control definition. dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 undef -9999 xdef 148 linear -139.285 0.57565 ydef 112 linear 16.77 0.3600 zdef 1 linear 1 1 tdef 72 linear 00:00Z20apr2006 1hr vars 8 NO2=>no2 1 t,z,y,x NO2 NO=>no 1 t,z,y,x NO O=>o 1 t,z,y,x O O3=>o3 1 t,z,y,x O3 NO3=>no3 1 t,z,y,x NO3 CO=>co 1 t,z,y,x CO CXO3=>cxo3 1 t,z,y,x cxo3 NH3=>nh3 1 t,z,y,x NH3 endvars john Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Hao He [haohe.umcp at gmail.com] Sent: Tuesday, May 04, 2010 1:58 PM To: gradsusr at gradsusr.org Subject: [gradsusr] data not in GRIB format Hi, I have a 2D data set with uneven Lon and Lat distribution. I notice that the GRIB data for GrADS has even grids, so I am wondering whether it is possible to display this data set on GrADS? Thanks for help! Hao _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/765e824a/attachment.html From zowiti at ncst.go.ke Wed May 5 22:21:59 2010 From: zowiti at ncst.go.ke (Zablone Owiti) Date: Wed, 5 May 2010 19:21:59 -0700 Subject: [gradsusr] STNMAP Error Message-ID: <76a1f08c$7437403d$1593b653$@com> Dear users, I get the following error when I run the STNMAP utility to create a station map file. I am unable to figure out the cause of the error. C:\FORTRAN>stnmap -i stid.ctl Name of binary data set: c:/fortran/rain2.dat Number of times in the data set: 2 Number of surface variables: 1 Number of level dependent variables: 0 Starting scan of station data binary file. Binary data file open: c:/fortran/rain2.dat Processing time step 1 Invalid station hdr found in station binary file Possible causes: Invalid level count in hdr Descriptor file mismatch File not station data Invalid relative time levs = 1110441984 flag = -1029177344 time = 8.85621e-43I have attached the control file (stid.ctl), the sample fortran code I used to write the station data into binary form (stid.for), and the original ststion data (pcp.prn) for your reference. I using windows and gfortran compiler. Thanks ---------------------------- ZABLONE OWITI College of Atmospheric Science Nanjing University of Information, Science and Technology Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Mob. 15077895632 Website: www.nuist.edu.cn ==================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/c1b4121e/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: pcp.prn Type: application/octet-stream Size: 425 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100505/c1b4121e/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: rain2.dat Type: application/octet-stream Size: 416 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100505/c1b4121e/attachment-0001.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: stid.ctl Type: application/octet-stream Size: 194 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100505/c1b4121e/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: STID.for Type: application/octet-stream Size: 1138 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100505/c1b4121e/attachment-0003.obj From rupak.rajbhandari at gmail.com Thu May 6 00:02:45 2010 From: rupak.rajbhandari at gmail.com (Rupak Rajbhandari) Date: Thu, 6 May 2010 09:47:45 +0545 Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: In addition to Dr. John Huddleston explanation, Fortran95 compiler can be downloaded from http://gcc.gnu.org/wiki/GFortranBinaries Rupak Rajbhandari Nepal On Wed, May 5, 2010 at 10:22 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Bob, > > Use a ftp client and go to ftp.cpc.ncep.noaa.gov and then into the wd52dg/snow > directory. > > There is a wkly_89x89 directory. Download wk2010. > > There is a progs directory and the readsnow.f file. Download readsnow.ffile. Uncomment the open(unit=93 line and edit it to read the file wk2010in your local path. Edit the open(unit=95 line to save the output file of a > name of your choosing. Compile the application using 'gfortran -o readsnowreadsnow.f'. > Run it './readsnow' > > There is a grads_snw directory and a control file. Download plt_snw.ctland edit the top line to be the same name as your output file from unit-95 > above. > > grads -l > open plt_snw.ctl > d snow > > If any of this makes no sense you need to take some basic IT and > programming courses. > > John Huddleston, PhD, PE > > ------------------------------ > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of bob duker [dukerbob at gmail.com] > *Sent:* Tuesday, May 04, 2010 11:08 PM > *To:* gradsusr at gradsusr.org > *Subject:* [gradsusr] Help new to grads > > Hello All, > I'm doing snow Research and looking for a program to covert the climate > prediction center (CPC) Northern Hemosphere raw weekly snow data (in 1's and > 0's) into a useable number. I don't have much coding experience or computer > science background, so i'm not sure how to covert the data myself, or what > program to use. Also I don't have any fortran compiler. The CPC does covert > the data into a nice table format, but they don't keep it up todate. Their > website is http://www.cpc.ncep.noaa.gov/data/snow/. On their website they > have a link to grads. > > The program they give for reading weekly 89*89 snow data is > > PROGRAM AREA > C********************************************************************* > C > C THIS PROGRAM SIMPLY READS IN THE SNOW DATA AND > C WRITES IT OUT FOR A GIVEN YEAR. > C > C VARIABLES: > C > C ISNDAT - 89 X 89 SNOW DATA > C > C FILES: > C > C A YEAR OF WEEKLY SNOW DATA IS STORED IN A FILE WITH > C THE NAMING CONVENTION: > C > C wk19xx xx - is the year (ex. wk1973) > C > C********************************************************************* > > DIMENSION ISNDAT(89,89) > CHARACTER*1 ICHAR1,ICHAR2 > OPEN(11,FILE='INFILE', > * FORM='FORMATTED',ACCESS='SEQUENTIAL') > OPEN(12,FILE='OUTFILE', > * FORM='FORMATTED',ACCESS='SEQUENTIAL') > DO 199 LP = 1,52 > C********************************************************************* > C > C READS IN THE WEEKLY SNOW DATA. > C > C********************************************************************* > DO 200 I = 1,89 > READ(11,100,END=10) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) > 100 FORMAT (I4,2I2,A1,45I1) > READ(11,101,END=10)IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) > 101 FORMAT (I4,2I2,A1,44I1) > C********************************************************************* > C > C WRITE OUT THE WEEKLY SNOW DATA. > C > C********************************************************************* > WRITE(12,100) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) > WRITE(12,101) IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) > 200 CONTINUE > READ(11,102) ICONST > 102 FORMAT(I4) > WRITE(12,102) ICONST > C > 199 CONTINUE > 10 CONTINUE > 999 STOP > END > > I'm using windows 7 64bit operating system. My question is how do i use > grads to view the snow data or is there a fortran compiler the above program > will work on that i should use instead? > Thanks, > Bob R Duke > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/9e7ec40d/attachment-0001.html From lbyerle at yahoo.com Thu May 6 00:03:54 2010 From: lbyerle at yahoo.com (Lee Byerle) Date: Wed, 5 May 2010 21:03:54 -0700 Subject: [gradsusr] STNMAP Error In-Reply-To: <76a1f08c$7437403d$1593b653$@com> References: <76a1f08c$7437403d$1593b653$@com> Message-ID: Zablone, I usually use a C program, taken from the format provided in the GrADS user pages. I tried it with your text data file and it worked (output rain3.dat). Remember to first type stnmap -i stid.ctl. The C program is attached. good luck, Lee -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: station.c.txt Url: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/7e289c75/attachment.txt -------------- next part -------------- A non-text attachment was scrubbed... Name: rain3.dat Type: application/octet-stream Size: 312 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100505/7e289c75/attachment.obj -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: stid.ctl.txt Url: http://gradsusr.org/pipermail/gradsusr/attachments/20100505/7e289c75/attachment-0001.txt -------------- next part -------------- On May 5, 2010, at 7:21 PM, Zablone Owiti wrote: > From dukerbob at gmail.com Thu May 6 03:48:59 2010 From: dukerbob at gmail.com (bob duker) Date: Thu, 6 May 2010 03:48:59 -0400 Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: Thanks for your response Dr. Huddleston, I just downloaded opengrads2.0. I have found all the files you mention, but i have trouble following the rest. I'm new to grads and computer programming. It would help me out a lot to learn some of the basics of using grads. For example, 'gfortran -o readsnow readsnow.f' does grads have a compiler in it or is this something i need to download seperately? Is there a tutorial for grads basic functions that could help me learn more. Also I'm not sure what "Uncomment the open(unit=93 line and edit it to read the file wk2010 in your local path" means. I know that most grads users have far better understanding of this kind of stuff then me, but the grads webpage says "Users at all levels are encouraged to post questions and answers on the basics of getting started". Thanks, Bob On Wed, May 5, 2010 at 12:37 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Bob, > > Use a ftp client and go to ftp.cpc.ncep.noaa.gov and then into the wd52dg/snow > directory. > > There is a wkly_89x89 directory. Download wk2010. > > There is a progs directory and the readsnow.f file. Download readsnow.ffile. Uncomment the open(unit=93 line and edit it to read the file wk2010in your local path. Edit the open(unit=95 line to save the output file of a > name of your choosing. Compile the application using 'gfortran -o readsnowreadsnow.f'. > Run it './readsnow' > > There is a grads_snw directory and a control file. Download plt_snw.ctland edit the top line to be the same name as your output file from unit-95 > above. > > grads -l > open plt_snw.ctl > d snow > > If any of this makes no sense you need to take some basic IT and > programming courses. > > John Huddleston, PhD, PE > > ------------------------------ > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of bob duker [dukerbob at gmail.com] > *Sent:* Tuesday, May 04, 2010 11:08 PM > *To:* gradsusr at gradsusr.org > *Subject:* [gradsusr] Help new to grads > > Hello All, > I'm doing snow Research and looking for a program to covert the climate > prediction center (CPC) Northern Hemosphere raw weekly snow data (in 1's and > 0's) into a useable number. I don't have much coding experience or computer > science background, so i'm not sure how to covert the data myself, or what > program to use. Also I don't have any fortran compiler. The CPC does covert > the data into a nice table format, but they don't keep it up todate. Their > website is http://www.cpc.ncep.noaa.gov/data/snow/. On their website they > have a link to grads. > > The program they give for reading weekly 89*89 snow data is > > PROGRAM AREA > C********************************************************************* > C > C THIS PROGRAM SIMPLY READS IN THE SNOW DATA AND > C WRITES IT OUT FOR A GIVEN YEAR. > C > C VARIABLES: > C > C ISNDAT - 89 X 89 SNOW DATA > C > C FILES: > C > C A YEAR OF WEEKLY SNOW DATA IS STORED IN A FILE WITH > C THE NAMING CONVENTION: > C > C wk19xx xx - is the year (ex. wk1973) > C > C********************************************************************* > > DIMENSION ISNDAT(89,89) > CHARACTER*1 ICHAR1,ICHAR2 > OPEN(11,FILE='INFILE', > * FORM='FORMATTED',ACCESS='SEQUENTIAL') > OPEN(12,FILE='OUTFILE', > * FORM='FORMATTED',ACCESS='SEQUENTIAL') > DO 199 LP = 1,52 > C********************************************************************* > C > C READS IN THE WEEKLY SNOW DATA. > C > C********************************************************************* > DO 200 I = 1,89 > READ(11,100,END=10) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) > 100 FORMAT (I4,2I2,A1,45I1) > READ(11,101,END=10)IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) > 101 FORMAT (I4,2I2,A1,44I1) > C********************************************************************* > C > C WRITE OUT THE WEEKLY SNOW DATA. > C > C********************************************************************* > WRITE(12,100) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) > WRITE(12,101) IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) > 200 CONTINUE > READ(11,102) ICONST > 102 FORMAT(I4) > WRITE(12,102) ICONST > C > 199 CONTINUE > 10 CONTINUE > 999 STOP > END > > I'm using windows 7 64bit operating system. My question is how do i use > grads to view the snow data or is there a fortran compiler the above program > will work on that i should use instead? > Thanks, > Bob R Duke > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/a13503b1/attachment.html From jimp at hawaii.edu Thu May 6 03:49:40 2010 From: jimp at hawaii.edu (James T. Potemra) Date: Wed, 05 May 2010 21:49:40 -1000 Subject: [gradsusr] getting x/y positions of contours Message-ID: <4BE27494.2010605@hawaii.edu> I was wondering if it was possible to get (x,y) or (lon,lat) positions of contour lines instead of, or in addition to, the lines being drawn on the page? I'm trying to use GrADS to generate a contour plot, then display contours as lines on googlemap page. I can do it as a raster over-lay, but the resolution is less than optimal, particularly when zooming. Thanks in advance, Jim From gibiesgeorge at gmail.com Thu May 6 04:34:45 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Thu, 6 May 2010 14:04:45 +0530 Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: Bob, Please see the page http://www.iges.org/grads/gadoc/users . It is GrADS User's Guide which tell you about all details about GrADS. On 6 May 2010 13:18, bob duker wrote: > Thanks for your response Dr. Huddleston, > I just downloaded opengrads2.0. I have found all the files you mention, > but i have trouble following the rest. I'm new to grads and computer > programming. It would help me out a lot to learn some of the basics of using > grads. For example, > > 'gfortran -o readsnow readsnow.f' > does grads have a compiler in it or is this something i need to download > seperately? Is there a tutorial for grads basic functions that could help me > learn more. > > Also I'm not sure what "Uncomment the open(unit=93 line and edit it to read > the file wk2010 in your local path" means. > > I know that most grads users have far better understanding of this kind of > stuff then me, but the grads webpage says > "Users at all levels are encouraged to post questions and answers on the > basics of getting started". > > Thanks, > Bob > > On Wed, May 5, 2010 at 12:37 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > >> Bob, >> >> Use a ftp client and go to ftp.cpc.ncep.noaa.gov and then into the wd52dg/snow >> directory. >> >> There is a wkly_89x89 directory. Download wk2010. >> >> There is a progs directory and the readsnow.f file. Download readsnow.ffile. Uncomment the open(unit=93 line and edit it to read the file wk2010in your local path. Edit the open(unit=95 line to save the output file of a >> name of your choosing. Compile the application using 'gfortran-o readsnowreadsnow.f'. >> Run it './readsnow' >> >> There is a grads_snw directory and a control file. Download plt_snw.ctland edit the top line to be the same name as your output file from unit-95 >> above. >> >> grads -l >> open plt_snw.ctl >> d snow >> >> If any of this makes no sense you need to take some basic IT and >> programming courses. >> >> John Huddleston, PhD, PE >> >> ------------------------------ >> *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On >> Behalf Of bob duker [dukerbob at gmail.com] >> *Sent:* Tuesday, May 04, 2010 11:08 PM >> *To:* gradsusr at gradsusr.org >> *Subject:* [gradsusr] Help new to grads >> >> Hello All, >> I'm doing snow Research and looking for a program to covert the climate >> prediction center (CPC) Northern Hemosphere raw weekly snow data (in 1's and >> 0's) into a useable number. I don't have much coding experience or computer >> science background, so i'm not sure how to covert the data myself, or what >> program to use. Also I don't have any fortran compiler. The CPC does covert >> the data into a nice table format, but they don't keep it up todate. Their >> website is http://www.cpc.ncep.noaa.gov/data/snow/. On their website they >> have a link to grads. >> >> The program they give for reading weekly 89*89 snow data is >> >> PROGRAM AREA >> C********************************************************************* >> C >> C THIS PROGRAM SIMPLY READS IN THE SNOW DATA AND >> C WRITES IT OUT FOR A GIVEN YEAR. >> C >> C VARIABLES: >> C >> C ISNDAT - 89 X 89 SNOW DATA >> C >> C FILES: >> C >> C A YEAR OF WEEKLY SNOW DATA IS STORED IN A FILE WITH >> C THE NAMING CONVENTION: >> C >> C wk19xx xx - is the year (ex. wk1973) >> C >> C********************************************************************* >> >> DIMENSION ISNDAT(89,89) >> CHARACTER*1 ICHAR1,ICHAR2 >> OPEN(11,FILE='INFILE', >> * FORM='FORMATTED',ACCESS='SEQUENTIAL') >> OPEN(12,FILE='OUTFILE', >> * FORM='FORMATTED',ACCESS='SEQUENTIAL') >> DO 199 LP = 1,52 >> C********************************************************************* >> C >> C READS IN THE WEEKLY SNOW DATA. >> C >> C********************************************************************* >> DO 200 I = 1,89 >> READ(11,100,END=10) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) >> 100 FORMAT (I4,2I2,A1,45I1) >> READ(11,101,END=10)IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) >> 101 FORMAT (I4,2I2,A1,44I1) >> C********************************************************************* >> C >> C WRITE OUT THE WEEKLY SNOW DATA. >> C >> C********************************************************************* >> WRITE(12,100) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) >> WRITE(12,101) IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) >> 200 CONTINUE >> READ(11,102) ICONST >> 102 FORMAT(I4) >> WRITE(12,102) ICONST >> C >> 199 CONTINUE >> 10 CONTINUE >> 999 STOP >> END >> >> I'm using windows 7 64bit operating system. My question is how do i use >> grads to view the snow data or is there a fortran compiler the above program >> will work on that i should use instead? >> Thanks, >> Bob R Duke >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/f6101ad1/attachment-0001.html From gabriel.ud at gmail.com Thu May 6 09:20:09 2010 From: gabriel.ud at gmail.com (Gabriel - ud Carvalho) Date: Thu, 6 May 2010 10:20:09 -0300 Subject: [gradsusr] Entire grid undefined Message-ID: Hello Grads users, I'm having a problem with the post-processing of my wave model (WAM). I run the model for distinct areas, using GrAds to display the results. The .gs script that I use for all of the areas are the same model, changing only the paths and names. For one specific area (antartica), it's happening this: The prognostics for some times (ex. 00, 06, 12) are working properly, generating the figures, and then in the next time (ex. 18, 24, ..., 72) it's coming out "ENTIRE GRID UNDEFINED", and the time that it begins to happen is varying. I dont know if it's a Grads problem or a problem inside the wave model... Does someone have a guess? Thanks, Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/5221a1cc/attachment.html From gabriel.ud at gmail.com Thu May 6 09:25:23 2010 From: gabriel.ud at gmail.com (Gabriel - ud Carvalho) Date: Thu, 6 May 2010 10:25:23 -0300 Subject: [gradsusr] generating ctl Message-ID: Hello, Can Grads read an ascii file .dat? I supose I have to transform it to a GRIB file and then create a CTL for it, how can I do this? the file in question is attached, it's from the wave model SWAM. Thanks a lot, Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/2be8aed0/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: altura_teste_18.dat Type: application/octet-stream Size: 659871 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100506/2be8aed0/attachment-0001.obj From jma at cola.iges.org Thu May 6 09:57:04 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Thu, 6 May 2010 09:57:04 -0400 Subject: [gradsusr] cdiff In-Reply-To: References: Message-ID: <833F6A52-822D-4067-8402-028C466A5113@cola.iges.org> On May 5, 2010, at 11:09 AM, Jeffrey Duda wrote: > Muhammad, > Unfortunately, you simply can't define a variable using cdiff in the > z-direction in Grads. That's because GrADS constructs the defined object by looping over Z (and T and E if they are varying dims too). It's almost like a built- in zloop function -- you end up with a result that varies in Z, but the expression is evaluated at a fixed Z as it loops over all the specified Z levels. > You can display a variable, but you'd have to write out the entire > formula for that variable in the display command. That's correct. You can also write it out to a file, using gxout fwrite. --Jennifer > > Jeff Duda > > On Wed, May 5, 2010 at 5:59 AM, Muhammad Afzaal > wrote: > Hello everybody > > I am using "cdiff" function along z-dimension to fine dvar/dz e.g > > -> 'set z 1 17' > -> 'define dvar = cdiff(var,z) > > but I have following error > Error from CDIFF: Specified dimension non varying > Operation Error: Error from cdiff function > Error ocurred at column 1 > can anybody figure out the problem? > Thanks > > -- > MUHAMMAD AFZAAL KARORI > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > -- > Jeff Duda > Iowa State University > Meteorology Graduate Student > 3134 Agronomy Hall > www.meteor.iastate.edu/~jdduda > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100506/e090f997/attachment.html From Huddleston at cira.colostate.edu Thu May 6 10:44:49 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 6 May 2010 07:44:49 -0700 Subject: [gradsusr] getting x/y positions of contours In-Reply-To: <4BE27494.2010605@hawaii.edu> References: <4BE27494.2010605@hawaii.edu> Message-ID: James, If you save the image as a PNG or GIF, you can reference it using KML. Here is a hypothetical example. YourNameForTheImage http://www.hawaii.edu/GeMaps/YourImage.png -130.25 -59.75 19.75 50.25 0.0 If you are using Google V.2 then it is straightforward. If you are using V.3 then you may want to use GEOXML3. http://code.google.com/p/geoxml3/ Either way, rendering of GrADS images using KML is fast and efficient. John Huddleston, PhD -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of James T. Potemra Sent: Thursday, May 06, 2010 1:50 AM To: gradsusr at gradsusr.org Subject: [gradsusr] getting x/y positions of contours I was wondering if it was possible to get (x,y) or (lon,lat) positions of contour lines instead of, or in addition to, the lines being drawn on the page? I'm trying to use GrADS to generate a contour plot, then display contours as lines on googlemap page. I can do it as a raster over-lay, but the resolution is less than optimal, particularly when zooming. Thanks in advance, Jim _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From jma at cola.iges.org Thu May 6 11:00:16 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Thu, 6 May 2010 11:00:16 -0400 Subject: [gradsusr] getting x/y positions of contours In-Reply-To: <4BE27494.2010605@hawaii.edu> References: <4BE27494.2010605@hawaii.edu> Message-ID: <467C9B1E-CCE3-449C-A826-60DE5A34B37C@cola.iges.org> Do you have an example of a KML file (not created with GrADS) that has contours that can be displayed in Google Earth? On May 6, 2010, at 3:49 AM, James T. Potemra wrote: > > I was wondering if it was possible to get (x,y) or (lon,lat) positions > of contour lines instead of, or in addition to, the lines being > drawn on > the page? I'm trying to use GrADS to generate a contour plot, then > display contours as lines on googlemap page. I can do it as a raster > over-lay, but the resolution is less than optimal, particularly when > zooming. Thanks in advance, > > Jim > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100506/61d7e73f/attachment.html From Charles.Seman at noaa.gov Thu May 6 13:20:37 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Thu, 06 May 2010 13:20:37 -0400 Subject: [gradsusr] [Fwd: CTL FILES] Message-ID: <4BE2FA65.4070206@noaa.gov> Luis, Please find attached an email from Guilherme Martins illustrating how to use "sdfopen" itself to do the templating (if you can, I would try the "sdfopen" templating first without trying to add a z-dimension)... Thanks Guilherme! Hope this helps, 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 reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." -------------- next part -------------- An embedded message was scrubbed... From: Guilherme Martins Subject: CTL FILES Date: Wed, 05 May 2010 15:03:55 -0300 Size: 4877 Url: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/d7c38832/attachment.eml From mateig at stanford.edu Thu May 6 13:43:13 2010 From: mateig at stanford.edu (Matei Georgescu) Date: Thu, 6 May 2010 10:43:13 -0700 (PDT) Subject: [gradsusr] Templating 3B42_daily.*nc TRMM files In-Reply-To: <229641652.38676.1273167442933.JavaMail.root@zm09.stanford.edu> Message-ID: <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> Greetings all, My question relates to the use and templating of netcdf daily TRMM precipitation data (3B42), with opengrads 2.0.a7.oga.3. I've noticed a few threads on this subject but haven't been able to locate anything that helps me. I can successfully open individual files. For example: ga-> sdfopen 3B42_daily.2005.07.01.6.nc Scanning self-describing file: 3B42_daily.2005.07.01.6.nc SDF file 3B42_daily.2005.07.01.6.nc is open as file 1 LON set to 0 360 LAT set to -49.875 49.875 LEV set to 0 0 Time values set: 2005:7:1:0 2005:7:1:0 E set to 1 1 ga-> d hrf Contouring: 0 to 330 interval 30 Everything has the proper appearance. I can do this for several files ... but I need to open tens of files at once, and need to template. I created the following control file (control.ctl) based on users' suggestions, to template all my netcdf files (to start, for just 1 month): DSET ^3B42_daily.2005.07.%d2.6.nc DTYPE netcdf OPTIONS template UNDEF -9999.0 xdef 1440 linear -179.875 0.25 ydef 400 linear -49.875 0.25 ZDEF 1 linear 1 1 TDEF 31 linear 00Z1JUL2005 1dy VARS 1 hrf 1 z,x,y daily precipitation [mm] ENDVARS Upon opening: ga-> sdfopen control.ctl Scanning self-describing file: control.ctl gaopnc error: nc_open failed to open file control.ctl read_metadata: gaopnc failed gadsdf: Couldn't ingest SDF metadata. Or else: ga-> open control.ctl Scanning description file: control.ctl Data file 3B42_daily.2005.07.%d2.6.nc is open as file 1 LON set to 0 360 LAT set to -50 49.75 LEV set to 1 1 Time values set: 2005:7:1:0 2005:7:1:0 E set to 1 1 ga-> d hrf NetCDF Error (gancrow, nc_get_vara_double): NetCDF: Start+count exceeds dimension bound Data Request Error: Error for variable 'hrf' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = hrf No doubt I'm doing something silly ... I would appreciate any suggestions. thank you, matt ----- Matei ("Matt") Georgescu Post-doctoral Fellow Program on Food Security and the Environment Stanford University Y2E2 Bldg - MC4205 473 Via Ortega Stanford, CA 94305 homepage - http://stanford.edu/~mateig From Huddleston at cira.colostate.edu Thu May 6 14:02:06 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 6 May 2010 11:02:06 -0700 Subject: [gradsusr] Templating 3B42_daily.*nc TRMM files In-Reply-To: <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> References: <229641652.38676.1273167442933.JavaMail.root@zm09.stanford.edu> <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> Message-ID: Matt, See http://grads.iges.org/grads/gadoc/templates.html Your TDEF number looks to be too small. How many total days are in all the files in your template? Change 31 to that number. John Huddleston, PhD -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Matei Georgescu Sent: Thursday, May 06, 2010 11:43 AM To: GrADS Users Forum Subject: [gradsusr] Templating 3B42_daily.*nc TRMM files Greetings all, My question relates to the use and templating of netcdf daily TRMM precipitation data (3B42), with opengrads 2.0.a7.oga.3. I've noticed a few threads on this subject but haven't been able to locate anything that helps me. I can successfully open individual files. For example: ga-> sdfopen 3B42_daily.2005.07.01.6.nc Scanning self-describing file: 3B42_daily.2005.07.01.6.nc SDF file 3B42_daily.2005.07.01.6.nc is open as file 1 LON set to 0 360 LAT set to -49.875 49.875 LEV set to 0 0 Time values set: 2005:7:1:0 2005:7:1:0 E set to 1 1 ga-> d hrf Contouring: 0 to 330 interval 30 Everything has the proper appearance. I can do this for several files ... but I need to open tens of files at once, and need to template. I created the following control file (control.ctl) based on users' suggestions, to template all my netcdf files (to start, for just 1 month): DSET ^3B42_daily.2005.07.%d2.6.nc DTYPE netcdf OPTIONS template UNDEF -9999.0 xdef 1440 linear -179.875 0.25 ydef 400 linear -49.875 0.25 ZDEF 1 linear 1 1 TDEF 31 linear 00Z1JUL2005 1dy VARS 1 hrf 1 z,x,y daily precipitation [mm] ENDVARS Upon opening: ga-> sdfopen control.ctl Scanning self-describing file: control.ctl gaopnc error: nc_open failed to open file control.ctl read_metadata: gaopnc failed gadsdf: Couldn't ingest SDF metadata. Or else: ga-> open control.ctl Scanning description file: control.ctl Data file 3B42_daily.2005.07.%d2.6.nc is open as file 1 LON set to 0 360 LAT set to -50 49.75 LEV set to 1 1 Time values set: 2005:7:1:0 2005:7:1:0 E set to 1 1 ga-> d hrf NetCDF Error (gancrow, nc_get_vara_double): NetCDF: Start+count exceeds dimension bound Data Request Error: Error for variable 'hrf' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = hrf No doubt I'm doing something silly ... I would appreciate any suggestions. thank you, matt ----- Matei ("Matt") Georgescu Post-doctoral Fellow Program on Food Security and the Environment Stanford University Y2E2 Bldg - MC4205 473 Via Ortega Stanford, CA 94305 homepage - http://stanford.edu/~mateig _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From mateig at stanford.edu Thu May 6 14:08:45 2010 From: mateig at stanford.edu (Matei Georgescu) Date: Thu, 6 May 2010 11:08:45 -0700 (PDT) Subject: [gradsusr] Templating 3B42_daily.*nc TRMM files In-Reply-To: Message-ID: <807923173.40514.1273169325534.JavaMail.root@zm09.stanford.edu> Thanks for your reply John. The tdef number is appropriate for 31 days (number of days for the month), but i could not even plot anything for t = 1, so that wasn't the main problem. It was indeed the control file. I've modified it to: DSET ^3B42_daily.2005.07.%d2.6.nc DTYPE netcdf OPTIONS template UNDEF -9999.9 xdef 1440 linear -179.875 0.25 ydef 400 linear -49.875 0.25 ZDEF 1 linear 1 1 TDEF 31 linear 00Z1JUL2005 1dy VARS 1 hrf=>prate 1 t,y,x daily precipitation [mm] ENDVARS and it works fine now. Primary parameter that I changed was the variable name definition and ordering of dimensions. thank you, matt ----- Matei ("Matt") Georgescu Post-doctoral Fellow Program on Food Security and the Environment Stanford University Y2E2 Bldg - MC4205 473 Via Ortega Stanford, CA 94305 homepage - http://stanford.edu/~mateig ----- Original Message ----- From: "John Huddleston" To: "GrADS Users Forum" Sent: Thursday, May 6, 2010 11:02:06 AM Subject: Re: [gradsusr] Templating 3B42_daily.*nc TRMM files Matt, See http://grads.iges.org/grads/gadoc/templates.html Your TDEF number looks to be too small. How many total days are in all the files in your template? Change 31 to that number. John Huddleston, PhD -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Matei Georgescu Sent: Thursday, May 06, 2010 11:43 AM To: GrADS Users Forum Subject: [gradsusr] Templating 3B42_daily.*nc TRMM files Greetings all, My question relates to the use and templating of netcdf daily TRMM precipitation data (3B42), with opengrads 2.0.a7.oga.3. I've noticed a few threads on this subject but haven't been able to locate anything that helps me. I can successfully open individual files. For example: ga-> sdfopen 3B42_daily.2005.07.01.6.nc Scanning self-describing file: 3B42_daily.2005.07.01.6.nc SDF file 3B42_daily.2005.07.01.6.nc is open as file 1 LON set to 0 360 LAT set to -49.875 49.875 LEV set to 0 0 Time values set: 2005:7:1:0 2005:7:1:0 E set to 1 1 ga-> d hrf Contouring: 0 to 330 interval 30 Everything has the proper appearance. I can do this for several files ... but I need to open tens of files at once, and need to template. I created the following control file (control.ctl) based on users' suggestions, to template all my netcdf files (to start, for just 1 month): DSET ^3B42_daily.2005.07.%d2.6.nc DTYPE netcdf OPTIONS template UNDEF -9999.0 xdef 1440 linear -179.875 0.25 ydef 400 linear -49.875 0.25 ZDEF 1 linear 1 1 TDEF 31 linear 00Z1JUL2005 1dy VARS 1 hrf 1 z,x,y daily precipitation [mm] ENDVARS Upon opening: ga-> sdfopen control.ctl Scanning self-describing file: control.ctl gaopnc error: nc_open failed to open file control.ctl read_metadata: gaopnc failed gadsdf: Couldn't ingest SDF metadata. Or else: ga-> open control.ctl Scanning description file: control.ctl Data file 3B42_daily.2005.07.%d2.6.nc is open as file 1 LON set to 0 360 LAT set to -50 49.75 LEV set to 1 1 Time values set: 2005:7:1:0 2005:7:1:0 E set to 1 1 ga-> d hrf NetCDF Error (gancrow, nc_get_vara_double): NetCDF: Start+count exceeds dimension bound Data Request Error: Error for variable 'hrf' Error ocurred at column 1 DISPLAY error: Invalid expression Expression = hrf No doubt I'm doing something silly ... I would appreciate any suggestions. thank you, matt ----- Matei ("Matt") Georgescu Post-doctoral Fellow Program on Food Security and the Environment Stanford University Y2E2 Bldg - MC4205 473 Via Ortega Stanford, CA 94305 homepage - http://stanford.edu/~mateig _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From haohe.umcp at gmail.com Thu May 6 14:15:19 2010 From: haohe.umcp at gmail.com (Hao He) Date: Thu, 6 May 2010 14:15:19 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: John, I start to work on the .ctl file, and I have a question about the xdef and ydef. As you plotted, the left corner is not the minimal longitude and latitude of the domain. Which value should I use? Best Hao On Wed, May 5, 2010 at 2:16 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Hao, this might be closer if it is 30KM. Change the ytime and year > accordingly. John > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > pdef 94 67 lcc 24.87 -127.10 1 1 33 45 -114.00 30000 30000 > undef -9999 > xdef 94 linear -131.336 0.48 > ydef 67 linear 24.87 0.300 > > zdef 1 linear 1 1 > tdef 24 linear 00:00Z20apr2006 1hr > > vars 8 > NO2=>no2 1 t,z,y,x NO2 > NO=>no 1 t,z,y,x NO > O=>o 1 t,z,y,x O > O3=>o3 1 t,z,y,x O3 > NO3=>no3 1 t,z,y,x NO3 > CO=>co 1 t,z,y,x CO > CXO3=>cxo3 1 t,z,y,x cxo3 > NH3=>nh3 1 t,z,y,x NH3 > endvars > > ------------------------------ > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of Hao He [haohe.umcp at gmail.com] > *Sent:* Wednesday, May 05, 2010 11:59 AM > *To:* GrADS Users Forum > *Subject:* Re: [gradsusr] data not in GRIB format > > That is great! My grid size is 30 km instead of 36 km, and I think the > difference is trivial. I will read the format and modified it to my own > grid. > Thanks a lot! > > Hao > > On Wed, May 5, 2010 at 1:52 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > >> Hao >> >> If it is 36 kilometer CMAQ netCDF you can probably start with this grid >> control definition. >> >> dset ^YourFile.ncf >> dtype netcdf >> title Vertically integrated atmos chem/aerosol vbles >> pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 >> undef -9999 >> xdef 148 linear -139.285 0.57565 >> ydef 112 linear 16.77 0.3600 >> zdef 1 linear 1 1 >> tdef 72 linear 00:00Z20apr2006 1hr >> vars 8 >> NO2=>no2 1 t,z,y,x NO2 >> NO=>no 1 t,z,y,x NO >> O=>o 1 t,z,y,x O >> O3=>o3 1 t,z,y,x O3 >> NO3=>no3 1 t,z,y,x NO3 >> CO=>co 1 t,z,y,x CO >> CXO3=>cxo3 1 t,z,y,x cxo3 >> NH3=>nh3 1 t,z,y,x NH3 >> endvars >> >> john Huddleston, PhD, PE >> ------------------------------ >> *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On >> Behalf Of Hao He [haohe.umcp at gmail.com] >> *Sent:* Tuesday, May 04, 2010 1:58 PM >> *To:* gradsusr at gradsusr.org >> *Subject:* [gradsusr] data not in GRIB format >> >> Hi, >> I have a 2D data set with uneven Lon and Lat distribution. I notice >> that the GRIB data for GrADS has even grids, so I am wondering whether it is >> possible to display this data set on GrADS? Thanks for help! >> >> Hao >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/bd5329fb/attachment.html From Charles.Seman at noaa.gov Thu May 6 14:26:09 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Thu, 06 May 2010 14:26:09 -0400 Subject: [gradsusr] Templating 3B42_daily.*nc TRMM files In-Reply-To: <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> References: <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> Message-ID: <4BE309C1.6060305@noaa.gov> Matei, One possibility is in your VARS "hrf" definition: try "t,z,y,x"... or better yet, have you tried the "sdfopen" templating method? Please see a recent post I sent containing an email attachment with an email Guilherme Martins sent me for an example of how to do this... For more info on sdfopen templating: http://grads.iges.org/grads/gadoc/gradcomdsdfopen.html If neither of these work, a "chsub" templating method worked for our TRMM 3B42 3-hourly regridded precipitation datasets (http://grads.iges.org/grads/gadoc/templates.html, GrADS template ctl file attached). Hope this helps, Chuck Matei Georgescu wrote: > Greetings all, > > My question relates to the use and templating of netcdf daily TRMM precipitation data (3B42), with opengrads 2.0.a7.oga.3. I've noticed a few threads on this subject but haven't been able to locate anything that helps me. > > I can successfully open individual files. For example: > ga-> sdfopen 3B42_daily.2005.07.01.6.nc > Scanning self-describing file: 3B42_daily.2005.07.01.6.nc > SDF file 3B42_daily.2005.07.01.6.nc is open as file 1 > LON set to 0 360 > LAT set to -49.875 49.875 > LEV set to 0 0 > Time values set: 2005:7:1:0 2005:7:1:0 > E set to 1 1 > ga-> d hrf > Contouring: 0 to 330 interval 30 > > Everything has the proper appearance. > > I can do this for several files ... but I need to open tens of files at once, and need to template. > > I created the following control file (control.ctl) based on users' suggestions, to template all my netcdf files (to start, for just 1 month): > > DSET ^3B42_daily.2005.07.%d2.6.nc > DTYPE netcdf > OPTIONS template > UNDEF -9999.0 > xdef 1440 linear -179.875 0.25 > ydef 400 linear -49.875 0.25 > ZDEF 1 linear 1 1 > TDEF 31 linear 00Z1JUL2005 1dy > VARS 1 > hrf 1 z,x,y daily precipitation [mm] > ENDVARS > > Upon opening: > ga-> sdfopen control.ctl > Scanning self-describing file: control.ctl > gaopnc error: nc_open failed to open file control.ctl > read_metadata: gaopnc failed > gadsdf: Couldn't ingest SDF metadata. > > Or else: > ga-> open control.ctl > Scanning description file: control.ctl > Data file 3B42_daily.2005.07.%d2.6.nc is open as file 1 > LON set to 0 360 > LAT set to -50 49.75 > LEV set to 1 1 > Time values set: 2005:7:1:0 2005:7:1:0 > E set to 1 1 > ga-> d hrf > NetCDF Error (gancrow, nc_get_vara_double): NetCDF: Start+count exceeds dimension bound > Data Request Error: Error for variable 'hrf' > Error ocurred at column 1 > DISPLAY error: Invalid expression > Expression = hrf > > No doubt I'm doing something silly ... I would appreciate any suggestions. > > thank you, > matt > > ----- > Matei ("Matt") Georgescu > Post-doctoral Fellow > Program on Food Security and the Environment > Stanford University > Y2E2 Bldg - MC4205 > 473 Via Ortega > Stanford, CA 94305 > homepage - http://stanford.edu/~mateig > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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 reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: regrid.3B42.980101.template.ctl Url: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/fffaaa19/attachment.pl From Huddleston at cira.colostate.edu Thu May 6 14:50:30 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 6 May 2010 11:50:30 -0700 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: Hao CMAQ files usually are ioapi or WRF compliant. If they are ioapi, run the 'ncdump -h file.ncf > h' and look at the global characteristics. It will have everything you need to compose the control file. If they are WRF compliant, you will have to go back to the modeler who created them. Please see http://www.nco.ncep.noaa.gov/pmb/docs/on388/tableb.html#GRID138 as an example of the information you need. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Hao He Sent: Thursday, May 06, 2010 12:15 PM To: GrADS Users Forum Subject: Re: [gradsusr] data not in GRIB format John, I start to work on the .ctl file, and I have a question about the xdef and ydef. As you plotted, the left corner is not the minimal longitude and latitude of the domain. Which value should I use? Best Hao On Wed, May 5, 2010 at 2:16 PM, Huddleston, John > wrote: Hao, this might be closer if it is 30KM. Change the ytime and year accordingly. John dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 94 67 lcc 24.87 -127.10 1 1 33 45 -114.00 30000 30000 undef -9999 xdef 94 linear -131.336 0.48 ydef 67 linear 24.87 0.300 zdef 1 linear 1 1 tdef 24 linear 00:00Z20apr2006 1hr vars 8 NO2=>no2 1 t,z,y,x NO2 NO=>no 1 t,z,y,x NO O=>o 1 t,z,y,x O O3=>o3 1 t,z,y,x O3 NO3=>no3 1 t,z,y,x NO3 CO=>co 1 t,z,y,x CO CXO3=>cxo3 1 t,z,y,x cxo3 NH3=>nh3 1 t,z,y,x NH3 endvars ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Hao He [haohe.umcp at gmail.com] Sent: Wednesday, May 05, 2010 11:59 AM To: GrADS Users Forum Subject: Re: [gradsusr] data not in GRIB format That is great! My grid size is 30 km instead of 36 km, and I think the difference is trivial. I will read the format and modified it to my own grid. Thanks a lot! Hao On Wed, May 5, 2010 at 1:52 PM, Huddleston, John > wrote: Hao If it is 36 kilometer CMAQ netCDF you can probably start with this grid control definition. dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 undef -9999 xdef 148 linear -139.285 0.57565 ydef 112 linear 16.77 0.3600 zdef 1 linear 1 1 tdef 72 linear 00:00Z20apr2006 1hr vars 8 NO2=>no2 1 t,z,y,x NO2 NO=>no 1 t,z,y,x NO O=>o 1 t,z,y,x O O3=>o3 1 t,z,y,x O3 NO3=>no3 1 t,z,y,x NO3 CO=>co 1 t,z,y,x CO CXO3=>cxo3 1 t,z,y,x cxo3 NH3=>nh3 1 t,z,y,x NH3 endvars john Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Hao He [haohe.umcp at gmail.com] Sent: Tuesday, May 04, 2010 1:58 PM To: gradsusr at gradsusr.org Subject: [gradsusr] data not in GRIB format Hi, I have a 2D data set with uneven Lon and Lat distribution. I notice that the GRIB data for GrADS has even grids, so I am wondering whether it is possible to display this data set on GrADS? Thanks for help! Hao _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/cee17d69/attachment-0001.html From haohe.umcp at gmail.com Thu May 6 14:56:03 2010 From: haohe.umcp at gmail.com (Hao He) Date: Thu, 6 May 2010 14:56:03 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: Got it. I will check the global attributes. Thanks a lot! Hao On Thu, May 6, 2010 at 2:50 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Hao > > > > CMAQ files usually are ioapi or WRF compliant. If they are ioapi, run the > ?ncdump ?h file.ncf > h? and look at the global characteristics. It will > have everything you need to compose the control file. > > > > If they are WRF compliant, you will have to go back to the modeler who > created them. > > > > Please see http://www.nco.ncep.noaa.gov/pmb/docs/on388/tableb.html#GRID138as an example of the information you need. > > > > John Huddleston, PhD > > > > *From:* gradsusr-bounces at gradsusr.org [mailto: > gradsusr-bounces at gradsusr.org] *On Behalf Of *Hao He > *Sent:* Thursday, May 06, 2010 12:15 PM > > *To:* GrADS Users Forum > *Subject:* Re: [gradsusr] data not in GRIB format > > > > John, > I start to work on the .ctl file, and I have a question about the xdef > and ydef. As you plotted, the left corner is not the minimal longitude and > latitude of the domain. Which value should I use? > > Best > > Hao > > On Wed, May 5, 2010 at 2:16 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > > Hao, this might be closer if it is 30KM. Change the ytime and year > accordingly. John > > > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > > pdef 94 67 lcc 24.87 -127.10 1 1 33 45 -114.00 30000 30000 > undef -9999 > xdef 94 linear -131.336 0.48 > ydef 67 linear 24.87 0.300 > > > zdef 1 linear 1 1 > > tdef 24 linear 00:00Z20apr2006 1hr > > > vars 8 > NO2=>no2 1 t,z,y,x NO2 > NO=>no 1 t,z,y,x NO > O=>o 1 t,z,y,x O > O3=>o3 1 t,z,y,x O3 > NO3=>no3 1 t,z,y,x NO3 > CO=>co 1 t,z,y,x CO > CXO3=>cxo3 1 t,z,y,x cxo3 > NH3=>nh3 1 t,z,y,x NH3 > endvars > > > ------------------------------ > > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of Hao He [haohe.umcp at gmail.com] > > *Sent:* Wednesday, May 05, 2010 11:59 AM > *To:* GrADS Users Forum > *Subject:* Re: [gradsusr] data not in GRIB format > > That is great! My grid size is 30 km instead of 36 km, and I think the > difference is trivial. I will read the format and modified it to my own > grid. > Thanks a lot! > > Hao > > On Wed, May 5, 2010 at 1:52 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > > Hao > > > > If it is 36 kilometer CMAQ netCDF you can probably start with this grid > control definition. > > > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 > undef -9999 > xdef 148 linear -139.285 0.57565 > ydef 112 linear 16.77 0.3600 > zdef 1 linear 1 1 > tdef 72 linear 00:00Z20apr2006 1hr > vars 8 > NO2=>no2 1 t,z,y,x NO2 > NO=>no 1 t,z,y,x NO > O=>o 1 t,z,y,x O > O3=>o3 1 t,z,y,x O3 > NO3=>no3 1 t,z,y,x NO3 > CO=>co 1 t,z,y,x CO > CXO3=>cxo3 1 t,z,y,x cxo3 > NH3=>nh3 1 t,z,y,x NH3 > endvars > > > > john Huddleston, PhD, PE > ------------------------------ > > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of Hao He [haohe.umcp at gmail.com] > > *Sent:* Tuesday, May 04, 2010 1:58 PM > *To:* gradsusr at gradsusr.org > *Subject:* [gradsusr] data not in GRIB format > > Hi, > I have a 2D data set with uneven Lon and Lat distribution. I notice that > the GRIB data for GrADS has even grids, so I am wondering whether it is > possible to display this data set on GrADS? Thanks for help! > > Hao > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/474debf6/attachment.html From puffy78 at gmail.com Thu May 6 17:45:22 2010 From: puffy78 at gmail.com (Alexandre Santos) Date: Thu, 6 May 2010 18:45:22 -0300 Subject: [gradsusr] convert text at binary (program fortran) Message-ID: Hello, Someone , have a program at fortran that convert data precipitation for binary (read grads), interpolation from 0.5 x 0.5 (graus). example lon lat prec -35.4 -9.10 10.4 -35.9 8.60 13.0 -37.2 6.6 14.7 ...... ....... ........ matrix prec(61,87) Thanks very much Alexandre -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/35bdb293/attachment.html From krlosbatist at gmail.com Thu May 6 17:59:48 2010 From: krlosbatist at gmail.com (Carlos Batista) Date: Thu, 6 May 2010 18:59:48 -0300 Subject: [gradsusr] convert text at binary (program fortran) In-Reply-To: References: Message-ID: Alexandre a linguagem ? fortran... Boa sorte e espero que ajude.... Carlos c parameter (12,58) ! Valores mensais do indice Oscila??ao do Atl??ntico Norte para o periodo de 1950 at?? 2008. Sao valores mensais deste indice e representa apenas um ponto de anaolise da press??o entre acoures e (esqueci) o outro lugar.rsss c program vazao real ind(12,59),ind_a(59) c obs: o simb & serve p/ pular contin inform que c nao cabe na linha anterior! open(10,file='NAO.txt',status='old') open(20,file='naomes.bin',form='unformatted', & access='direct',recl=1) !mes open(30,file='naoano.bin',form='unformatted', & access='direct',recl=1) !ano open(35,file='naomes.txt',status='unknown') open(40,file='naoano.txt',status='unknown') c read(10,*) do i=1,59 c ind_p(j)=0 ! c cont=0 c do j=1,12 ! read(10,*)(ind(i,j),j=1,12) enddo c irec e jrec = valor dos n. reais! irec=0 jrec=0 c doh = contando da 1 ate a 59 linha! do i=1,59 c ind_a(i) i=59 (linhas da tabela do txt), c ind contador! ind_a(i)=0. do j=1,12 irec=irec+1 c write 20=escreve os dados de saida atraves c dos dados de entrada (qualquer formato (*) do c num rais dentro das linhas e colunas 12,59! write(20,rec=irec)ind(i,j) c = ao wite 20, apenas um destaque para o c valor 100 q repres. um formato de saida em txt! write(35,100)ind(i,j) ind_a(i)=ind_a(i)+ind(i,j) enddo jrec=jrec+1 ! write(30,rec=jrec)ind_a(i) write(40,100)ind_a(i) enddo 100 format(f6.2) stop end 2010/5/6 Alexandre Santos > Hello, > > Someone , have a program at fortran that convert data precipitation for > binary (read grads), interpolation from 0.5 x 0.5 (graus). > > example > lon lat prec > -35.4 -9.10 10.4 > -35.9 8.60 13.0 > -37.2 6.6 14.7 > > ...... ....... ........ > > > matrix prec(61,87) > > Thanks very much > > > Alexandre > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/84d96536/attachment.html From dukerbob at gmail.com Thu May 6 19:33:36 2010 From: dukerbob at gmail.com (bob duker) Date: Thu, 6 May 2010 19:33:36 -0400 Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: Hello all, I have a plt_snw.clt file and a snow2010.gdf file on my desktop, But when I open grades, tell it landscape, and type open plt_snw.clt It says Scanning Description file: plt_snw.clt OPEN ERROR: can't open description file I just downloaded grades 2.0.a7.oga.3 self extracting widows version last night and haven't done anything to it yet. I'm using windows 7 64 bit. Is there something I'm missing? Thanks, Bob On Wed, May 5, 2010 at 1:08 AM, bob duker wrote: > Hello All, > I'm doing snow Research and looking for a program to covert the climate > prediction center (CPC) Northern Hemosphere raw weekly snow data (in 1's and > 0's) into a useable number. I don't have much coding experience or computer > science background, so i'm not sure how to covert the data myself, or what > program to use. Also I don't have any fortran compiler. The CPC does covert > the data into a nice table format, but they don't keep it up todate. Their > website is http://www.cpc.ncep.noaa.gov/data/snow/. On their website they > have a link to grads. > > The program they give for reading weekly 89*89 snow data is > > PROGRAM AREA > C********************************************************************* > C > C THIS PROGRAM SIMPLY READS IN THE SNOW DATA AND > C WRITES IT OUT FOR A GIVEN YEAR. > C > C VARIABLES: > C > C ISNDAT - 89 X 89 SNOW DATA > C > C FILES: > C > C A YEAR OF WEEKLY SNOW DATA IS STORED IN A FILE WITH > C THE NAMING CONVENTION: > C > C wk19xx xx - is the year (ex. wk1973) > C > C********************************************************************* > > DIMENSION ISNDAT(89,89) > CHARACTER*1 ICHAR1,ICHAR2 > OPEN(11,FILE='INFILE', > * FORM='FORMATTED',ACCESS='SEQUENTIAL') > OPEN(12,FILE='OUTFILE', > * FORM='FORMATTED',ACCESS='SEQUENTIAL') > DO 199 LP = 1,52 > C********************************************************************* > C > C READS IN THE WEEKLY SNOW DATA. > C > C********************************************************************* > DO 200 I = 1,89 > READ(11,100,END=10) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) > 100 FORMAT (I4,2I2,A1,45I1) > READ(11,101,END=10)IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) > 101 FORMAT (I4,2I2,A1,44I1) > C********************************************************************* > C > C WRITE OUT THE WEEKLY SNOW DATA. > C > C********************************************************************* > WRITE(12,100) IYEARS,IWKS,IROW,ICHAR1,(ISNDAT(I,J),J=1,45) > WRITE(12,101) IYEARS,IWKS,IROW,ICHAR2,(ISNDAT(I,J),J=46,89) > 200 CONTINUE > READ(11,102) ICONST > 102 FORMAT(I4) > WRITE(12,102) ICONST > C > 199 CONTINUE > 10 CONTINUE > 999 STOP > END > > I'm using windows 7 64bit operating system. My question is how do i use > grads to view the snow data or is there a fortran compiler the above program > will work on that i should use instead? > Thanks, > Bob R Duke > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/c02e01ee/attachment-0001.html From rajeevancas at gmail.com Fri May 7 01:46:24 2010 From: rajeevancas at gmail.com (RAJEEVAN k) Date: Fri, 7 May 2010 11:16:24 +0530 Subject: [gradsusr] display problem while saving Message-ID: Hai, i want to plot precipitaion anomoly.i hv cmap data precip.mon.mean.nc.t the gs file i used for this is. the problem is that in the saved plot didplay did not came........please help me 'reinit' yyyy=1979 while(yyyy<=1981) mmm=01 while(mmm<=12) 'sdfopen precip.mon.mean.nc' 'set time 'mmm''yyyy'' 'set grid off' 'set grads off' 'set t 1 12' 'set gxout shaded' *'set gxout contour' 'define monavg=ave(precip,t+1,t+36,12)' 'modify monavg seasonal' 'set t 1 last' 'define anom = precip-monavg' *'set t 1 36' 'set lat 8 30' 'set lon 70 90' 'd anom' 'printim anomoly'mmm'.'yyyy'.jpg white' 'c' mmm=mmm+1 endwhile yyyy=yyyy+1 endwhile error shows likes this Syntax Error: Invalid Date/Time value. Missing month abbreviation or 'z' delimiter SET error: Missing or invalid arguments for TIME option Defined variable is now climatological -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/cc43cd1c/attachment.html From gibiesgeorge at gmail.com Fri May 7 03:31:53 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 7 May 2010 13:01:53 +0530 Subject: [gradsusr] Help In-Reply-To: References: Message-ID: Anuradha, The plot which you have attached is using "Mollweide projection". It is available in GrADS Try this code 'open ../data/sst6098.ctl' 'set mproj mollweide' 'set lat -90 90' 'set lon 0 360' 'set t 1' 'd sst' 'set gxout shaded' 'd sst' On 4 May 2010 11:53, wrote: > Dear Users, > Can anybody suggest how to plot a global data in spherical map projection > in grads > I attached a example plot ( made in ferret), > Same kind of figure can be plotted in grads? > > I found these options, but I did not find a right option for my requirement > ( figure attached) > > set mproj *proj* > > Sets current map projection. Options for *proj* are: > > > > latlon Lat/lon projection with aspect ratio maintained (default) > scaled Lat/lon aspect ratio is not maintained; plot fills entire > plotting area > nps North polar stereographic > sps South polar stereographic > lambert Lambert conformal conic projection > mollweide Mollweide projection > orthogr Orthographic projection > robinson Robinson projection, requires set lon -180 180, set lat -90 > 90 > off No map is drawn; axis labels are not interpreted as lat/lon > > > > > > Kindly Suggest......... > Thanks in Advance > Anuradha > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/2df046a2/attachment.html From gibiesgeorge at gmail.com Fri May 7 07:41:58 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 7 May 2010 17:11:58 +0530 Subject: [gradsusr] xdfopen command in GrADS Version 1.8SL11 Message-ID: Hello Friends, I am facing a problem while using xdfopen command in GrADS Version 1.8SL11 My data discripter file (dsptr./ctl) is as follows DSET /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc OPTIONS template DTYPE netcdf TDEF 1200 linear jan2000 1mo Then I tried to open the data using xdfopen. This is the response from the system. Grid Analysis and Display System (GrADS) Version 1.8SL11 Copyright (c) 1988-2001 by Brian Doty Center for Ocean-Land-Atmosphere Studies Institute for Global Environment and Society All Rights Reserved Config: v1.8SL11 32-bit big-endian readline sdf/xdf netcdf lats printim Issue 'q config' command for more information. Landscape mode? (no for portrait): GX Package Initialization: Size = 11 8.5 ga-> xdfopen dsptr.ctl Scanning Descriptor File: dsptr.ctl udunits(3): Couldn't open units database "/usr/local/lib/grads/udunits.dat": No such file or directory *UDUNITS package initialization failure*. Can anybody tell what is this UDUNITS Package Thanking you in advance Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/a3077ee2/attachment.html From gibiesgeorge at gmail.com Fri May 7 07:56:43 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 7 May 2010 17:26:43 +0530 Subject: [gradsusr] Entire grid undefined In-Reply-To: References: Message-ID: Hello Gabriel, The message "ENTIRE GRID UNDEFINED" usually appear when GrADS could not open the data variable which is given for display. I think there may be a problem in the communication between your model and GrADS. On 6 May 2010 18:50, Gabriel - ud Carvalho wrote: > Hello Grads users, > I'm having a problem with the post-processing of my wave model (WAM). > I run the model for distinct areas, using GrAds to display the results. > The .gs script that I use for all of the areas are the same model, changing > only the paths and names. > For one specific area (antartica), it's happening this: > The prognostics for some times (ex. 00, 06, 12) are working properly, > generating the figures, and then in the next time (ex. 18, 24, ..., 72) it's > coming out "ENTIRE GRID UNDEFINED", and the time that it begins to happen is > varying. > I dont know if it's a Grads problem or a problem inside the wave model... > > Does someone have a guess? > Thanks, > Gabriel > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/fdf6b9c0/attachment.html From gibiesgeorge at gmail.com Fri May 7 08:15:07 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 7 May 2010 17:45:07 +0530 Subject: [gradsusr] display problem while saving In-Reply-To: References: Message-ID: Jeevan, The problem is with the time definision There two way of defining time set t 1 or set time 01jan2010 Your variable mmm is now having integer value. You have to convert it into three letter string. For that use the following code n=m1 if(n=1) mmm='jan' endif if(n=2) mmm='feb' endif if(n=3) mmm='mar' endif if(n=4) mmm='apr' endif if(n=5) mmm='may' endif if(n=6) mmm='jun' endif if(n=7) mmm='jul' endif if(n=8) mmm='aug' endif if(n=9) mmm='sep' endif if(n=10) mmm='oct' endif if(n=11) mmm='nov' endif if(n=12) mmm='dec' endif then you can use format 'set time = 'dd''mmm''yyyy Refine your code and try. Regards On 7 May 2010 11:16, RAJEEVAN k wrote: > Hai, > i want to plot precipitaion anomoly.i hv cmap data precip.mon.mean.nc.t > the gs file i used for this is. > > the problem is that in the saved plot didplay did not came........please > help me > 'reinit' > yyyy=1979 > while(yyyy<=1981) > mmm=01 > while(mmm<=12) > > 'sdfopen precip.mon.mean.nc' > 'set time 'mmm''yyyy'' > 'set grid off' > 'set grads off' > 'set t 1 12' > 'set gxout shaded' > *'set gxout contour' > > 'define monavg=ave(precip,t+1,t+36,12)' > 'modify monavg seasonal' > 'set t 1 last' > 'define anom = precip-monavg' > *'set t 1 36' > 'set lat 8 30' > 'set lon 70 90' > 'd anom' > 'printim anomoly'mmm'.'yyyy'.jpg white' > 'c' > mmm=mmm+1 > endwhile > yyyy=yyyy+1 > endwhile > > > > error shows likes this > > Syntax Error: Invalid Date/Time value. > Missing month abbreviation or 'z' delimiter > SET error: Missing or invalid arguments for TIME option > Defined variable is now climatological > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/1b6bdc02/attachment.html From gibiesgeorge at gmail.com Fri May 7 08:55:51 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 7 May 2010 18:25:51 +0530 Subject: [gradsusr] xdfopen command in GrADS Version 1.8SL11 In-Reply-To: References: Message-ID: Hello friends, The path to udunits.dat in my server is /gpfs1/scientific_appln/grads-1.8sl11/data/udunits.dat How/Where can I set the path to this file On 7 May 2010 17:11, gibies george wrote: > Hello Friends, > > I am facing a problem while using xdfopen command in GrADS Version 1.8SL11 > > My data discripter file (dsptr./ctl) is as follows > > DSET /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc > OPTIONS template > DTYPE netcdf > TDEF 1200 linear jan2000 1mo > > Then I tried to open the data using xdfopen. This is the response from the > system. > > Grid Analysis and Display System (GrADS) Version 1.8SL11 > Copyright (c) 1988-2001 by Brian Doty > Center for Ocean-Land-Atmosphere Studies > Institute for Global Environment and Society > All Rights Reserved > > Config: v1.8SL11 32-bit big-endian readline sdf/xdf netcdf lats printim > > Issue 'q config' command for more information. > > Landscape mode? (no for portrait): > GX Package Initialization: Size = 11 8.5 > ga-> xdfopen dsptr.ctl > Scanning Descriptor File: dsptr.ctl > > udunits(3): Couldn't open units database > "/usr/local/lib/grads/udunits.dat": No such file or directory > *UDUNITS package initialization failure*. > > Can anybody tell what is this UDUNITS Package > > Thanking you in advance > > > Gibies George,CSIR-RF, > Climate and Global Modelling Division, > Indian Institute of Tropical Meteorology, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/a9bb72d7/attachment-0001.html From huber.gilt at igp.gob.pe Fri May 7 10:24:36 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 7 May 2010 09:24:36 -0500 Subject: [gradsusr] RV: compiled grads but all option were disabled Message-ID: <201005071432.o47EW4N1012529@geo.igp.gob.pe> Hello again, I just register huber.gilt at geo.igp.gob.pe email in the forum list, so I send my question again, thank you for your help. I?m compiled grads but all option was disabled, according with your requirements put the information here: 1. The version of GrADS you are running (it is a good idea to include all the output from 'q config') ga-> q config Config: v1.9b4 32-bit little-endian readline sdf/xdf hdf-sds netcdf printim Grid Analysis and Display System (GrADS) Version 1.9b4 Copyright (c) 1988-2005 by Brian Doty and IGES Center for Ocean-Land-Atmosphere Studies (COLA) Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Thu Sep 11 12:21:00 EDT 2008 for i386-redhat-linux-gnu This version of GrADS has been configured with the following options: o This is a 32-bit LITTLE ENDIAN machine version. o Command line editing (readline) ENABLED. o CIRES/CDC (http://www.cdc.noaa.gov) SDF/XDF interface ENABLED. Use sdfopen or xdfopen to read both NetCDF and HDF-SDS files. o DTYPE netcdf and DTYPE hdfsds are ENABLED. o OPeNDAP (a.k.a. DODS) gridded data interface DISABLED. o OPeNDAP (a.k.a. DODS) station data interface DISABLED. o PCMDI (http://www-pcmdi.llnl.gov) LATS interface DISABLED. This version is NOT configured to write GRIB, NetCDF, or HDF-SDS files. o DAO (http://dao.gsfc.nasa.gov) Athena Widget GUI DISABLED. o NRL/DAO/PCMDI XA or ImageMagick Image Output DISABLED. o printim command for direct png/gif output ENABLED. (via the GD Library -- http://www.boutell.com/gd) For additional information please consult http://grads.iges.org/grads/ 2. Any specifics about the platform you are running GrADS on (e.g. Linux, Mac OSX, Windows, etc.) HP-UX paracas B.11.31 U ia64 1961302873 unlimited-user license 3. A brief description of the problem All grads options are disabled 4. The simplest possible script that illustrates the problem o OPeNDAP (a.k.a. DODS) gridded data interface DISABLED. o OPeNDAP (a.k.a. DODS) station data interface DISABLED. o PCMDI (http://www-pcmdi.llnl.gov) LATS interface DISABLED. This version is NOT configured to write GRIB, NetCDF, or HDF-SDS files. o DAO (http://dao.gsfc.nasa.gov) Athena Widget GUI DISABLED. o NRL/DAO/PCMDI XA or ImageMagick Image Output DISABLED. 5. The error messages from GrADS Don?t have 6. The output from running "ncdump -c" on your NetCDF file if you're having trouble getting GrADS to read the file. # ncdump -c ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-x] [-k] [-s] [-t] file [-c] Coordinate variable data and header information [-h] Header information only, no data [-v var1[,...]] Data for variable(s) ,... only [-b [c|f]] Brief annotations for C or Fortran indices in data [-f [c|f]] Full annotations for C or Fortran indices in data [-l len] Line length maximum in data section (default 80) [-n name] Name for netCDF (default derived from file name) [-p n[,n]] Display floating-point values with less precision [-k] Output kind of netCDF file [-x] Output XML (NcML) instead of CDL [-s] Output special (virtual) attributes [-t] Output time data as ISO date-time strings file Name of netCDF file netcdf library version "4.0.1" of Jan 12 2010 11:26:19 $ Please help, how can I enable all options in grads. Best regards, Huber Paul Gilt Lopez IGP-PERU __________ Informaci?n de ESET NOD32 Antivirus, versi?n de la base de firmas de virus 5089 (20100505) __________ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com __________ Informaci?n de ESET NOD32 Antivirus, versi?n de la base de firmas de virus 5090 (20100506) __________ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com __________ Informaci?n de ESET NOD32 Antivirus, versi?n de la base de firmas de virus 5091 (20100506) __________ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com __________ Informaci?n de ESET NOD32 Antivirus, versi?n de la base de firmas de virus 5091 (20100506) __________ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com __________ Informaci?n de ESET NOD32 Antivirus, versi?n de la base de firmas de virus 5095 (20100507) __________ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/2f6782fd/attachment-0001.html From haohe.umcp at gmail.com Fri May 7 10:42:41 2010 From: haohe.umcp at gmail.com (Hao He) Date: Fri, 7 May 2010 10:42:41 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: John, I get the WRF WPS projection information as following: e_we = 98, 118, e_sn = 70, 103, geog_data_res = '10m','2m', dx = 30000, dy = 30000, map_proj = 'lambert', ref_lat = 34.8, ref_lon = 113.7, truelat1 = 30.0, truelat2 = 60.0, stand_lon = 113.7, My key point here is : CMAQ domain is a little bit smaller than WRF domain because we eliminate the outside columns and rows to diminish lateral effects. So my WRF domain has 98*70 grids while my CMAQ domain has 94*67 grids. so the question is: how to set (isize, jsize) and (iref, jref) in pdef variable? I am confused. Best Hao On Thu, May 6, 2010 at 2:50 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Hao > > > > CMAQ files usually are ioapi or WRF compliant. If they are ioapi, run the > ?ncdump ?h file.ncf > h? and look at the global characteristics. It will > have everything you need to compose the control file. > > > > If they are WRF compliant, you will have to go back to the modeler who > created them. > > > > Please see http://www.nco.ncep.noaa.gov/pmb/docs/on388/tableb.html#GRID138as an example of the information you need. > > > > John Huddleston, PhD > > > > *From:* gradsusr-bounces at gradsusr.org [mailto: > gradsusr-bounces at gradsusr.org] *On Behalf Of *Hao He > *Sent:* Thursday, May 06, 2010 12:15 PM > > *To:* GrADS Users Forum > *Subject:* Re: [gradsusr] data not in GRIB format > > > > John, > I start to work on the .ctl file, and I have a question about the xdef > and ydef. As you plotted, the left corner is not the minimal longitude and > latitude of the domain. Which value should I use? > > Best > > Hao > > On Wed, May 5, 2010 at 2:16 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > > Hao, this might be closer if it is 30KM. Change the ytime and year > accordingly. John > > > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > > pdef 94 67 lcc 24.87 -127.10 1 1 33 45 -114.00 30000 30000 > undef -9999 > xdef 94 linear -131.336 0.48 > ydef 67 linear 24.87 0.300 > > > zdef 1 linear 1 1 > > tdef 24 linear 00:00Z20apr2006 1hr > > > vars 8 > NO2=>no2 1 t,z,y,x NO2 > NO=>no 1 t,z,y,x NO > O=>o 1 t,z,y,x O > O3=>o3 1 t,z,y,x O3 > NO3=>no3 1 t,z,y,x NO3 > CO=>co 1 t,z,y,x CO > CXO3=>cxo3 1 t,z,y,x cxo3 > NH3=>nh3 1 t,z,y,x NH3 > endvars > > > ------------------------------ > > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of Hao He [haohe.umcp at gmail.com] > > *Sent:* Wednesday, May 05, 2010 11:59 AM > *To:* GrADS Users Forum > *Subject:* Re: [gradsusr] data not in GRIB format > > That is great! My grid size is 30 km instead of 36 km, and I think the > difference is trivial. I will read the format and modified it to my own > grid. > Thanks a lot! > > Hao > > On Wed, May 5, 2010 at 1:52 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > > Hao > > > > If it is 36 kilometer CMAQ netCDF you can probably start with this grid > control definition. > > > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > pdef 148 112 lcc 16.77 -121.51 1 1 33 45 -97.00 36000 36000 > undef -9999 > xdef 148 linear -139.285 0.57565 > ydef 112 linear 16.77 0.3600 > zdef 1 linear 1 1 > tdef 72 linear 00:00Z20apr2006 1hr > vars 8 > NO2=>no2 1 t,z,y,x NO2 > NO=>no 1 t,z,y,x NO > O=>o 1 t,z,y,x O > O3=>o3 1 t,z,y,x O3 > NO3=>no3 1 t,z,y,x NO3 > CO=>co 1 t,z,y,x CO > CXO3=>cxo3 1 t,z,y,x cxo3 > NH3=>nh3 1 t,z,y,x NH3 > endvars > > > > john Huddleston, PhD, PE > ------------------------------ > > *From:* gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On > Behalf Of Hao He [haohe.umcp at gmail.com] > > *Sent:* Tuesday, May 04, 2010 1:58 PM > *To:* gradsusr at gradsusr.org > *Subject:* [gradsusr] data not in GRIB format > > Hi, > I have a 2D data set with uneven Lon and Lat distribution. I notice that > the GRIB data for GrADS has even grids, so I am wondering whether it is > possible to display this data set on GrADS? Thanks for help! > > Hao > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/e8c2e754/attachment.html From Huddleston at cira.colostate.edu Fri May 7 12:06:23 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 7 May 2010 09:06:23 -0700 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: Hao, Based on the information you sent, here is a representative control file to plot your (COL,ROW)=(94,67) grid. dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 94 67 lcc 24.828 100.01 1 1 30 60 113.7 30000 30000 undef -9999 xdef 94 linear 95.769 0.3659 ydef 67 linear 24.828 0.2644 ... John Huddleston, PhD, PE From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Hao He Sent: Friday, May 07, 2010 8:43 AM To: GrADS Users Forum Subject: Re: [gradsusr] data not in GRIB format John, I get the WRF WPS projection information as following: e_we = 98, 118, e_sn = 70, 103, geog_data_res = '10m','2m', dx = 30000, dy = 30000, map_proj = 'lambert', ref_lat = 34.8, ref_lon = 113.7, truelat1 = 30.0, truelat2 = 60.0, stand_lon = 113.7, My key point here is : CMAQ domain is a little bit smaller than WRF domain because we eliminate the outside columns and rows to diminish lateral effects. So my WRF domain has 98*70 grids while my CMAQ domain has 94*67 grids. so the question is: how to set (isize, jsize) and (iref, jref) in pdef variable? I am confused. Best Hao -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/ecee85ee/attachment.html From haohe.umcp at gmail.com Fri May 7 13:11:01 2010 From: haohe.umcp at gmail.com (Hao He) Date: Fri, 7 May 2010 13:11:01 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: John, I use your template to open the file. But it is not right. Please have a look at my .ctl file. dset ^EMIS_CHINA_D1.ncf title INTEX-B SO2 emission undef -9999 pdef 94 67 lcc 34.8 113.7 1 1 30.0 60.0 113.7 30000 30000 xdef 94 linear 95.769 0.3659 ydef 67 linear 24.828 0.2644 tdef 25 linear 00:00Z03APR2008 1HR zdef 34 linear 1 1 dtype netcdf vars 1 SO2=>so2 0 t,z,y,x Sulfur Dioxide endvars Best Hao On Fri, May 7, 2010 at 12:06 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Hao, > > > > Based on the information you sent, here is a representative control file to > plot your (COL,ROW)=(94,67) grid. > > > > dset ^YourFile.ncf > > dtype netcdf > > title Vertically integrated atmos chem/aerosol vbles > > pdef 94 67 lcc 24.828 100.01 1 1 30 60 113.7 30000 30000 > > undef -9999 > > xdef 94 linear 95.769 0.3659 > > ydef 67 linear 24.828 0.2644 > > ? > > > > > > John Huddleston, PhD, PE > > > > > > *From:* gradsusr-bounces at gradsusr.org [mailto: > gradsusr-bounces at gradsusr.org] *On Behalf Of *Hao He > *Sent:* Friday, May 07, 2010 8:43 AM > > *To:* GrADS Users Forum > *Subject:* Re: [gradsusr] data not in GRIB format > > > > John, > > I get the WRF WPS projection information as following: > > e_we = 98, 118, > e_sn = 70, 103, > geog_data_res = '10m','2m', > dx = 30000, > dy = 30000, > map_proj = 'lambert', > ref_lat = 34.8, > ref_lon = 113.7, > truelat1 = 30.0, > truelat2 = 60.0, > stand_lon = 113.7, > > My key point here is : CMAQ domain is a little bit smaller than WRF domain > because we eliminate the outside columns and rows to diminish lateral > effects. So my WRF domain has 98*70 grids while my CMAQ domain has 94*67 > grids. > > so the question is: how to set (isize, jsize) and (iref, jref) in pdef > variable? I am confused. > > Best > > Hao > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/450f62f2/attachment-0001.html From ela at cola.iges.org Fri May 7 13:33:13 2010 From: ela at cola.iges.org (Eric Altshuler) Date: Fri, 7 May 2010 13:33:13 -0400 (EDT) Subject: [gradsusr] display problem while saving In-Reply-To: <1764087550.3441.1273253575488.JavaMail.root@mail.iges.org> Message-ID: <2127250414.3450.1273253593475.JavaMail.root@mail.iges.org> This can be done more elegantly, as follows: mons='jan feb mar apr may jun jul aug sep oct nov dec' n=1 while (n<=12) mmm=subwrd(mons,n) ... ... n=n+1 endwhile thus eliminating the need for 12 different 'if/endif' structures. ----- Original Message ----- From: "gibies george" To: "GrADS Users Forum" Sent: Friday, May 7, 2010 8:15:07 AM Subject: Re: [gradsusr] display problem while saving Jeevan, The problem is with the time definision There two way of defining time set t 1 or set time 01jan2010 Your variable mmm is now having integer value. You have to convert it into three letter string. For that use the following code n=m1 if(n=1) mmm='jan' endif if(n=2) mmm='feb' endif if(n=3) mmm='mar' endif if(n=4) mmm='apr' endif if(n=5) mmm='may' endif if(n=6) mmm='jun' endif if(n=7) mmm='jul' endif if(n=8) mmm='aug' endif if(n=9) mmm='sep' endif if(n=10) mmm='oct' endif if(n=11) mmm='nov' endif if(n=12) mmm='dec' endif then you can use format 'set time = 'dd''mmm''yyyy Refine your code and try. Regards On 7 May 2010 11:16, RAJEEVAN k < rajeevancas at gmail.com > wrote: Hai, i want to plot precipitaion anomoly.i hv cmap data precip.mon.mean.nc.t the gs file i used for this is. the problem is that in the saved plot didplay did not came........please help me 'reinit' yyyy=1979 while(yyyy<=1981) mmm=01 while(mmm<=12) 'sdfopen precip.mon.mean.nc ' 'set time 'mmm''yyyy'' 'set grid off' 'set grads off' 'set t 1 12' 'set gxout shaded' *'set gxout contour' 'define monavg=ave(precip,t+1,t+36,12)' 'modify monavg seasonal' 'set t 1 last' 'define anom = precip-monavg' *'set t 1 36' 'set lat 8 30' 'set lon 70 90' 'd anom' 'printim anomoly'mmm'.'yyyy'.jpg white' 'c' mmm=mmm+1 endwhile yyyy=yyyy+1 endwhile error shows likes this Syntax Error: Invalid Date/Time value. Missing month abbreviation or 'z' delimiter SET error: Missing or invalid arguments for TIME option Defined variable is now climatological _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From ela at cola.iges.org Fri May 7 13:39:43 2010 From: ela at cola.iges.org (Eric Altshuler) Date: Fri, 7 May 2010 13:39:43 -0400 (EDT) Subject: [gradsusr] xdfopen command in GrADS Version 1.8SL11 In-Reply-To: <1629895788.3454.1273253761715.JavaMail.root@mail.iges.org> Message-ID: <1419694727.3456.1273253983671.JavaMail.root@mail.iges.org> Hello , Since the files essential to grads operation are not in /usr/local/lib/grads, you must set the environment variable GADDIR: setenv GADDIR /gpfs1/scientific_appln/grads-1.8sl11/data (if you use csh) or GADDIR=/gpfs1/scientific_appln/grads-1.8sl11/data export GADDIR (if you use sh/bash). ----- Original Message ----- From: "gibies george" To: "GrADS Users Forum" , "Rajesh Chithrasala" Sent: Friday, May 7, 2010 8:55:51 AM Subject: Re: [gradsusr] xdfopen command in GrADS Version 1.8SL11 Hello friends, The path to udunits.dat in my server is /gpfs1/scientific_appln/grads-1.8sl11/data/udunits.dat How/Where can I set the path to this file On 7 May 2010 17:11, gibies george < gibiesgeorge at gmail.com > wrote: Hello Friends, I am facing a problem while using xdfopen command in GrADS Version 1.8SL11 My data discripter file (dsptr./ctl) is as follows DSET /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4% m2.nc OPTIONS template DTYPE netcdf TDEF 1200 linear jan2000 1mo Then I tried to open the data using xdfopen. This is the response from the system. Grid Analysis and Display System (GrADS) Version 1.8SL11 Copyright (c) 1988-2001 by Brian Doty Center for Ocean-Land-Atmosphere Studies Institute for Global Environment and Society All Rights Reserved Config: v1.8SL11 32-bit big-endian readline sdf/xdf netcdf lats printim Issue 'q config' command for more information. Landscape mode? (no for portrait): GX Package Initialization: Size = 11 8.5 ga-> xdfopen dsptr.ctl Scanning Descriptor File: dsptr.ctl udunits(3): Couldn't open units database "/usr/local/lib/grads/udunits.dat": No such file or directory UDUNITS package initialization failure . Can anybody tell what is this UDUNITS Package Thanking you in advance Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From cmunozc at udec.cl Fri May 7 14:09:31 2010 From: cmunozc at udec.cl (Cristian Gonzal =?iso-8859-1?Q?Mu=F1oz_Castillo?=) Date: Fri, 7 May 2010 14:09:31 -0400 (CLT) Subject: [gradsusr] generating ctl In-Reply-To: References: Message-ID: Yes it can, all you have to do is to properly define the ctl file associated with your data. I attach an example for grads v2.0.a8 hope it works for you > Hello, > Can Grads read an ascii file .dat? > I supose I have to transform it to a GRIB file and then create a CTL for > it, > > how can I do this? > the file in question is attached, it's from the wave model SWAM. > Thanks a lot, > Gabriel > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: front.ctl Type: application/octet-stream Size: 1609 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100507/be988381/attachment.obj From Huddleston at cira.colostate.edu Fri May 7 15:32:51 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 7 May 2010 12:32:51 -0700 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: Hao, You are welcome. The (24.828,100.01) is the lower left corner of your CMAQ grid. I simply dumped the x,y data, sorted it, and found the point. 95.969 is the longitude of your upper left corner and 131.2617 is the longitude of your upper right corner. Take the difference and divide by 94 to get the x delta. Similarly, take the difference between your lower and upper latitude and divide by 67 to get the y delta. John Huddleston, PhD From: Hao He [mailto:haohe.umcp at gmail.com] Sent: Friday, May 07, 2010 1:24 PM To: Huddleston, John Subject: Re: [gradsusr] data not in GRIB format John, ?? Thanks a lot! It looks very nice. Can you tell me how to calculate the latref (24.828N), lonref(100.01), xdef and ydef? I have another nested domain, and I want to go through the process. Best Hao On Fri, May 7, 2010 at 3:19 PM, Huddleston, John wrote: Hao, attached is an image from your data file using ?d ave(so2,t=1,t=25)) ?where the control file is dset ^SO2_CHINA_D1.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 94 67 lcc 24.828 100.01 1 1 30 60 113.7 30000 30000 undef -9999 xdef 94 linear? 95.769??? 0.3659 ydef 67 linear? 24.828??? 0.2644 zdef 34 linear 1 1 tdef 25? linear 00:00Z20apr2006 1hr vars 3 LAT=>lat? 1 t,z,y,x Latitude LON=>lon? 1 t,z,y,x Longitude SO2=>so2? 1 t,z,y,x Sulfur Dioxide endvars ? I don't know your data as well as you do; however, it appears to plot OK. ? What do you think is the problem? ? John Huddleston, PhD ? From: Hao He [mailto:haohe.umcp at gmail.com] Sent: Friday, May 07, 2010 12:26 PM To: Huddleston, John Subject: Re: [gradsusr] data not in GRIB format ? John, ?? I created a file only with SO2 data. It contains 34 layers and 25 time frames. Please see attached file. I also attach one snapshot by ncview. Hao On Fri, May 7, 2010 at 2:01 PM, Huddleston, John wrote: Hao ? Put out a dataset for me to download. All I have is that one latitude longitude file. ? What doesn't happen?? Where is the data plotted? ? John ? John Huddleston, PhD ? From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Hao He Sent: Friday, May 07, 2010 11:11 AM To: GrADS Users Forum Subject: Re: [gradsusr] data not in GRIB format ? John, ?? I use your template to open the file. But it is not right. Please have a look at my .ctl file. dset ^EMIS_CHINA_D1.ncf title INTEX-B SO2 emission undef -9999 pdef 94 67 lcc 34.8 113.7 1 1 30.0 60.0 113.7 30000 30000 xdef 94 linear 95.769 0.3659 ydef 67 linear 24.828 0.2644 tdef 25 linear 00:00Z03APR2008 1HR zdef 34 linear 1 1 dtype netcdf vars 1 SO2=>so2 0 t,z,y,x Sulfur Dioxide endvars Best Hao On Fri, May 7, 2010 at 12:06 PM, Huddleston, John wrote: Hao, ? Based on the information you sent, here is a representative control file to plot your (COL,ROW)=(94,67) grid. ? dset ^YourFile.ncf dtype netcdf title Vertically integrated atmos chem/aerosol vbles pdef 94 67 lcc 24.828 100.01 1 1 30 60 113.7 30000 30000 undef -9999 xdef 94 linear ?95.769??? 0.3659 ydef 67 linear? 24.828??? 0.2644 . ? ? John Huddleston, PhD, PE ? ? From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Hao He Sent: Friday, May 07, 2010 8:43 AM To: GrADS Users Forum Subject: Re: [gradsusr] data not in GRIB format ? John, ?? I get the WRF WPS projection information as following: e_we????????????? =? 98, 118, ?e_sn????????????? =? 70,? 103, ?geog_data_res???? = '10m','2m',??????????????? ?dx = 30000, ?dy = 30000, ?map_proj = 'lambert', ?ref_lat?? =? 34.8, ?ref_lon?? = 113.7, ?truelat1? =? 30.0, ?truelat2? =? 60.0, ?stand_lon =? 113.7, My key point here is : CMAQ domain is a little bit smaller than WRF domain because we eliminate the outside columns and rows to diminish lateral effects. So my WRF domain has 98*70 grids while my CMAQ domain has 94*67 grids. so the question is: how to set (isize, jsize) and (iref, jref) in pdef variable? I am confused. Best Hao ? _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr ? ? From haohe.umcp at gmail.com Fri May 7 15:37:31 2010 From: haohe.umcp at gmail.com (Hao He) Date: Fri, 7 May 2010 15:37:31 -0400 Subject: [gradsusr] data not in GRIB format In-Reply-To: References: Message-ID: John, Thanks for your explanation! I will apply the similar method to my nested domain and let you know the result next week. Have a nice weekend! Hao On Fri, May 7, 2010 at 3:32 PM, Huddleston, John < Huddleston at cira.colostate.edu> wrote: > Hao, > > You are welcome. > > The (24.828,100.01) is the lower left corner of your CMAQ grid. I simply > dumped the x,y data, sorted it, and found the point. > > 95.969 is the longitude of your upper left corner and 131.2617 is the > longitude of your upper right corner. Take the difference and divide by 94 > to get the x delta. > > Similarly, take the difference between your lower and upper latitude and > divide by 67 to get the y delta. > > John Huddleston, PhD > > From: Hao He [mailto:haohe.umcp at gmail.com] > Sent: Friday, May 07, 2010 1:24 PM > To: Huddleston, John > Subject: Re: [gradsusr] data not in GRIB format > > John, > Thanks a lot! It looks very nice. Can you tell me how to calculate the > latref (24.828N), lonref(100.01), xdef and ydef? I have another nested > domain, and I want to go through the process. > > Best > > Hao > On Fri, May 7, 2010 at 3:19 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > Hao, attached is an image from your data file using > > d ave(so2,t=1,t=25)) > > where the control file is > > dset ^SO2_CHINA_D1.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > pdef 94 67 lcc 24.828 100.01 1 1 30 60 113.7 30000 30000 > undef -9999 > xdef 94 linear 95.769 0.3659 > ydef 67 linear 24.828 0.2644 > zdef 34 linear 1 1 > tdef 25 linear 00:00Z20apr2006 1hr > vars 3 > LAT=>lat 1 t,z,y,x Latitude > LON=>lon 1 t,z,y,x Longitude > SO2=>so2 1 t,z,y,x Sulfur Dioxide > endvars > > I don't know your data as well as you do; however, it appears to plot OK. > > What do you think is the problem? > > John Huddleston, PhD > > From: Hao He [mailto:haohe.umcp at gmail.com] > Sent: Friday, May 07, 2010 12:26 PM > To: Huddleston, John > > Subject: Re: [gradsusr] data not in GRIB format > > John, > I created a file only with SO2 data. It contains 34 layers and 25 time > frames. Please see attached file. I also attach one snapshot by ncview. > > Hao > On Fri, May 7, 2010 at 2:01 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > Hao > > Put out a dataset for me to download. All I have is that one latitude > longitude file. > > What doesn't happen? Where is the data plotted? > > John > > John Huddleston, PhD > > From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] > On Behalf Of Hao He > Sent: Friday, May 07, 2010 11:11 AM > > To: GrADS Users Forum > Subject: Re: [gradsusr] data not in GRIB format > > John, > I use your template to open the file. But it is not right. Please have a > look at my .ctl file. > > dset ^EMIS_CHINA_D1.ncf > title INTEX-B SO2 emission > undef -9999 > pdef 94 67 lcc 34.8 113.7 1 1 30.0 60.0 113.7 30000 30000 > xdef 94 linear 95.769 0.3659 > ydef 67 linear 24.828 0.2644 > tdef 25 linear 00:00Z03APR2008 1HR > zdef 34 linear 1 1 > dtype netcdf > vars 1 > SO2=>so2 0 t,z,y,x Sulfur Dioxide > endvars > > Best > > Hao > On Fri, May 7, 2010 at 12:06 PM, Huddleston, John < > Huddleston at cira.colostate.edu> wrote: > Hao, > > Based on the information you sent, here is a representative control file to > plot your (COL,ROW)=(94,67) grid. > > dset ^YourFile.ncf > dtype netcdf > title Vertically integrated atmos chem/aerosol vbles > pdef 94 67 lcc 24.828 100.01 1 1 30 60 113.7 30000 30000 > undef -9999 > xdef 94 linear 95.769 0.3659 > ydef 67 linear 24.828 0.2644 > . > > > John Huddleston, PhD, PE > > > From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] > On Behalf Of Hao He > Sent: Friday, May 07, 2010 8:43 AM > > To: GrADS Users Forum > Subject: Re: [gradsusr] data not in GRIB format > > John, > > I get the WRF WPS projection information as following: > > e_we = 98, 118, > e_sn = 70, 103, > geog_data_res = '10m','2m', > dx = 30000, > dy = 30000, > map_proj = 'lambert', > ref_lat = 34.8, > ref_lon = 113.7, > truelat1 = 30.0, > truelat2 = 60.0, > stand_lon = 113.7, > > My key point here is : CMAQ domain is a little bit smaller than WRF domain > because we eliminate the outside columns and rows to diminish lateral > effects. So my WRF domain has 98*70 grids while my CMAQ domain has 94*67 > grids. > > so the question is: how to set (isize, jsize) and (iref, jref) in pdef > variable? I am confused. > > Best > > Hao > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100507/69335159/attachment-0001.html From gibiesgeorge at gmail.com Sun May 9 05:44:48 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Sun, 9 May 2010 15:14:48 +0530 Subject: [gradsusr] xdfopen command in GrADS Version 1.8SL11 In-Reply-To: <1419694727.3456.1273253983671.JavaMail.root@mail.iges.org> References: <1629895788.3454.1273253761715.JavaMail.root@mail.iges.org> <1419694727.3456.1273253983671.JavaMail.root@mail.iges.org> Message-ID: Thank you Eric, But I am using ksh Which method should I follow in 'ksh'. I have one more error as follows, probably from my descriptor file DSET tab. /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc does not exist or is not a netCDF file. Can you point out the problem? I am trying to open the following files simultaneously. /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200001.nc /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200002.nc /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200003.nc ........................ ........................ ......................... /gpfs2/home/kiran/freerun/t62/monthly/time_mean.210012.nc I have written xdf file as follows DSET /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc OPTIONS template DTYPE netcdf TDEF 1200 linear jan2000 1mo How can I modify it to avoid the error? Thanking you in advance. On 7 May 2010 23:09, Eric Altshuler wrote: > Hello , > > Since the files essential to grads operation are not in > /usr/local/lib/grads, you must set the environment variable GADDIR: > > setenv GADDIR /gpfs1/scientific_appln/grads-1.8sl11/data (if you use csh) > > or > > GADDIR=/gpfs1/scientific_appln/grads-1.8sl11/data > export GADDIR > > (if you use sh/bash). > > -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008 http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100509/d4d0c921/attachment.html From krlosbatist at gmail.com Mon May 10 15:12:05 2010 From: krlosbatist at gmail.com (Carlos Batista) Date: Mon, 10 May 2010 16:12:05 -0300 Subject: [gradsusr] xdfopen command in GrADS Version 1.8SL11 In-Reply-To: References: <1629895788.3454.1273253761715.JavaMail.root@mail.iges.org> <1419694727.3456.1273253983671.JavaMail.root@mail.iges.org> Message-ID: 2010/5/9 gibies george > Thank you Eric, > > But I am using ksh > > Which method should I follow in 'ksh'. > > I have one more error as follows, probably from my descriptor file DSET > tab. > > /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc does not exist > or is not a netCDF file. > > Can you point out the problem? > > I am trying to open the following files simultaneously. > > /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200001.nc > /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200002.nc > /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200003.nc > ........................ > ........................ > ......................... > /gpfs2/home/kiran/freerun/t62/monthly/time_mean.210012.nc > > I have written xdf file as follows > > > DSET /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc > OPTIONS template > DTYPE netcdf > TDEF 1200 linear jan2000 1mo > > How can I modify it to avoid the error? > > Thanking you in advance. > > > > On 7 May 2010 23:09, Eric Altshuler wrote: > >> Hello , >> >> Since the files essential to grads operation are not in >> /usr/local/lib/grads, you must set the environment variable GADDIR: >> >> setenv GADDIR /gpfs1/scientific_appln/grads-1.8sl11/data (if you use csh) >> >> or >> >> GADDIR=/gpfs1/scientific_appln/grads-1.8sl11/data >> export GADDIR >> >> (if you use sh/bash). >> >> > -- > Gibies George,CSIR-RF, > Climate and Global Modelling Division, > Indian Institute of Tropical Meteorology, > Dr. Homi Bhabha Road, > NCL (P. O.), Pashan, > Pune 411008 > > http://sites.google.com/site/gibiesge/ > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100510/3e8312d0/attachment.html From krlosbatist at gmail.com Mon May 10 15:12:45 2010 From: krlosbatist at gmail.com (Carlos Batista) Date: Mon, 10 May 2010 16:12:45 -0300 Subject: [gradsusr] xdfopen command in GrADS Version 1.8SL11 In-Reply-To: References: <1629895788.3454.1273253761715.JavaMail.root@mail.iges.org> <1419694727.3456.1273253983671.JavaMail.root@mail.iges.org> Message-ID: . 2010/5/10 Carlos Batista > > > 2010/5/9 gibies george > >> Thank you Eric, >> >> But I am using ksh >> >> Which method should I follow in 'ksh'. >> >> I have one more error as follows, probably from my descriptor file DSET >> tab. >> >> /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc does not exist >> or is not a netCDF file. >> >> Can you point out the problem? >> >> I am trying to open the following files simultaneously. >> >> /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200001.nc >> /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200002.nc >> /gpfs2/home/kiran/freerun/t62/monthly/time_mean.200003.nc >> ........................ >> ........................ >> ......................... >> /gpfs2/home/kiran/freerun/t62/monthly/time_mean.210012.nc >> >> I have written xdf file as follows >> >> >> DSET /gpfs2/home/kiran/freerun/t62/monthly/time_mean.%y4%m2.nc >> OPTIONS template >> DTYPE netcdf >> TDEF 1200 linear jan2000 1mo >> >> How can I modify it to avoid the error? >> >> Thanking you in advance. >> >> >> >> On 7 May 2010 23:09, Eric Altshuler wrote: >> >>> Hello , >>> >>> Since the files essential to grads operation are not in >>> /usr/local/lib/grads, you must set the environment variable GADDIR: >>> >>> setenv GADDIR /gpfs1/scientific_appln/grads-1.8sl11/data (if you use csh) >>> >>> or >>> >>> GADDIR=/gpfs1/scientific_appln/grads-1.8sl11/data >>> export GADDIR >>> >>> (if you use sh/bash). >>> >>> >> -- >> Gibies George,CSIR-RF, >> Climate and Global Modelling Division, >> Indian Institute of Tropical Meteorology, >> Dr. Homi Bhabha Road, >> NCL (P. O.), Pashan, >> Pune 411008 >> >> http://sites.google.com/site/gibiesge/ >> >> >> _______________________________________________ >> >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100510/eeec4f33/attachment.html From hmjbarbosa at gmail.com Tue May 11 13:11:14 2010 From: hmjbarbosa at gmail.com (Henrique Barbosa) Date: Tue, 11 May 2010 14:11:14 -0300 Subject: [gradsusr] how to set transparency with linefill ? Message-ID: Dear All, I can plot a line curve with shaded confidence intervals easily with grads. For example, to draw the mean value of 'prec' in black over a color filled area representing the +-1standard deviation around the mean I do: 'set lat 0' 'set lon 0 360' 'set gxout linefill' 'set lfcols 2 0' 'd prec+sd_prec ; prec-sd_prec' 'set gxout line' 'set ccolor 1' 'd prec' My problem is: the color filled area resulting from a linefill is not transparent! Hence one can not see other curves below it. Is there a way of setting the transparency of the shaded and/or filled areas in Grads? Maybe in PyGrads? []'s Henrique ===================================================== Ubuntu 9.04 64bits ga-> q config Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 Built Thu Oct 29 17:57:08 EDT 2009 for x86_64-unknown-linux-gnu From arubawx at setarnet.aw Tue May 11 13:33:16 2010 From: arubawx at setarnet.aw (Marck Oduber) Date: Tue, 11 May 2010 17:33:16 -0000 Subject: [gradsusr] pygrads superpack win32 Message-ID: <004b01caf130$0c476450$0e00a8c0@forecaster> Hi, I am testing the pygrads mainly for the eof capabilities. I am using the pygrads-1.1.0.win32_superpack.exe, os winxp. Assuming common install (c:\python25) installation. How would I tell it to open sst.mnmean.nc that's residing in d:\data? I have tried different commands that usually works for grads, but no luck in pygrads. Regards Marck -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100511/9871947d/attachment.html From mateig at stanford.edu Tue May 11 22:14:39 2010 From: mateig at stanford.edu (Matei Georgescu) Date: Tue, 11 May 2010 19:14:39 -0700 (PDT) Subject: [gradsusr] X-axis as log-scale In-Reply-To: <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> Message-ID: <989493280.36994.1273630479477.JavaMail.root@zm09.stanford.edu> Greetings fellow GrADS users, I am using GrADS version 1.9b4 and/or the latest version of OpenGrADS. My question is the following. Is it possible to change the x-axis scaling, and in particular, to have the x-axis in log scale, while retaining the y-axis as is (linear)? thanks much, matt ----- Matei ("Matt") Georgescu Post-doctoral Fellow Program on Food Security and the Environment Stanford University Y2E2 Bldg - MC4205 473 Via Ortega Stanford, CA 94305 homepage - http://stanford.edu/~mateig From heiner at misu.su.se Wed May 12 04:59:40 2010 From: heiner at misu.su.se (=?ISO-8859-1?Q?Heiner_K=F6rnich?=) Date: Wed, 12 May 2010 10:59:40 +0200 Subject: [gradsusr] X-axis as log-scale In-Reply-To: <989493280.36994.1273630479477.JavaMail.root@zm09.stanford.edu> References: <1531318451.38979.1273167793812.JavaMail.root@zm09.stanford.edu> <989493280.36994.1273630479477.JavaMail.root@zm09.stanford.edu> Message-ID: Hi Matt, I rearranged my binary data such that the x-axis became the z-axis in grads, which you can plot in log scale. I am not aware that you could do that with the x-axis. Regards, Heiner On Wed, May 12, 2010 at 4:14 AM, Matei Georgescu wrote: > Greetings fellow GrADS users, > > I am using GrADS version 1.9b4 and/or the latest version of OpenGrADS. > > My question is the following. Is it possible to change the x-axis scaling, > and in particular, to have the x-axis in log scale, while retaining the > y-axis as is (linear)? > > thanks much, > matt > > > ----- > Matei ("Matt") Georgescu > Post-doctoral Fellow > Program on Food Security and the Environment > Stanford University > Y2E2 Bldg - MC4205 > 473 Via Ortega > Stanford, CA 94305 > homepage - http://stanford.edu/~mateig > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- Heiner K?rnich Dept. of Meteorology Tel: +46 8 164333 Stockholms University, SE-106 91 Stockholm, Sweden Email: heiner at misu.su.se www.misu.su.se/~heiner/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/e956dcf7/attachment-0001.html From diego.morelli at trs.it Wed May 12 10:34:04 2010 From: diego.morelli at trs.it (Diego Morelli) Date: Wed, 12 May 2010 16:34:04 +0200 Subject: [gradsusr] Why cannot contour grid for this file? Message-ID: Hello. I have this file in the attachment. It get 3 contains this parameters: ugrdprs, for levels 150/100, vgrdprs for levels 850/150/100. If I use this file in grads, it can display all the 3 levels for vgrdprs. For ugrdprs the display command produces a correct map for level 150 and an empty map for level 100 (Entire grid is undefined) and this message: Why this behaviour? Can you say me what doesn't like to GrADS for ugrdprs on level 100? The products I'm using are: grib2ctl v0.9.12.5p45 wgrib v1.8.0.12 GrADS Ver. 2.0.a7.1 The command I'm using before grads are: perl grib2ctl.pl LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ./gribmap - i LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl - 0. Thank you in advance. Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/bbb052dd/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 21804 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/bbb052dd/attachment-0001.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b Type: application/octet-stream Size: 20968 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/bbb052dd/attachment-0001.obj From Huddleston at cira.colostate.edu Wed May 12 11:32:11 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Wed, 12 May 2010 08:32:11 -0700 Subject: [gradsusr] Why cannot contour grid for this file? In-Reply-To: References: Message-ID: Diego If you look at your file with wgrib you will see that UGRD only has data at Z=150 and Z=100 whereas VGRD has data at all three levels 850,150, and 100. The order of the ZDEF in the control file created by Wesley's grib2ctl.pl script is 850 150 100. When you tried to display UGRD data it was using the 850 level. Set your Z to 150 or 100 if you want to see UGRD data. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Diego Morelli [diego.morelli at trs.it] Sent: Wednesday, May 12, 2010 8:34 AM To: 'GrADS Users Forum' Subject: [gradsusr] Why cannot contour grid for this file? Hello. I have this file in the attachment. It get 3 contains this parameters: ugrdprs, for levels 150/100, vgrdprs for levels 850/150/100. If I use this file in grads, it can display all the 3 levels for vgrdprs. For ugrdprs the display command produces a correct map for level 150 and an empty map for level 100 (Entire grid is undefined) and this message: [cid:image001.jpg at 01CAF1F0.EF6D1930] Why this behaviour? Can you say me what doesn?t like to GrADS for ugrdprs on level 100? The products I?m using are: grib2ctl v0.9.12.5p45 wgrib v1.8.0.12 GrADS Ver. 2.0.a7.1 The command I?m using before grads are: perl grib2ctl.pl LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ./gribmap ? i LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. Thank you in advance. Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/85967ad5/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 21804 bytes Desc: image001.jpg Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/85967ad5/attachment-0001.jpg From diego.morelli at trs.it Wed May 12 12:26:30 2010 From: diego.morelli at trs.it (Diego Morelli) Date: Wed, 12 May 2010 18:26:30 +0200 Subject: [gradsusr] R: Why cannot contour grid for this file? In-Reply-To: References: Message-ID: Oh, yes surely I just setted the levels, with the ?set lev? command. It doesn?t work for ugrd with the level 100 (with the level 150 there is no problems). Thank you, Deigo _____ Da: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Per conto di Huddleston, John Inviato: mercoled? 12 maggio 2010 17.32 A: GrADS Users Forum Oggetto: Re: [gradsusr] Why cannot contour grid for this file? Diego If you look at your file with wgrib you will see that UGRD only has data at Z=150 and Z=100 whereas VGRD has data at all three levels 850,150, and 100. The order of the ZDEF in the control file created by Wesley's grib2ctl.pl script is 850 150 100. When you tried to display UGRD data it was using the 850 level. Set your Z to 150 or 100 if you want to see UGRD data. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Diego Morelli [diego.morelli at trs.it] Sent: Wednesday, May 12, 2010 8:34 AM To: 'GrADS Users Forum' Subject: [gradsusr] Why cannot contour grid for this file? Hello. I have this file in the attachment. It get 3 contains this parameters: ugrdprs, for levels 150/100, vgrdprs for levels 850/150/100. If I use this file in grads, it can display all the 3 levels for vgrdprs. For ugrdprs the display command produces a correct map for level 150 and an empty map for level 100 (Entire grid is undefined) and this message: Why this behaviour? Can you say me what doesn?t like to GrADS for ugrdprs on level 100? The products I?m using are: grib2ctl v0.9.12.5p45 wgrib v1.8.0.12 GrADS Ver. 2.0.a7.1 The command I?m using before grads are: perl grib2ctl.pl LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ./gribmap ? i LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. Thank you in advance. Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/26b88462/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 21804 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/26b88462/attachment-0001.jpe From diego.morelli at trs.it Wed May 12 13:53:00 2010 From: diego.morelli at trs.it (Diego Morelli) Date: Wed, 12 May 2010 19:53:00 +0200 Subject: [gradsusr] I: Why cannot contour grid for this file? Message-ID: Hello. I don?t know if my question is clear, so let me repeat. Using in GrADS the attached file, the ugrd can?t be displaied for the level 100. Look at this pic in order to have clear the situation I have in GrADS What is wrong in the attached file that prevent GrADS to display the data? In the warning message I don?t see any abnormal situation: In my opinion, the ?grid limits of request? appears correct in front of the ?grid limits of file?, then what this message means? Regards, Diego _____ Da: Diego Morelli [mailto:diego.morelli at trs.it] Inviato: mercoled? 12 maggio 2010 16.34 A: 'GrADS Users Forum' Oggetto: Why cannot contour grid for this file? Hello. I have this file in the attachment. It get 3 contains this parameters: ugrdprs, for levels 150/100, vgrdprs for levels 850/150/100. If I use this file in grads, it can display all the 3 levels for vgrdprs. For ugrdprs the display command produces a correct map for level 150 and an empty map for level 100 (Entire grid is undefined) and this message: Why this behaviour? Can you say me what doesn?t like to GrADS for ugrdprs on level 100? The products I?m using are: grib2ctl v0.9.12.5p45 wgrib v1.8.0.12 GrADS Ver. 2.0.a7.1 The command I?m using before grads are: perl grib2ctl.pl LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ./gribmap ? i LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. Thank you in advance. Diego -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/859c63c7/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 21804 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/859c63c7/attachment-0002.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 27716 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/859c63c7/attachment-0003.jpe -------------- next part -------------- A non-text attachment was scrubbed... Name: LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b Type: application/octet-stream Size: 20968 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100512/859c63c7/attachment-0001.obj From jma at cola.iges.org Wed May 12 14:08:34 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Wed, 12 May 2010 14:08:34 -0400 Subject: [gradsusr] I: Why cannot contour grid for this file? In-Reply-To: References: Message-ID: <78C26F04-34DD-4565-AF53-672AD882A1D0@cola.iges.org> Diego, grib2ctl gives you a descriptor that looks like this (irrelevant stuff omitted): zdef 3 levels 850 150 100 vars 2 UGRDprs 2 33,100,0 ** (profile) u wind [m/s] VGRDprs 3 34,100,0 ** (profile) v wind [m/s] ENDVARS Because the number of levels in the UGRDprs variable declaration (2) is less than the number of levels in the ZDEF entry (3), GrADS assumes the only valid levels are the first two, and that is why it is giving you an error message when you try to retrieve data at Z=3. If you change UGRDprs 2 33,100,0 ** (profile) u wind [m/s] to UGRDprs 3 33,100,0 ** (profile) u wind [m/s] and rerun gribmap, using the -v option to make sure all the records in your file match, then everything will work the way you expect, and you'll have missing data for UGRDprs at 850 mb. --Jennifer On May 12, 2010, at 1:53 PM, Diego Morelli wrote: > Hello. > I don?t know if my question is clear, so let me repeat. > Using in GrADS the attached file, the ugrd can?t be displaied for > the level 100. > Look at this pic in order to have clear the situation I have in GrADS > > > > What is wrong in the attached file that prevent GrADS to display the > data? > In the warning message I don?t see any abnormal situation: In my > opinion, the ?grid limits of request? appears correct in front of > the ?grid limits of file?, then what this message means? > > Regards, > > Diego > Da: Diego Morelli [mailto:diego.morelli at trs.it] > Inviato: mercoled? 12 maggio 2010 16.34 > A: 'GrADS Users Forum' > Oggetto: Why cannot contour grid for this file? > > Hello. > I have this file in the attachment. > > It get 3 contains this parameters: ugrdprs, for levels 150/100, > vgrdprs for levels 850/150/100. > > If I use this file in grads, it can display all the 3 levels for > vgrdprs. > For ugrdprs the display command produces a correct map for level 150 > and an empty map for level 100 (Entire grid is undefined) and this > message: > > > > Why this behaviour? Can you say me what doesn?t like to GrADS for > ugrdprs on level 100? > > > The products I?m using are: > grib2ctl v0.9.12.5p45 > wgrib v1.8.0.12 > GrADS Ver. 2.0.a7.1 > > The command I?m using before grads are: > perl grib2ctl.pl > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl > ./gribmap ? i > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. > > > Thank you in advance. > > Diego > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100512/65083795/attachment.html From ldong at unm.edu Wed May 12 14:35:29 2010 From: ldong at unm.edu (Li Dong) Date: Wed, 12 May 2010 12:35:29 -0600 Subject: [gradsusr] vint ? In-Reply-To: <78C26F04-34DD-4565-AF53-672AD882A1D0@cola.iges.org> References: <78C26F04-34DD-4565-AF53-672AD882A1D0@cola.iges.org> Message-ID: <1273689329.16310.11.camel@dogen.unm.edu> Dear list, I need to calculate mass-weighted mean values of a variable, say air temperature, from 1000 to 100 mb. The air temperature is at levels of 1000, 925, 800, 700, 600, 500, 400, 300, 200 and 100mb. I am thinking of using function "vint" to perform this calculation. I'd appreciate if you could verify if my script below is right. 'open ps.ctl' (surface pressure control file, ps in millibar) 'open T.ctl' (air temperature file) 'd vint(ps.1,T.2,150)/((ps.1-100)*(100/9.8))' Note that the denominator is the scale factor (f/g) and the entire column between surface level and top layer in millibar. Thanks so much in advance! Li From arubawx at setarnet.aw Wed May 12 14:46:12 2010 From: arubawx at setarnet.aw (Marck Oduber) Date: Wed, 12 May 2010 18:46:12 -0000 Subject: [gradsusr] pygrads superpack win32 References: <004b01caf130$0c476450$0e00a8c0@forecaster> Message-ID: <001c01caf203$651b92d0$0e00a8c0@forecaster> ok I just figured out that a simple . sdfopen d:\data\test.nc wil do...the dot was the problem... maybe this will help others grads users using pygrads marck ----- Original Message ----- From: Marck Oduber To: gradsusr at gradsusr.org Sent: Tuesday, May 11, 2010 17:33 Subject: [gradsusr] pygrads superpack win32 Hi, I am testing the pygrads mainly for the eof capabilities. I am using the pygrads-1.1.0.win32_superpack.exe, os winxp. Assuming common install (c:\python25) installation. How would I tell it to open sst.mnmean.nc that's residing in d:\data? I have tried different commands that usually works for grads, but no luck in pygrads. Regards Marck ------------------------------------------------------------------------------ _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.819 / Virus Database: 271.1.1/2867 - Release Date: 05/11/10 06:26:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/747f9e7b/attachment-0001.html From Wesley.Ebisuzaki at noaa.gov Wed May 12 14:54:11 2010 From: Wesley.Ebisuzaki at noaa.gov (Wesley Ebisuzaki) Date: Wed, 12 May 2010 14:54:11 -0400 Subject: [gradsusr] I: Why cannot contour grid for this file? In-Reply-To: References: Message-ID: <4BEAF953.6010801@noaa.gov> Diego, grib2ctl.pl doesn't handle missing levels very well. grib2ctl found 3 pressure levels as expected. > * z has 3 levels, for prs > zdef 3 levels > 850 150 100 grib2ctl found UGRD on two levels and wrote the line > UGRDprs 2 33,100,0 ** (profile) u wind [m/s] With NCEP files, the missing levels occur at the smallest pressures, so "2" is ok. With your file, the missing level was at 850, so you have to edit the ctl file and change the "2" into a "3". > UGRDprs 3 33,100,0 ** (profile) u wind [m/s] For what it is worth, a grib2 version of your data wouldn't have had a problem. Wesley Ebisuzaki Diego Morelli wrote: > > Hello. > > I don?t know if my question is clear, so let me repeat. > > Using in GrADS the attached file, the ugrd can?t be displaied for the > level 100. > > Look at this pic in order to have clear the situation I have in GrADS > > What is wrong in the attached file that prevent GrADS to display the > data? > > In the warning message I don?t see any abnormal situation: In my > opinion, the ?grid limits of request? appears correct in front of the > ?grid limits of file?, then what this message means? > > Regards, > > Diego > > * Da: * Diego Morelli [mailto:diego.morelli at trs.it] > *Inviato:* mercoled? 12 maggio 2010 16.34 > *A:* ' GrADS Users Forum ' > *Oggetto:* Why cannot contour grid for this file? > > Hello. > > I have this file in the attachment. > > It get 3 contains this parameters: ugrdprs, for levels 150/100, > vgrdprs for levels 850/150/100. > > If I use this file in grads, it can display all the 3 levels for vgrdprs. > > For ugrdprs the display command produces a correct map for level 150 > and an empty map for level 100 (Entire grid is undefined) and this > message: > > Why this behaviour? Can you say me what doesn?t like to GrADS for > ugrdprs on level 100? > > The products I?m using are: > > grib2ctl v0.9.12.5p45 > > wgrib v1.8.0.12 > > GrADS Ver. 2.0.a7.1 > > The command I?m using before grads are: > > perl grib2ctl.pl > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl > > ./gribmap ? i > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. > > Thank you in advance. > > Diego > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From diego.morelli at trs.it Wed May 12 14:54:47 2010 From: diego.morelli at trs.it (Diego Morelli) Date: Wed, 12 May 2010 20:54:47 +0200 Subject: [gradsusr] R: I: Why cannot contour grid for this file? In-Reply-To: <78C26F04-34DD-4565-AF53-672AD882A1D0@cola.iges.org> References: <78C26F04-34DD-4565-AF53-672AD882A1D0@cola.iges.org> Message-ID: Great!!!! Thank you Jennifer. I applied your suggest and it works fine. Thank you so much again. Diego _____ Da: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Per conto di Jennifer Adams Inviato: mercoled? 12 maggio 2010 20.09 A: GrADS Users Forum Oggetto: Re: [gradsusr] I: Why cannot contour grid for this file? Diego, grib2ctl gives you a descriptor that looks like this (irrelevant stuff omitted): zdef 3 levels 850 150 100 vars 2 UGRDprs 2 33,100,0 ** (profile) u wind [m/s] VGRDprs 3 34,100,0 ** (profile) v wind [m/s] ENDVARS Because the number of levels in the UGRDprs variable declaration (2) is less than the number of levels in the ZDEF entry (3), GrADS assumes the only valid levels are the first two, and that is why it is giving you an error message when you try to retrieve data at Z=3. If you change UGRDprs 2 33,100,0 ** (profile) u wind [m/s] to UGRDprs 3 33,100,0 ** (profile) u wind [m/s] and rerun gribmap, using the -v option to make sure all the records in your file match, then everything will work the way you expect, and you'll have missing data for UGRDprs at 850 mb. --Jennifer On May 12, 2010, at 1:53 PM, Diego Morelli wrote: Hello. I don?t know if my question is clear, so let me repeat. Using in GrADS the attached file, the ugrd can?t be displaied for the level 100. Look at this pic in order to have clear the situation I have in GrADS What is wrong in the attached file that prevent GrADS to display the data? In the warning message I don?t see any abnormal situation: In my opinion, the ?grid limits of request? appears correct in front of the ?grid limits of file?, then what this message means? Regards, Diego _____ Da: Diego Morelli [mailto:diego.morelli at trs.it] Inviato: mercoled? 12 maggio 2010 16.34 A: 'GrADS Users Forum' Oggetto: Why cannot contour grid for this file? Hello. I have this file in the attachment. It get 3 contains this parameters: ugrdprs, for levels 150/100, vgrdprs for levels 850/150/100. If I use this file in grads, it can display all the 3 levels for vgrdprs. For ugrdprs the display command produces a correct map for level 150 and an empty map for level 100 (Entire grid is undefined) and this message: Why this behaviour? Can you say me what doesn?t like to GrADS for ugrdprs on level 100? The products I?m using are: grib2ctl v0.9.12.5p45 wgrib v1.8.0.12 GrADS Ver. 2.0.a7.1 The command I?m using before grads are: perl grib2ctl.pl LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ./gribmap ? i LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. Thank you in advance. Diego _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100512/dbee744e/attachment-0001.html From liping_liuwang at hotmail.com Wed May 12 15:59:57 2010 From: liping_liuwang at hotmail.com (Liping Liu) Date: Wed, 12 May 2010 13:59:57 -0600 Subject: [gradsusr] plotting time in hovmoller pictures Message-ID: Hi, (I am a new user of GrADs) I am trying to plot two hovmollers into one figure. The problem is the time. First I plot the hovmollers using data from file 1 for Aug10 to Aug15, with the following commands: 'set yflip on' 'set lev 1000' 'set tlsupp year' 'set t 2 48' 'set lat 15' 'set gxout shaded' 'set grads off' 'd ave(olr.1,lat=5,lat=25)' So it gives me a figure for Aug10--Aug15. But, when I repeat the plotting for another period of time Aug15-Aug20: 'set t 49 80' 'd ave(olr.2,lat=5,lat=25)' It will simply overlap the whole figure, the time is not sequenced. Question: what do I do to get the pictures of Aug10-15 and Aug15-20 laid out vertically (not overlapping each other)? An alternative way is to write the two sets of data into one data file. But I don't know how to do that either. Thanks for your help. Suggestions to either of the approaches are greatly appreciated! Liping _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/76b479a3/attachment.html From jdduda at iastate.edu Wed May 12 16:21:51 2010 From: jdduda at iastate.edu (Jeffrey Duda) Date: Wed, 12 May 2010 15:21:51 -0500 Subject: [gradsusr] plotting time in hovmoller pictures In-Reply-To: References: Message-ID: Use 'set parea' to make it a multi panel plot and put the two plot areas back-to-back. Jeff On Wed, May 12, 2010 at 2:59 PM, Liping Liu wrote: > Hi, (I am a new user of GrADs) > > I am trying to plot two hovmollers into one figure. The problem is the > time. > First I plot the hovmollers using data from file 1 for Aug10 to Aug15, with > the following commands: > > 'set yflip on' > 'set lev 1000' > 'set tlsupp year' > 'set t 2 48' > 'set lat 15' > 'set gxout shaded' > 'set grads off' > 'd ave(olr.1,lat=5,lat=25)' > > So it gives me a figure for Aug10--Aug15. But, when I repeat the plotting > for another period of time Aug15-Aug20: > > 'set t 49 80' > 'd ave(olr.2,lat=5,lat=25)' > > It will simply overlap the whole figure, the time is not sequenced. > > Question: what do I do to get the pictures of Aug10-15 and Aug15-20 laid > out vertically (not overlapping each other)? > > An alternative way is to write the two sets of data into one data file. But > I don't know how to do that either. > > Thanks for your help. Suggestions to either of the approaches are greatly > appreciated! > > Liping > > > ------------------------------ > Hotmail has tools for the New Busy. Search, chat and e-mail from your > inbox. Learn more. > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- 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/20100512/1721fdb2/attachment.html From Austin.L.Conaty at nasa.gov Wed May 12 16:24:30 2010 From: Austin.L.Conaty at nasa.gov (Austin Conaty) Date: Wed, 12 May 2010 16:24:30 -0400 Subject: [gradsusr] plotting time in hovmoller pictures In-Reply-To: References: Message-ID: <4BEB0E7E.1030807@nasa.gov> Liping, If you go to this web page: http://grads.iges.org/grads/gadoc/gadocindex.html and then read about vpage and/or parea you'll see what you need to do to tell grads where to draw the plots. Using vpage you can designate half the page for one plot, then plot it, then use vpage to designate the other half of the page for plotting the second plot. If you want to connect the 2 plots, you may need to use parea, but I believe vpage is the recommended way to work with multiple plots on a single page. Liping Liu wrote: > Hi, (I am a new user of GrADs) > > I am trying to plot two hovmollers into one figure. The problem is the time. > First I plot the hovmollers using data from file 1 for Aug10 to Aug15, with the following commands: > > 'set yflip on' > 'set lev 1000' > 'set tlsupp year' > 'set t 2 48' > 'set lat 15' > 'set gxout shaded' > 'set grads off' > 'd ave(olr.1,lat=5,lat=25)' > > So it gives me a figure for Aug10--Aug15. But, when I repeat the plotting for another period of time Aug15-Aug20: > > 'set t 49 80' > 'd ave(olr.2,lat=5,lat=25)' > > It will simply overlap the whole figure, the time is not sequenced. > > Question: what do I do to get the pictures of Aug10-15 and Aug15-20 laid out vertically (not overlapping each other)? > > An alternative way is to write the two sets of data into one data file. But I don't know how to do that either. > > Thanks for your help. Suggestions to either of the approaches are greatly appreciated! > > Liping > > > ________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. > > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- Austin Conaty, SAIC Global Modeling & Assimilation Office 301-614-6149 (ph) NASA Goddard Space Flight Center 301-614-6297 (fax) Code 610.1 Greenbelt, MD 20771 Austin.L.Conaty at .nasa.gov http://gmao.gsfc.nasa.gov From Charles.Seman at noaa.gov Wed May 12 18:10:26 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Wed, 12 May 2010 18:10:26 -0400 Subject: [gradsusr] plotting time in hovmoller pictures In-Reply-To: References: Message-ID: <4BEB2752.70205@noaa.gov> Liping Liu, You might also be able to use GrADS templates to "concatenate" the "olr" fields from file 1 and file 2 into a single time series within GrADS as follows: 'open olr_template.ctl' 'set yflip on' 'set lev 1000' 'set tlsupp year' 'set t 2 80' 'set lat 15' 'set gxout shaded' 'set grads off' 'd ave(olr,lat=5,lat=25)' where "olr" is the name of the variable in the "vars" section of the GrADS template data descriptor file "olr_template.ctl" (please see the examples at http://grads.iges.org/grads/gadoc/templates.html which can give you some ideas for what your "olr_template.ctl" might need)... briefly, a template data descriptor file for time differs from a single dataset data descriptor file in the "dset" record, a required "options template" record, and in the "tdef" record (in which the number of time levels in the template data descriptor file is the sum of the time levels for each of the component datasets). I hope this helps, Chuck Liping Liu wrote: > Hi, (I am a new user of GrADs) > > I am trying to plot two hovmollers into one figure. The problem is the > time. > First I plot the hovmollers using data from file 1 for Aug10 to Aug15, > with the following commands: > > 'set yflip on' > 'set lev 1000' > 'set tlsupp year' > 'set t 2 48' > 'set lat 15' > 'set gxout shaded' > 'set grads off' > 'd ave(olr.1,lat=5,lat=25)' > > So it gives me a figure for Aug10--Aug15. But, when I repeat the > plotting for another period of time Aug15-Aug20: > > 'set t 49 80' > 'd ave(olr.2,lat=5,lat=25)' > > It will simply overlap the whole figure, the time is not sequenced. > > Question: what do I do to get the pictures of Aug10-15 and Aug15-20 > laid out vertically (not overlapping each other)? > > An alternative way is to write the two sets of data into one data > file. But I don't know how to do that either. > > Thanks for your help. Suggestions to either of the approaches are > greatly appreciated! > > Liping > > > ------------------------------------------------------------------------ > Hotmail has tools for the New Busy. Search, chat and e-mail from your > inbox. Learn more. > > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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 reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." From zowiti at ncst.go.ke Thu May 13 02:08:11 2010 From: zowiti at ncst.go.ke (Zablone Owiti) Date: Wed, 12 May 2010 23:08:11 -0700 Subject: [gradsusr] Unable to start Pygrads Message-ID: <2089ed6f$7aa2f554$5d6cc872$@com> Dear Users, I have installed Pygrads (in Windows 7) for EOF analysis purpose. I am however unable to execute any commands like for Starting Pygrads provided in http://opengrads.org/wiki/index.php?title=PyGrADS_Interactive_Shell. For example when I give the command : % pygrads -h , I get the following error: >>> % pygrads -h Traceback ( File "", line 1 % pygrads -h ^ SyntaxError: invalid syntax It seems I am missing something. How should I go about it? Thanks ---------------------------- ZABLONE OWITI GRADUATE STUDENT College of Atmospheric Science Nanjing University of Information, Science and Technology Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Mob. 15077895632 Website: www.nuist.edu.cn ==================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100512/290dfbdc/attachment.html From diego.morelli at trs.it Thu May 13 02:30:22 2010 From: diego.morelli at trs.it (Diego Morelli) Date: Thu, 13 May 2010 08:30:22 +0200 Subject: [gradsusr] R: I: Why cannot contour grid for this file? In-Reply-To: <4BEAF953.6010801@noaa.gov> References: <4BEAF953.6010801@noaa.gov> Message-ID: <5076B13D958A4FA690F5837E81AC1E12@trsspa.it> Hello Wesley, how are you?. Yes, yes, I understood. You and Jennifer have been very clear. I just tried to edit the descriptor file ctl as you suggest, and it works fine for level 100. Ok, it means that, if necessary, I will split my file so that I will ensure that there are only, in the produced files, parameters on the same list of levels. Thank you vey much to you all. Diego -----Messaggio originale----- Da: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Per conto di Wesley Ebisuzaki Inviato: mercoled? 12 maggio 2010 20.54 A: GrADS Users Forum Oggetto: Re: [gradsusr] I: Why cannot contour grid for this file? Diego, grib2ctl.pl doesn't handle missing levels very well. grib2ctl found 3 pressure levels as expected. > * z has 3 levels, for prs > zdef 3 levels > 850 150 100 grib2ctl found UGRD on two levels and wrote the line > UGRDprs 2 33,100,0 ** (profile) u wind [m/s] With NCEP files, the missing levels occur at the smallest pressures, so "2" is ok. With your file, the missing level was at 850, so you have to edit the ctl file and change the "2" into a "3". > UGRDprs 3 33,100,0 ** (profile) u wind [m/s] For what it is worth, a grib2 version of your data wouldn't have had a problem. Wesley Ebisuzaki Diego Morelli wrote: > > Hello. > > I don?t know if my question is clear, so let me repeat. > > Using in GrADS the attached file, the ugrd can?t be displaied for the > level 100. > > Look at this pic in order to have clear the situation I have in GrADS > > What is wrong in the attached file that prevent GrADS to display the > data? > > In the warning message I don?t see any abnormal situation: In my > opinion, the ?grid limits of request? appears correct in front of the > ?grid limits of file?, then what this message means? > > Regards, > > Diego > > * Da: * Diego Morelli [mailto:diego.morelli at trs.it] > *Inviato:* mercoled? 12 maggio 2010 16.34 > *A:* ' GrADS Users Forum ' > *Oggetto:* Why cannot contour grid for this file? > > Hello. > > I have this file in the attachment. > > It get 3 contains this parameters: ugrdprs, for levels 150/100, > vgrdprs for levels 850/150/100. > > If I use this file in grads, it can display all the 3 levels for vgrdprs. > > For ugrdprs the display command produces a correct map for level 150 > and an empty map for level 100 (Entire grid is undefined) and this > message: > > Why this behaviour? Can you say me what doesn?t like to GrADS for > ugrdprs on level 100? > > The products I?m using are: > > grib2ctl v0.9.12.5p45 > > wgrib v1.8.0.12 > > GrADS Ver. 2.0.a7.1 > > The command I?m using before grads are: > > perl grib2ctl.pl > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl > > ./gribmap ? i > LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. > > Thank you in advance. > > Diego > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From a.marra at isac.cnr.it Thu May 13 09:06:35 2010 From: a.marra at isac.cnr.it (Anna Cinzia Marra) Date: Thu, 13 May 2010 15:06:35 +0200 (CEST) Subject: [gradsusr] Creating data files Message-ID: Hello, does anybody have a fortran program which converts measured radar reflectivity data to binary files read by grads? Here is an example of my data files: # Fields: z y x DBZ # Units: km km km dBZ 1 -224.625 -224.625 35 1 -224.625 -223.875 28 1 -224.625 -223.125 20 1 -224.625 -222.375 20 1 -224.625 -221.625 18 ...................... Thank you very much. Cinzia From Wesley.Ebisuzaki at noaa.gov Thu May 13 09:18:51 2010 From: Wesley.Ebisuzaki at noaa.gov (Wesley Ebisuzaki) Date: Thu, 13 May 2010 09:18:51 -0400 Subject: [gradsusr] R: I: Why cannot contour grid for this file? In-Reply-To: <5076B13D958A4FA690F5837E81AC1E12@trsspa.it> References: <4BEAF953.6010801@noaa.gov> <5076B13D958A4FA690F5837E81AC1E12@trsspa.it> Message-ID: <4BEBFC3B.9060005@noaa.gov> Diego, When I have missing vertical levels, I use the grib2ctl/g2ctl option -no_profile. Then each field will have it's own name such as HGT100mb. Another option besides editing the files. Wesley Diego Morelli wrote: > Hello Wesley, how are you?. > > Yes, yes, I understood. You and Jennifer have been very clear. > > I just tried to edit the descriptor file ctl as you suggest, and it works > fine for level 100. > > Ok, it means that, if necessary, I will split my file so that I will ensure > that there are only, in the produced files, parameters on the same list of > levels. > > Thank you vey much to you all. > > Diego > > > > -----Messaggio originale----- > Da: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Per > conto di Wesley Ebisuzaki > Inviato: mercoled? 12 maggio 2010 20.54 > A: GrADS Users Forum > Oggetto: Re: [gradsusr] I: Why cannot contour grid for this file? > > Diego, > > grib2ctl.pl doesn't handle missing levels very well. grib2ctl found 3 > pressure levels as expected. > > >> * z has 3 levels, for prs >> zdef 3 levels >> 850 150 100 >> > grib2ctl found UGRD on two levels and wrote the line > >> UGRDprs 2 33,100,0 ** (profile) u wind [m/s] >> > With NCEP files, the missing levels occur at the smallest pressures, so > "2" is ok. With > your file, the missing level was at 850, so you have to edit the ctl > file and change the "2" into a "3". > >> UGRDprs 3 33,100,0 ** (profile) u wind [m/s] >> > For what it is worth, a grib2 version of your data wouldn't have had a > problem. > > Wesley Ebisuzaki > > > > > > Diego Morelli wrote: > >> Hello. >> >> I don?t know if my question is clear, so let me repeat. >> >> Using in GrADS the attached file, the ugrd can?t be displaied for the >> level 100. >> >> Look at this pic in order to have clear the situation I have in GrADS >> >> What is wrong in the attached file that prevent GrADS to display the >> data? >> >> In the warning message I don?t see any abnormal situation: In my >> opinion, the ?grid limits of request? appears correct in front of the >> ?grid limits of file?, then what this message means? >> >> Regards, >> >> Diego >> >> * Da: * Diego Morelli [mailto:diego.morelli at trs.it] >> *Inviato:* mercoled? 12 maggio 2010 16.34 >> *A:* ' GrADS Users Forum ' >> *Oggetto:* Why cannot contour grid for this file? >> >> Hello. >> >> I have this file in the attachment. >> >> It get 3 contains this parameters: ugrdprs, for levels 150/100, >> vgrdprs for levels 850/150/100. >> >> If I use this file in grads, it can display all the 3 levels for vgrdprs. >> >> For ugrdprs the display command produces a correct map for level 150 >> and an empty map for level 100 (Entire grid is undefined) and this >> message: >> >> Why this behaviour? Can you say me what doesn?t like to GrADS for >> ugrdprs on level 100? >> >> The products I?m using are: >> >> grib2ctl v0.9.12.5p45 >> >> wgrib v1.8.0.12 >> >> GrADS Ver. 2.0.a7.1 >> >> The command I?m using before grads are: >> >> perl grib2ctl.pl >> LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > >> LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl >> >> ./gribmap ? i >> LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. >> >> Thank you in advance. >> >> Diego >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From diego.morelli at trs.it Thu May 13 10:17:58 2010 From: diego.morelli at trs.it (Diego Morelli) Date: Thu, 13 May 2010 16:17:58 +0200 Subject: [gradsusr] R: R: I: Why cannot contour grid for this file? In-Reply-To: <4BEBFC3B.9060005@noaa.gov> References: <4BEAF953.6010801@noaa.gov><5076B13D958A4FA690F5837E81AC1E12@trsspa.it> <4BEBFC3B.9060005@noaa.gov> Message-ID: <09125755A81342569E18147B783631E2@trsspa.it> Oh Wesley, you made me save a great job. I tried to use the no_profile option and it works fine. Thank you again, Diego -----Messaggio originale----- Da: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Per conto di Wesley Ebisuzaki Inviato: gioved? 13 maggio 2010 15.19 A: GrADS Users Forum Oggetto: Re: [gradsusr] R: I: Why cannot contour grid for this file? Diego, When I have missing vertical levels, I use the grib2ctl/g2ctl option -no_profile. Then each field will have it's own name such as HGT100mb. Another option besides editing the files. Wesley Diego Morelli wrote: > Hello Wesley, how are you?. > > Yes, yes, I understood. You and Jennifer have been very clear. > > I just tried to edit the descriptor file ctl as you suggest, and it works > fine for level 100. > > Ok, it means that, if necessary, I will split my file so that I will ensure > that there are only, in the produced files, parameters on the same list of > levels. > > Thank you vey much to you all. > > Diego > > > > -----Messaggio originale----- > Da: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Per > conto di Wesley Ebisuzaki > Inviato: mercoled? 12 maggio 2010 20.54 > A: GrADS Users Forum > Oggetto: Re: [gradsusr] I: Why cannot contour grid for this file? > > Diego, > > grib2ctl.pl doesn't handle missing levels very well. grib2ctl found 3 > pressure levels as expected. > > >> * z has 3 levels, for prs >> zdef 3 levels >> 850 150 100 >> > grib2ctl found UGRD on two levels and wrote the line > >> UGRDprs 2 33,100,0 ** (profile) u wind [m/s] >> > With NCEP files, the missing levels occur at the smallest pressures, so > "2" is ok. With > your file, the missing level was at 850, so you have to edit the ctl > file and change the "2" into a "3". > >> UGRDprs 3 33,100,0 ** (profile) u wind [m/s] >> > For what it is worth, a grib2 version of your data wouldn't have had a > problem. > > Wesley Ebisuzaki > > > > > > Diego Morelli wrote: > >> Hello. >> >> I don?t know if my question is clear, so let me repeat. >> >> Using in GrADS the attached file, the ugrd can?t be displaied for the >> level 100. >> >> Look at this pic in order to have clear the situation I have in GrADS >> >> What is wrong in the attached file that prevent GrADS to display the >> data? >> >> In the warning message I don?t see any abnormal situation: In my >> opinion, the ?grid limits of request? appears correct in front of the >> ?grid limits of file?, then what this message means? >> >> Regards, >> >> Diego >> >> * Da: * Diego Morelli [mailto:diego.morelli at trs.it] >> *Inviato:* mercoled? 12 maggio 2010 16.34 >> *A:* ' GrADS Users Forum ' >> *Oggetto:* Why cannot contour grid for this file? >> >> Hello. >> >> I have this file in the attachment. >> >> It get 3 contains this parameters: ugrdprs, for levels 150/100, >> vgrdprs for levels 850/150/100. >> >> If I use this file in grads, it can display all the 3 levels for vgrdprs. >> >> For ugrdprs the display command produces a correct map for level 150 >> and an empty map for level 100 (Entire grid is undefined) and this >> message: >> >> Why this behaviour? Can you say me what doesn?t like to GrADS for >> ugrdprs on level 100? >> >> The products I?m using are: >> >> grib2ctl v0.9.12.5p45 >> >> wgrib v1.8.0.12 >> >> GrADS Ver. 2.0.a7.1 >> >> The command I?m using before grads are: >> >> perl grib2ctl.pl >> LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.b > >> LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl >> >> ./gribmap ? i >> LFPW00190281.20090718151333_P4400PT7758_BPMG12.101562_1.ctl ? 0. >> >> Thank you in advance. >> >> Diego >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From arubawx at setarnet.aw Thu May 13 11:11:40 2010 From: arubawx at setarnet.aw (arubawx at setarnet.aw) Date: Thu, 13 May 2010 11:11:40 -0400 Subject: [gradsusr] Unable to start Pygrads In-Reply-To: <2089ed6f$7aa2f554$5d6cc872$@com> References: <2089ed6f$7aa2f554$5d6cc872$@com> Message-ID: use the file pygrads-x.y.z.win32.exe also for windows ... and start pygrads from you start menu then ... depending on the version of grads you have... marck ----- Original Message ----- From: Zablone Owiti Date: Thursday, May 13, 2010 2:42 am Subject: [gradsusr] Unable to start Pygrads To: gradsusr at gradsusr.org > Dear Users, > I have installed Pygrads (in? Windows 7) for EOF analysis purpose. I am however unable to execute any commands like for Starting Pygrads provided in?http://opengrads.org/wiki/index.php?title=PyGrADS_Interactive_Shell. > For example when I give the command :?% pygrads -h? , I get the following error: > >>> % pygrads -h > Traceback (? File "", line 1 > ??? % pygrads -h > ??? ^ > SyntaxError: invalid syntax > It seems I am missing something. How should I go about it? > Thanks > ---------------------------- > ZABLONE OWITI > GRADUATE STUDENT > College of Atmospheric Science > Nanjing University of Information, Science and Technology > Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China > Tel: +86-25-58731402 > Fax: +86-25-58731456 > Mob. 15077895632 > Website: www.nuist.edu.cn > ==================================================== > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100513/b81b4604/attachment.html From puffy78 at gmail.com Thu May 13 14:16:04 2010 From: puffy78 at gmail.com (Alexandre Santos) Date: Thu, 13 May 2010 15:16:04 -0300 Subject: [gradsusr] Creating data files In-Reply-To: References: Message-ID: Hello, Send the program at fortran more files binary the ctl. With the binary + ctl you can see in the Grads 2010/5/13 Anna Cinzia Marra > > Hello, > > does anybody have a fortran program which converts measured radar > reflectivity data to binary files read by grads? > > Here is an example of my data files: > > # Fields: z y x DBZ > # Units: km km km dBZ > 1 -224.625 -224.625 35 > 1 -224.625 -223.875 28 > 1 -224.625 -223.125 20 > 1 -224.625 -222.375 20 > 1 -224.625 -221.625 18 > ...................... > > Thank you very much. > > Cinzia > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100513/ea9a4d4a/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: dbz.ctl Type: application/octet-stream Size: 227 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100513/ea9a4d4a/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: dbz.bin Type: application/octet-stream Size: 80 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100513/ea9a4d4a/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: radar.f Type: application/octet-stream Size: 344 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100513/ea9a4d4a/attachment-0001.obj From liping_liuwang at hotmail.com Thu May 13 16:37:09 2010 From: liping_liuwang at hotmail.com (Liping Liu) Date: Thu, 13 May 2010 14:37:09 -0600 Subject: [gradsusr] file formats: unix versus windows Message-ID: Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100513/e2002d26/attachment-0001.html From Huddleston at cira.colostate.edu Thu May 13 17:16:47 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 13 May 2010 14:16:47 -0700 Subject: [gradsusr] file formats: unix versus windows In-Reply-To: References: Message-ID: Liping Go on to your windows box, create a user without admin, set an Id/Passwd for it, share the folder (yourShaeName) with your data, and set permissions to allow that new user to have read and write on it. Go to your Linux box and install smbfs. Under Ubuntu it is 'sudo apt-get install smbfs' Edit the /etc/fstab file on your Linux box and add a new line //yourWindowsServerName/YourShareName /mountDir cifs username=Id,password=passwd 0 0 Make the /mountDir directory Mount /mountDir The names are not literal here; please change them to whatever you want to name them. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Thursday, May 13, 2010 2:37 PM To: Grads Users Subject: [gradsusr] file formats: unix versus windows Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping ________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100513/2486c02f/attachment.html From zowiti at ncst.go.ke Thu May 13 21:48:16 2010 From: zowiti at ncst.go.ke (Zablone Owiti) Date: Thu, 13 May 2010 18:48:16 -0700 Subject: [gradsusr] Unable to start Pygrads Message-ID: <61e8ba08$20a95e8b$2081f6c5$@com> Dear Marc, The Pygrads I had installed was pygrads-1.1.0.win32_superpack.exe I hope you mean the same; and the version of Grads I am using is grads-2.0.a7.oga.3-win32_superpack.exe . However I still have the problem of starting Pygrads. ---------------------------- ZABLONE OWITI GRADUATE STUDENT College of Atmospheric Science Nanjing University of Information, Science and Technology Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China Tel: +86-25-58731402 Fax: +86-25-58731456 Mob. 15077895632 Website: www.nuist.edu.cn ==================================================== ---------------------------------------- From: arubawx at setarnet.aw Sent: Thursday, May 13, 2010 11:16 PM To: zowiti at ncst.go.ke, "GrADS Users Forum" Subject: Re: [gradsusr] Unable to start Pygrads use the file pygrads-x.y.z.win32.exe also for windows ... and start pygrads from you start menu then ... depending on the version of grads you have... marck ----- Original Message ----- From: Zablone Owiti Date: Thursday, May 13, 2010 2:42 am Subject: [gradsusr] Unable to start Pygrads To: gradsusr at gradsusr.org > Dear Users, > I have installed Pygrads (in Windows 7) for EOF analysis purpose. I am however unable to execute any commands like for Starting Pygrads provided in http://opengrads.org/wiki/index.php?title=PyGrADS_Interactive_Shell. > For example when I give the command : % pygrads -h , I get the following error: > >>> % pygrads -h > Traceback ( File "", line 1 > % pygrads -h > ^ > SyntaxError: invalid syntax > It seems I am missing something. How should I go about it? > Thanks > ---------------------------- > ZABLONE OWITI > GRADUATE STUDENT > College of Atmospheric Science > Nanjing University of Information, Science and Technology > Add: 219 Ning Liu Rd, Nanjing, Jiangsu, 21004, P.R. China > Tel: +86-25-58731402 > Fax: +86-25-58731456 > Mob. 15077895632 > Website: www.nuist.edu.cn > ==================================================== > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100513/934617df/attachment.html From flduan at gmail.com Fri May 14 02:09:13 2010 From: flduan at gmail.com (=?GB2312?B?ts671MG8?=) Date: Fri, 14 May 2010 14:09:13 +0800 Subject: [gradsusr] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100514/4fcb36fe/attachment.html From liping_liuwang at hotmail.com Fri May 14 04:46:30 2010 From: liping_liuwang at hotmail.com (Liping Liu) Date: Fri, 14 May 2010 02:46:30 -0600 Subject: [gradsusr] file formats: unix versus windows In-Reply-To: References: , Message-ID: John, Many thanks! But I don't think my laptop has the dual system, it's only Red Hat Linux. Liping From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Thu, 13 May 2010 14:16:47 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping Go on to your windows box, create a user without admin, set an Id/Passwd for it, share the folder (yourShaeName) with your data, and set permissions to allow that new user to have read and write on it. Go to your Linux box and install smbfs. Under Ubuntu it is ?sudo apt-get install smbfs? Edit the /etc/fstab file on your Linux box and add a new line //yourWindowsServerName/YourShareName /mountDir cifs username=Id,password=passwd 0 0 Make the /mountDir directory Mount /mountDir The names are not literal here; please change them to whatever you want to name them. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Thursday, May 13, 2010 2:37 PM To: Grads Users Subject: [gradsusr] file formats: unix versus windows Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100514/d3065033/attachment-0001.html From a.marra at isac.cnr.it Fri May 14 09:27:29 2010 From: a.marra at isac.cnr.it (Anna Cinzia Marra) Date: Fri, 14 May 2010 15:27:29 +0200 (CEST) Subject: [gradsusr] Creating data files In-Reply-To: References: Message-ID: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> Hello, thanks a lot. I am trying to convert a complete radar data file, but I have some problems with plot. I will try again. Cinzia > Hello, > > Send the program at fortran more files binary the ctl. With the binary + > ctl > you can see in the Grads > > > > 2010/5/13 Anna Cinzia Marra > >> >> Hello, >> >> does anybody have a fortran program which converts measured radar >> reflectivity data to binary files read by grads? >> >> Here is an example of my data files: >> >> # Fields: z y x DBZ >> # Units: km km km dBZ >> 1 -224.625 -224.625 35 >> 1 -224.625 -223.875 28 >> 1 -224.625 -223.125 20 >> 1 -224.625 -222.375 20 >> 1 -224.625 -221.625 18 >> ...................... >> >> Thank you very much. >> >> Cinzia >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From puffy78 at gmail.com Fri May 14 09:28:55 2010 From: puffy78 at gmail.com (Alexandre Santos) Date: Fri, 14 May 2010 10:28:55 -0300 Subject: [gradsusr] Creating data files In-Reply-To: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> Message-ID: Hello, send the file radar complete with the bin+ctl, please. 2010/5/14 Anna Cinzia Marra > Hello, > thanks a lot. I am trying to convert a complete radar data file, but I > have some problems with plot. > I will try again. > > Cinzia > > > Hello, > > > > Send the program at fortran more files binary the ctl. With the binary + > > ctl > > you can see in the Grads > > > > > > > > 2010/5/13 Anna Cinzia Marra > > > >> > >> Hello, > >> > >> does anybody have a fortran program which converts measured radar > >> reflectivity data to binary files read by grads? > >> > >> Here is an example of my data files: > >> > >> # Fields: z y x DBZ > >> # Units: km km km dBZ > >> 1 -224.625 -224.625 35 > >> 1 -224.625 -223.875 28 > >> 1 -224.625 -223.125 20 > >> 1 -224.625 -222.375 20 > >> 1 -224.625 -221.625 18 > >> ...................... > >> > >> Thank you very much. > >> > >> Cinzia > >> > >> > >> _______________________________________________ > >> gradsusr mailing list > >> gradsusr at gradsusr.org > >> http://gradsusr.org/mailman/listinfo/gradsusr > >> > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100514/23c49133/attachment.html From Huddleston at cira.colostate.edu Fri May 14 10:12:34 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 14 May 2010 07:12:34 -0700 Subject: [gradsusr] file formats: unix versus windows In-Reply-To: References: , Message-ID: Liping You do not need a dual system. These instructions are for two separate computers on the same network. You basically mount a ntfs drive from a windows system on your Linux system. Have one of your IT Admin folks look at my instructions and help you. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Friday, May 14, 2010 2:47 AM To: Grads Users Subject: Re: [gradsusr] file formats: unix versus windows John, Many thanks! But I don't think my laptop has the dual system, it's only Red Hat Linux. Liping ________________________________ From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Thu, 13 May 2010 14:16:47 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping Go on to your windows box, create a user without admin, set an Id/Passwd for it, share the folder (yourShaeName) with your data, and set permissions to allow that new user to have read and write on it. Go to your Linux box and install smbfs. Under Ubuntu it is 'sudo apt-get install smbfs' Edit the /etc/fstab file on your Linux box and add a new line //yourWindowsServerName/YourShareName /mountDir cifs username=Id,password=passwd 0 0 Make the /mountDir directory Mount /mountDir The names are not literal here; please change them to whatever you want to name them. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Thursday, May 13, 2010 2:37 PM To: Grads Users Subject: [gradsusr] file formats: unix versus windows Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping ________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. ________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100514/49f3997a/attachment.html From arubawx at setarnet.aw Fri May 14 13:16:07 2010 From: arubawx at setarnet.aw (arubawx at setarnet.aw) Date: Fri, 14 May 2010 13:16:07 -0400 Subject: [gradsusr] Unable to start Pygrads In-Reply-To: <61e8ba08$20a95e8b$2081f6c5$@com> References: <61e8ba08$20a95e8b$2081f6c5$@com> Message-ID: An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100514/73671c7a/attachment-0001.html From ochimborazo at gmail.com Fri May 14 18:33:47 2010 From: ochimborazo at gmail.com (Oscar Chimborazo) Date: Fri, 14 May 2010 17:33:47 -0500 Subject: [gradsusr] regrid2 in grads2.0.a8 Message-ID: Hello everybody. I've been trying to install regrid2 with grads 2.0.a8, but I have not been able to do it, please can anyone tell me if there is any other way for regridding. Thank you for your help. Oscar. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100514/caf43ec1/attachment.html From Charles.Seman at noaa.gov Fri May 14 20:35:29 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Fri, 14 May 2010 20:35:29 -0400 Subject: [gradsusr] regrid2 in grads2.0.a8 In-Reply-To: References: Message-ID: <4BEDEC51.8020307@noaa.gov> Oscar, "regrid2" used to be an external user-defined function, but now there are other regridding functions (think these regridding functions in GrADS v2 are User Defined Extensions as described at http://opengrads.org/doc/udxt/re/re.html#history, but I'm not totally clear on the technical term to use)... To check on your user defined extensions... look for a file like "udxt" in your installation directory, or try "opengrads -h", then "opengrads --ga2udxt" or from the command line, try: ga-> q udxt ... and check for "regrid2", "re2", "re_" or "re"... if you have "re", you can check out the "re" documentation at: http://opengrads.org/doc/udxt/re/re.html I'm not sure which of these is recommended (I'm using "re()"; in our GrADS version 2.0.a7.oga.3 udxt file, "regrid2()" is described as a "regrid2-like wrapper for re()"...)... Hope this helps, Chuck Oscar Chimborazo wrote: > Hello everybody. > > I've been trying to install regrid2 with grads 2.0.a8, but I have not > been able to do it, please can anyone tell me if there is any other > way for regridding. > > Thank you for your help. > > Oscar. > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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 reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." From jfj at ntnu.edu.tw Fri May 14 22:56:53 2010 From: jfj at ntnu.edu.tw (jfj) Date: Sat, 15 May 2010 10:56:53 +0800 Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array Message-ID: <001701caf3da$4603e180$d20ba480$@edu.tw> I am more familiar with fortran program than grads script. In Fortran, it is very easy to assign a 2-D array at many levels to a 3-D array. For example, Do k=1,10 Do i=.... Do j=.... Arr3(i,j,k)=arr2(i,j) Enddo Enddo Enddo However, in Grads, I don't know if there is a similar way to do so. "Define" seems not work in this situation. Could anybody help me out on this issue? Thank you very much. jfj at ntnu.edu.tw From flduan at gmail.com Sat May 15 10:15:48 2010 From: flduan at gmail.com (=?GB2312?B?ts671MG8?=) Date: Sat, 15 May 2010 22:15:48 +0800 Subject: [gradsusr] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100515/5ba1d6d1/attachment.html From liping_liuwang at hotmail.com Sat May 15 10:48:48 2010 From: liping_liuwang at hotmail.com (Liping Liu) Date: Sat, 15 May 2010 08:48:48 -0600 Subject: [gradsusr] file formats: unix versus windows In-Reply-To: References: , , , , Message-ID: John, Many thanks. I am sorry that I didn't state my problem clearly. I ran the WRF on a server (Linux), then I downloaded the data files (for GrADs) onto my external hard drive through the network by using windows ftp. Then I deleted those data files on the server. Now I want to upload the data files onto my own laptop (Linux) to do GRADS analysis. But my external hard drive was formatted in ntfs. When I hook the external hard drive into my laptop through the USB slot, I can see the icon "Passport ... " of the external hard drive. But when I click on the hard drive icon, it pops up an error message window saying "the files are in ntfs... cannot be mounted..." . If there is no way to upload those ntfs files from the external hard drive to my Linux laptop, please also kindly let me know. Liping From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Fri, 14 May 2010 07:12:34 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping You do not need a dual system. These instructions are for two separate computers on the same network. You basically mount a ntfs drive from a windows system on your Linux system. Have one of your IT Admin folks look at my instructions and help you. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Friday, May 14, 2010 2:47 AM To: Grads Users Subject: Re: [gradsusr] file formats: unix versus windows John, Many thanks! But I don't think my laptop has the dual system, it's only Red Hat Linux. Liping From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Thu, 13 May 2010 14:16:47 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping Go on to your windows box, create a user without admin, set an Id/Passwd for it, share the folder (yourShaeName) with your data, and set permissions to allow that new user to have read and write on it. Go to your Linux box and install smbfs. Under Ubuntu it is ?sudo apt-get install smbfs? Edit the /etc/fstab file on your Linux box and add a new line //yourWindowsServerName/YourShareName /mountDir cifs username=Id,password=passwd 0 0 Make the /mountDir directory Mount /mountDir The names are not literal here; please change them to whatever you want to name them. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Thursday, May 13, 2010 2:37 PM To: Grads Users Subject: [gradsusr] file formats: unix versus windows Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100515/11c22d90/attachment.html From ochimborazo at gmail.com Sat May 15 19:05:02 2010 From: ochimborazo at gmail.com (Oscar Chimborazo) Date: Sat, 15 May 2010 18:05:02 -0500 Subject: [gradsusr] regrid2 in grads2.0.a8 In-Reply-To: <4BEDEC51.8020307@noaa.gov> References: <4BEDEC51.8020307@noaa.gov> Message-ID: Thank you Charles, Yes, I have been using that option with grads 2.0.a7.oga.3, however, now I want the same for grads 2.0.a8, but opengrads with this version is not available yet...that's why I am trying to do it myself, by the way, I need grads 2.0.a8 because with this version it's posible to draw shp files, and I need these two features at the same time. Oscar On Fri, May 14, 2010 at 7:35 PM, Charles Seman wrote: > Oscar, > > "regrid2" used to be an external user-defined function, but now there > are other regridding functions (think these regridding functions in > GrADS v2 are User Defined Extensions as described at > http://opengrads.org/doc/udxt/re/re.html#history, but I'm not totally > clear on the technical term to use)... > > To check on your user defined extensions... > look for a file like "udxt" in your installation directory, > or try "opengrads -h", then > "opengrads --ga2udxt" > or from the command line, try: > ga-> q udxt > ... > > and check for "regrid2", "re2", "re_" or "re"... > if you have "re", you can check out the "re" documentation at: > http://opengrads.org/doc/udxt/re/re.html > > I'm not sure which of these is recommended (I'm using "re()"; in our > GrADS version 2.0.a7.oga.3 udxt file, "regrid2()" is described as a > "regrid2-like wrapper for re()"...)... > > Hope this helps, > Chuck > > Oscar Chimborazo wrote: > > Hello everybody. > > > > I've been trying to install regrid2 with grads 2.0.a8, but I have not > > been able to do it, please can anyone tell me if there is any other > > way for regridding. > > > > Thank you for your help. > > > > Oscar. > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > -- > > 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 reflect any > official or unofficial position of the United States Federal Government, > the United States Department of Commerce, or NOAA." > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100515/bf53958b/attachment-0001.html From qubo62 at gmail.com Sun May 16 03:43:33 2010 From: qubo62 at gmail.com (Bo Qu) Date: Sun, 16 May 2010 15:43:33 +0800 Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: Hi, I am new to the Grads. Now first thing is trying to find the right directory for my data files and *.ctl file directory. How can I get into my data directory in D drive while Grads is installed in C drive. The sample file of *.ctl is in C:\OpenGrADS\Contents\Resources\SampleDatasets. I could follow the tutorial to run the sampledatasets. But I can not do anything with my own data. Do I need to create three files at the first instant *.ctl, *.grb and *.gmp? How to make later two files? I noticed the user guides in http://grads.iges.org/grads/gadoc/users.html However, I still need a hand to lead me go to the right position to where to start with. Many thanks. Bo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100516/90a5ebc9/attachment.html From teddyallen at yahoo.com Sun May 16 09:24:24 2010 From: teddyallen at yahoo.com (Teddy Allen) Date: Sun, 16 May 2010 06:24:24 -0700 (PDT) Subject: [gradsusr] Help new to grads In-Reply-To: References: Message-ID: <308203.22188.qm@web51503.mail.re2.yahoo.com> Bo, check out these?sites for sample GrADS scripts. Just click on the plot for details. http://ccr.aos.wisc.edu/model/processing/grads/grads1.php http://ccr.aos.wisc.edu/model/processing/grads/grads2.php and http://www.teddyallen.com/computing.html teddy ? http://www.teddyallen.com "To move quickly, go alone. To move far, go together." African Proverb ________________________________ From: Bo Qu To: GrADS Users Forum Sent: Sun, May 16, 2010 3:43:33 AM Subject: Re: [gradsusr] Help new to grads Hi, I am new to the Grads. Now first thing is trying to find the right directory for my data files and *.ctl file directory. How can I get into my data directory in D drive while Grads is installed in C drive. The sample file of *.ctl is in C:\OpenGrADS\Contents\Resources\SampleDatasets. I could follow the tutorial to run the sampledatasets. But I can not do anything with my own data. Do I need to create three files at the first instant *.ctl, *.grb and *.gmp? How to make later two files? I noticed the user guides in http://grads.iges.org/grads/gadoc/users.html However, I still need a hand to lead me go to the right position to where to start with. Many thanks. Bo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100516/44cc5df3/attachment.html From qubo62 at gmail.com Sun May 16 10:30:22 2010 From: qubo62 at gmail.com (Bo Qu) Date: Sun, 16 May 2010 22:30:22 +0800 Subject: [gradsusr] Help new to grads In-Reply-To: <308203.22188.qm@web51503.mail.re2.yahoo.com> References: <308203.22188.qm@web51503.mail.re2.yahoo.com> Message-ID: Thanks very much, Teddy. They are very helpful. I am trying to get ice data out in Greenland Sea. It seems I don't need to create the three files, directly can get the plot and results from some commands. I know Ferret, Grads seems a little like Ferret. Cheers! Bo On Sun, May 16, 2010 at 9:24 PM, Teddy Allen wrote: > Bo, > check out these sites for sample GrADS scripts. Just click on the plot for > details. > http://ccr.aos.wisc.edu/model/processing/grads/grads1.php > http://ccr.aos.wisc.edu/model/processing/grads/grads2.php > and > http://www.teddyallen.com/computing.html > > teddy > > > http://www.teddyallen.com > > "To move quickly, go alone. To move far, go *together*." > > African Proverb > > > ------------------------------ > *From:* Bo Qu > *To:* GrADS Users Forum > *Sent:* Sun, May 16, 2010 3:43:33 AM > *Subject:* Re: [gradsusr] Help new to grads > > Hi, > I am new to the Grads. Now first thing is trying to find the right > directory for my data files and *.ctl file directory. How can I get into my > data directory in D drive while Grads is installed in C drive. > The sample file of *.ctl is in > C:\OpenGrADS\Contents\Resources\SampleDatasets. I could follow the tutorial > to run the sampledatasets. But I can not do anything with my own data. > Do I need to create three files at the first instant *.ctl, *.grb and > *.gmp? How to make later two files? > I noticed the user guides in http://grads.iges.org/grads/gadoc/users.html > However, I still need a hand to lead me go to the right position to where > to start with. > Many thanks. > > Bo > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100516/ba98ec29/attachment.html From admin at agweathernetwork.com Sun May 16 19:27:35 2010 From: admin at agweathernetwork.com (webmaster) Date: Sun, 16 May 2010 18:27:35 -0500 Subject: [gradsusr] draw shp Message-ID: <13E55C960E6540388B34B5FF5E3F4F2E@Personal> using the draw shp option is there a way to assign different colors according to the attributes in the shapefile? so lets say one attribute is 0.05 and another is .25 ect. ect. how would i setup this using... set shpopts thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100516/58fd6ee1/attachment.html From jma at cola.iges.org Sun May 16 20:50:11 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Sun, 16 May 2010 20:50:11 -0400 Subject: [gradsusr] draw shp In-Reply-To: <13E55C960E6540388B34B5FF5E3F4F2E@Personal> References: <13E55C960E6540388B34B5FF5E3F4F2E@Personal> Message-ID: There's an example script in the documentation that shows you how to do this. You use 'q dbf' and parse the output to get the attribute value of each shape, then choose a color to draw that shape. In the example the value is retrieved from a separate file, but the 'q dbf' output it still parsed to get shape attributes, so you'll get the general idea. --Jennifer ftp://iges.org/grads/scripts/draw_pdsi.gs On May 16, 2010, at 7:27 PM, webmaster wrote: > using the draw shp option is there a way to assign different colors > according to the attributes in the shapefile? so lets say one > attribute is 0.05 and another is .25 ect. ect. how would i setup > this using... set shpopts > > thanks > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100516/cf286fc7/attachment.html From qubo62 at gmail.com Sun May 16 22:26:20 2010 From: qubo62 at gmail.com (Bo Qu) Date: Mon, 17 May 2010 10:26:20 +0800 Subject: [gradsusr] Help new to grads In-Reply-To: References: <308203.22188.qm@web51503.mail.re2.yahoo.com> Message-ID: Hi, I got a new problem here. After I changed the environment variable GADDIR to my data file folder which is in D drive, such as D:/seaice/data/, I tried to open my nc data file using sdfopen statement, it tells me that udunits(3): couldn't open units darabase "D:/seaice/data/udunits.dat", no such file or directory. It seems I need to install udunits and how to do it and how to make the file directory working? I am in my window 7 operation system. Many thanks Bo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/55b4c37f/attachment.html From a.marra at isac.cnr.it Mon May 17 06:09:28 2010 From: a.marra at isac.cnr.it (Anna Cinzia Marra) Date: Mon, 17 May 2010 12:09:28 +0200 (CEST) Subject: [gradsusr] Creating data files In-Reply-To: References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> Message-ID: Hello, unfortunately I am starting now with grads. at the moment I am not able to display data from the bin file you sent me. I don't know why. Moreover I am not able also to re-obtain that bin file by means of radar.f and I cannot send you the complte data file because it is too big. I am sorry. Thank you in advance Cinzia > Hello, > > send the file radar complete with the bin+ctl, please. > > > > 2010/5/14 Anna Cinzia Marra > >> Hello, >> thanks a lot. I am trying to convert a complete radar data file, but I >> have some problems with plot. >> I will try again. >> >> Cinzia >> >> > Hello, >> > >> > Send the program at fortran more files binary the ctl. With the binary >> + >> > ctl >> > you can see in the Grads >> > >> > >> > >> > 2010/5/13 Anna Cinzia Marra >> > >> >> >> >> Hello, >> >> >> >> does anybody have a fortran program which converts measured radar >> >> reflectivity data to binary files read by grads? >> >> >> >> Here is an example of my data files: >> >> >> >> # Fields: z y x DBZ >> >> # Units: km km km dBZ >> >> 1 -224.625 -224.625 35 >> >> 1 -224.625 -223.875 28 >> >> 1 -224.625 -223.125 20 >> >> 1 -224.625 -222.375 20 >> >> 1 -224.625 -221.625 18 >> >> ...................... >> >> >> >> Thank you very much. >> >> >> >> Cinzia >> >> >> >> >> >> _______________________________________________ >> >> gradsusr mailing list >> >> gradsusr at gradsusr.org >> >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> >> > _______________________________________________ >> > gradsusr mailing list >> > gradsusr at gradsusr.org >> > http://gradsusr.org/mailman/listinfo/gradsusr >> > >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From puffy78 at gmail.com Mon May 17 10:27:52 2010 From: puffy78 at gmail.com (Alexandre Santos) Date: Mon, 17 May 2010 11:27:52 -0300 Subject: [gradsusr] Creating data files In-Reply-To: References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> Message-ID: Ok. 2010/5/17 Anna Cinzia Marra > Hello, > unfortunately I am starting now with grads. at the moment I am not able to > display data from the bin file you sent me. I don't know why. Moreover I > am not able also to re-obtain that bin file by means of radar.f and I > cannot send you the complte data file because it is too big. > I am sorry. > > Thank you in advance > > Cinzia > > > Hello, > > > > send the file radar complete with the bin+ctl, please. > > > > > > > > 2010/5/14 Anna Cinzia Marra > > > >> Hello, > >> thanks a lot. I am trying to convert a complete radar data file, but I > >> have some problems with plot. > >> I will try again. > >> > >> Cinzia > >> > >> > Hello, > >> > > >> > Send the program at fortran more files binary the ctl. With the binary > >> + > >> > ctl > >> > you can see in the Grads > >> > > >> > > >> > > >> > 2010/5/13 Anna Cinzia Marra > >> > > >> >> > >> >> Hello, > >> >> > >> >> does anybody have a fortran program which converts measured radar > >> >> reflectivity data to binary files read by grads? > >> >> > >> >> Here is an example of my data files: > >> >> > >> >> # Fields: z y x DBZ > >> >> # Units: km km km dBZ > >> >> 1 -224.625 -224.625 35 > >> >> 1 -224.625 -223.875 28 > >> >> 1 -224.625 -223.125 20 > >> >> 1 -224.625 -222.375 20 > >> >> 1 -224.625 -221.625 18 > >> >> ...................... > >> >> > >> >> Thank you very much. > >> >> > >> >> Cinzia > >> >> > >> >> > >> >> _______________________________________________ > >> >> gradsusr mailing list > >> >> gradsusr at gradsusr.org > >> >> http://gradsusr.org/mailman/listinfo/gradsusr > >> >> > >> > _______________________________________________ > >> > gradsusr mailing list > >> > gradsusr at gradsusr.org > >> > http://gradsusr.org/mailman/listinfo/gradsusr > >> > > >> > >> > >> _______________________________________________ > >> gradsusr mailing list > >> gradsusr at gradsusr.org > >> http://gradsusr.org/mailman/listinfo/gradsusr > >> > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/87691e10/attachment.html From Huddleston at cira.colostate.edu Mon May 17 11:04:09 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Mon, 17 May 2010 08:04:09 -0700 Subject: [gradsusr] Creating data files In-Reply-To: References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> Message-ID: Cinzia, Edit the radar.f file you were sent by Alexandre and change the 4x5 array to fit the size of your big dataset. Change the input name to the name of your input file, Alexandre used 'dbz.txt'. This is not so much a GrADS issue as it is a knowledge of programming and building software. After you change the array size to fit your dataset, then create the executable. e.g. gfortran -o dbz radar.f Rerun the application, e.g. ./dbz It will create the datafile dbz.bin and you can use the control file he sent. John Huddleston, PhD -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Anna Cinzia Marra Sent: Monday, May 17, 2010 4:09 AM To: GrADS Users Forum Subject: Re: [gradsusr] Creating data files Hello, unfortunately I am starting now with grads. at the moment I am not able to display data from the bin file you sent me. I don't know why. Moreover I am not able also to re-obtain that bin file by means of radar.f and I cannot send you the complete data file because it is too big. I am sorry. Thank you in advance Cinzia > Hello, > > send the file radar complete with the bin+ctl, please. > > > > 2010/5/14 Anna Cinzia Marra > >> Hello, >> thanks a lot. I am trying to convert a complete radar data file, but I >> have some problems with plot. >> I will try again. >> >> Cinzia >> >> > Hello, >> > >> > Send the program at fortran more files binary the ctl. With the binary >> + >> > ctl >> > you can see in the Grads >> > >> > >> > >> > 2010/5/13 Anna Cinzia Marra >> > >> >> >> >> Hello, >> >> >> >> does anybody have a fortran program which converts measured radar >> >> reflectivity data to binary files read by grads? >> >> >> >> Here is an example of my data files: >> >> >> >> # Fields: z y x DBZ >> >> # Units: km km km dBZ >> >> 1 -224.625 -224.625 35 >> >> 1 -224.625 -223.875 28 >> >> 1 -224.625 -223.125 20 >> >> 1 -224.625 -222.375 20 >> >> 1 -224.625 -221.625 18 >> >> ...................... >> >> >> >> Thank you very much. >> >> >> >> Cinzia >> >> >> >> >> >> _______________________________________________ >> >> gradsusr mailing list >> >> gradsusr at gradsusr.org >> >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> >> > _______________________________________________ >> > gradsusr mailing list >> > gradsusr at gradsusr.org >> > http://gradsusr.org/mailman/listinfo/gradsusr >> > >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From Huddleston at cira.colostate.edu Mon May 17 13:10:29 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Mon, 17 May 2010 10:10:29 -0700 Subject: [gradsusr] file formats: unix versus windows In-Reply-To: References: , , , , Message-ID: Liping, Since they are connected via the USB port you can still treat it like a mount. Use 'sudo blkid' to identify the UUID of the device. Sudo Edit the /etc/fstab file (make a backup first) and add a line at the bottom similar to your ext lines with a new mount point; however, the device will be ntfs and not ext3 or ext4. Make a directory of the same name as your mount point. mount /yourMountPoint Some people use /media/usb1 to clearly identify it. Use what you can remember easily. Unmount it if you are going to disconnect the USB drive. John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Saturday, May 15, 2010 8:49 AM To: Grads Users Subject: Re: [gradsusr] file formats: unix versus windows John, Many thanks. I am sorry that I didn't state my problem clearly. I ran the WRF on a server (Linux), then I downloaded the data files (for GrADs) onto my external hard drive through the network by using windows ftp. Then I deleted those data files on the server. Now I want to upload the data files onto my own laptop (Linux) to do GRADS analysis. But my external hard drive was formatted in ntfs. When I hook the external hard drive into my laptop through the USB slot, I can see the icon "Passport ... " of the external hard drive. But when I click on the hard drive icon, it pops up an error message window saying "the files are in ntfs... cannot be mounted..." . If there is no way to upload those ntfs files from the external hard drive to my Linux laptop, please also kindly let me know. Liping ________________________________ From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Fri, 14 May 2010 07:12:34 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping You do not need a dual system. These instructions are for two separate computers on the same network. You basically mount a ntfs drive from a windows system on your Linux system. Have one of your IT Admin folks look at my instructions and help you. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Friday, May 14, 2010 2:47 AM To: Grads Users Subject: Re: [gradsusr] file formats: unix versus windows John, Many thanks! But I don't think my laptop has the dual system, it's only Red Hat Linux. Liping ________________________________ From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Thu, 13 May 2010 14:16:47 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping Go on to your windows box, create a user without admin, set an Id/Passwd for it, share the folder (yourShaeName) with your data, and set permissions to allow that new user to have read and write on it. Go to your Linux box and install smbfs. Under Ubuntu it is 'sudo apt-get install smbfs' Edit the /etc/fstab file on your Linux box and add a new line //yourWindowsServerName/YourShareName /mountDir cifs username=Id,password=passwd 0 0 Make the /mountDir directory Mount /mountDir The names are not literal here; please change them to whatever you want to name them. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Thursday, May 13, 2010 2:37 PM To: Grads Users Subject: [gradsusr] file formats: unix versus windows Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping ________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. ________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. ________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/8bf77b11/attachment-0001.html From liping_liuwang at hotmail.com Mon May 17 13:44:17 2010 From: liping_liuwang at hotmail.com (Liping Liu) Date: Mon, 17 May 2010 11:44:17 -0600 Subject: [gradsusr] file formats: unix versus windows In-Reply-To: References: , , , , , , , , , Message-ID: Hi John, Many thanks! Just found these two websites: 1. Update Red Hat Linux to read Microsoft's NTFS http://articles.techrepublic.com.com/5100-10878_11-5032877.html 2. How to mount partition with ntfs file systems and read write access http://www.linuxconfig.org/How_to_mount_partition_with_ntfs_file_system_and_read_write_access Do you think they might be helpful? Thanks. Liping From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Mon, 17 May 2010 10:10:29 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping, Since they are connected via the USB port you can still treat it like a mount. Use ?sudo blkid? to identify the UUID of the device. Sudo Edit the /etc/fstab file (make a backup first) and add a line at the bottom similar to your ext lines with a new mount point; however, the device will be ntfs and not ext3 or ext4. Make a directory of the same name as your mount point. mount /yourMountPoint Some people use /media/usb1 to clearly identify it. Use what you can remember easily. Unmount it if you are going to disconnect the USB drive. John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Saturday, May 15, 2010 8:49 AM To: Grads Users Subject: Re: [gradsusr] file formats: unix versus windows John, Many thanks. I am sorry that I didn't state my problem clearly. I ran the WRF on a server (Linux), then I downloaded the data files (for GrADs) onto my external hard drive through the network by using windows ftp. Then I deleted those data files on the server. Now I want to upload the data files onto my own laptop (Linux) to do GRADS analysis. But my external hard drive was formatted in ntfs. When I hook the external hard drive into my laptop through the USB slot, I can see the icon "Passport ... " of the external hard drive. But when I click on the hard drive icon, it pops up an error message window saying "the files are in ntfs... cannot be mounted..." . If there is no way to upload those ntfs files from the external hard drive to my Linux laptop, please also kindly let me know. Liping From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Fri, 14 May 2010 07:12:34 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping You do not need a dual system. These instructions are for two separate computers on the same network. You basically mount a ntfs drive from a windows system on your Linux system. Have one of your IT Admin folks look at my instructions and help you. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Friday, May 14, 2010 2:47 AM To: Grads Users Subject: Re: [gradsusr] file formats: unix versus windows John, Many thanks! But I don't think my laptop has the dual system, it's only Red Hat Linux. Liping From: Huddleston at cira.colostate.edu To: gradsusr at gradsusr.org Date: Thu, 13 May 2010 14:16:47 -0700 Subject: Re: [gradsusr] file formats: unix versus windows Liping Go on to your windows box, create a user without admin, set an Id/Passwd for it, share the folder (yourShaeName) with your data, and set permissions to allow that new user to have read and write on it. Go to your Linux box and install smbfs. Under Ubuntu it is ?sudo apt-get install smbfs? Edit the /etc/fstab file on your Linux box and add a new line //yourWindowsServerName/YourShareName /mountDir cifs username=Id,password=passwd 0 0 Make the /mountDir directory Mount /mountDir The names are not literal here; please change them to whatever you want to name them. John Huddleston, PhD From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Liping Liu Sent: Thursday, May 13, 2010 2:37 PM To: Grads Users Subject: [gradsusr] file formats: unix versus windows Hi, Many thanks, especially to those who answered my previous question about plotting multi-figures into one page. Another question: I have my harddrive formatted in windows (ntsf), but now I want to download the files into my Linux laptop. Is there any way to convert the files into the format such that the Linux can read? Liping Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy. The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy. _________________________________________________________________ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/8b3ad278/attachment-0001.html From ela at cola.iges.org Mon May 17 13:49:41 2010 From: ela at cola.iges.org (Eric Altshuler) Date: Mon, 17 May 2010 13:49:41 -0400 (EDT) Subject: [gradsusr] Help new to grads In-Reply-To: <2065129011.490.1274118558304.JavaMail.root@mail.iges.org> Message-ID: <1873185697.492.1274118581870.JavaMail.root@mail.iges.org> Bo, GADDIR specifies the path to the directory containing font files, map outline data, udunits.dat, etc. These files are needed by grads for almost all its operations, and they should be included in the Opengrads packages. I'm not too familiar with Opengrads, but the windows version is supposed to be relocatable so it should not be necessary to change GADDIR. In particular, do not set GADDIR to the path to your own data. Instead, do something along these lines: sdfopen d:/seaice/data/filename.nc You don't need to install udunits as long as GADDIR is set properly. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "Bo Qu" To: "GrADS Users Forum" Sent: Sunday, May 16, 2010 10:26:20 PM Subject: Re: [gradsusr] Help new to grads Hi, I got a new problem here. After I changed the environment variable GADDIR to my data file folder which is in D drive, such as D:/seaice/data/, I tried to open my nc data file using sdfopen statement, it tells me that udunits(3): couldn't open units darabase "D:/seaice/data/udunits.dat", no such file or directory. It seems I need to install udunits and how to do it and how to make the file directory working? I am in my window 7 operation system. Many thanks Bo _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From arubawx at setarnet.aw Mon May 17 14:27:02 2010 From: arubawx at setarnet.aw (Marck Oduber) Date: Mon, 17 May 2010 18:27:02 -0000 Subject: [gradsusr] EOF shaded contours Windows Grads Message-ID: <000c01caf5ee$8bd05bb0$0e00a8c0@forecaster> Hi I was wondering if there's a way to get shaded contours when running the eof program from http://www.atmos.ucla.edu/~munnich/Grads/EOF/? I tried: 'set gxout shaded' but that does not help. I hope its not locked in the file eofudf.exe Grads 1.8SL11 Winxp Regards Marck -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/44c748ec/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: nao.gif Type: image/gif Size: 53939 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100517/44c748ec/attachment-0001.gif From ela at cola.iges.org Mon May 17 14:32:29 2010 From: ela at cola.iges.org (Eric Altshuler) Date: Mon, 17 May 2010 14:32:29 -0400 (EDT) Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array In-Reply-To: <112435538.522.1274121112965.JavaMail.root@mail.iges.org> Message-ID: <555922254.524.1274121149907.JavaMail.root@mail.iges.org> Hello jfj, You could do this using the fwrite capability in grads: 'set gxout fwrite' 'set fwrite arr3.dat' k=1 while (k<=10) 'd arr2' k=k+1 endwhile 'disable fwrite' After doing this, you'll have a binary file 'arr3.dat'. Make a ctl file 'arr3.ctl' for this data file similar to the one below (make the appropriate changes for your data): dset arr3.dat title arr3 undef -9.99e8 xdef 100 linear 0 0.25 ydef 100 linear 0 0.25 zdef 10 levels 1000 925 850 700 600 500 400 300 200 100 tdef 1 linear 00z01jan2010 6hr vars 1 arr3 10 99 arr3 endvars When you open arr3.ctl, the variable 'arr3' will be a 3-D variable with the values of arr2 copied to all 10 vertical levels. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "jfj" To: gradsusr at gradsusr.org Sent: Friday, May 14, 2010 10:56:53 PM Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array I am more familiar with fortran program than grads script. In Fortran, it is very easy to assign a 2-D array at many levels to a 3-D array. For example, Do k=1,10 Do i=.... Do j=.... Arr3(i,j,k)=arr2(i,j) Enddo Enddo Enddo However, in Grads, I don't know if there is a similar way to do so. "Define" seems not work in this situation. Could anybody help me out on this issue? Thank you very much. jfj at ntnu.edu.tw _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From jdduda at iastate.edu Mon May 17 15:26:00 2010 From: jdduda at iastate.edu (Jeffrey Duda) Date: Mon, 17 May 2010 14:26:00 -0500 Subject: [gradsusr] Grads and MODE Message-ID: Hello, Has anyone used MODE before? I want to view the objects that are output from MODE in Grads by viewing the mode_......._obj.nc file that it produces when it runs. I know I can use ncview to view this file, but I want to use it in Grads and use the maskout function to do some testing of the objects compared to the raw precipitation fields I have. I've tried using sdfopen and xdfopen to open the file, but it always says "file has no discernable x coordinate." Does anyone know how I can get this file to open in Grads? Thanks. Jeff Duda -- 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/20100517/8f7eb2df/attachment.html From arubawx at setarnet.aw Mon May 17 16:32:18 2010 From: arubawx at setarnet.aw (arubawx at setarnet.aw) Date: Mon, 17 May 2010 16:32:18 -0400 Subject: [gradsusr] EOF shaded contours Windows Grads In-Reply-To: <000c01caf5ee$8bd05bb0$0e00a8c0@forecaster> References: <000c01caf5ee$8bd05bb0$0e00a8c0@forecaster> Message-ID: never mind my question on contouring of eof . I have just noticed that a separate file is created, where one can better display the data after running the eofudf.exe regards marck ----- Original Message ----- From: Marck Oduber Date: Monday, May 17, 2010 2:53 pm Subject: [gradsusr] EOF shaded contours Windows Grads To: GrADS Users Forum > Hi I was wondering if there's a way to get shaded contours when running the eof program from http://www.atmos.ucla.edu/~munnich/Grads/EOF/? ? > I tried: ?'set gxout shaded' but that does not help. I hope its not?locked in the file eofudf.exe > Grads 1.8SL11 Winxp ? > Regards ? > Marck ? > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/782b458f/attachment.html From jfj at ntnu.edu.tw Mon May 17 20:52:54 2010 From: jfj at ntnu.edu.tw (jfj) Date: Tue, 18 May 2010 08:52:54 +0800 Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array In-Reply-To: <555922254.524.1274121149907.JavaMail.root@mail.iges.org> References: <112435538.522.1274121112965.JavaMail.root@mail.iges.org> <555922254.524.1274121149907.JavaMail.root@mail.iges.org> Message-ID: <001801caf624$731bfcb0$5953f610$@edu.tw> Thank you, Erik. Sorry that I did not say it clearly. The 2-D arrays are at 10 different levels with different values. But, it is very easy to fix according to the idea you provided. However, I actually need to use the 3-D array for calculation right away in the same script. Do you know how to read it in right after I fwrite it out? Thank you again. -----Original Message----- From: Eric Altshuler [mailto:ela at cola.iges.org] Sent: Tuesday, May 18, 2010 2:32 AM To: jfj at ntnu.edu.tw; GrADS Users Forum Subject: Re: [gradsusr] How to assign a 2-D array at many levels to a 3-D array Hello jfj, You could do this using the fwrite capability in grads: 'set gxout fwrite' 'set fwrite arr3.dat' k=1 while (k<=10) 'd arr2' k=k+1 endwhile 'disable fwrite' After doing this, you'll have a binary file 'arr3.dat'. Make a ctl file 'arr3.ctl' for this data file similar to the one below (make the appropriate changes for your data): dset arr3.dat title arr3 undef -9.99e8 xdef 100 linear 0 0.25 ydef 100 linear 0 0.25 zdef 10 levels 1000 925 850 700 600 500 400 300 200 100 tdef 1 linear 00z01jan2010 6hr vars 1 arr3 10 99 arr3 endvars When you open arr3.ctl, the variable 'arr3' will be a 3-D variable with the values of arr2 copied to all 10 vertical levels. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "jfj" To: gradsusr at gradsusr.org Sent: Friday, May 14, 2010 10:56:53 PM Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array I am more familiar with fortran program than grads script. In Fortran, it is very easy to assign a 2-D array at many levels to a 3-D array. For example, Do k=1,10 Do i=.... Do j=.... Arr3(i,j,k)=arr2(i,j) Enddo Enddo Enddo However, in Grads, I don't know if there is a similar way to do so. "Define" seems not work in this situation. Could anybody help me out on this issue? Thank you very much. jfj at ntnu.edu.tw _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From qubo62 at gmail.com Mon May 17 21:23:45 2010 From: qubo62 at gmail.com (Bo Qu) Date: Tue, 18 May 2010 09:23:45 +0800 Subject: [gradsusr] Help new to grads In-Reply-To: <1873185697.492.1274118581870.JavaMail.root@mail.iges.org> References: <2065129011.490.1274118558304.JavaMail.root@mail.iges.org> <1873185697.492.1274118581870.JavaMail.root@mail.iges.org> Message-ID: Thanks very much for your guidance, Eric. Best Regards Bo On Tue, May 18, 2010 at 1:49 AM, Eric Altshuler wrote: > Bo, > > GADDIR specifies the path to the directory containing font files, map > outline data, udunits.dat, etc. These files are needed by grads for almost > all its operations, and they should be included in the Opengrads packages. > I'm not too familiar with Opengrads, but the windows version is supposed to > be relocatable so it should not be necessary to change GADDIR. In > particular, do not set GADDIR to the path to your own data. Instead, do > something along these lines: > > sdfopen d:/seaice/data/filename.nc > > You don't need to install udunits as long as GADDIR is set properly. > > Best regards, > > Eric L. Altshuler > Assistant Research Scientist > Center for Ocean-Land-Atmosphere Studies > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705-3106 > USA > > E-mail: ela at cola.iges.org > Phone: (301) 902-1257 > Fax: (301) 595-9793 > > ----- Original Message ----- > From: "Bo Qu" > To: "GrADS Users Forum" > Sent: Sunday, May 16, 2010 10:26:20 PM > Subject: Re: [gradsusr] Help new to grads > > Hi, > I got a new problem here. After I changed the environment variable > GADDIR to my data file folder which is in D drive, such as > D:/seaice/data/, I tried to open my nc data file using sdfopen > statement, it tells me that udunits(3): couldn't open units darabase > "D:/seaice/data/udunits.dat", no such file or directory. It seems I need > to install udunits and how to do it and how to make the file directory > working? I am in my window 7 operation system. > > Many thanks > Bo > > > > _______________________________________________ gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100518/45527477/attachment.html From ela at cola.iges.org Mon May 17 21:30:00 2010 From: ela at cola.iges.org (Eric Altshuler) Date: Mon, 17 May 2010 21:30:00 -0400 (EDT) Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array In-Reply-To: <1957990151.643.1274146163183.JavaMail.root@mail.iges.org> Message-ID: <1338315852.645.1274146200264.JavaMail.root@mail.iges.org> After you create the ctl file for your new 3-D variable, put in your script the line 'open arr3.ctl' at any point after 'disable fwrite'. (It is important to disable (close) the fwrite file before you try to read the data in it.) You can then use the variable arr3 (or whatever you decide to name it) like any other grads data variable. Of course, when you open arr3.ctl, the new variable will be in a new data file, and grads will assign it a file number according to the number of files you currently have open. If it is the second file you have opened, you can access it using 'arr3.2' in expressions (keeping in mind the current default file and dimension environment and whether it is compatible with the dimension ranges specified in arr3.ctl), or you could 'set dfile 2', modify the dimension environment if necessary, and proceed from there. ----- Original Message ----- From: "jfj" To: "Eric Altshuler" , "GrADS Users Forum" Sent: Monday, May 17, 2010 8:52:54 PM Subject: RE: [gradsusr] How to assign a 2-D array at many levels to a 3-D array Thank you, Erik. Sorry that I did not say it clearly. The 2-D arrays are at 10 different levels with different values. But, it is very easy to fix according to the idea you provided. However, I actually need to use the 3-D array for calculation right away in the same script. Do you know how to read it in right after I fwrite it out? Thank you again. -----Original Message----- From: Eric Altshuler [mailto:ela at cola.iges.org] Sent: Tuesday, May 18, 2010 2:32 AM To: jfj at ntnu.edu.tw; GrADS Users Forum Subject: Re: [gradsusr] How to assign a 2-D array at many levels to a 3-D array Hello jfj, You could do this using the fwrite capability in grads: 'set gxout fwrite' 'set fwrite arr3.dat' k=1 while (k<=10) 'd arr2' k=k+1 endwhile 'disable fwrite' After doing this, you'll have a binary file 'arr3.dat'. Make a ctl file 'arr3.ctl' for this data file similar to the one below (make the appropriate changes for your data): dset arr3.dat title arr3 undef -9.99e8 xdef 100 linear 0 0.25 ydef 100 linear 0 0.25 zdef 10 levels 1000 925 850 700 600 500 400 300 200 100 tdef 1 linear 00z01jan2010 6hr vars 1 arr3 10 99 arr3 endvars When you open arr3.ctl, the variable 'arr3' will be a 3-D variable with the values of arr2 copied to all 10 vertical levels. Best regards, Eric L. Altshuler Assistant Research Scientist Center for Ocean-Land-Atmosphere Studies 4041 Powder Mill Road, Suite 302 Calverton, MD 20705-3106 USA E-mail: ela at cola.iges.org Phone: (301) 902-1257 Fax: (301) 595-9793 ----- Original Message ----- From: "jfj" To: gradsusr at gradsusr.org Sent: Friday, May 14, 2010 10:56:53 PM Subject: [gradsusr] How to assign a 2-D array at many levels to a 3-D array I am more familiar with fortran program than grads script. In Fortran, it is very easy to assign a 2-D array at many levels to a 3-D array. For example, Do k=1,10 Do i=.... Do j=.... Arr3(i,j,k)=arr2(i,j) Enddo Enddo Enddo However, in Grads, I don't know if there is a similar way to do so. "Define" seems not work in this situation. Could anybody help me out on this issue? Thank you very much. jfj at ntnu.edu.tw _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From admin at agweathernetwork.com Tue May 18 00:56:12 2010 From: admin at agweathernetwork.com (Piper) Date: Mon, 17 May 2010 23:56:12 -0500 Subject: [gradsusr] txt to GrADS conversion Message-ID: <3BB43AC512774BB3ACEF8D9D76185C35@Personal> Using data with a format like this from a txt file... LAT LON TMP 44.08 -103.37 71 44.08 -103.25 74 44.08 -103.22 73 44.07 -110.72 69 would anyone be willing to share a script or a fortran example on how to convert to GrADS so i could plot the tmp values to a map? Thanks, Piper -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100517/c6a58300/attachment-0001.html From a.marra at isac.cnr.it Tue May 18 03:54:00 2010 From: a.marra at isac.cnr.it (Anna Cinzia Marra) Date: Tue, 18 May 2010 09:54:00 +0200 (CEST) Subject: [gradsusr] Creating data files In-Reply-To: References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> Message-ID: <734fa42e7cf61e6f46aec9d51c02dcb6.squirrel@posta.le.isac.cnr.it> Hello John, thanks a lot, but that's not a problem of fortran. I hhad already modified radar.f according to my complete data file. Maybe I am not modifying in the right way the control file. Cinzia > Cinzia, > > Edit the radar.f file you were sent by Alexandre and change the 4x5 array > to fit the size of your big dataset. > > Change the input name to the name of your input file, Alexandre used > 'dbz.txt'. > > This is not so much a GrADS issue as it is a knowledge of programming and > building software. > > After you change the array size to fit your dataset, then create the > executable. e.g. gfortran -o dbz radar.f > > Rerun the application, e.g. ./dbz > > It will create the datafile dbz.bin and you can use the control file he > sent. > > > John Huddleston, PhD > > > -----Original Message----- > From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] > On Behalf Of Anna Cinzia Marra > Sent: Monday, May 17, 2010 4:09 AM > To: GrADS Users Forum > Subject: Re: [gradsusr] Creating data files > > Hello, > unfortunately I am starting now with grads. at the moment I am not able to > display data from the bin file you sent me. I don't know why. Moreover I > am not able also to re-obtain that bin file by means of radar.f and I > cannot send you the complete data file because it is too big. > I am sorry. > > Thank you in advance > > Cinzia > >> Hello, >> >> send the file radar complete with the bin+ctl, please. >> >> >> >> 2010/5/14 Anna Cinzia Marra >> >>> Hello, >>> thanks a lot. I am trying to convert a complete radar data file, but I >>> have some problems with plot. >>> I will try again. >>> >>> Cinzia >>> >>> > Hello, >>> > >>> > Send the program at fortran more files binary the ctl. With the >>> binary >>> + >>> > ctl >>> > you can see in the Grads >>> > >>> > >>> > >>> > 2010/5/13 Anna Cinzia Marra >>> > >>> >> >>> >> Hello, >>> >> >>> >> does anybody have a fortran program which converts measured radar >>> >> reflectivity data to binary files read by grads? >>> >> >>> >> Here is an example of my data files: >>> >> >>> >> # Fields: z y x DBZ >>> >> # Units: km km km dBZ >>> >> 1 -224.625 -224.625 35 >>> >> 1 -224.625 -223.875 28 >>> >> 1 -224.625 -223.125 20 >>> >> 1 -224.625 -222.375 20 >>> >> 1 -224.625 -221.625 18 >>> >> ...................... >>> >> >>> >> Thank you very much. >>> >> >>> >> Cinzia >>> >> >>> >> >>> >> _______________________________________________ >>> >> gradsusr mailing list >>> >> gradsusr at gradsusr.org >>> >> http://gradsusr.org/mailman/listinfo/gradsusr >>> >> >>> > _______________________________________________ >>> > gradsusr mailing list >>> > gradsusr at gradsusr.org >>> > http://gradsusr.org/mailman/listinfo/gradsusr >>> > >>> >>> >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >>> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > From puffy78 at gmail.com Tue May 18 05:05:16 2010 From: puffy78 at gmail.com (Alexandre Santos) Date: Tue, 18 May 2010 06:05:16 -0300 Subject: [gradsusr] Creating data files In-Reply-To: <734fa42e7cf61e6f46aec9d51c02dcb6.squirrel@posta.le.isac.cnr.it> References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> <734fa42e7cf61e6f46aec9d51c02dcb6.squirrel@posta.le.isac.cnr.it> Message-ID: I Understand. Other question can consult. Alexandre 2010/5/18 Anna Cinzia Marra > Hello John, > thanks a lot, but that's not a problem of fortran. I hhad already modified > radar.f according to my complete data file. Maybe I am not modifying in > the right way the control file. > > Cinzia > > > Cinzia, > > > > Edit the radar.f file you were sent by Alexandre and change the 4x5 array > > to fit the size of your big dataset. > > > > Change the input name to the name of your input file, Alexandre used > > 'dbz.txt'. > > > > This is not so much a GrADS issue as it is a knowledge of programming and > > building software. > > > > After you change the array size to fit your dataset, then create the > > executable. e.g. gfortran -o dbz radar.f > > > > Rerun the application, e.g. ./dbz > > > > It will create the datafile dbz.bin and you can use the control file he > > sent. > > > > > > John Huddleston, PhD > > > > > > -----Original Message----- > > From: gradsusr-bounces at gradsusr.org [mailto: > gradsusr-bounces at gradsusr.org] > > On Behalf Of Anna Cinzia Marra > > Sent: Monday, May 17, 2010 4:09 AM > > To: GrADS Users Forum > > Subject: Re: [gradsusr] Creating data files > > > > Hello, > > unfortunately I am starting now with grads. at the moment I am not able > to > > display data from the bin file you sent me. I don't know why. Moreover I > > am not able also to re-obtain that bin file by means of radar.f and I > > cannot send you the complete data file because it is too big. > > I am sorry. > > > > Thank you in advance > > > > Cinzia > > > >> Hello, > >> > >> send the file radar complete with the bin+ctl, please. > >> > >> > >> > >> 2010/5/14 Anna Cinzia Marra > >> > >>> Hello, > >>> thanks a lot. I am trying to convert a complete radar data file, but I > >>> have some problems with plot. > >>> I will try again. > >>> > >>> Cinzia > >>> > >>> > Hello, > >>> > > >>> > Send the program at fortran more files binary the ctl. With the > >>> binary > >>> + > >>> > ctl > >>> > you can see in the Grads > >>> > > >>> > > >>> > > >>> > 2010/5/13 Anna Cinzia Marra > >>> > > >>> >> > >>> >> Hello, > >>> >> > >>> >> does anybody have a fortran program which converts measured radar > >>> >> reflectivity data to binary files read by grads? > >>> >> > >>> >> Here is an example of my data files: > >>> >> > >>> >> # Fields: z y x DBZ > >>> >> # Units: km km km dBZ > >>> >> 1 -224.625 -224.625 35 > >>> >> 1 -224.625 -223.875 28 > >>> >> 1 -224.625 -223.125 20 > >>> >> 1 -224.625 -222.375 20 > >>> >> 1 -224.625 -221.625 18 > >>> >> ...................... > >>> >> > >>> >> Thank you very much. > >>> >> > >>> >> Cinzia > >>> >> > >>> >> > >>> >> _______________________________________________ > >>> >> gradsusr mailing list > >>> >> gradsusr at gradsusr.org > >>> >> http://gradsusr.org/mailman/listinfo/gradsusr > >>> >> > >>> > _______________________________________________ > >>> > gradsusr mailing list > >>> > gradsusr at gradsusr.org > >>> > http://gradsusr.org/mailman/listinfo/gradsusr > >>> > > >>> > >>> > >>> _______________________________________________ > >>> gradsusr mailing list > >>> gradsusr at gradsusr.org > >>> http://gradsusr.org/mailman/listinfo/gradsusr > >>> > >> _______________________________________________ > >> gradsusr mailing list > >> gradsusr at gradsusr.org > >> http://gradsusr.org/mailman/listinfo/gradsusr > >> > > > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100518/293526ae/attachment.html From a.marra at isac.cnr.it Tue May 18 05:47:19 2010 From: a.marra at isac.cnr.it (Anna Cinzia Marra) Date: Tue, 18 May 2010 11:47:19 +0200 (CEST) Subject: [gradsusr] Creating data files In-Reply-To: References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> <734fa42e7cf61e6f46aec9d51c02dcb6.squirrel@posta.le.isac.cnr.it> Message-ID: <9aae6385de2692f6575057cd1c29ddda.squirrel@posta.le.isac.cnr.it> Hello Alexandre, my radar data file has this structure, as I already told you: # Fields: z y x DBZ # Units: km km km dBZ 1 -224.625 -224.625 35 1 -224.625 -223.875 28 1 -224.625 -223.125 20 1 -224.625 -222.375 20 1 -224.625 -221.625 18 They are related to a single radar scan (so only one time), but they have 20 z levels (from 1 km to 15.25 km every 0.75 km), 600 y points and 600 x points (from -224.625 km to 224.625 km every 0.75 km). Both x and y are obviously related to longitude and latitude. I modified radar.f in order to account for my big dataset. I modified your control file in the following way dset ^0dbz.bin title Analysis DBZ undef -32 xdef 600 linear -224.625 0.75 ydef 600 linear -224.625 0.75 zdef 20 levels 15.25 14.5 13.75 13 12.25 11.5 10.75 10 9.25 8.5 7.75 7 6.25 5.5 4.75 4 3.25 2.5 1.75 1 tdef 1 linear 22oct2005 1mn vars 4 z 0 999 z(km) y 0 999 y(km) x 0 999 x(km) dbz 20 999 DBZ endvars but I cannot see anything reasonable with grads. What am I wrong? Thank again. Cinzia > I Understand. Other question can consult. > > Alexandre > > > > > > 2010/5/18 Anna Cinzia Marra > >> Hello John, >> thanks a lot, but that's not a problem of fortran. I hhad already >> modified >> radar.f according to my complete data file. Maybe I am not modifying in >> the right way the control file. >> >> Cinzia >> >> > Cinzia, >> > >> > Edit the radar.f file you were sent by Alexandre and change the 4x5 >> array >> > to fit the size of your big dataset. >> > >> > Change the input name to the name of your input file, Alexandre used >> > 'dbz.txt'. >> > >> > This is not so much a GrADS issue as it is a knowledge of programming >> and >> > building software. >> > >> > After you change the array size to fit your dataset, then create the >> > executable. e.g. gfortran -o dbz radar.f >> > >> > Rerun the application, e.g. ./dbz >> > >> > It will create the datafile dbz.bin and you can use the control file >> he >> > sent. >> > >> > >> > John Huddleston, PhD >> > >> > >> > -----Original Message----- >> > From: gradsusr-bounces at gradsusr.org [mailto: >> gradsusr-bounces at gradsusr.org] >> > On Behalf Of Anna Cinzia Marra >> > Sent: Monday, May 17, 2010 4:09 AM >> > To: GrADS Users Forum >> > Subject: Re: [gradsusr] Creating data files >> > >> > Hello, >> > unfortunately I am starting now with grads. at the moment I am not >> able >> to >> > display data from the bin file you sent me. I don't know why. Moreover >> I >> > am not able also to re-obtain that bin file by means of radar.f and I >> > cannot send you the complete data file because it is too big. >> > I am sorry. >> > >> > Thank you in advance >> > >> > Cinzia >> > >> >> Hello, >> >> >> >> send the file radar complete with the bin+ctl, please. >> >> >> >> >> >> >> >> 2010/5/14 Anna Cinzia Marra >> >> >> >>> Hello, >> >>> thanks a lot. I am trying to convert a complete radar data file, but >> I >> >>> have some problems with plot. >> >>> I will try again. >> >>> >> >>> Cinzia >> >>> >> >>> > Hello, >> >>> > >> >>> > Send the program at fortran more files binary the ctl. With the >> >>> binary >> >>> + >> >>> > ctl >> >>> > you can see in the Grads >> >>> > >> >>> > >> >>> > >> >>> > 2010/5/13 Anna Cinzia Marra >> >>> > >> >>> >> >> >>> >> Hello, >> >>> >> >> >>> >> does anybody have a fortran program which converts measured radar >> >>> >> reflectivity data to binary files read by grads? >> >>> >> >> >>> >> Here is an example of my data files: >> >>> >> >> >>> >> # Fields: z y x DBZ >> >>> >> # Units: km km km dBZ >> >>> >> 1 -224.625 -224.625 35 >> >>> >> 1 -224.625 -223.875 28 >> >>> >> 1 -224.625 -223.125 20 >> >>> >> 1 -224.625 -222.375 20 >> >>> >> 1 -224.625 -221.625 18 >> >>> >> ...................... >> >>> >> >> >>> >> Thank you very much. >> >>> >> >> >>> >> Cinzia >> >>> >> >> >>> >> >> >>> >> _______________________________________________ >> >>> >> gradsusr mailing list >> >>> >> gradsusr at gradsusr.org >> >>> >> http://gradsusr.org/mailman/listinfo/gradsusr >> >>> >> >> >>> > _______________________________________________ >> >>> > gradsusr mailing list >> >>> > gradsusr at gradsusr.org >> >>> > http://gradsusr.org/mailman/listinfo/gradsusr >> >>> > >> >>> >> >>> >> >>> _______________________________________________ >> >>> gradsusr mailing list >> >>> gradsusr at gradsusr.org >> >>> http://gradsusr.org/mailman/listinfo/gradsusr >> >>> >> >> _______________________________________________ >> >> gradsusr mailing list >> >> gradsusr at gradsusr.org >> >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> >> > >> > >> > _______________________________________________ >> > gradsusr mailing list >> > gradsusr at gradsusr.org >> > http://gradsusr.org/mailman/listinfo/gradsusr >> > >> > _______________________________________________ >> > gradsusr mailing list >> > gradsusr at gradsusr.org >> > http://gradsusr.org/mailman/listinfo/gradsusr >> > >> > >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From liping_liuwang at hotmail.com Tue May 18 06:32:35 2010 From: liping_liuwang at hotmail.com (Liping Liu) Date: Tue, 18 May 2010 04:32:35 -0600 Subject: [gradsusr] plotting time in hovmoller pictures In-Reply-To: <4BEB2752.70205@noaa.gov> References: , <4BEB2752.70205@noaa.gov> Message-ID: Thanks for the answers to my previous question. The "parea" and "vpage" commands work, but I have to specify the picture size every time. I want a more robotic (generic) approach, if possible. The GrADS template data descriptor is a wonderful idea! But does it only do aggregating or concatenating? I want to manipulate the fields before I plot out the hovmollers: First I plot the hovmoller using data from file 1 for Aug10-15: 'set yflip on' 'set lev 1000' 'set tlsupp year' 'set t 2 48' 'set lat 15' 'set gxout shaded' 'set grads off' 'd ave(olr.1,lat=5,lat=25)' Then I want to add the hovmoller plot using data from file 1 and file 2 for Aug15-20: 'set t 49 80' 'd ave((olr.1+olr.2)/2,lat=5,lat=25)' Question: Is it possible that I write the fields (olr) from different data files (with different ctl files) into one data file with one ctl file? Thanks! Liping > Date: Wed, 12 May 2010 18:10:26 -0400 > From: Charles.Seman at noaa.gov > To: gradsusr at gradsusr.org > Subject: Re: [gradsusr] plotting time in hovmoller pictures > > Liping Liu, > > You might also be able to use GrADS templates to "concatenate" the "olr" > fields from file 1 and file 2 into a single time series within GrADS as > follows: > > 'open olr_template.ctl' > 'set yflip on' > 'set lev 1000' > 'set tlsupp year' > 'set t 2 80' > 'set lat 15' > 'set gxout shaded' > 'set grads off' > 'd ave(olr,lat=5,lat=25)' > > where "olr" is the name of the variable in the "vars" section of the > GrADS template data descriptor file "olr_template.ctl" (please see the > examples at http://grads.iges.org/grads/gadoc/templates.html which can > give you some ideas for what your "olr_template.ctl" might need)... > briefly, a template data descriptor file for time differs from a single > dataset data descriptor file in the "dset" record, a required "options > template" record, and in the "tdef" record (in which the number of time > levels in the template data descriptor file is the sum of the time > levels for each of the component datasets). > > I hope this helps, > Chuck > > Liping Liu wrote: > > Hi, (I am a new user of GrADs) > > > > I am trying to plot two hovmollers into one figure. The problem is the > > time. > > First I plot the hovmollers using data from file 1 for Aug10 to Aug15, > > with the following commands: > > > > 'set yflip on' > > 'set lev 1000' > > 'set tlsupp year' > > 'set t 2 48' > > 'set lat 15' > > 'set gxout shaded' > > 'set grads off' > > 'd ave(olr.1,lat=5,lat=25)' > > > > So it gives me a figure for Aug10--Aug15. But, when I repeat the > > plotting for another period of time Aug15-Aug20: > > > > 'set t 49 80' > > 'd ave(olr.2,lat=5,lat=25)' > > > > It will simply overlap the whole figure, the time is not sequenced. > > > > Question: what do I do to get the pictures of Aug10-15 and Aug15-20 > > laid out vertically (not overlapping each other)? > > > > An alternative way is to write the two sets of data into one data > > file. But I don't know how to do that either. > > > > Thanks for your help. Suggestions to either of the approaches are > > greatly appreciated! > > > > Liping > > > > > > ------------------------------------------------------------------------ > > Hotmail has tools for the New Busy. Search, chat and e-mail from your > > inbox. Learn more. > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > -- > > 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 reflect any > official or unofficial position of the United States Federal Government, > the United States Department of Commerce, or NOAA." > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100518/791850dd/attachment-0001.html From jdduda at iastate.edu Tue May 18 09:04:08 2010 From: jdduda at iastate.edu (Jeffrey Duda) Date: Tue, 18 May 2010 08:04:08 -0500 Subject: [gradsusr] plotting time in hovmoller pictures In-Reply-To: References: <4BEB2752.70205@noaa.gov> Message-ID: Liping, You could try templating the files using CHSUB: http://grads.iges.org/grads/gadoc/descriptorfile.html#CHSUB Jeff Duda On Tue, May 18, 2010 at 5:32 AM, Liping Liu wrote: > Thanks for the answers to my previous question. The "parea" and "vpage" > commands work, but I have to specify the picture size every time. I want a > more robotic (generic) approach, if possible. > The GrADS template data descriptor is a wonderful idea! But does it only do > aggregating or concatenating? I want to manipulate the fields before I plot > out the hovmollers: > First I plot the hovmoller using data from file 1 for Aug10-15: > 'set yflip on' > 'set lev 1000' > 'set tlsupp year' > 'set t 2 48' > 'set lat 15' > 'set gxout shaded' > 'set grads off' > 'd ave(olr.1,lat=5,lat=25)' > Then I want to add the hovmoller plot using data from file 1 and file 2 for > Aug15-20: > 'set t 49 80' > 'd ave((olr.1+olr.2)/2,lat=5,lat=25)' > > Question: Is it possible that I write the fields (olr) from different data > files (with different ctl files) into one data file with one ctl file? > > Thanks! > > Liping > > > > Date: Wed, 12 May 2010 18:10:26 -0400 > > From: Charles.Seman at noaa.gov > > To: gradsusr at gradsusr.org > > Subject: Re: [gradsusr] plotting time in hovmoller pictures > > > > Liping Liu, > > > > You might also be able to use GrADS templates to "concatenate" the "olr" > > fields from file 1 and file 2 into a single time series within GrADS as > > follows: > > > > 'open olr_template.ctl' > > 'set yflip on' > > 'set lev 1000' > > 'set tlsupp year' > > 'set t 2 80' > > 'set lat 15' > > 'set gxout shaded' > > 'set grads off' > > 'd ave(olr,lat=5,lat=25)' > > > > where "olr" is the name of the variable in the "vars" section of the > > GrADS template data descriptor file "olr_template.ctl" (please see the > > examples at http://grads.iges.org/grads/gadoc/templates.html which can > > give you some ideas for what your "olr_template.ctl" might need)... > > briefly, a template data descriptor file for time differs from a single > > dataset data descriptor file in the "dset" record, a required "options > > template" record, and in the "tdef" record (in which the number of time > > levels in the template data descriptor file is the sum of the time > > levels for each of the component datasets). > > > > I hope this helps, > > Chuck > > > > Liping Liu wrote: > > > Hi, (I am a new user of GrADs) > > > > > > I am trying to plot two hovmollers into one figure. The problem is the > > > time. > > > First I plot the hovmollers using data from file 1 for Aug10 to Aug15, > > > with the following commands: > > > > > > 'set yflip on' > > > 'set lev 1000' > > > 'set tlsupp year' > > > 'set t 2 48' > > > 'set lat 15' > > > 'set gxout shaded' > > > 'set grads off' > > > 'd ave(olr.1,lat=5,lat=25)' > > > > > > So it gives me a figure for Aug10--Aug15. But, when I repeat the > > > plotting for another period of time Aug15-Aug20: > > > > > > 'set t 49 80' > > > 'd ave(olr.2,lat=5,lat=25)' > > > > > > It will simply overlap the whole figure, the time is not sequenced. > > > > > > Question: what do I do to get the pictures of Aug10-15 and Aug15-20 > > > laid out vertically (not overlapping each other)? > > > > > > An alternative way is to write the two sets of data into one data > > > file. But I don't know how to do that either. > > > > > > Thanks for your help. Suggestions to either of the approaches are > > > greatly appreciated! > > > > > > Liping > > > > > > > > > > ------------------------------------------------------------------------ > > > Hotmail has tools for the New Busy. Search, chat and e-mail from your > > > inbox. Learn more. > > > < > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1> > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > gradsusr mailing list > > > gradsusr at gradsusr.org > > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > > > -- > > > > 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 reflect any > > official or unofficial position of the United States Federal Government, > > the United States Department of Commerce, or NOAA." > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > ------------------------------ > Hotmail is redefining busy with tools for the New Busy. Get more from your > inbox. See how. > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- 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/20100518/71221e18/attachment.html From jimp at hawaii.edu Tue May 18 14:22:23 2010 From: jimp at hawaii.edu (James T. Potemra) Date: Tue, 18 May 2010 08:22:23 -1000 Subject: [gradsusr] time interval too short Message-ID: <4BF2DADF.4010407@hawaii.edu> I have a netCDF data set that I can read off local disk using the new release of GrADS (2.0.a8), but I get an error when trying to read the same data set via OPeNDAP. The error is: gadsdf: Tme unit has too small an increment (min. 1 minute). The actual increment is 4 minutes, and ncdump shows time as: time:units = "minutes since 2008-01-01 00:00:00"; The previous versions of GrADS (2.0.a6 and a7) had a different problem reading the same data set via OPeNDAP: gaopnc error: nc_open failed to open file http://oos.soest.hawaii.edu/thredds/dodsC/hioos/nss/ns01agg read_metadata: gaopnc failed. So, it seems va8 solved the metadata problem but might have a new one. Note that both versions can read the data set without problem off local disk, it's only when accessing via OPeNDAP. Finally, grads-2.0.a7.oga.2 can also read off local disk, but has yet a different error reading via OPeNDAP: Unknown error 1002 SDF Error: nc_get_vara_double failed to read coordinate axis value gadsdf: Error reading second time values in SDF file. All versions are running on a linux EL5 machine (x86_64) machine. Jim From brian.walsh at amec.com Tue May 18 14:25:56 2010 From: brian.walsh at amec.com (Walsh, Brian J) Date: Tue, 18 May 2010 14:25:56 -0400 Subject: [gradsusr] Time Series Plot Message-ID: Hi, I am looking to plot ocean current data as a time series plot. I want various sub-surface levels plotted on the y-axis and the time steps on the X-axis. Can someone tell me how, and if, this can be done with GrADS? Thanks ________________________________ The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100518/fe75b096/attachment.html From heiner at misu.su.se Tue May 18 17:58:41 2010 From: heiner at misu.su.se (=?ISO-8859-1?Q?Heiner_K=F6rnich?=) Date: Tue, 18 May 2010 23:58:41 +0200 Subject: [gradsusr] Time Series Plot In-Reply-To: References: Message-ID: Hi Brian, have a look at how the grads-binary files are organized. http://grads.iges.org/grads/gadoc/aboutgriddeddata.html The loop goes first over the x, y,z,VARS, and then time. So, you have to order your data in the right order: 1.level, 1.time 1.level, 2.time ... 1.level, last time 2.level, 1.time 2.level, 2.time ... It seems to me more natural to use the z-coordinate for the sub-surface levels, and the time axis for the time, but I guess you have some plans with your setup. Regards, Heiner On Tue, May 18, 2010 at 8:25 PM, Walsh, Brian J wrote: > Hi, > > I am looking to plot ocean current data as a time series plot. I want > various sub-surface levels plotted on the y-axis and the time steps on the > X-axis. Can someone tell me how, and if, this can be done with GrADS? > > Thanks > > > ------------------------------ > The information contained in this e-mail is intended only for the > individual or entity to whom it is addressed. > Its contents (including any attachments) may contain confidential and/or > privileged information. > If you are not an intended recipient you must not use, disclose, > disseminate, copy or print its contents. > If you receive this e-mail in error, please notify the sender by reply > e-mail and delete and destroy the message. > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Heiner K?rnich Dept. of Meteorology Tel: +46 8 164333 Stockholms University, SE-106 91 Stockholm, Sweden Email: heiner at misu.su.se www.misu.su.se/~heiner/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100518/fde5eea1/attachment.html From msponsler at comcast.net Tue May 18 23:42:14 2010 From: msponsler at comcast.net (Mark Sponsler) Date: Wed, 19 May 2010 03:42:14 +0000 (UTC) Subject: [gradsusr] WGrib2 Issue Message-ID: <967934852.27276741274240534319.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Hi, I know this is a little off topic, but am having problems trying to resolve a problem. I'm receiving the following error meessage out of wgrib2 ** Fatal Errror ** rd_grib2_msg? Missing end section ('7777') Am receiving this error when concatonating?multiple?time step gribs from the ww3 model. All the individual files seem to have downloaded fine.? Any insight anyone?????? Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/ed8cf6b7/attachment-0001.html From sushantpuranik at gmail.com Wed May 19 03:05:37 2010 From: sushantpuranik at gmail.com (sushant puranik) Date: Wed, 19 May 2010 12:35:37 +0530 Subject: [gradsusr] How to use draw function Message-ID: Hi I am trying to make a rectangle over the region 65 deg to 75 deg east and equator to 10 deg north. As per instructions in the grads document first of all i made set line 1 1 1 then use draw rec 0 65 10 75 command. but there is no rectangle drawn on the plot. In the draw command xlo ylo xhi yhi corresponds to grid point or waht else. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/e9d2858b/attachment.html From heiner at misu.su.se Wed May 19 03:36:18 2010 From: heiner at misu.su.se (=?ISO-8859-1?Q?Heiner_K=F6rnich?=) Date: Wed, 19 May 2010 09:36:18 +0200 Subject: [gradsusr] How to use draw function In-Reply-To: References: Message-ID: Hi, it is actually a little confusing. The draw command uses the coordinates of your drawing window. Those coordinates range from 0 to 8.5 and 0 to 11 inch. The coordinates that you were using are the world coordinates. Use the function "q w2xy" to convert from world to xy coordinates, eg. for 65 deg east and 10 deg north q w2xy 65 10 Regards, Heiner On Wed, May 19, 2010 at 9:05 AM, sushant puranik wrote: > Hi > I am trying to make a rectangle over the region 65 deg to 75 deg east and > equator to 10 deg north. > As per instructions in the grads document first of all i made set line 1 1 > 1 then use draw rec 0 65 10 75 command. but there is no rectangle drawn on > the plot. > > In the draw command xlo ylo xhi yhi corresponds to grid point or waht else. > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Heiner K?rnich Dept. of Meteorology Tel: +46 8 164333 Stockholms University, SE-106 91 Stockholm, Sweden Email: heiner at misu.su.se www.misu.su.se/~heiner/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/084da8bc/attachment.html From hersala at gmail.com Wed May 19 07:39:48 2010 From: hersala at gmail.com (hersala) Date: Wed, 19 May 2010 08:39:48 -0300 Subject: [gradsusr] How to use draw function In-Reply-To: References: Message-ID: Hi Sushant I send you a little example that allow to draw a rectangle using world coordinates, so you can change the size or change slightly the geographic region selected for your plot and the rectangle will be "anchored" to its geographic position. This small code shoul by used in a *.gs script. Best regards. Lic. Hern?n Sala Instituto Ant?rtico Argentino *Draw rectangle 'set line 7 1 6' lon1= 135 lat1= -78 'q w2xy 'lon1' 'lat1 say result x1 = subwrd(result,3) y1 = subwrd(result,6) lon2= 239 lat2= -70 'q w2xy 'lon2' 'lat2 say result x2 = subwrd(result,3) y2 = subwrd(result,6) 'draw rec 'x1' 'y1' 'x2' 'y2 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/91f73a41/attachment.html From sushantpuranik at gmail.com Wed May 19 08:46:07 2010 From: sushantpuranik at gmail.com (sushant puranik) Date: Wed, 19 May 2010 18:16:07 +0530 Subject: [gradsusr] How to use draw function In-Reply-To: References: Message-ID: Thank you very much. Problem is solved. On Wed, May 19, 2010 at 5:09 PM, hersala wrote: > Hi Sushant > I send you a little example that allow to draw a rectangle using world > coordinates, so you can change the size or change slightly the geographic > region selected for your plot and the rectangle will be "anchored" to its > geographic position. This small code shoul by used in a *.gs script. > Best regards. > > Lic. Hern?n Sala > Instituto Ant?rtico Argentino > > > *Draw rectangle > 'set line 7 1 6' > lon1= 135 > lat1= -78 > 'q w2xy 'lon1' 'lat1 > say result > x1 = subwrd(result,3) > y1 = subwrd(result,6) > lon2= 239 > lat2= -70 > 'q w2xy 'lon2' 'lat2 > say result > x2 = subwrd(result,3) > y2 = subwrd(result,6) > 'draw rec 'x1' 'y1' 'x2' 'y2 > > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Sushant Puranik Junior Research Fellow Dept. of Atmospheric & Space Sciences, University of Pune, Pune-07, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/929469b6/attachment.html From Huddleston at cira.colostate.edu Wed May 19 11:20:24 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Wed, 19 May 2010 08:20:24 -0700 Subject: [gradsusr] Creating data files In-Reply-To: <9aae6385de2692f6575057cd1c29ddda.squirrel@posta.le.isac.cnr.it> References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> <734fa42e7cf61e6f46aec9d51c02dcb6.squirrel@posta.le.isac.cnr.it> <9aae6385de2692f6575057cd1c29ddda.squirrel@posta.le.isac.cnr.it> Message-ID: Anna You may want to think about the architecture as 20 600x600 grids. So, instead of opening the binary file with LRECL=4, open it with a record length of 36000. Set up a real array of A(600,600,20), initialize it to -999, then read in all the data, compute the Z level 1:20 corresponding to your 20 levels, compute the (ipos,jpos) given the input (km,km) units, and set the value equal to the dBZ. Then write out each of the records in a do loop like IREC=1 DO I=1,20 WRITE(15,REC=IREC) ((A(J,K,I),J=1,600),K=1,600) IREC=IREC+1 ENDDO Your control file becomes much simpler and you have 20 layers of data to plot. Think about it and if you want help, I can help you later with the coding, but not now..am working on another project. John Huddleston, PhD Cooperative Institute for Research in the Atmosphere -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Anna Cinzia Marra Sent: Tuesday, May 18, 2010 3:47 AM To: GrADS Users Forum Subject: Re: [gradsusr] Creating data files Hello Alexandre, my radar data file has this structure, as I already told you: # Fields: z y x DBZ # Units: km km km dBZ 1 -224.625 -224.625 35 1 -224.625 -223.875 28 1 -224.625 -223.125 20 1 -224.625 -222.375 20 1 -224.625 -221.625 18 They are related to a single radar scan (so only one time), but they have 20 z levels (from 1 km to 15.25 km every 0.75 km), 600 y points and 600 x points (from -224.625 km to 224.625 km every 0.75 km). Both x and y are obviously related to longitude and latitude. I modified radar.f in order to account for my big dataset. I modified your control file in the following way dset ^0dbz.bin title Analysis DBZ undef -32 xdef 600 linear -224.625 0.75 ydef 600 linear -224.625 0.75 zdef 20 levels 15.25 14.5 13.75 13 12.25 11.5 10.75 10 9.25 8.5 7.75 7 6.25 5.5 4.75 4 3.25 2.5 1.75 1 tdef 1 linear 22oct2005 1mn vars 4 z 0 999 z(km) y 0 999 y(km) x 0 999 x(km) dbz 20 999 DBZ endvars but I cannot see anything reasonable with grads. What am I wrong? Thank again. Cinzia > I Understand. Other question can consult. > > Alexandre > > > > > > 2010/5/18 Anna Cinzia Marra > >> Hello John, >> thanks a lot, but that's not a problem of fortran. I hhad already >> modified >> radar.f according to my complete data file. Maybe I am not modifying in >> the right way the control file. >> >> Cinzia >> >> > Cinzia, >> > >> > Edit the radar.f file you were sent by Alexandre and change the 4x5 >> array >> > to fit the size of your big dataset. >> > >> > Change the input name to the name of your input file, Alexandre used >> > 'dbz.txt'. >> > >> > This is not so much a GrADS issue as it is a knowledge of programming >> and >> > building software. >> > >> > After you change the array size to fit your dataset, then create the >> > executable. e.g. gfortran -o dbz radar.f >> > >> > Rerun the application, e.g. ./dbz >> > >> > It will create the datafile dbz.bin and you can use the control file >> he >> > sent. >> > >> > >> > John Huddleston, PhD >> > >> > >> > -----Original Message----- >> > From: gradsusr-bounces at gradsusr.org [mailto: >> gradsusr-bounces at gradsusr.org] >> > On Behalf Of Anna Cinzia Marra >> > Sent: Monday, May 17, 2010 4:09 AM >> > To: GrADS Users Forum >> > Subject: Re: [gradsusr] Creating data files >> > >> > Hello, >> > unfortunately I am starting now with grads. at the moment I am not >> able >> to >> > display data from the bin file you sent me. I don't know why. Moreover >> I >> > am not able also to re-obtain that bin file by means of radar.f and I >> > cannot send you the complete data file because it is too big. >> > I am sorry. >> > >> > Thank you in advance >> > >> > Cinzia >> > >> >> Hello, >> >> >> >> send the file radar complete with the bin+ctl, please. >> >> >> >> >> >> >> >> 2010/5/14 Anna Cinzia Marra >> >> >> >>> Hello, >> >>> thanks a lot. I am trying to convert a complete radar data file, but >> I >> >>> have some problems with plot. >> >>> I will try again. >> >>> >> >>> Cinzia >> >>> >> >>> > Hello, >> >>> > >> >>> > Send the program at fortran more files binary the ctl. With the >> >>> binary >> >>> + >> >>> > ctl >> >>> > you can see in the Grads >> >>> > >> >>> > >> >>> > >> >>> > 2010/5/13 Anna Cinzia Marra >> >>> > >> >>> >> >> >>> >> Hello, >> >>> >> >> >>> >> does anybody have a fortran program which converts measured radar >> >>> >> reflectivity data to binary files read by grads? >> >>> >> >> >>> >> Here is an example of my data files: >> >>> >> >> >>> >> # Fields: z y x DBZ >> >>> >> # Units: km km km dBZ >> >>> >> 1 -224.625 -224.625 35 >> >>> >> 1 -224.625 -223.875 28 >> >>> >> 1 -224.625 -223.125 20 >> >>> >> 1 -224.625 -222.375 20 >> >>> >> 1 -224.625 -221.625 18 >> >>> >> ...................... >> >>> >> >> >>> >> Thank you very much. >> >>> >> >> >>> >> Cinzia >> >>> >> >> >>> >> >> >>> >> _______________________________________________ >> >>> >> gradsusr mailing list >> >>> >> gradsusr at gradsusr.org >> >>> >> http://gradsusr.org/mailman/listinfo/gradsusr >> >>> >> >> >>> > _______________________________________________ >> >>> > gradsusr mailing list >> >>> > gradsusr at gradsusr.org >> >>> > http://gradsusr.org/mailman/listinfo/gradsusr >> >>> > >> >>> >> >>> >> >>> _______________________________________________ >> >>> gradsusr mailing list >> >>> gradsusr at gradsusr.org >> >>> http://gradsusr.org/mailman/listinfo/gradsusr >> >>> >> >> _______________________________________________ >> >> gradsusr mailing list >> >> gradsusr at gradsusr.org >> >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> >> > >> > >> > _______________________________________________ >> > gradsusr mailing list >> > gradsusr at gradsusr.org >> > http://gradsusr.org/mailman/listinfo/gradsusr >> > >> > _______________________________________________ >> > gradsusr mailing list >> > gradsusr at gradsusr.org >> > http://gradsusr.org/mailman/listinfo/gradsusr >> > >> > >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From puffy78 at gmail.com Wed May 19 11:55:51 2010 From: puffy78 at gmail.com (Alexandre Santos) Date: Wed, 19 May 2010 12:55:51 -0300 Subject: [gradsusr] Creating data files In-Reply-To: References: <87711d397666ace25137f04e2a78cfe3.squirrel@posta.le.isac.cnr.it> <734fa42e7cf61e6f46aec9d51c02dcb6.squirrel@posta.le.isac.cnr.it> <9aae6385de2692f6575057cd1c29ddda.squirrel@posta.le.isac.cnr.it> Message-ID: Anna, send for me the data complete radar , txt, (DBZ). With the data see the source at fortran 2010/5/19 Huddleston, John > Anna > > You may want to think about the architecture as 20 600x600 grids. So, > instead of opening the binary file with LRECL=4, open it with a record > length of 36000. > > Set up a real array of A(600,600,20), initialize it to -999, then read in > all the data, compute the Z level 1:20 corresponding to your 20 levels, > compute the (ipos,jpos) given the input (km,km) units, and set the value > equal to the dBZ. > > Then write out each of the records in a do loop like > IREC=1 > DO I=1,20 > WRITE(15,REC=IREC) ((A(J,K,I),J=1,600),K=1,600) > IREC=IREC+1 > ENDDO > > Your control file becomes much simpler and you have 20 layers of data to > plot. > > Think about it and if you want help, I can help you later with the coding, > but not now..am working on another project. > > John Huddleston, PhD > Cooperative Institute for Research in the Atmosphere > > -----Original Message----- > From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] > On Behalf Of Anna Cinzia Marra > Sent: Tuesday, May 18, 2010 3:47 AM > To: GrADS Users Forum > Subject: Re: [gradsusr] Creating data files > > Hello Alexandre, > my radar data file has this structure, as I already told you: > > # Fields: z y x DBZ > # Units: km km km dBZ > 1 -224.625 -224.625 35 > 1 -224.625 -223.875 28 > 1 -224.625 -223.125 20 > 1 -224.625 -222.375 20 > 1 -224.625 -221.625 18 > > They are related to a single radar scan (so only one time), but they have > 20 z levels (from 1 km to 15.25 km every 0.75 km), 600 y points and 600 x > points (from -224.625 km to 224.625 km every 0.75 km). Both x and y are > obviously related to longitude and latitude. > > I modified radar.f in order to account for my big dataset. > I modified your control file in the following way > > dset ^0dbz.bin > title Analysis DBZ > undef -32 > xdef 600 linear -224.625 0.75 > ydef 600 linear -224.625 0.75 > zdef 20 levels > 15.25 > 14.5 > 13.75 > 13 > 12.25 > 11.5 > 10.75 > 10 > 9.25 > 8.5 > 7.75 > 7 > 6.25 > 5.5 > 4.75 > 4 > 3.25 > 2.5 > 1.75 > 1 > tdef 1 linear 22oct2005 1mn > vars 4 > z 0 999 z(km) > y 0 999 y(km) > x 0 999 x(km) > dbz 20 999 DBZ > endvars > > but I cannot see anything reasonable with grads. What am I wrong? > Thank again. > Cinzia > > > I Understand. Other question can consult. > > > > Alexandre > > > > > > > > > > > > 2010/5/18 Anna Cinzia Marra > > > >> Hello John, > >> thanks a lot, but that's not a problem of fortran. I hhad already > >> modified > >> radar.f according to my complete data file. Maybe I am not modifying in > >> the right way the control file. > >> > >> Cinzia > >> > >> > Cinzia, > >> > > >> > Edit the radar.f file you were sent by Alexandre and change the 4x5 > >> array > >> > to fit the size of your big dataset. > >> > > >> > Change the input name to the name of your input file, Alexandre used > >> > 'dbz.txt'. > >> > > >> > This is not so much a GrADS issue as it is a knowledge of programming > >> and > >> > building software. > >> > > >> > After you change the array size to fit your dataset, then create the > >> > executable. e.g. gfortran -o dbz radar.f > >> > > >> > Rerun the application, e.g. ./dbz > >> > > >> > It will create the datafile dbz.bin and you can use the control file > >> he > >> > sent. > >> > > >> > > >> > John Huddleston, PhD > >> > > >> > > >> > -----Original Message----- > >> > From: gradsusr-bounces at gradsusr.org [mailto: > >> gradsusr-bounces at gradsusr.org] > >> > On Behalf Of Anna Cinzia Marra > >> > Sent: Monday, May 17, 2010 4:09 AM > >> > To: GrADS Users Forum > >> > Subject: Re: [gradsusr] Creating data files > >> > > >> > Hello, > >> > unfortunately I am starting now with grads. at the moment I am not > >> able > >> to > >> > display data from the bin file you sent me. I don't know why. Moreover > >> I > >> > am not able also to re-obtain that bin file by means of radar.f and I > >> > cannot send you the complete data file because it is too big. > >> > I am sorry. > >> > > >> > Thank you in advance > >> > > >> > Cinzia > >> > > >> >> Hello, > >> >> > >> >> send the file radar complete with the bin+ctl, please. > >> >> > >> >> > >> >> > >> >> 2010/5/14 Anna Cinzia Marra > >> >> > >> >>> Hello, > >> >>> thanks a lot. I am trying to convert a complete radar data file, but > >> I > >> >>> have some problems with plot. > >> >>> I will try again. > >> >>> > >> >>> Cinzia > >> >>> > >> >>> > Hello, > >> >>> > > >> >>> > Send the program at fortran more files binary the ctl. With the > >> >>> binary > >> >>> + > >> >>> > ctl > >> >>> > you can see in the Grads > >> >>> > > >> >>> > > >> >>> > > >> >>> > 2010/5/13 Anna Cinzia Marra > >> >>> > > >> >>> >> > >> >>> >> Hello, > >> >>> >> > >> >>> >> does anybody have a fortran program which converts measured radar > >> >>> >> reflectivity data to binary files read by grads? > >> >>> >> > >> >>> >> Here is an example of my data files: > >> >>> >> > >> >>> >> # Fields: z y x DBZ > >> >>> >> # Units: km km km dBZ > >> >>> >> 1 -224.625 -224.625 35 > >> >>> >> 1 -224.625 -223.875 28 > >> >>> >> 1 -224.625 -223.125 20 > >> >>> >> 1 -224.625 -222.375 20 > >> >>> >> 1 -224.625 -221.625 18 > >> >>> >> ...................... > >> >>> >> > >> >>> >> Thank you very much. > >> >>> >> > >> >>> >> Cinzia > >> >>> >> > >> >>> >> > >> >>> >> _______________________________________________ > >> >>> >> gradsusr mailing list > >> >>> >> gradsusr at gradsusr.org > >> >>> >> http://gradsusr.org/mailman/listinfo/gradsusr > >> >>> >> > >> >>> > _______________________________________________ > >> >>> > gradsusr mailing list > >> >>> > gradsusr at gradsusr.org > >> >>> > http://gradsusr.org/mailman/listinfo/gradsusr > >> >>> > > >> >>> > >> >>> > >> >>> _______________________________________________ > >> >>> gradsusr mailing list > >> >>> gradsusr at gradsusr.org > >> >>> http://gradsusr.org/mailman/listinfo/gradsusr > >> >>> > >> >> _______________________________________________ > >> >> gradsusr mailing list > >> >> gradsusr at gradsusr.org > >> >> http://gradsusr.org/mailman/listinfo/gradsusr > >> >> > >> > > >> > > >> > _______________________________________________ > >> > gradsusr mailing list > >> > gradsusr at gradsusr.org > >> > http://gradsusr.org/mailman/listinfo/gradsusr > >> > > >> > _______________________________________________ > >> > gradsusr mailing list > >> > gradsusr at gradsusr.org > >> > http://gradsusr.org/mailman/listinfo/gradsusr > >> > > >> > > >> > >> > >> _______________________________________________ > >> gradsusr mailing list > >> gradsusr at gradsusr.org > >> http://gradsusr.org/mailman/listinfo/gradsusr > >> > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/1eda0c56/attachment-0001.html From jgmsantos at gmail.com Wed May 19 12:01:13 2010 From: jgmsantos at gmail.com (Guilherme Martins) Date: Wed, 19 May 2010 13:01:13 -0300 Subject: [gradsusr] gradsusr Digest, Vol 3, Issue 41 In-Reply-To: References: Message-ID: See the link below. See the drawbox.gs. It'll help you. http://www.atmos.umd.edu/~bguan/grads/GrADS_Scripts.html Guilherme. 2010/5/19 > Send gradsusr mailing list submissions to > gradsusr at gradsusr.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://gradsusr.org/mailman/listinfo/gradsusr > or, via email, send a message with subject or body 'help' to > gradsusr-request at gradsusr.org > > You can reach the person managing the list at > gradsusr-owner at gradsusr.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gradsusr digest..." > > > Today's Topics: > > 1. How to use draw function (sushant puranik) > 2. Re: How to use draw function (Heiner K?rnich) > 3. Re: How to use draw function (hersala) > 4. Re: How to use draw function (sushant puranik) > 5. Re: Creating data files (Huddleston, John) > 6. Re: Creating data files (Alexandre Santos) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 19 May 2010 12:35:37 +0530 > From: sushant puranik > Subject: [gradsusr] How to use draw function > To: GrADS Users Forum > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi > I am trying to make a rectangle over the region 65 deg to 75 deg east and > equator to 10 deg north. > As per instructions in the grads document first of all i made set line 1 1 > 1 > then use draw rec 0 65 10 75 command. but there is no rectangle drawn on > the > plot. > > In the draw command xlo ylo xhi yhi corresponds to grid point or waht else. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100519/e9d2858b/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Wed, 19 May 2010 09:36:18 +0200 > From: Heiner K?rnich > Subject: Re: [gradsusr] How to use draw function > To: GrADS Users Forum > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > it is actually a little confusing. The draw command uses the coordinates of > your drawing window. Those coordinates range from 0 to 8.5 and 0 to 11 > inch. > The coordinates that you were using are the world coordinates. Use the > function "q w2xy" to convert from world to xy coordinates, eg. for 65 deg > east and 10 deg north > q w2xy 65 10 > > Regards, > Heiner > > On Wed, May 19, 2010 at 9:05 AM, sushant puranik > wrote: > > > Hi > > I am trying to make a rectangle over the region 65 deg to 75 deg east and > > equator to 10 deg north. > > As per instructions in the grads document first of all i made set line 1 > 1 > > 1 then use draw rec 0 65 10 75 command. but there is no rectangle drawn > on > > the plot. > > > > In the draw command xlo ylo xhi yhi corresponds to grid point or waht > else. > > > > > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > > > -- > Heiner K?rnich > Dept. of Meteorology Tel: +46 8 164333 > Stockholms University, SE-106 91 Stockholm, Sweden > Email: heiner at misu.su.se www.misu.su.se/~heiner/ > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100519/084da8bc/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Wed, 19 May 2010 08:39:48 -0300 > From: hersala > Subject: Re: [gradsusr] How to use draw function > To: GrADS Users Forum > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi Sushant > I send you a little example that allow to draw a rectangle using world > coordinates, so you can change the size or change slightly the geographic > region selected for your plot and the rectangle will be "anchored" to its > geographic position. This small code shoul by used in a *.gs script. > Best regards. > > Lic. Hern?n Sala > Instituto Ant?rtico Argentino > > > *Draw rectangle > 'set line 7 1 6' > lon1= 135 > lat1= -78 > 'q w2xy 'lon1' 'lat1 > say result > x1 = subwrd(result,3) > y1 = subwrd(result,6) > lon2= 239 > lat2= -70 > 'q w2xy 'lon2' 'lat2 > say result > x2 = subwrd(result,3) > y2 = subwrd(result,6) > 'draw rec 'x1' 'y1' 'x2' 'y2 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100519/91f73a41/attachment-0001.html > > ------------------------------ > > Message: 4 > Date: Wed, 19 May 2010 18:16:07 +0530 > From: sushant puranik > Subject: Re: [gradsusr] How to use draw function > To: GrADS Users Forum > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Thank you very much. Problem is solved. > > > On Wed, May 19, 2010 at 5:09 PM, hersala wrote: > > > Hi Sushant > > I send you a little example that allow to draw a rectangle using world > > coordinates, so you can change the size or change slightly the geographic > > region selected for your plot and the rectangle will be "anchored" to its > > geographic position. This small code shoul by used in a *.gs script. > > Best regards. > > > > Lic. Hern?n Sala > > Instituto Ant?rtico Argentino > > > > > > *Draw rectangle > > 'set line 7 1 6' > > lon1= 135 > > lat1= -78 > > 'q w2xy 'lon1' 'lat1 > > say result > > x1 = subwrd(result,3) > > y1 = subwrd(result,6) > > lon2= 239 > > lat2= -70 > > 'q w2xy 'lon2' 'lat2 > > say result > > x2 = subwrd(result,3) > > y2 = subwrd(result,6) > > 'draw rec 'x1' 'y1' 'x2' 'y2 > > > > > > > > > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > > > -- > Sushant Puranik > Junior Research Fellow > Dept. of Atmospheric & Space Sciences, > University of Pune, > Pune-07, > India. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100519/929469b6/attachment-0001.html > > ------------------------------ > > Message: 5 > Date: Wed, 19 May 2010 08:20:24 -0700 > From: "Huddleston, John" > Subject: Re: [gradsusr] Creating data files > To: GrADS Users Forum > Message-ID: > < > F367071F539DC64FB75E7D7690B8160D0105BCA7173F at EXVMBX003-2.exch003intermedia.net > > > > Content-Type: text/plain; charset="us-ascii" > > Anna > > You may want to think about the architecture as 20 600x600 grids. So, > instead of opening the binary file with LRECL=4, open it with a record > length of 36000. > > Set up a real array of A(600,600,20), initialize it to -999, then read in > all the data, compute the Z level 1:20 corresponding to your 20 levels, > compute the (ipos,jpos) given the input (km,km) units, and set the value > equal to the dBZ. > > Then write out each of the records in a do loop like > IREC=1 > DO I=1,20 > WRITE(15,REC=IREC) ((A(J,K,I),J=1,600),K=1,600) > IREC=IREC+1 > ENDDO > > Your control file becomes much simpler and you have 20 layers of data to > plot. > > Think about it and if you want help, I can help you later with the coding, > but not now..am working on another project. > > John Huddleston, PhD > Cooperative Institute for Research in the Atmosphere > > -----Original Message----- > From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] > On Behalf Of Anna Cinzia Marra > Sent: Tuesday, May 18, 2010 3:47 AM > To: GrADS Users Forum > Subject: Re: [gradsusr] Creating data files > > Hello Alexandre, > my radar data file has this structure, as I already told you: > > # Fields: z y x DBZ > # Units: km km km dBZ > 1 -224.625 -224.625 35 > 1 -224.625 -223.875 28 > 1 -224.625 -223.125 20 > 1 -224.625 -222.375 20 > 1 -224.625 -221.625 18 > > They are related to a single radar scan (so only one time), but they have > 20 z levels (from 1 km to 15.25 km every 0.75 km), 600 y points and 600 x > points (from -224.625 km to 224.625 km every 0.75 km). Both x and y are > obviously related to longitude and latitude. > > I modified radar.f in order to account for my big dataset. > I modified your control file in the following way > > dset ^0dbz.bin > title Analysis DBZ > undef -32 > xdef 600 linear -224.625 0.75 > ydef 600 linear -224.625 0.75 > zdef 20 levels > 15.25 > 14.5 > 13.75 > 13 > 12.25 > 11.5 > 10.75 > 10 > 9.25 > 8.5 > 7.75 > 7 > 6.25 > 5.5 > 4.75 > 4 > 3.25 > 2.5 > 1.75 > 1 > tdef 1 linear 22oct2005 1mn > vars 4 > z 0 999 z(km) > y 0 999 y(km) > x 0 999 x(km) > dbz 20 999 DBZ > endvars > > but I cannot see anything reasonable with grads. What am I wrong? > Thank again. > Cinzia > > > I Understand. Other question can consult. > > > > Alexandre > > > > > > > > > > > > 2010/5/18 Anna Cinzia Marra > > > >> Hello John, > >> thanks a lot, but that's not a problem of fortran. I hhad already > >> modified > >> radar.f according to my complete data file. Maybe I am not modifying in > >> the right way the control file. > >> > >> Cinzia > >> > >> > Cinzia, > >> > > >> > Edit the radar.f file you were sent by Alexandre and change the 4x5 > >> array > >> > to fit the size of your big dataset. > >> > > >> > Change the input name to the name of your input file, Alexandre used > >> > 'dbz.txt'. > >> > > >> > This is not so much a GrADS issue as it is a knowledge of programming > >> and > >> > building software. > >> > > >> > After you change the array size to fit your dataset, then create the > >> > executable. e.g. gfortran -o dbz radar.f > >> > > >> > Rerun the application, e.g. ./dbz > >> > > >> > It will create the datafile dbz.bin and you can use the control file > >> he > >> > sent. > >> > > >> > > >> > John Huddleston, PhD > >> > > >> > > >> > -----Original Message----- > >> > From: gradsusr-bounces at gradsusr.org [mailto: > >> gradsusr-bounces at gradsusr.org] > >> > On Behalf Of Anna Cinzia Marra > >> > Sent: Monday, May 17, 2010 4:09 AM > >> > To: GrADS Users Forum > >> > Subject: Re: [gradsusr] Creating data files > >> > > >> > Hello, > >> > unfortunately I am starting now with grads. at the moment I am not > >> able > >> to > >> > display data from the bin file you sent me. I don't know why. Moreover > >> I > >> > am not able also to re-obtain that bin file by means of radar.f and I > >> > cannot send you the complete data file because it is too big. > >> > I am sorry. > >> > > >> > Thank you in advance > >> > > >> > Cinzia > >> > > >> >> Hello, > >> >> > >> >> send the file radar complete with the bin+ctl, please. > >> >> > >> >> > >> >> > >> >> 2010/5/14 Anna Cinzia Marra > >> >> > >> >>> Hello, > >> >>> thanks a lot. I am trying to convert a complete radar data file, but > >> I > >> >>> have some problems with plot. > >> >>> I will try again. > >> >>> > >> >>> Cinzia > >> >>> > >> >>> > Hello, > >> >>> > > >> >>> > Send the program at fortran more files binary the ctl. With the > >> >>> binary > >> >>> + > >> >>> > ctl > >> >>> > you can see in the Grads > >> >>> > > >> >>> > > >> >>> > > >> >>> > 2010/5/13 Anna Cinzia Marra > >> >>> > > >> >>> >> > >> >>> >> Hello, > >> >>> >> > >> >>> >> does anybody have a fortran program which converts measured radar > >> >>> >> reflectivity data to binary files read by grads? > >> >>> >> > >> >>> >> Here is an example of my data files: > >> >>> >> > >> >>> >> # Fields: z y x DBZ > >> >>> >> # Units: km km km dBZ > >> >>> >> 1 -224.625 -224.625 35 > >> >>> >> 1 -224.625 -223.875 28 > >> >>> >> 1 -224.625 -223.125 20 > >> >>> >> 1 -224.625 -222.375 20 > >> >>> >> 1 -224.625 -221.625 18 > >> >>> >> ...................... > >> >>> >> > >> >>> >> Thank you very much. > >> >>> >> > >> >>> >> Cinzia > >> >>> >> > >> >>> >> > >> >>> >> _______________________________________________ > >> >>> >> gradsusr mailing list > >> >>> >> gradsusr at gradsusr.org > >> >>> >> http://gradsusr.org/mailman/listinfo/gradsusr > >> >>> >> > >> >>> > _______________________________________________ > >> >>> > gradsusr mailing list > >> >>> > gradsusr at gradsusr.org > >> >>> > http://gradsusr.org/mailman/listinfo/gradsusr > >> >>> > > >> >>> > >> >>> > >> >>> _______________________________________________ > >> >>> gradsusr mailing list > >> >>> gradsusr at gradsusr.org > >> >>> http://gradsusr.org/mailman/listinfo/gradsusr > >> >>> > >> >> _______________________________________________ > >> >> gradsusr mailing list > >> >> gradsusr at gradsusr.org > >> >> http://gradsusr.org/mailman/listinfo/gradsusr > >> >> > >> > > >> > > >> > _______________________________________________ > >> > gradsusr mailing list > >> > gradsusr at gradsusr.org > >> > http://gradsusr.org/mailman/listinfo/gradsusr > >> > > >> > _______________________________________________ > >> > gradsusr mailing list > >> > gradsusr at gradsusr.org > >> > http://gradsusr.org/mailman/listinfo/gradsusr > >> > > >> > > >> > >> > >> _______________________________________________ > >> gradsusr mailing list > >> gradsusr at gradsusr.org > >> http://gradsusr.org/mailman/listinfo/gradsusr > >> > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > > ------------------------------ > > Message: 6 > Date: Wed, 19 May 2010 12:55:51 -0300 > From: Alexandre Santos > Subject: Re: [gradsusr] Creating data files > To: GrADS Users Forum > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Anna, > > send for me the data complete radar , txt, (DBZ). With the data see the > source at fortran > > 2010/5/19 Huddleston, John > > > Anna > > > > You may want to think about the architecture as 20 600x600 grids. So, > > instead of opening the binary file with LRECL=4, open it with a record > > length of 36000. > > > > Set up a real array of A(600,600,20), initialize it to -999, then read in > > all the data, compute the Z level 1:20 corresponding to your 20 levels, > > compute the (ipos,jpos) given the input (km,km) units, and set the value > > equal to the dBZ. > > > > Then write out each of the records in a do loop like > > IREC=1 > > DO I=1,20 > > WRITE(15,REC=IREC) ((A(J,K,I),J=1,600),K=1,600) > > IREC=IREC+1 > > ENDDO > > > > Your control file becomes much simpler and you have 20 layers of data to > > plot. > > > > Think about it and if you want help, I can help you later with the > coding, > > but not now..am working on another project. > > > > John Huddleston, PhD > > Cooperative Institute for Research in the Atmosphere > > > > -----Original Message----- > > From: gradsusr-bounces at gradsusr.org [mailto: > gradsusr-bounces at gradsusr.org] > > On Behalf Of Anna Cinzia Marra > > Sent: Tuesday, May 18, 2010 3:47 AM > > To: GrADS Users Forum > > Subject: Re: [gradsusr] Creating data files > > > > Hello Alexandre, > > my radar data file has this structure, as I already told you: > > > > # Fields: z y x DBZ > > # Units: km km km dBZ > > 1 -224.625 -224.625 35 > > 1 -224.625 -223.875 28 > > 1 -224.625 -223.125 20 > > 1 -224.625 -222.375 20 > > 1 -224.625 -221.625 18 > > > > They are related to a single radar scan (so only one time), but they have > > 20 z levels (from 1 km to 15.25 km every 0.75 km), 600 y points and 600 x > > points (from -224.625 km to 224.625 km every 0.75 km). Both x and y are > > obviously related to longitude and latitude. > > > > I modified radar.f in order to account for my big dataset. > > I modified your control file in the following way > > > > dset ^0dbz.bin > > title Analysis DBZ > > undef -32 > > xdef 600 linear -224.625 0.75 > > ydef 600 linear -224.625 0.75 > > zdef 20 levels > > 15.25 > > 14.5 > > 13.75 > > 13 > > 12.25 > > 11.5 > > 10.75 > > 10 > > 9.25 > > 8.5 > > 7.75 > > 7 > > 6.25 > > 5.5 > > 4.75 > > 4 > > 3.25 > > 2.5 > > 1.75 > > 1 > > tdef 1 linear 22oct2005 1mn > > vars 4 > > z 0 999 z(km) > > y 0 999 y(km) > > x 0 999 x(km) > > dbz 20 999 DBZ > > endvars > > > > but I cannot see anything reasonable with grads. What am I wrong? > > Thank again. > > Cinzia > > > > > I Understand. Other question can consult. > > > > > > Alexandre > > > > > > > > > > > > > > > > > > 2010/5/18 Anna Cinzia Marra > > > > > >> Hello John, > > >> thanks a lot, but that's not a problem of fortran. I hhad already > > >> modified > > >> radar.f according to my complete data file. Maybe I am not modifying > in > > >> the right way the control file. > > >> > > >> Cinzia > > >> > > >> > Cinzia, > > >> > > > >> > Edit the radar.f file you were sent by Alexandre and change the 4x5 > > >> array > > >> > to fit the size of your big dataset. > > >> > > > >> > Change the input name to the name of your input file, Alexandre used > > >> > 'dbz.txt'. > > >> > > > >> > This is not so much a GrADS issue as it is a knowledge of > programming > > >> and > > >> > building software. > > >> > > > >> > After you change the array size to fit your dataset, then create the > > >> > executable. e.g. gfortran -o dbz radar.f > > >> > > > >> > Rerun the application, e.g. ./dbz > > >> > > > >> > It will create the datafile dbz.bin and you can use the control file > > >> he > > >> > sent. > > >> > > > >> > > > >> > John Huddleston, PhD > > >> > > > >> > > > >> > -----Original Message----- > > >> > From: gradsusr-bounces at gradsusr.org [mailto: > > >> gradsusr-bounces at gradsusr.org] > > >> > On Behalf Of Anna Cinzia Marra > > >> > Sent: Monday, May 17, 2010 4:09 AM > > >> > To: GrADS Users Forum > > >> > Subject: Re: [gradsusr] Creating data files > > >> > > > >> > Hello, > > >> > unfortunately I am starting now with grads. at the moment I am not > > >> able > > >> to > > >> > display data from the bin file you sent me. I don't know why. > Moreover > > >> I > > >> > am not able also to re-obtain that bin file by means of radar.f and > I > > >> > cannot send you the complete data file because it is too big. > > >> > I am sorry. > > >> > > > >> > Thank you in advance > > >> > > > >> > Cinzia > > >> > > > >> >> Hello, > > >> >> > > >> >> send the file radar complete with the bin+ctl, please. > > >> >> > > >> >> > > >> >> > > >> >> 2010/5/14 Anna Cinzia Marra > > >> >> > > >> >>> Hello, > > >> >>> thanks a lot. I am trying to convert a complete radar data file, > but > > >> I > > >> >>> have some problems with plot. > > >> >>> I will try again. > > >> >>> > > >> >>> Cinzia > > >> >>> > > >> >>> > Hello, > > >> >>> > > > >> >>> > Send the program at fortran more files binary the ctl. With the > > >> >>> binary > > >> >>> + > > >> >>> > ctl > > >> >>> > you can see in the Grads > > >> >>> > > > >> >>> > > > >> >>> > > > >> >>> > 2010/5/13 Anna Cinzia Marra > > >> >>> > > > >> >>> >> > > >> >>> >> Hello, > > >> >>> >> > > >> >>> >> does anybody have a fortran program which converts measured > radar > > >> >>> >> reflectivity data to binary files read by grads? > > >> >>> >> > > >> >>> >> Here is an example of my data files: > > >> >>> >> > > >> >>> >> # Fields: z y x DBZ > > >> >>> >> # Units: km km km dBZ > > >> >>> >> 1 -224.625 -224.625 35 > > >> >>> >> 1 -224.625 -223.875 28 > > >> >>> >> 1 -224.625 -223.125 20 > > >> >>> >> 1 -224.625 -222.375 20 > > >> >>> >> 1 -224.625 -221.625 18 > > >> >>> >> ...................... > > >> >>> >> > > >> >>> >> Thank you very much. > > >> >>> >> > > >> >>> >> Cinzia > > >> >>> >> > > >> >>> >> > > >> >>> >> _______________________________________________ > > >> >>> >> gradsusr mailing list > > >> >>> >> gradsusr at gradsusr.org > > >> >>> >> http://gradsusr.org/mailman/listinfo/gradsusr > > >> >>> >> > > >> >>> > _______________________________________________ > > >> >>> > gradsusr mailing list > > >> >>> > gradsusr at gradsusr.org > > >> >>> > http://gradsusr.org/mailman/listinfo/gradsusr > > >> >>> > > > >> >>> > > >> >>> > > >> >>> _______________________________________________ > > >> >>> gradsusr mailing list > > >> >>> gradsusr at gradsusr.org > > >> >>> http://gradsusr.org/mailman/listinfo/gradsusr > > >> >>> > > >> >> _______________________________________________ > > >> >> gradsusr mailing list > > >> >> gradsusr at gradsusr.org > > >> >> http://gradsusr.org/mailman/listinfo/gradsusr > > >> >> > > >> > > > >> > > > >> > _______________________________________________ > > >> > gradsusr mailing list > > >> > gradsusr at gradsusr.org > > >> > http://gradsusr.org/mailman/listinfo/gradsusr > > >> > > > >> > _______________________________________________ > > >> > gradsusr mailing list > > >> > gradsusr at gradsusr.org > > >> > http://gradsusr.org/mailman/listinfo/gradsusr > > >> > > > >> > > > >> > > >> > > >> _______________________________________________ > > >> gradsusr mailing list > > >> gradsusr at gradsusr.org > > >> http://gradsusr.org/mailman/listinfo/gradsusr > > >> > > > _______________________________________________ > > > gradsusr mailing list > > > gradsusr at gradsusr.org > > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > > > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100519/1eda0c56/attachment.html > > ------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > End of gradsusr Digest, Vol 3, Issue 41 > *************************************** > -- ----------------------------------------------------------- Guilherme Martins Instituto Nacional de Pesquisas Espaciais (INPE) Centro de Previs?o de Tempo e Estudos Clim?ticos (CPTEC) Grupo de Modelagem da Atmosfera e Interfaces (GMAI) Telefone(CP): +55 12 3186-8502 Celular(SJC): +55 12 8152-8580 / +55 12 3208-7276 E-mail: guilherme.martins at inpe.br E-mail alternativo: jgmsantos at gmail.com Homepage: http://guilhermemartins.hd1.com.br/ ----------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/f3628a8c/attachment-0001.html From jonathan.smith at nasa.gov Wed May 19 17:19:55 2010 From: jonathan.smith at nasa.gov (SMITH, JONATHAN WYNN. (GSFC-6133)) Date: Wed, 19 May 2010 16:19:55 -0500 Subject: [gradsusr] wrf vert profile at one lat/lon using grads Message-ID: <1E8644A2BCBD5E4A9967E1E00D5D4C73B6D28CF866@NDMSSCC05.ndc.nasa.gov> Hello grads users, I am using GrADS to output wrf data. In the interpolation tool ARWpost, I interpolated the variables to every 25 hPa. When I attempt to plot a vertical profile with the following script: Reint C Set display color white Clear Set LON 15 Set LAT -5 Set LEV 1000 100 Set t 5 Set vrange -1e-9 1e-8 Print /Users/jonathanwsmith/Desktop/ozone_vert_prof.gif I get the graph that I have attached I end up with several straight lines going left to right and data points that are not connected to each other. How do I connect the data with grads? Jonathan Jonathan Wynn Smith Doctoral Student Howard University Program in Atmospheric Science and NASA - Goddard Space Flight Center - Co-Op Atmospheric Chemistry and Dynamics Branch Code 613.3 Greenbelt, MD 20771 301-614-5956 jonathan.smith at nasa.gov jw_smith at howard.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100519/b7416602/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: ozone_vert_prof.gif Type: image/gif Size: 29480 bytes Desc: ozone_vert_prof.gif Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100519/b7416602/attachment-0001.gif From gsclarke at emirates.net.ae Wed May 19 23:13:26 2010 From: gsclarke at emirates.net.ae (Greg Clarke) Date: Thu, 20 May 2010 07:13:26 +0400 Subject: [gradsusr] wrf vert profile at one lat/lon using grads In-Reply-To: <1E8644A2BCBD5E4A9967E1E00D5D4C73B6D28CF866@NDMSSCC05.ndc.nasa.gov> References: <1E8644A2BCBD5E4A9967E1E00D5D4C73B6D28CF866@NDMSSCC05.ndc.nasa.gov> Message-ID: <025f01caf7ca$69f07060$3dd15120$@net.ae> Jonathan, >From the looks of things I would say your "vrange" is not wide enough for the data. Try to view the variable with "set gxout stat" command to determine the upper and low limits of the variable first. Greg From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of SMITH, JONATHAN WYNN. (GSFC-6133) Sent: Thursday, 20 May 2010 01:20 To: gradsusr at gradsusr.org Subject: [gradsusr] wrf vert profile at one lat/lon using grads Hello grads users, I am using GrADS to output wrf data. In the interpolation tool ARWpost, I interpolated the variables to every 25 hPa. When I attempt to plot a vertical profile with the following script: Reint C Set display color white Clear Set LON 15 Set LAT -5 Set LEV 1000 100 Set t 5 Set vrange -1e-9 1e-8 Print /Users/jonathanwsmith/Desktop/ozone_vert_prof.gif I get the graph that I have attached I end up with several straight lines going left to right and data points that are not connected to each other. How do I connect the data with grads? Jonathan Jonathan Wynn Smith Doctoral Student Howard University Program in Atmospheric Science and NASA - Goddard Space Flight Center - Co-Op Atmospheric Chemistry and Dynamics Branch Code 613.3 Greenbelt, MD 20771 301-614-5956 jonathan.smith at nasa.gov jw_smith at howard.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100520/19ce71e2/attachment.html From satya_atmos at rediffmail.com Thu May 20 01:41:45 2010 From: satya_atmos at rediffmail.com (Satyaban BishoyiRatna) Date: 20 May 2010 05:41:45 -0000 Subject: [gradsusr] =?utf-8?q?Filtered_rainfall_series?= Message-ID: <20100520054145.34317.qmail@f4mail-235-133.rediffmail.com> Dear all, I have spatially distributed daily rainfall data series. I would like to prepare area averaged filtered rainfall series which retains information on 10-60 day mode. Can you please suggest me how can I prepare filtered rainfall series using GrADS script. Thanks. Regards Satyaban ######################################################## Dr. Satyaban Bishoyi Ratna CDAC, Pune, India ######################################################## -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100520/244d8371/attachment.html From tim.miller at nasa.gov Thu May 20 09:53:25 2010 From: tim.miller at nasa.gov (Miller, Timothy L. (MSFC-VP61)) Date: Thu, 20 May 2010 08:53:25 -0500 Subject: [gradsusr] User-defined functons in GrADS 2 Message-ID: We have recently installed grads2 on our Linux box. We have been using grads 1.94, which is also still installed. Grads2 is finding my script files, but not the user-defined functions. The latter still work with grads 1.94, but not grads 2. Can anyone offer any suggestions on what I still need to do? Thanks in advance. Tim Miller, NASA/MSFC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100520/a6f53c7f/attachment.html From subhadeeph at gmail.com Fri May 21 03:29:28 2010 From: subhadeeph at gmail.com (Subhadeep Halder) Date: Fri, 21 May 2010 03:29:28 -0400 Subject: [gradsusr] converting coordinates Message-ID: Dear users, In grads, we have many conversions like xy2w, xy2gr, w2xy, w2gr, gr2w, gr2xy, ll2xy, pp2xy. What is the difference between these different co-ordinate systems like, world coordinates, grid coordinates, XY coordinates, LON/LAt coordinates and page coordinates ? Can anyone having idea about these explain me? thanks and regards, Subhadeep IITM, Pune, India. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/6bcb64dc/attachment.html From satya_atmos at rediffmail.com Fri May 21 04:35:04 2010 From: satya_atmos at rediffmail.com (Satyaban BishoyiRatna) Date: 21 May 2010 08:35:04 -0000 Subject: [gradsusr] =?utf-8?q?converting_coordinates?= In-Reply-To: Message-ID: <1274426830.S.3591.5865.H.WVN1YmhhZGVlcCBIYWxkZXIAW2dyYWRzdXNyXSBjb252ZXJ0aW5nIGNvb3JkaW5hdGVz.f4-235-201.1274430904.34329@webmail.rediffmail.com> Hi Subhadeep, One example of w2xy (world coordinate to xy coordinate): In case you want to draw some line and some point at a particular lat/lon of your figure, you need to know the XY coordinate for that grid point as grads doesn't take the direct lat/lon value. So by defining w2xy, your lat/lon will convert to XY coordinate, which you can use in GrADS plot. Similarly you can follow for others. Satyaban On Fri, 21 May 2010 12:57:10 +0530 wrote >Dear users, In grads, we have many conversions like xy2w, xy2gr, w2xy, w2gr, gr2w, gr2xy, ll2xy, pp2xy. What is the difference between these different co-ordinate systems like, world coordinates, grid coordinates, XY coordinates, LON/LAt coordinates and page coordinates ? Can anyone having idea about these explain me? thanks and regards, Subhadeep IITM, Pune, India. _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr ######################################################## Dr. Satyaban Bishoyi Ratna CDAC, Pune, India ######################################################## -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/b54e77c5/attachment.html From devdas.pnr at gmail.com Fri May 21 06:41:03 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Fri, 21 May 2010 16:11:03 +0530 Subject: [gradsusr] Help needed in getting annual mean from time series data Message-ID: Dear Grads users, I am a beginner in GrADS. I have a multi-year time series data. I want to get the annual mean in this data. Please see that from the following I can get monthly time series plot, and it is working fine. 'set lon 30' 'set lat 5' 'set t 2 302' *------------------------ *Monthly time series *------------------------ 'define sstmonth=aave(sst.1,lon=30,lon=78,lat=5,lat=31)' 'set gxout line' 'set cmark 4' 'set grads off' 'set ccolor 9' 'd sstmonth' In the same plot, I want to have one more curve showing the annual mean. I mean 26 annual mean values for the 26 years. I don't know how to do this. I will highly appreciate if someone can help me in this. Thanks, Sudev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/0317ce9e/attachment.html From devdas.pnr at gmail.com Fri May 21 06:44:21 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Fri, 21 May 2010 16:14:21 +0530 Subject: [gradsusr] Help needed in getting annual mean from time series data Message-ID: Dear Grads users, I am a beginner in GrADS. I have a multi-year time series data. I want to get the annual mean in this data. Please see that from the following I can get monthly time series plot, and it is working fine. 'set lon 30' 'set lat 5' 'set t 2 302' *------------------------ *Monthly time series *------------------------ 'define sstmonth=aave(sst.1,lon=30,lon=78,lat=5,lat=31)' 'set gxout line' 'set cmark 4' 'set grads off' 'set ccolor 9' 'd sstmonth' In the same plot, I want to have one more curve showing the annual mean. I mean 26 annual mean values for the 26 years. I don't know how to do this. I will highly appreciate if someone can help me in this. Thanks, Sudev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/007a7315/attachment.html From devdas.pnr at gmail.com Fri May 21 06:45:38 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Fri, 21 May 2010 16:15:38 +0530 Subject: [gradsusr] Help needed in getting annual mean from time series data Message-ID: Dear Grads users, I am a beginner in GrADS. I have a multi-year time series data. I want to get the annual mean in this data. Please see that from the following I can get monthly time series plot, and it is working fine. 'set lon 30' 'set lat 5' 'set t 2 302' *------------------------ *Monthly time series *------------------------ 'define sstmonth=aave(sst.1,lon=30,lon=78,lat=5,lat=31)' 'set gxout line' 'set cmark 4' 'set grads off' 'set ccolor 9' 'd sstmonth' In the same plot, I want to have one more curve showing the annual mean. I mean 26 annual mean values for the 26 years. I don't know how to do this. I will highly appreciate if someone can help me in this. Thanks, Sudev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/4cf0073d/attachment-0001.html From me at j0nes.de Fri May 21 07:42:24 2010 From: me at j0nes.de (Jonas Kaufmann) Date: Fri, 21 May 2010 13:42:24 +0200 Subject: [gradsusr] Grads computation speed Message-ID: Hello, I just ran into a problem regarding Grads computation speed. I have set up a WRF model over Europe and extract surface parameters for about 4-5000 points in the model for 72 timesteps. Now I tried another WRF version which produces different output files, and the computation speed for my Grads tasks for the new model is much much slower than before. You can find the first lines of my control files below. Using my old model, I could run my complete Grads tasks in about 90 minutes. Using the new setup, this takes forever to complete (had to skip this as it took too long, think it should be around 180 minutes or so), of course on the same machine. The main difference must be in the Gribfiles I am using. Can anyone explain why this might be happening? Which Gribfile settings (version, projection etc.) are the best usable ones for Grads? And finally: how can I improve computation speed for my new model? Thank you for your answer! Best regards, Jonas Kaufmann Old model: options byteswapped pdef 161 146 lcc 47.300 9.800 81.000 73.500 47.30000 47.30000 9.80000 21000.000 21000.000 xdef 626 linear -19.84533 0.09459461 ydef 324 linear 31.13766 0.09459461 zdef 27 linear 1 1 tdef 88 linear 21Z26MAY2009 60MN VARS 14 New model: dtype grib 255 pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 10.025000 14684 14768 xdef 265 linear -10.532000 0.156066529170106 ydef 211 linear 31.202000 0.134254545454545 tdef 1 linear 00Z24may2010 1mo zdef 1 linear 1 1 vars 16 From michael.fiorino at noaa.gov Fri May 21 09:07:10 2010 From: michael.fiorino at noaa.gov (Michael Fiorino) Date: Fri, 21 May 2010 13:07:10 +0000 Subject: [gradsusr] User-defined functons in GrADS 2 In-Reply-To: References: Message-ID: <4BF6857E.7020902@noaa.gov> Tim, the opengrads.org version of 2.0 supports user-defined 'extensions'. Arlindo and I have ported over most of the popular udfs included a corrected version of my 'regrid2' udf now invoked in opergrads2.0 as 're2'. ciao mike On 5/20/10 1:53 PM, Miller, Timothy L. (MSFC-VP61) wrote: > We have recently installed grads2 on our Linux box. We have been > using grads 1.94, which is also still installed. Grads2 is finding my > script files, but not the user-defined functions. The latter still > work with grads 1.94, but not grads 2. Can anyone offer any > suggestions on what I still need to do? > > Thanks in advance. > > Tim Miller, NASA/MSFC > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From michael.fiorino at noaa.gov Fri May 21 09:09:49 2010 From: michael.fiorino at noaa.gov (Michael Fiorino) Date: Fri, 21 May 2010 13:09:49 +0000 Subject: [gradsusr] Grads computation speed In-Reply-To: References: Message-ID: <4BF6861D.9090908@noaa.gov> Jonas, you need to tell us the version of grads... so the old data is binary and the new data grib? ciao mike On 5/21/10 11:42 AM, Jonas Kaufmann wrote: > Hello, > > I just ran into a problem regarding Grads computation speed. I have > set up a WRF model over Europe and extract surface parameters for > about 4-5000 points in the model for 72 timesteps. Now I tried another > WRF version which produces different output files, and the computation > speed for my Grads tasks for the new model is much much slower than > before. You can find the first lines of my control files below. > > Using my old model, I could run my complete Grads tasks in about 90 > minutes. Using the new setup, this takes forever to complete (had to > skip this as it took too long, think it should be around 180 minutes > or so), of course on the same machine. The main difference must be in > the Gribfiles I am using. > > Can anyone explain why this might be happening? Which Gribfile > settings (version, projection etc.) are the best usable ones for > Grads? And finally: how can I improve computation speed for my new > model? > > Thank you for your answer! > > Best regards, > Jonas Kaufmann > > > Old model: > options byteswapped > pdef 161 146 lcc 47.300 9.800 81.000 73.500 47.30000 > 47.30000 9.80000 21000.000 21000.000 > xdef 626 linear -19.84533 0.09459461 > ydef 324 linear 31.13766 0.09459461 > zdef 27 linear 1 1 > tdef 88 linear 21Z26MAY2009 60MN > VARS 14 > > New model: > dtype grib 255 > pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 > 10.025000 14684 14768 > xdef 265 linear -10.532000 0.156066529170106 > ydef 211 linear 31.202000 0.134254545454545 > tdef 1 linear 00Z24may2010 1mo > zdef 1 linear 1 1 > vars 16 > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From me at j0nes.de Fri May 21 09:16:01 2010 From: me at j0nes.de (Jonas Kaufmann) Date: Fri, 21 May 2010 15:16:01 +0200 Subject: [gradsusr] Grads computation speed In-Reply-To: <4BF6861D.9090908@noaa.gov> References: <4BF6861D.9090908@noaa.gov> Message-ID: Hello Michael, I tried on two machines with the same results. One is running Grads Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3. In both cases using the new version of my model was significantly slower than the old one. The old model used ARWpost as WRF postprocessor, the new one uses wrfpost. Both outputs are only customized in terms of available fields in the Grib file, all other options should be the default ones. Thank you for your help! Best regards, Jonas Kaufmann On Fri, May 21, 2010 at 15:09, Michael Fiorino wrote: > Jonas, you need to tell us the version of grads... ?so the old data is > binary and the new data grib? ciao mike > > On 5/21/10 11:42 AM, Jonas Kaufmann wrote: >> Hello, >> >> I just ran into a problem regarding Grads computation speed. I have >> set up a WRF model over Europe and extract surface parameters for >> about 4-5000 points in the model for 72 timesteps. Now I tried another >> WRF version which produces different output files, and the computation >> speed for my Grads tasks for the new model is much much slower than >> before. You can find the first lines of my control files below. >> >> Using my old model, I could run my complete Grads tasks in about 90 >> minutes. Using the new setup, this takes forever to complete (had to >> skip this as it took too long, think it should be around 180 minutes >> or so), of course on the same machine. The main difference must be in >> the Gribfiles I am using. >> >> Can anyone explain why this might be happening? Which Gribfile >> settings (version, projection etc.) are the best usable ones for >> Grads? And finally: how can I improve computation speed for my new >> model? >> >> Thank you for your answer! >> >> Best regards, >> Jonas Kaufmann >> >> >> Old model: >> options ?byteswapped >> pdef ?161 146 lcc ?47.300 ? ?9.800 ? 81.000 ? 73.500 ?47.30000 >> 47.30000 ? ?9.80000 ?21000.000 ?21000.000 >> xdef ?626 linear ?-19.84533 ? 0.09459461 >> ydef ?324 linear ? 31.13766 ? 0.09459461 >> zdef ? 27 linear 1 1 >> tdef ? 88 linear 21Z26MAY2009 ? ? ?60MN >> VARS ? 14 >> >> New model: >> dtype grib 255 >> pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 >> 10.025000 14684 14768 >> xdef 265 linear -10.532000 0.156066529170106 >> ydef 211 linear 31.202000 0.134254545454545 >> tdef 1 linear 00Z24may2010 1mo >> zdef 1 linear 1 1 >> vars 16 >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > From info at a-conseil.com Fri May 21 09:20:12 2010 From: info at a-conseil.com (JPB) Date: Fri, 21 May 2010 15:20:12 +0200 Subject: [gradsusr] Grads computation speed In-Reply-To: References: <4BF6861D.9090908@noaa.gov> Message-ID: Hello, there is a big difference in computation time between grib1 and grib2 when using grads. Perhaps you have to look at the grib file types... regards, JPB Le 21 mai 10 ? 15:16, Jonas Kaufmann a ?crit : > Hello Michael, > > I tried on two machines with the same results. One is running Grads > Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3. > In both cases using the new version of my model was significantly > slower than the old one. > > The old model used ARWpost as WRF postprocessor, the new one uses > wrfpost. Both outputs are only customized in terms of available fields > in the Grib file, all other options should be the default ones. > > Thank you for your help! > > Best regards, > Jonas Kaufmann > > On Fri, May 21, 2010 at 15:09, Michael Fiorino > wrote: >> Jonas, you need to tell us the version of grads... so the old data >> is >> binary and the new data grib? ciao mike >> >> On 5/21/10 11:42 AM, Jonas Kaufmann wrote: >>> Hello, >>> >>> I just ran into a problem regarding Grads computation speed. I have >>> set up a WRF model over Europe and extract surface parameters for >>> about 4-5000 points in the model for 72 timesteps. Now I tried >>> another >>> WRF version which produces different output files, and the >>> computation >>> speed for my Grads tasks for the new model is much much slower than >>> before. You can find the first lines of my control files below. >>> >>> Using my old model, I could run my complete Grads tasks in about 90 >>> minutes. Using the new setup, this takes forever to complete (had to >>> skip this as it took too long, think it should be around 180 minutes >>> or so), of course on the same machine. The main difference must be >>> in >>> the Gribfiles I am using. >>> >>> Can anyone explain why this might be happening? Which Gribfile >>> settings (version, projection etc.) are the best usable ones for >>> Grads? And finally: how can I improve computation speed for my new >>> model? >>> >>> Thank you for your answer! >>> >>> Best regards, >>> Jonas Kaufmann >>> >>> >>> Old model: >>> options byteswapped >>> pdef 161 146 lcc 47.300 9.800 81.000 73.500 47.30000 >>> 47.30000 9.80000 21000.000 21000.000 >>> xdef 626 linear -19.84533 0.09459461 >>> ydef 324 linear 31.13766 0.09459461 >>> zdef 27 linear 1 1 >>> tdef 88 linear 21Z26MAY2009 60MN >>> VARS 14 >>> >>> New model: >>> dtype grib 255 >>> pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 >>> 10.025000 14684 14768 >>> xdef 265 linear -10.532000 0.156066529170106 >>> ydef 211 linear 31.202000 0.134254545454545 >>> tdef 1 linear 00Z24may2010 1mo >>> zdef 1 linear 1 1 >>> vars 16 >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >>> >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From tim.miller at nasa.gov Fri May 21 09:33:37 2010 From: tim.miller at nasa.gov (Miller, Timothy L. (MSFC-VP61)) Date: Fri, 21 May 2010 08:33:37 -0500 Subject: [gradsusr] User-defined functons in GrADS 2 In-Reply-To: <4BF6857E.7020902@noaa.gov> References: <4BF6857E.7020902@noaa.gov> Message-ID: Mike, Thanks very much. I would conclude, then, that we would need to reinstall grads2 using the opengrads version. (We had installed 2.0a8 from the iges.org web page.) And first uninstall the 2.0a8 version. Is that correct? Tim -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Michael Fiorino Sent: Friday, May 21, 2010 8:07 AM To: GrADS Users Forum Subject: Re: [gradsusr] User-defined functons in GrADS 2 Tim, the opengrads.org version of 2.0 supports user-defined 'extensions'. Arlindo and I have ported over most of the popular udfs included a corrected version of my 'regrid2' udf now invoked in opergrads2.0 as 're2'. ciao mike On 5/20/10 1:53 PM, Miller, Timothy L. (MSFC-VP61) wrote: > We have recently installed grads2 on our Linux box. We have been > using grads 1.94, which is also still installed. Grads2 is finding my > script files, but not the user-defined functions. The latter still > work with grads 1.94, but not grads 2. Can anyone offer any > suggestions on what I still need to do? > > Thanks in advance. > > Tim Miller, NASA/MSFC > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From devdas.pnr at gmail.com Fri May 21 11:22:03 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Fri, 21 May 2010 20:52:03 +0530 Subject: [gradsusr] Help needed in getting annual mean from time series data Message-ID: Dear Grads users, I am a beginner in GrADS. I have a multi-year time series data. I want to get the annual mean in this data. Please see that from the following I can get monthly time series plot, and it is working fine. 'set lon 30' 'set lat 5' 'set t 2 302' *------------------------ *Monthly time series *------------------------ 'define sstmonth=aave(sst.1,lon=30, lon=78,lat=5,lat=31)' 'set gxout line' 'set cmark 4' 'set grads off' 'set ccolor 9' 'd sstmonth' In the same plot, I want to have one more curve showing the annual mean. I mean 26 annual mean values for the 26 years. I don't know how to do this. I will highly appreciate if someone can help me in this. Thanks, Sudev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/e373760e/attachment.html From devdas.pnr at gmail.com Fri May 21 11:25:10 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Fri, 21 May 2010 20:55:10 +0530 Subject: [gradsusr] Help needed in getting annual mean from time series data Message-ID: Dear Grads users, I am a beginner in GrADS. I have a multi-year time series data. I want to get the annual mean in this data. Please see that from the following I can get monthly time series plot, and it is working fine. 'set lon 30' 'set lat 5' 'set t 2 302' *------------------------ *Monthly time series *------------------------ 'define sstmonth=aave(sst.1,lon=30, lon=78,lat=5,lat=31)' 'set gxout line' 'set cmark 4' 'set grads off' 'set ccolor 9' 'd sstmonth' In the same plot, I want to have one more curve showing the annual mean. I mean 26 annual mean values for the 26 years. I don't know how to do this. I will highly appreciate if someone can help me in this. Thanks, Sudev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/ac3e8eb3/attachment.html From Michael.Fiorino at noaa.gov Fri May 21 14:16:14 2010 From: Michael.Fiorino at noaa.gov (Michael Fiorino) Date: Fri, 21 May 2010 18:16:14 +0000 Subject: [gradsusr] User-defined functons in GrADS 2 In-Reply-To: References: <4BF6857E.7020902@noaa.gov> Message-ID: <4BF6CDEE.8050707@noaa.gov> Tim, you don't need to uninstall 2.0a8, just put opengrads in a different location. the only significant difference is that opengrads has an interface for extensions... ciao mike On 5/21/10 1:33 PM, Miller, Timothy L. (MSFC-VP61) wrote: > Mike, > Thanks very much. I would conclude, then, that we would need to reinstall grads2 using the opengrads version. (We had installed 2.0a8 from the iges.org web page.) And first uninstall the 2.0a8 version. Is that correct? > Tim > > > -----Original Message----- > From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Michael Fiorino > Sent: Friday, May 21, 2010 8:07 AM > To: GrADS Users Forum > Subject: Re: [gradsusr] User-defined functons in GrADS 2 > > Tim, > > the opengrads.org version of 2.0 supports user-defined 'extensions'. > Arlindo and I have ported over most of the popular udfs included a corrected version of my 'regrid2' udf now invoked in opergrads2.0 as 're2'. > > ciao mike > > On 5/20/10 1:53 PM, Miller, Timothy L. (MSFC-VP61) wrote: > >> We have recently installed grads2 on our Linux box. We have been >> using grads 1.94, which is also still installed. Grads2 is finding my >> script files, but not the user-defined functions. The latter still >> work with grads 1.94, but not grads 2. Can anyone offer any >> suggestions on what I still need to do? >> >> Thanks in advance. >> >> Tim Miller, NASA/MSFC >> >> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100521/f6a3795c/attachment-0001.html From satya_atmos at rediffmail.com Sat May 22 01:29:11 2010 From: satya_atmos at rediffmail.com (Satyaban BishoyiRatna) Date: 22 May 2010 05:29:11 -0000 Subject: [gradsusr] =?utf-8?q?10-60_day_mode_filtered_series?= Message-ID: <20100522052911.42598.qmail@f4mail-235-141.rediffmail.com> Dear User, I have spatially distributed daily rainfall data series. I would like to prepare area averaged filtered rainfall series which retains information on 10-60 day mode. Can you please suggest me how can I prepare filtered rainfall series using GrADS script. Thanks. Regards Satyaban ######################################################## Dr. Satyaban Bishoyi Ratna CDAC, Pune, India ######################################################## -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100522/ea60c42a/attachment.html From anto.ricchi at gmail.com Sat May 22 10:14:57 2010 From: anto.ricchi at gmail.com (Antonio Ricchi) Date: Sat, 22 May 2010 16:14:57 +0200 Subject: [gradsusr] grads txt output Message-ID: Hello everyone. I export the values of the WRF model . I wrote a few lines but does not work very well. 'reinit' 'open /NMM/wrfems/runs/a/emsprd/grads/control.ctl' 'c' 'set lat 45.00' 'set lon 10.00' 'set grads off' 'set t 2' a = t'.txt' kt = 06 'd vvelprs(lev=700)' linha = sublin(result,2) vvel1 = subwrd(linha,4) vvel2 = substr(vvel1,1,4) if ( vvel2 = 0 ) ; vvel2 = 0.00 ; endif write (a, 'VVEL', append) write (a, '+'%kt%' '%vvel2, append) 'quit' I write the value for each hour in a txt file. I'm hoping for some suggestions -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100522/11423068/attachment.html From r.hachelaf at gmail.com Sun May 23 12:00:12 2010 From: r.hachelaf at gmail.com (hachelaf rabah) Date: Sun, 23 May 2010 18:00:12 +0200 Subject: [gradsusr] How to make a bufr descriptor file whith bufrscan Message-ID: Hello all, i have a prepbufr file named "prepbufr.in" when i type thise line commande "./bufrscan -h ../tables prepbufr.in" i have a succeded messages like that : =============================================================== >>> processing message 5 >>> start of message 0 63 000 (numeric) BYTCNT 3 48 121 (sequence) 3 48 001 (sequence) 0 01 194 (text) SID STATION IDENTIFICATION 0 06 240 (numeric) XOB LONGITUDE 0 05 002 (numeric) YOB LATITUDE 0 04 215 (numeric) DHR OBSERVATION TIME MINUS CYCLE TIME 0 10 199 (numeric) ELV STATION ELEVATION 0 55 007 (numeric) TYP PREPBUFR REPORT TYPE 0 55 008 (numeric) T29 DATA DUMP REPORT TYPE 0 55 009 (numeric) TSB REPORT SUBTYPE (HAS VARIOUS MEANINGS DEPENDING ON TYPE) 0 02 195 (numeric) ITP INSTRUMENT TYPE 0 50 001 (numeric) SQN REPORT SEQUENCE NUMBER 0 50 003 (numeric) PROCN PROCESS NUMBER FOR THIS MPI RUN (OBTAINED FROM SCRIPT) 0 04 214 (numeric) RPT REPORTED OBSERVATION TIME 0 04 216 (numeric) TCOR INDICATOR WHETHER OBS. TIME IN "DHR" WAS CORRECTED 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 081 (sequence) 0 35 200 (numeric) RSRD RESTRICTIONS ON REDISTRIBUTION 0 35 201 (numeric) EXPRSRD EXPIRATION OF RESTRICTIONS ON REDISTRIBUTION 0 08 193 (numeric) CAT PREPBUFR DATA LEVEL CATEGORY 0 01 007 (numeric) SAID SATELLITE IDENTIFIER (SATELLITE REPORTS ONLY) 0 06 034 (numeric) CTCN CROSS TRACK CELL NUMBER (QUIKSCAT & ASCAT REPORTS ONLY) 0 21 155 (numeric) WVCQ WIND VECTOR CELL QUALITY (ASCAT REPORTS ONLY) 0 21 156 (numeric) BSCD BACKSCATTER DISTANCE (ASCAT REPORTS ONLY) 0 21 104 (numeric) LKCS LIKELIHOOD COMPUTED FOR SOLUTION (ASCAT REPORTS ONLY) 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 141 (sequence) 3 60 003 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 001 (replication count) 3 48 171 (sequence) 0 07 245 (numeric) POB PRESSURE OBSERVATION 0 07 246 (numeric) PQM PRESSURE (QUALITY) MARKER 0 07 247 (numeric) PPC PRESSURE EVENT PROGRAM CODE 0 07 248 (numeric) PRC PRESSURE EVENT REASON CODE 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 191 (sequence) 0 07 250 (numeric) POE PRESSURE OBSERVATION ERROR 0 07 249 (numeric) PFC FORECAST (BACKGROUND) PRESSURE VALUE 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 241 (sequence) 0 07 255 (numeric) PFCMOD MODEL PRESSURE FORECAST VALUE (GLOBAL MODEL SEE PFC) 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 211 (sequence) 0 07 251 (numeric) PAN ANALYZED PRESSURE VALUE 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 231 (sequence) 0 07 252 (numeric) PCL CLIMATOLOGICAL PRESSURE VALUE 0 07 253 (numeric) PCS STANDARD DEVIATION OF CLIMATOLOGICAL PRESSURE VALUE 0 07 254 (numeric) POETU ANALYSIS-TUNED PRESSURE OBSERVATION ERROR 0 33 204 (numeric) PVWTG ANAL VARIATIONAL QC WEIGHT ON PRESS. OBS BASED ON GUESS 0 33 205 (numeric) PVWTA ANAL VARIATIONAL QC WEIGHT ON PRESS. OBS BASED ON ANAL 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 145 (sequence) 3 60 003 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 001 (replication count) 3 48 175 (sequence) 0 11 003 (numeric) UOB U-COMPONENT WIND OBSERVATION 0 11 004 (numeric) VOB V-COMPONENT WIND OBSERVATION 0 11 240 (numeric) WQM U-, V-COMPONENT WIND (UOB/VOB) (QUALITY) MARKER 0 11 241 (numeric) WPC U-, V-COMPONENT WIND (UOB/VOB) EVENT PROGRAM CODE 0 11 242 (numeric) WRC U-, V-COMPONENT WIND (UOB/VOB) EVENT REASON CODE 3 60 003 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 001 (replication count) 3 48 176 (sequence) 0 11 001 (numeric) DDO WIND DIRECTION OBSERVATION (NOT ASSIMILATED) 0 11 252 (numeric) FFO WIND SPEED OBSERVATION (NOT ASSIMILATED) 0 11 218 (numeric) DFQ WIND DIRECTION/SPEED (DDO/FFO) (QUALITY) MARKER 0 11 219 (numeric) DFP WIND DIRECTION/SPEED (DDO/FFO) EVENT PROGRAM CODE 0 11 220 (numeric) DFR WIND DIRECTION/SPEED (DDO/FFO) EVENT REASON CODE 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 195 (sequence) 0 11 245 (numeric) WOE WIND OBSERVATION ERROR 0 11 243 (numeric) UFC FORECAST (BACKGROUND) U-COMPONENT WIND VALUE 0 11 244 (numeric) VFC FORECAST (BACKGROUND) V-COMPONENT WIND VALUE 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 245 (sequence) 0 11 254 (numeric) UFCMOD MODEL U-COMPONENT FORECAST VALUE (GLOBAL MODEL SEE UFC) 0 11 255 (numeric) VFCMOD MODEL V-COMPONENT FORECAST VALUE (GLOBAL MODEL SEE VFC) 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 215 (sequence) 0 11 246 (numeric) UAN ANALYZED U-COMPONENT WIND VALUE 0 11 247 (numeric) VAN ANALYZED V-COMPONENT WIND VALUE 3 60 004 (sequence) 1 01 000 (replicate next 1, not including replication count) 0 31 000 (replication count) 3 48 235 (sequence) 0 11 248 (numeric) UCL CLIMATOLOGICAL U-COMPONENT WIND VALUE 0 11 250 (numeric) UCS STANDARD DEVIATION OF CLIMATOLOGICAL U-COMP WIND VALUE 0 11 249 (numeric) VCL CLIMATOLOGICAL V-COMPONENT WIND VALUE 0 11 251 (numeric) VCS STANDARD DEVIATION OF CLIMATOLOGICAL V-COMP WIND VALUE 0 11 253 (numeric) WOETU ANALYSIS-TUNED WIND OBSERVATION ERROR 0 33 212 (numeric) WVWTG ANAL VARIATIONAL QC WEIGHT ON WIND OBS BASED ON GUESS 0 33 213 (numeric) WVWTA ANAL VARIATIONAL QC WEIGHT ON WIND OBS BASED ON ANAL 0 11 225 (numeric) RF10M 10 METER WIND REDUCTION FACTOR 1 02 000 (replicate next 2, not including replication count) 0 31 001 (replication count) 2 06 001 (operator) 0 63 255 (numeric) BITPAD ============================================================= so can you help me to generat a descriptor file and, who to read data from a bufr file with grads Thank you advanced . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100523/540997a1/attachment.html From anto.ricchi at gmail.com Sun May 23 14:21:02 2010 From: anto.ricchi at gmail.com (Antonio Ricchi) Date: Sun, 23 May 2010 20:21:02 +0200 Subject: [gradsusr] grads (wrf model) .txt output Message-ID: Hello everyone. I export the values of the WRF model . I wrote a few lines but does not work very well. 'reinit' 'open /NMM/wrfems/runs/a/emsprd/grads/control.ctl' 'c' 'set lat 45.00' 'set lon 10.00' 'set grads off' 'set t 2' a = t'.txt' kt = 06 'd vvelprs(lev=700)' linha = sublin(result,2) vvel1 = subwrd(linha,4) vvel2 = substr(vvel1,1,4) if ( vvel2 = 0 ) ; vvel2 = 0.00 ; endif write (a, 'VVEL', append) write (a, '+'%kt%' '%vvel2, append) 'quit' I write the value for each hour in a txt file. I'm hoping for some suggestions -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100523/83f535c9/attachment.html From devdas.pnr at gmail.com Mon May 24 08:00:24 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Mon, 24 May 2010 17:30:24 +0530 Subject: [gradsusr] How to get a monthly & yearly time series plot correctly? Message-ID: Dear Grads users, I am a very beginner in GrADS. I have a multi-year SST data. I want to get a time series monthly and annual mean plot of this data in a specified region in the same figure, keeping same x-axis (time) and y-axis (SST). Please see below the code I am having, I also attach the figure I am getting out of it. The annual mean value is found to be constant for all the 25 years I considered. Definitely some mistake I am making in the code, which I am not able to identify. Can somebody please help me the correct way of doing it? -------------------------------------------------------------- 'sdfopen sst_mon_81_07.nc' 'set x 1 360' 'set y 1 180' 'set z 1' 'set t 1 311' 'set lon 30' 'set lat 5' 'set t 2 301' 'define sstarea=aave(sst.1,lon=30,lon=78,lat=5,lat=31)' 'set gxout line';'set cstyle 1';'set cmark 3';'set ccolor 1' 'd tloop(sstarea)' 'set x 1 360' 'set y 1 180' 'set z 1' 'set t 1 311' ts = 1 while ( ts <= 25 ) 'set t 'ts * 12 'define sstave = ave(sst,t-10,t+1)' ts = ts + 1 endwhile 'set lon 30' 'set lat 5' 'set t 1 25' 'set gxout line';'set cstyle 2';'set cmark 5';'set ccolor 3' 'd tloop(aave(sstave,lon=30,lon=78,lat=5,lat=31))' -------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100524/d93383b8/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: figsst.pdf Type: application/pdf Size: 38356 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100524/d93383b8/attachment-0001.pdf From jma at cola.iges.org Mon May 24 08:38:17 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Mon, 24 May 2010 08:38:17 -0400 Subject: [gradsusr] Help needed in getting annual mean from time series data In-Reply-To: References: Message-ID: <9B9EA431-F07E-4683-83B2-C948441022DC@cola.iges.org> Dear Sudev, On May 21, 2010, at 11:25 AM, sudev das M P wrote: > Dear Grads users, > I am a beginner in GrADS. > I have a multi-year time series data. I want to get the annual mean > in this data. > > Please see that from the following I can get monthly time series > plot, and it is working fine. > > 'set lon 30' > 'set lat 5' > > 'set t 2 302' Why is this not 'set t 1 302' ? > > *------------------------ > *Monthly time series > *------------------------ > 'define sstmonth=aave(sst.1,lon=30, > lon=78,lat=5,lat=31)' > 'set gxout line' > 'set cmark 4' > 'set grads off' > 'set ccolor 9' > 'd sstmonth' > > In the same plot, I want to have one more curve showing the annual > mean. > I mean 26 annual mean values for the 26 years. > > I don't know how to do this. Try this after you have defined sstmon: 'set t 1 12' 'sstann = ave(sstmonth,t+0,t=302,12)' 'modify sstann seasonal' --Jennifer > > I will highly appreciate if someone can help me in this. > > Thanks, > > Sudev > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- 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/20100524/cf720072/attachment.html From Alex.Gibbs at noaa.gov Mon May 24 18:59:11 2010 From: Alex.Gibbs at noaa.gov (Alex.Gibbs at noaa.gov) Date: Mon, 24 May 2010 18:59:11 -0400 Subject: [gradsusr] NetCDF file trouble w/ GrADS Message-ID: GrADS users, I am fairly new to GrADS and continue to have problems with getting output from my NetCDF file. I have attached the NetCDF file and data descriptor file I have created. GrADS allows me to open the .ctl file, but only plots constant values of zero when i run the command 'd surf'. Any help here would be very much appreciated. *Sorry for sending a large file. Alex Gibbs -------------- next part -------------- A non-text attachment was scrubbed... Name: ncdumpSurfHeigtFile Type: application/octet-stream Size: 3696 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100524/90b11e37/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: swan1.ctl Type: application/octet-stream Size: 250 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100524/90b11e37/attachment-0001.obj From waheed.met at gmail.com Mon May 24 23:17:52 2010 From: waheed.met at gmail.com (Waheed) Date: Tue, 25 May 2010 08:17:52 +0500 Subject: [gradsusr] how to find monthly sum from a ctl file while writing it as nc file using lats4d Message-ID: ---------- Forwarded message ---------- From: Waheed Date: Mon, May 24, 2010 at 5:18 PM Subject: how to find monthly sum: when using lats4d To: dasilva at alum.mit.edu hello dear i am converting daily precipitaion data (aphrodite) form 1961 to 2007 from ctl type to nc(netcdf) type , i have done it but now i want to find the monthly total from 1961-2007 using lats4d but i am not understading how to do? the script that i have wrtten is as : 'reinit' 'open data-aphd\APHRO_PAK_005deg_V0902.1961-2007/APHRO_PAK_005deg_V0902.ctl' ti=1 tf=ti+30 y=1961 while (y<=2007) while (ti<=16832) 'set t 'ti 'lats4d -v -i data-aphd\APHRO_PAK_005deg_V0902.1961-2007/APHRO_PAK_005deg_V0902.ctl -ftype ctl -o waheed/JAN'y' -func sum(precip,t='ti',t='tf')' ti=ti+365 'set t 'ti 'q time' say result res=subwrd(result,3) yf=substr(res,9,4) if (y=yf) ti=ti+1 'set t 'ti endif y=y+1 endwhile endwhile any help thanx in advance Regards -- waheed iqbal (Meteorologist) Pakistan Meteorological Department R & D islamabad +923334547814 -- waheed iqbal (Meteorologist) Pakistan Meteorological Department R & D islamabad +923334547814 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100525/ffa4d2fd/attachment.html From sudevdasgrads at gmail.com Tue May 25 00:12:44 2010 From: sudevdasgrads at gmail.com (SUDEV Das M. P.) Date: Tue, 25 May 2010 09:42:44 +0530 Subject: [gradsusr] To include in the grads mailing list Message-ID: Dear Sir, Please include me in the grads mailing list. Thanking You, Sudev Das. M. P. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100525/75e7947b/attachment.html From me at j0nes.de Tue May 25 02:36:27 2010 From: me at j0nes.de (Jonas Kaufmann) Date: Tue, 25 May 2010 08:36:27 +0200 Subject: [gradsusr] Grads computation speed In-Reply-To: References: <4BF6861D.9090908@noaa.gov> Message-ID: Hello, which one should be faster then, grib1 or grib2? Does the projection of the file have an influence on the computation speed? Best regards, Jonas Kaufmann On Fri, May 21, 2010 at 15:20, JPB wrote: > Hello, > > there is a big difference in computation time between grib1 and grib2 > when using grads. Perhaps you have to look at the grib file types... > > regards, > JPB > > Le 21 mai 10 ? 15:16, Jonas Kaufmann a ?crit : > >> Hello Michael, >> >> I tried on two machines with the same results. One is running Grads >> Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3. >> In both cases using the new version of my model was significantly >> slower than the old one. >> >> The old model used ARWpost as WRF postprocessor, the new one uses >> wrfpost. Both outputs are only customized in terms of available fields >> in the Grib file, all other options should be the default ones. >> >> Thank you for your help! >> >> Best regards, >> Jonas Kaufmann >> >> On Fri, May 21, 2010 at 15:09, Michael Fiorino > > wrote: >>> Jonas, you need to tell us the version of grads... ?so the old data >>> is >>> binary and the new data grib? ciao mike >>> >>> On 5/21/10 11:42 AM, Jonas Kaufmann wrote: >>>> Hello, >>>> >>>> I just ran into a problem regarding Grads computation speed. I have >>>> set up a WRF model over Europe and extract surface parameters for >>>> about 4-5000 points in the model for 72 timesteps. Now I tried >>>> another >>>> WRF version which produces different output files, and the >>>> computation >>>> speed for my Grads tasks for the new model is much much slower than >>>> before. You can find the first lines of my control files below. >>>> >>>> Using my old model, I could run my complete Grads tasks in about 90 >>>> minutes. Using the new setup, this takes forever to complete (had to >>>> skip this as it took too long, think it should be around 180 minutes >>>> or so), of course on the same machine. The main difference must be >>>> in >>>> the Gribfiles I am using. >>>> >>>> Can anyone explain why this might be happening? Which Gribfile >>>> settings (version, projection etc.) are the best usable ones for >>>> Grads? And finally: how can I improve computation speed for my new >>>> model? >>>> >>>> Thank you for your answer! >>>> >>>> Best regards, >>>> Jonas Kaufmann >>>> >>>> >>>> Old model: >>>> options ?byteswapped >>>> pdef ?161 146 lcc ?47.300 ? ?9.800 ? 81.000 ? 73.500 ?47.30000 >>>> 47.30000 ? ?9.80000 ?21000.000 ?21000.000 >>>> xdef ?626 linear ?-19.84533 ? 0.09459461 >>>> ydef ?324 linear ? 31.13766 ? 0.09459461 >>>> zdef ? 27 linear 1 1 >>>> tdef ? 88 linear 21Z26MAY2009 ? ? ?60MN >>>> VARS ? 14 >>>> >>>> New model: >>>> dtype grib 255 >>>> pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 >>>> 10.025000 14684 14768 >>>> xdef 265 linear -10.532000 0.156066529170106 >>>> ydef 211 linear 31.202000 0.134254545454545 >>>> tdef 1 linear 00Z24may2010 1mo >>>> zdef 1 linear 1 1 >>>> vars 16 >>>> _______________________________________________ >>>> gradsusr mailing list >>>> gradsusr at gradsusr.org >>>> http://gradsusr.org/mailman/listinfo/gradsusr >>>> >>> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From info at a-conseil.com Tue May 25 02:59:33 2010 From: info at a-conseil.com (JPB) Date: Tue, 25 May 2010 08:59:33 +0200 Subject: [gradsusr] Grads computation speed In-Reply-To: References: <4BF6861D.9090908@noaa.gov> Message-ID: <20100525065933.29693.qmail@ns310855.ovh.net> Hello, grib1 is faster because it does not need decompression process compared to grib2 regards, JPB Jonas Kaufmann writes: > Hello, > > which one should be faster then, grib1 or grib2? Does the projection > of the file have an influence on the computation speed? > > Best regards, > Jonas Kaufmann > > On Fri, May 21, 2010 at 15:20, JPB wrote: >> Hello, >> >> there is a big difference in computation time between grib1 and grib2 >> when using grads. Perhaps you have to look at the grib file types... >> >> regards, >> JPB >> >> Le 21 mai 10 ? 15:16, Jonas Kaufmann a ?crit : >> >>> Hello Michael, >>> >>> I tried on two machines with the same results. One is running Grads >>> Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3. >>> In both cases using the new version of my model was significantly >>> slower than the old one. >>> >>> The old model used ARWpost as WRF postprocessor, the new one uses >>> wrfpost. Both outputs are only customized in terms of available fields >>> in the Grib file, all other options should be the default ones. >>> >>> Thank you for your help! >>> >>> Best regards, >>> Jonas Kaufmann >>> >>> On Fri, May 21, 2010 at 15:09, Michael Fiorino >> > wrote: >>>> Jonas, you need to tell us the version of grads... ?so the old data >>>> is >>>> binary and the new data grib? ciao mike >>>> >>>> On 5/21/10 11:42 AM, Jonas Kaufmann wrote: >>>>> Hello, >>>>> >>>>> I just ran into a problem regarding Grads computation speed. I have >>>>> set up a WRF model over Europe and extract surface parameters for >>>>> about 4-5000 points in the model for 72 timesteps. Now I tried >>>>> another >>>>> WRF version which produces different output files, and the >>>>> computation >>>>> speed for my Grads tasks for the new model is much much slower than >>>>> before. You can find the first lines of my control files below. >>>>> >>>>> Using my old model, I could run my complete Grads tasks in about 90 >>>>> minutes. Using the new setup, this takes forever to complete (had to >>>>> skip this as it took too long, think it should be around 180 minutes >>>>> or so), of course on the same machine. The main difference must be >>>>> in >>>>> the Gribfiles I am using. >>>>> >>>>> Can anyone explain why this might be happening? Which Gribfile >>>>> settings (version, projection etc.) are the best usable ones for >>>>> Grads? And finally: how can I improve computation speed for my new >>>>> model? >>>>> >>>>> Thank you for your answer! >>>>> >>>>> Best regards, >>>>> Jonas Kaufmann >>>>> >>>>> >>>>> Old model: >>>>> options ?byteswapped >>>>> pdef ?161 146 lcc ?47.300 ? ?9.800 ? 81.000 ? 73.500 ?47.30000 >>>>> 47.30000 ? ?9.80000 ?21000.000 ?21000.000 >>>>> xdef ?626 linear ?-19.84533 ? 0.09459461 >>>>> ydef ?324 linear ? 31.13766 ? 0.09459461 >>>>> zdef ? 27 linear 1 1 >>>>> tdef ? 88 linear 21Z26MAY2009 ? ? ?60MN >>>>> VARS ? 14 >>>>> >>>>> New model: >>>>> dtype grib 255 >>>>> pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 >>>>> 10.025000 14684 14768 >>>>> xdef 265 linear -10.532000 0.156066529170106 >>>>> ydef 211 linear 31.202000 0.134254545454545 >>>>> tdef 1 linear 00Z24may2010 1mo >>>>> zdef 1 linear 1 1 >>>>> vars 16 >>>>> _______________________________________________ >>>>> gradsusr mailing list >>>>> gradsusr at gradsusr.org >>>>> http://gradsusr.org/mailman/listinfo/gradsusr >>>>> >>>> >>> >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >>> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr From anthony.luosan at gmail.com Tue May 25 04:18:23 2010 From: anthony.luosan at gmail.com (san luo) Date: Tue, 25 May 2010 16:18:23 +0800 Subject: [gradsusr] fortran program about Inverse Distance Weighted Interpolation Message-ID: hello guys,who have a fortran program about Inverse Distance Weighted Interpolation?I want to use it to Interpolate gauge data to grids.I'll appreciate it if someone give me one example. From devdas.pnr at gmail.com Tue May 25 06:05:50 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Tue, 25 May 2010 15:35:50 +0530 Subject: [gradsusr] Help needed in getting annual mean from time series data In-Reply-To: <9B9EA431-F07E-4683-83B2-C948441022DC@cola.iges.org> References: <9B9EA431-F07E-4683-83B2-C948441022DC@cola.iges.org> Message-ID: Dear Madam, Thanks for your reply. In fact I sent my question yesterday to the GrADS user group, but didn't get any reply so far. I still could not resolve it. I found that there is no keyword search option in the Grads Forum archive. Could you please tell me if there is any such? The data file link is given below: http://apdrc.soest.hawaii.edu/dchart/index.html?cid=AAAAJA@@ Please also see my yesterday's email. if you have any further suggestion, I will highly appreciate. -------------------------------------------------------------- I have a multi-year SST data. I want to get a time series monthly and annual mean plot of this data in a specified region in the same figure, keeping same x-axis (time) and y-axis (SST). Please see below the code I am having, I also attach the figure I am getting out of it. The annual mean value is found to be constant for all the 25 years I considered. Definitely some mistake I am making in the code, which I am not able to identify. Can somebody please help me the correct way of doing it? ------------------------------ -------------------------------- 'sdfopen sst_mon_81_07.nc' 'set x 1 360' 'set y 1 180' 'set z 1' 'set t 1 311' 'set lon 30' 'set lat 5' 'set t 2 301' 'define sstarea=aave(sst.1,lon=30,lon=78,lat=5,lat=31)' 'set gxout line';'set cstyle 1';'set cmark 3';'set ccolor 1' 'd tloop(sstarea)' 'set x 1 360' 'set y 1 180' 'set z 1' 'set t 1 311' ts = 1 while ( ts <= 25 ) 'set t 'ts * 12 'define sstave = ave(sst,t-10,t+1)' ts = ts + 1 endwhile 'set lon 30' 'set lat 5' 'set t 1 25' 'set gxout line';'set cstyle 2';'set cmark 5';'set ccolor 3' 'd tloop(aave(sstave,lon=30,lon=78,lat=5,lat=31))' On Mon, May 24, 2010 at 6:08 PM, Jennifer Adams wrote: > Dear Sudev, > > On May 21, 2010, at 11:25 AM, sudev das M P wrote: > > Dear Grads users, > I am a beginner in GrADS. > I have a multi-year time series data. I want to get the annual mean in this > data. > > Please see that from the following I can get monthly time series plot, and > it is working fine. > > 'set lon 30' > 'set lat 5' > > 'set t 2 302' > > Why is this not 'set t 1 302' ? > > > *------------------------ > *Monthly time series > *------------------------ > 'define sstmonth=aave(sst.1,lon=30, > lon=78,lat=5,lat=31)' > > > 'set gxout line' > 'set cmark 4' > 'set grads off' > 'set ccolor 9' > 'd sstmonth' > > In the same plot, I want to have one more curve showing the annual mean. > I mean 26 annual mean values for the 26 years. > > I don't know how to do this. > > Try this after you have defined sstmon: > > 'set t 1 12' > 'sstann = ave(sstmonth,t+0,t=302,12)' > 'modify sstann seasonal' > > --Jennifer > > > I will highly appreciate if someone can help me in this. > > Thanks, > > Sudev > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100525/b48e00cd/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: figsst.pdf Type: application/pdf Size: 38356 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100525/b48e00cd/attachment-0001.pdf From ckwalter at umd.umich.edu Tue May 25 10:35:38 2010 From: ckwalter at umd.umich.edu (Claudia Walters) Date: Tue, 25 May 2010 10:35:38 -0400 Subject: [gradsusr] plotting vertical wind profiles Message-ID: <0E42BC94-4A89-4E16-84FD-B6189EFB1E49@umd.umich.edu> I would like to plot vertical wind profiles that display both the wind speed and the wind direction at select points. In another program (i.e., Gempak) I was able to plot a line graph of wind speed in the vertical on the left and wind barbs at selected elevations denoting wind direction on the right in the same graph. In Grads, I am able to plot wind speed, but I have not found a way to display a vertical profile of wind direction using wind barbs or wind vectors, etc. I would appreciate any advice. Thanks, Claudia From msponsler at comcast.net Tue May 25 11:17:28 2010 From: msponsler at comcast.net (Mark Sponsler) Date: Tue, 25 May 2010 15:17:28 +0000 (UTC) Subject: [gradsusr] Grads computation speed In-Reply-To: <225448586.1085241274800553929.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: <569071896.1086191274800648900.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Not sure if this is of use, but I beleive if you dump your gribs to binary (using wgrib2) before hand, and then run your scripts againt the binary files, it will be even faster (than grib1).? Of course, it might take a few minutes to do the conversion to binary. ? Thanks, Mark ----- Original Message ----- From: "JPB" To: "GrADS Users Forum" Sent: Monday, May 24, 2010 11:59:33 PM GMT -08:00 US/Canada Pacific Subject: Re: [gradsusr] Grads computation speed Hello, grib1 is faster because it does not need decompression process compared to grib2 regards, JPB Jonas Kaufmann writes: > Hello, > > which one should be faster then, grib1 or grib2? Does the projection > of the file have an influence on the computation speed? > > Best regards, > Jonas Kaufmann > > On Fri, May 21, 2010 at 15:20, JPB wrote: >> Hello, >> >> there is a big difference in computation time between grib1 and grib2 >> when using grads. Perhaps you have to look at the grib file types... >> >> regards, >> JPB >> >> Le 21 mai 10 ? 15:16, Jonas Kaufmann a ?crit : >> >>> Hello Michael, >>> >>> I tried on two machines with the same results. One is running Grads >>> Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3. >>> In both cases using the new version of my model was significantly >>> slower than the old one. >>> >>> The old model used ARWpost as WRF postprocessor, the new one uses >>> wrfpost. Both outputs are only customized in terms of available fields >>> in the Grib file, all other options should be the default ones. >>> >>> Thank you for your help! >>> >>> Best regards, >>> Jonas Kaufmann >>> >>> On Fri, May 21, 2010 at 15:09, Michael Fiorino >> > wrote: >>>> Jonas, you need to tell us the version of grads... ?so the old data >>>> is >>>> binary and the new data grib? ciao mike >>>> >>>> On 5/21/10 11:42 AM, Jonas Kaufmann wrote: >>>>> Hello, >>>>> >>>>> I just ran into a problem regarding Grads computation speed. I have >>>>> set up a WRF model over Europe and extract surface parameters for >>>>> about 4-5000 points in the model for 72 timesteps. Now I tried >>>>> another >>>>> WRF version which produces different output files, and the >>>>> computation >>>>> speed for my Grads tasks for the new model is much much slower than >>>>> before. You can find the first lines of my control files below. >>>>> >>>>> Using my old model, I could run my complete Grads tasks in about 90 >>>>> minutes. Using the new setup, this takes forever to complete (had to >>>>> skip this as it took too long, think it should be around 180 minutes >>>>> or so), of course on the same machine. The main difference must be >>>>> in >>>>> the Gribfiles I am using. >>>>> >>>>> Can anyone explain why this might be happening? Which Gribfile >>>>> settings (version, projection etc.) are the best usable ones for >>>>> Grads? And finally: how can I improve computation speed for my new >>>>> model? >>>>> >>>>> Thank you for your answer! >>>>> >>>>> Best regards, >>>>> Jonas Kaufmann >>>>> >>>>> >>>>> Old model: >>>>> options ?byteswapped >>>>> pdef ?161 146 lcc ?47.300 ? ?9.800 ? 81.000 ? 73.500 ?47.30000 >>>>> 47.30000 ? ?9.80000 ?21000.000 ?21000.000 >>>>> xdef ?626 linear ?-19.84533 ? 0.09459461 >>>>> ydef ?324 linear ? 31.13766 ? 0.09459461 >>>>> zdef ? 27 linear 1 1 >>>>> tdef ? 88 linear 21Z26MAY2009 ? ? ?60MN >>>>> VARS ? 14 >>>>> >>>>> New model: >>>>> dtype grib 255 >>>>> pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 >>>>> 10.025000 14684 14768 >>>>> xdef 265 linear -10.532000 0.156066529170106 >>>>> ydef 211 linear 31.202000 0.134254545454545 >>>>> tdef 1 linear 00Z24may2010 1mo >>>>> zdef 1 linear 1 1 >>>>> vars 16 >>>>> _______________________________________________ >>>>> gradsusr mailing list >>>>> gradsusr at gradsusr.org >>>>> http://gradsusr.org/mailman/listinfo/gradsusr >>>>> >>>> >>> >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >>> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100525/1c69eac2/attachment.html From Charles.Seman at noaa.gov Tue May 25 11:41:49 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Tue, 25 May 2010 11:41:49 -0400 Subject: [gradsusr] plotting vertical wind profiles In-Reply-To: <0E42BC94-4A89-4E16-84FD-B6189EFB1E49@umd.umich.edu> References: <0E42BC94-4A89-4E16-84FD-B6189EFB1E49@umd.umich.edu> Message-ID: <4BFBEFBD.6000700@noaa.gov> Claudia, Not sure if I understand what you want to do, but there is a SkewT/LogP Function for GrADS at http://moe.met.fsu.edu/~rhart/software/skew.html with a sample image: http://moe.met.fsu.edu/~rhart/software/skew.html#sample Hope this helps, Chuck Claudia Walters wrote: > I would like to plot vertical wind profiles that display both the wind speed and the wind direction at select points. In another program (i.e., Gempak) I was able to plot a line graph of wind speed in the vertical on the left and wind barbs at selected elevations denoting wind direction on the right in the same graph. In Grads, I am able to plot wind speed, but I have not found a way to display a vertical profile of wind direction using wind barbs or wind vectors, etc. I would appreciate any advice. > > Thanks, > Claudia > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- 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 reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." From Wesley.Ebisuzaki at noaa.gov Tue May 25 13:06:45 2010 From: Wesley.Ebisuzaki at noaa.gov (Wesley Ebisuzaki) Date: Tue, 25 May 2010 13:06:45 -0400 Subject: [gradsusr] Grads computation speed In-Reply-To: <569071896.1086191274800648900.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> References: <569071896.1086191274800648900.JavaMail.root@sz0052a.emeryville.ca.mail.comcast.net> Message-ID: <4BFC03A5.5010708@noaa.gov> NCEP distributes the grib2 forecasts using jpeg2000 packing which is pretty good at compression but very slow. Grib1 one uses simple packing which is fast. Complex packing combines speed with compression. > 45x91 grid, 5 fields > > simple complex1 complex2 complex3 jpeg > size 21884 16030 13623 13917 11514 bytes > read 0.001 0.001 0.001 0.001 0.012 seconds user time > write 0.002 0.006 0.006 0.006 0.017 seconds user time > > > 4320x2160 high resolution SST field > > simple complex1 complex2 complex3 jpeg > size 11054 4076 2365 2280 3252 K bytes > read 0.38 0.41 0.42 0.42 2.66 seconds user time > write 0.78 2.06 1.76 1.68 4.20 seconds user time > Rather than convert a grib2 file into binary, I would convert the file to complex3 packing by wgrib2 in.grb -set_grib_type complex3 -grib_out out.grb Wesley Mark Sponsler wrote: > Not sure if this is of use, but I beleive if you dump your gribs to > binary (using wgrib2) before hand, and then run your scripts againt > the binary files, it will be even faster (than grib1). Of course, it > might take a few minutes to do the conversion to binary. > > Thanks, > Mark > > > ----- Original Message ----- > From: "JPB" > To: "GrADS Users Forum" > Sent: Monday, May 24, 2010 11:59:33 PM GMT -08:00 US/Canada Pacific > Subject: Re: [gradsusr] Grads computation speed > > Hello, > > grib1 is faster because it does not need decompression process > compared to > grib2 > > regards, > > JPB > > Jonas Kaufmann writes: > > > Hello, > > > > which one should be faster then, grib1 or grib2? Does the projection > > of the file have an influence on the computation speed? > > > > Best regards, > > Jonas Kaufmann > > > > On Fri, May 21, 2010 at 15:20, JPB wrote: > >> Hello, > >> > >> there is a big difference in computation time between grib1 and grib2 > >> when using grads. Perhaps you have to look at the grib file types... > >> > >> regards, > >> JPB > >> > >> Le 21 mai 10 ? 15:16, Jonas Kaufmann a ?crit : > >> > >>> Hello Michael, > >>> > >>> I tried on two machines with the same results. One is running Grads > >>> Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3. > >>> In both cases using the new version of my model was significantly > >>> slower than the old one. > >>> > >>> The old model used ARWpost as WRF postprocessor, the new one uses > >>> wrfpost. Both outputs are only customized in terms of available fields > >>> in the Grib file, all other options should be the default ones. > >>> > >>> Thank you for your help! > >>> > >>> Best regards, > >>> Jonas Kaufmann > >>> > >>> On Fri, May 21, 2010 at 15:09, Michael Fiorino > >>> > wrote: > >>>> Jonas, you need to tell us the version of grads... so the old data > >>>> is > >>>> binary and the new data grib? ciao mike > >>>> > >>>> On 5/21/10 11:42 AM, Jonas Kaufmann wrote: > >>>>> Hello, > >>>>> > >>>>> I just ran into a problem regarding Grads computation speed. I have > >>>>> set up a WRF model over Europe and extract surface parameters for > >>>>> about 4-5000 points in the model for 72 timesteps. Now I tried > >>>>> another > >>>>> WRF version which produces different output files, and the > >>>>> computation > >>>>> speed for my Grads tasks for the new model is much much slower than > >>>>> before. You can find the first lines of my control files below. > >>>>> > >>>>> Using my old model, I could run my complete Grads tasks in about 90 > >>>>> minutes. Using the new setup, this takes forever to complete (had to > >>>>> skip this as it took too long, think it should be around 180 minutes > >>>>> or so), of course on the same machine. The main difference must be > >>>>> in > >>>>> the Gribfiles I am using. > >>>>> > >>>>> Can anyone explain why this might be happening? Which Gribfile > >>>>> settings (version, projection etc.) are the best usable ones for > >>>>> Grads? And finally: how can I improve computation speed for my new > >>>>> model? > >>>>> > >>>>> Thank you for your answer! > >>>>> > >>>>> Best regards, > >>>>> Jonas Kaufmann > >>>>> > >>>>> > >>>>> Old model: > >>>>> options byteswapped > >>>>> pdef 161 146 lcc 47.300 9.800 81.000 73.500 47.30000 > >>>>> 47.30000 9.80000 21000.000 21000.000 > >>>>> xdef 626 linear -19.84533 0.09459461 > >>>>> ydef 324 linear 31.13766 0.09459461 > >>>>> zdef 27 linear 1 1 > >>>>> tdef 88 linear 21Z26MAY2009 60MN > >>>>> VARS 14 > >>>>> > >>>>> New model: > >>>>> dtype grib 255 > >>>>> pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000 > >>>>> 10.025000 14684 14768 > >>>>> xdef 265 linear -10.532000 0.156066529170106 > >>>>> ydef 211 linear 31.202000 0.134254545454545 > >>>>> tdef 1 linear 00Z24may2010 1mo > >>>>> zdef 1 linear 1 1 > >>>>> vars 16 > >>>>> _______________________________________________ > >>>>> gradsusr mailing list > >>>>> gradsusr at gradsusr.org > >>>>> http://gradsusr.org/mailman/listinfo/gradsusr > >>>>> > >>>> > >>> > >>> _______________________________________________ > >>> gradsusr mailing list > >>> gradsusr at gradsusr.org > >>> http://gradsusr.org/mailman/listinfo/gradsusr > >>> > >> > >> > >> _______________________________________________ > >> gradsusr mailing list > >> gradsusr at gradsusr.org > >> http://gradsusr.org/mailman/listinfo/gradsusr > >> > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From anto.ricchi at gmail.com Wed May 26 08:02:55 2010 From: anto.ricchi at gmail.com (Antonio Ricchi) Date: Wed, 26 May 2010 14:02:55 +0200 Subject: [gradsusr] plotting maximum and minimum temperature Message-ID: Hello everyone I want plotting the maximum and minimum temperature, starting from grib files (1 for hour, or 1 for the entire simulation (monolithic file)) The network (and the Grads tutorial) I did not find any reference. Could someone help me? best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100526/efbea2f2/attachment-0001.html From r.hachelaf at gmail.com Wed May 26 11:59:07 2010 From: r.hachelaf at gmail.com (hachelaf rabah) Date: Wed, 26 May 2010 17:59:07 +0200 Subject: [gradsusr] plot parameters from prepbufr file Message-ID: Hello, i need help to plot some parameters like presseure, temperature or precipitations in a map or in ascii file with grads. in attached file please find my bufr descriptor file or bellow : ======================================================== dset /home/cnpm/cwordshb/prepbufr.in undef 9.999E+20 title prepbufr.in dtype bufr TDEF 1 linear 06z23may2010 1hr STID 1,194 XVAR 6,240 YVAR 5,2 VARS 8 slon 0 06,240 LONGITUDE slat 0 05,002 LATITUDE STAT 0 01,194 Station id POB 0 07,245 PRESSURE OBSERVATION TOB 0 12,245 TEMPERATURE OBSERVATION TP24 0 13,023 TOTAL PRECIPITATION PAST 24 HOURS UOB 0 11,003 U-COMPONENT WIND OBSERVATION VOB 0 11,004 V-COMPONENT WIND OBSERVATION ENDVARS ================================================================= when i type "d STAT" or "d slon" i can see values in gradsc interface but when i type" d pob "or "d uob" i can'nt see any think . knowing thant i respect values of each parameter from the header file. Thank you for help . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100526/52e256a1/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: bufr.ctl Type: application/octet-stream Size: 434 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100526/52e256a1/attachment.obj From mjamilanwar at hotmail.com Thu May 27 03:20:02 2010 From: mjamilanwar at hotmail.com (Jamil Anwar) Date: Thu, 27 May 2010 13:20:02 +0600 Subject: [gradsusr] gradsusr Digest, Vol 3, Issue 49 In-Reply-To: References: Message-ID: Dear all, Can anyone please tell me how to get layer-wise data from CTL file. Kindly tell me the commands or script if possible... Regards, Jamil Anwar _________________________________________________________________ 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/20100527/e44c21ec/attachment.html From mjamilanwar at hotmail.com Thu May 27 03:30:33 2010 From: mjamilanwar at hotmail.com (Jamil Anwar) Date: Thu, 27 May 2010 13:30:33 +0600 Subject: [gradsusr] Help regarding layer-wise wind data from CTL file usng GrADS In-Reply-To: References: Message-ID: Dear all, I am new to GrADS software and is stuck in getting layer-wise data from a CTL file using GrADS. So can anyone please tell me how to get layer-wise wind data from CTL file using GrADS. Kindly tell me the commands or script if possible. Thank you all... Regards, Jamil Anwar _________________________________________________________________ Hotmail: Trusted email with Microsoft?s 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/20100527/18bc0932/attachment.html From devranianil at gmail.com Thu May 27 06:42:46 2010 From: devranianil at gmail.com (anil devrani) Date: Thu, 27 May 2010 16:12:46 +0530 Subject: [gradsusr] plotting vertical wind profiles In-Reply-To: <0E42BC94-4A89-4E16-84FD-B6189EFB1E49@umd.umich.edu> References: <0E42BC94-4A89-4E16-84FD-B6189EFB1E49@umd.umich.edu> Message-ID: Claudia, I use the following script for a specific station(lat/lon) for 27 levels and time t=1 to t=37.I have used three types of displays viz speed in knots, m/sec and skipping some values. You may change these values to suit your requirement.Data file used by me is 05may06_nonocc.ctl Hope it serves your purpose. Anil 'reinit' 'open 05may06_nonocc.ctl' 'set lat 30.15' 'set lon 74.45' 'set gxout barb' 'set t 1 37' 'set z 1 27' *'d u;v' *'d skip(u,6,6);v' 'd skip(u*1.942,1,2);v*1.942' *'fprintf u;v wdprof_vert_da.csv %g, 37 0' On Tue, May 25, 2010 at 8:05 PM, Claudia Walters wrote: > I would like to plot vertical wind profiles that display both the wind > speed and the wind direction at select points. In another program (i.e., > Gempak) I was able to plot a line graph of wind speed in the vertical on the > left and wind barbs at selected elevations denoting wind direction on the > right in the same graph. In Grads, I am able to plot wind speed, but I have > not found a way to display a vertical profile of wind direction using wind > barbs or wind vectors, etc. I would appreciate any advice. > > Thanks, > Claudia > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100527/c72b608e/attachment.html From stoitchko at yahoo.com Thu May 27 12:24:50 2010 From: stoitchko at yahoo.com (stoitchko kalenderski) Date: Thu, 27 May 2010 09:24:50 -0700 (PDT) Subject: [gradsusr] compare WRF output with NCEP FNL reanalysis Message-ID: <676243.45374.qm@web36807.mail.mud.yahoo.com> Hi there, I am new in GraDS and don?t know how can I compare WRF output with NCEP FNL reanalysis. It seems there are several steps to be done. First I started with ARWpost to convert WRF output to GrADS readable output. It is worked fine and now I have to find a way to overlay the reanalysis field. I used g2ctl to create controls files (ctl) for the grib2 NCEP FNL reanalysis and gripmap to create the index files but it seems not enough since the reanalysis domain is much larger and has coarse resolution than the model domain and model output resolution. How should I proceed with the last two steps in GrADS? some examples ? Thank you. CK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100527/70230c32/attachment-0001.html From waheed.met at gmail.com Fri May 28 01:09:04 2010 From: waheed.met at gmail.com (Waheed) Date: Fri, 28 May 2010 10:09:04 +0500 Subject: [gradsusr] Need help in converting ctl file to netcdf format using lats4d Message-ID: dear all i am trying to find the sum of month January for the years 1961 and 1962 and make a file of each in netcdf format( i.e: the time step is one for january1961 and one for 1962) For this i used the script Lats4d but it does not write it as i want! Parameter is precipitation it actually writs the NC file for the the total time step 720 which is a daily file but showing the sum of first month(1961) for all time values i.e. the value is same for t=1 and t=720. i have attached the screen shot and the script file with this mail kindly help me thanking you all in advance regards -- waheed iqbal (Meteorologist) Pakistan Meteorological Department R & D Islamabad +923334547814 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100528/4cfa76d7/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: segmentation fault-2.png Type: image/png Size: 209239 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100528/4cfa76d7/attachment-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: was.gs Type: application/octet-stream Size: 442 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100528/4cfa76d7/attachment-0001.obj From gibiesgeorge at gmail.com Sat May 29 03:18:44 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Sat, 29 May 2010 12:48:44 +0530 Subject: [gradsusr] grads txt output In-Reply-To: References: Message-ID: I could not get the problem in your script. Did you get any error message? see the link http://sites.google.com/site/modellingearth/chapters/software-tools-list/sample-codes/grads-code There are two scripts related (may not be exactly same) to your requirement. 1. text_out_nonuniform_lat_grid.gs 2. matrix_gridded_text_ out.gs refer these scripts and write your own script to solve your problem. If you get any specific error message, please give the details. -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008, India. http://sites.google.com/site/gibiesge/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100529/3e3d9b5e/attachment.html From romero619 at hotmail.com Sat May 29 18:20:26 2010 From: romero619 at hotmail.com (P. R.M.) Date: Sat, 29 May 2010 17:20:26 -0500 Subject: [gradsusr] mfhilo still broken? Message-ID: Hi, I need to use mfhilo (in opengrads v2.0.a7.oga.3.1 on linux, built from cvs source), but last I remember, mike fiorino's user extension package was broken. is this still the case? whats the status with this extension? are there any updates on when this will be available? thanks p.r. _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100529/94b8d19a/attachment.html From andfried at berkeley.edu Mon May 31 14:50:26 2010 From: andfried at berkeley.edu (Andrew Friedman) Date: Mon, 31 May 2010 11:50:26 -0700 Subject: [gradsusr] searching gradsusr Message-ID: <791072EB-562D-45A9-90B8-018AA1E3B4BA@berkeley.edu> Hi, This might be a silly question, but does anyone know how to search the entire gradsusr archive: http://gradsusr.org/pipermail/gradsusr/? I can only see how to search for threads in specific months on the webpage. Maybe there is another way? Thanks much, Andrew ---------------------------------------------------- Andrew Friedman Geography Department, UC Berkeley andfried at berkeley.edu 510.295.8056 From cellyn_lee53 at yahoo.com Sun May 30 11:24:03 2010 From: cellyn_lee53 at yahoo.com (cellyn lee) Date: Sun, 30 May 2010 08:24:03 -0700 (PDT) Subject: [gradsusr] problem with 3D figure Message-ID: <190005.45531.qm@web55507.mail.re4.yahoo.com> Hi?I met some problem in displaying 3D variables in GrADS. My netcdf file included 15 variables, some variables are 2D while some are 3D, when I type ?q file?, the Z size is 1, let?s say I have dep=15 in my 3D variables, so how I display the 3D variables where dep=12? Thanks for any information. ----