<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi all,</span></div><div><span>could anyone tell me how to compute, say, average precipitaion over a region (not with regular lat/lon)?</span></div><div><span>Thanks in adnvance.</span></div><div><span>Sincerly</span></div><div><span>Dimri</span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> "gradsusr-request@gradsusr.org" <gradsusr-request@gradsusr.org><br> <b><span style="font-weight: bold;">To:</span></b> gradsusr@gradsusr.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 5, 2012 6:02 AM<br> <b><span style="font-weight:
bold;">Subject:</span></b> gradsusr Digest, Vol 29, Issue 5<br> </font> </div> <br>Send gradsusr mailing list submissions to<br> <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:gradsusr-request@gradsusr.org" href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:gradsusr-owner@gradsusr.org" href="mailto:gradsusr-owner@gradsusr.org">gradsusr-owner@gradsusr.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents
of gradsusr digest..."<br><br><br>Today's Topics:<br><br> 1. change color labels of color bar (Joe Pollina)<br> 2. Re: change color labels of color bar (Jeff Duda)<br> 3. Re: change color labels of color bar (Goodson,Ron [Edm])<br> 4. Re: change color labels of color bar (Joe Pollina)<br> 5. Linux version (Leandro Sgroi)<br> 6. read from grib and insert into mysql (claudiomet)<br> 7. Re: read from grib and insert into mysql (claudiomet)<br> 8. Grads cannot open MERRA HDF file (You, Yalei)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 04 Jul 2012 13:02:12 -0400<br>From: Joe Pollina <<a ymailto="mailto:joseph.pollina@noaa.gov" href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a>><br>Subject: [gradsusr] change color labels of color bar<br>To: <a ymailto="mailto:gradsusr@gradsusr.org"
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>Message-ID: <<a ymailto="mailto:4FF47714.9010501@noaa.gov" href="mailto:4FF47714.9010501@noaa.gov">4FF47714.9010501@noaa.gov</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>I have both cbarn.gs and cbarm.gs to plot a color bar. I am looking for <br>a way to change the color of the labels of the color bar. The label <br>color defaults to white. My problem is that my map background needs to <br>be white and the color labels on the color bar blends into the map <br>background, and thus are not visible. Is there a way to change the <br>labels of the color bar to black?<br><br>Thanks<br><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 4 Jul 2012 12:08:03 -0500<br>From: Jeff Duda <<a ymailto="mailto:jeffduda319@gmail.com" href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>><br>Subject: Re: [gradsusr]
change color labels of color bar<br>To: GrADS Users Forum <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>Message-ID:<br> <CAAig09AW_-m_dz4pmbzNfPiVqvzf_kRpTus-3=LBA=<a ymailto="mailto:PBVT52gA@mail.gmail.com" href="mailto:PBVT52gA@mail.gmail.com">PBVT52gA@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>When changing your background color to white, use the command "set display<br>color white" then "clear" before displaying your data. "set background"<br>only changes the color of color #0, which is referred to as the "background<br>color".<br><br>Jeff Duda<br><br>On Wed, Jul 4, 2012 at 12:02 PM, Joe Pollina <<a ymailto="mailto:joseph.pollina@noaa.gov" href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a>>wrote:<br><br>> I have both cbarn.gs and cbarm.gs to plot a color bar. I am looking for<br>> a way
to change the color of the labels of the color bar. The label<br>> color defaults to white. My problem is that my map background needs to<br>> be white and the color labels on the color bar blends into the map<br>> background, and thus are not visible. Is there a way to change the<br>> labels of the color bar to black?<br>><br>> Thanks<br>> _______________________________________________<br>> gradsusr mailing list<br>> <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>><br><br><br><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a
href="http://gradsusr.org/pipermail/gradsusr/attachments/20120704/6f18728c/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20120704/6f18728c/attachment-0001.html</a> <br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 4 Jul 2012 11:21:29 -0600<br>From: "Goodson,Ron [Edm]" <<a ymailto="mailto:Ron.Goodson@EC.gc.ca" href="mailto:Ron.Goodson@EC.gc.ca">Ron.Goodson@EC.gc.ca</a>><br>Subject: Re: [gradsusr] change color labels of color bar<br>To: "GrADS Users Forum" <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>Message-ID:<br> <<a ymailto="mailto:4A6AB38B55B49C44A22E021A83CBEDDB0F94EA89@sr-pnr-exch3.prairie.int.ec.gc.ca"
href="mailto:4A6AB38B55B49C44A22E021A83CBEDDB0F94EA89@sr-pnr-exch3.prairie.int.ec.gc.ca">4A6AB38B55B49C44A22E021A83CBEDDB0F94EA89@sr-pnr-exch3.prairie.int.ec.gc.ca</a>><br> <br>Content-Type: text/plain; charset="us-ascii"<br><br>Hi<br><br>I made a "cbarnw" just for that ...<br><br>In cbarn.gs .. just look for the lines<br><br>'set string 1 1 5'<br>and<br>'set string 1 tc 5'<br><br>and change the first 1 to a 0 ...<br><br> <br>ron<br><br><br><br>-----Original Message-----<br>From: <a ymailto="mailto:gradsusr-bounces@gradsusr.org" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><br>[mailto:<a ymailto="mailto:gradsusr-bounces@gradsusr.org" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of Joe Pollina<br>Sent: July 4, 2012 11:02 AM<br>To: <a ymailto="mailto:gradsusr@gradsusr.org"
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>Subject: [gradsusr] change color labels of color bar<br><br>I have both cbarn.gs and cbarm.gs to plot a color bar. I am looking for<br>a way to change the color of the labels of the color bar. The label<br>color defaults to white. My problem is that my map background needs to<br>be white and the color labels on the color bar blends into the map<br>background, and thus are not visible. Is there a way to change the<br>labels of the color bar to black?<br><br>Thanks<br>_______________________________________________<br>gradsusr mailing list<br><a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br><br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 04 Jul 2012 13:41:04
-0400<br>From: Joe Pollina <<a ymailto="mailto:joseph.pollina@noaa.gov" href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a>><br>Subject: Re: [gradsusr] change color labels of color bar<br>To: GrADS Users Forum <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>Message-ID: <<a ymailto="mailto:4FF48030.7060807@noaa.gov" href="mailto:4FF48030.7060807@noaa.gov">4FF48030.7060807@noaa.gov</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Thanks for the help Jeff...it turned by black contours white, but after <br>setting the color back to black and displaying the variable again, the <br>contours turn back to black.<br><br>On 7/4/2012 1:08 PM, Jeff Duda wrote:<br>> When changing your background color to white, use the command "set <br>> display color white" then "clear" before displaying your data. "set <br>> background" only changes the color of
color #0, which is referred to <br>> as the "background color".<br>><br>> Jeff Duda<br>><br>> On Wed, Jul 4, 2012 at 12:02 PM, Joe Pollina <<a ymailto="mailto:joseph.pollina@noaa.gov" href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a> <br>> <mailto:<a ymailto="mailto:joseph.pollina@noaa.gov" href="mailto:joseph.pollina@noaa.gov">joseph.pollina@noaa.gov</a>>> wrote:<br>><br>> I have both cbarn.gs <<a href="http://cbarn.gs/" target="_blank">http://cbarn.gs</a>> and cbarm.gs<br>> <<a href="http://cbarm.gs/" target="_blank">http://cbarm.gs</a>> to plot a color bar. I am looking for<br>> a way to change the color of the labels of the color bar. The label<br>> color defaults to white. My problem is that my map background<br>> needs to<br>> be white and the color labels on the color
bar blends into the map<br>> background, and thus are not visible. Is there a way to change the<br>> labels of the color bar to black?<br>><br>> Thanks<br>> _______________________________________________<br>> gradsusr mailing list<br>> <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a> <mailto:<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>><br>><br>><br>><br>> -- <br>> Jeff Duda<br>> Graduate research assistant<br>> University of Oklahoma School of Meteorology<br>> Center for Analysis and Prediction of Storms<br>><br>><br>><br>>
_______________________________________________<br>> gradsusr mailing list<br>> <a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20120704/45b31eab/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20120704/45b31eab/attachment-0001.html</a> <br><br>------------------------------<br><br>Message: 5<br>Date: Wed, 04 Jul 2012 16:15:53 -0300<br>From: Leandro Sgroi <<a ymailto="mailto:lsgroi@fich1.unl.edu.ar" href="mailto:lsgroi@fich1.unl.edu.ar">lsgroi@fich1.unl.edu.ar</a>><br>Subject: [gradsusr] Linux version<br>To: <a ymailto="mailto:gradsusr@gradsusr.org"
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>Message-ID: <<a ymailto="mailto:4FF49669.4000408@fich1.unl.edu.ar" href="mailto:4FF49669.4000408@fich1.unl.edu.ar">4FF49669.4000408@fich1.unl.edu.ar</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi, I'm using ubuntu 12.04 LTS <a href="http://www.ubuntu.com/download/desktop" target="_blank">http://www.ubuntu.com/download/desktop</a> <br>and this version allows cdo version 1.5.3 and grads version 2.0.a9-4.<br><br>-- <br>Ing. Leandro Sgroi<br>Centro de Estudios de Variabilidad y Cambio Clim?tico<br>Facultad de Ingenier?a y Ciencias H?dricas<br>Universidad Nacional del Litoral<br>C.C. 217, Ciudad Universitaria, (3000) Santa Fe - Argentina<br>Tel: 342-4575-233/234/244 Int.176<br>lsgroi(at)fich1.unl.edu.ar<br><br><br><br><br>------------------------------<br><br>Message: 6<br>Date: Wed, 4 Jul 2012 17:10:51 -0300<br>From: claudiomet <<a
ymailto="mailto:claudiomet@gmail.com" href="mailto:claudiomet@gmail.com">claudiomet@gmail.com</a>><br>Subject: [gradsusr] read from grib and insert into mysql<br>To: GrADS Users Forum <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>Message-ID:<br> <<a ymailto="mailto:CABWjCh10mBPgLhb9Wx0qEHJ1ryzF_B9V--Nir-Tt_cPQAzmbAQ@mail.gmail.com" href="mailto:CABWjCh10mBPgLhb9Wx0qEHJ1ryzF_B9V--Nir-Tt_cPQAzmbAQ@mail.gmail.com">CABWjCh10mBPgLhb9Wx0qEHJ1ryzF_B9V--Nir-Tt_cPQAzmbAQ@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Hi users !<br><br>I'm trying to create a script who reads variables from a point of grib<br>file and insert the content into a mysql database but I'dont have any<br>success.<br>the simplifies script is like this<br><br>-------------------------------<br>'open file.ctl'<br>'set lon -70<br>'set lat -30<br>t = 1<br>while ( t < 49
)<br>'q time'; date=subwrd(result,3)<br>'d t2'; temperature = subwrd(result,4)<br>'d rh2'; humidity = subwrd(result,4)<br>'!mysql --user=user --password=password database -e "INSERT INTO<br>station (date,temp,hum) VALUES('date','temperature','humidity');"'<br>t=t+1<br>endwhile<br><br>The main problem in the date, is a string that must be enclosed by<br>doublequotes in the insert statement, buy when I put doublequotes the<br>script fails, putting the doublaquotes enclosing the word date like<br>this:<br>'!mysql --user=user --password=password database -e "INSERT INTO<br>station (date,temp,hum) VALUES('"date"','temperature','humidity');"'<br><br>the insert fails, nothing is inserted in the database because the<br>script tries to insert the word date (and without quotes) instead the<br>value of the variable date with doublequotes<br><br>When I put the doublequotes enclosing 'date' like this:<br>'!mysql --user=user --password=password database
-e "INSERT INTO<br>station (date,temp,hum) VALUES("'date'",'temperature','humidity');"'<br>the insert fails and date is empty.<br><br>The text is very big and dump into a csv file for apply mysqlimport is<br>very very slow, I need to avoid the usage of temporal txt files.<br><br>?how to put strings (variable) in enclosed by quotes and doublequotes<br>in a grads script like a mysql intert?<br><br>Best regards!<br><br><br><br>------------------------------<br><br>Message: 7<br>Date: Wed, 4 Jul 2012 17:43:20 -0300<br>From: claudiomet <<a ymailto="mailto:claudiomet@gmail.com" href="mailto:claudiomet@gmail.com">claudiomet@gmail.com</a>><br>Subject: Re: [gradsusr] read from grib and insert into mysql<br>To: GrADS Users Forum <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>Message-ID:<br> <CABWjCh3yuOYLubD6cdckitxVOJfOKm=<a
ymailto="mailto:Tk-iwmb-hjHXsBFv4rw@mail.gmail.com" href="mailto:Tk-iwmb-hjHXsBFv4rw@mail.gmail.com">Tk-iwmb-hjHXsBFv4rw@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>I answer to myself, problem solved using escape sequences to write the<br>doublequotes<br><br> '!mysql --user=user --password=password database -e "INSERT INTO<br>station (date,temp,hum) VALUES(\"'date'\",'temperature','humidity');"'<br><br>2012/7/4 claudiomet <<a ymailto="mailto:claudiomet@gmail.com" href="mailto:claudiomet@gmail.com">claudiomet@gmail.com</a>>:<br>> Hi users !<br>><br>> I'm trying to create a script who reads variables from a point of grib<br>> file and insert the content into a mysql database but I'dont have any<br>> success.<br>> the simplifies script is like this<br>><br>> -------------------------------<br>> 'open file.ctl'<br>> 'set lon -70<br>> 'set lat -30<br>> t = 1<br>> while ( t < 49
)<br>> 'q time'; date=subwrd(result,3)<br>> 'd t2'; temperature = subwrd(result,4)<br>> 'd rh2'; humidity = subwrd(result,4)<br>> '!mysql --user=user --password=password database -e "INSERT INTO<br>> station (date,temp,hum) VALUES('date','temperature','humidity');"'<br>> t=t+1<br>> endwhile<br>><br>> The main problem in the date, is a string that must be enclosed by<br>> doublequotes in the insert statement, buy when I put doublequotes the<br>> script fails, putting the doublaquotes enclosing the word date like<br>> this:<br>> '!mysql --user=user --password=password database -e "INSERT INTO<br>> station (date,temp,hum) VALUES('"date"','temperature','humidity');"'<br>><br>> the insert fails, nothing is inserted in the database because the<br>> script tries to insert the word date (and without quotes) instead the<br>> value of the variable date with doublequotes<br>><br>> When I put
the doublequotes enclosing 'date' like this:<br>> '!mysql --user=user --password=password database -e "INSERT INTO<br>> station (date,temp,hum) VALUES("'date'",'temperature','humidity');"'<br>> the insert fails and date is empty.<br>><br>> The text is very big and dump into a csv file for apply mysqlimport is<br>> very very slow, I need to avoid the usage of temporal txt files.<br>><br>> ?how to put strings (variable) in enclosed by quotes and doublequotes<br>> in a grads script like a mysql intert?<br>><br>> Best regards!<br><br><br><br>-- <br>Claudio Cortes<br>Meteorologo, Ingeniero de proyectos<br>Micomo S.A. Filial Codelco<br>Unidad de Negocios Ambientales<br>www.micomo.cl<br><br>---<br>Claudio Cortes<br>Meteorologist, Project Engineer<br>Micomo S.A. Codelco Subsidiary<br>Environmental Business Unit<br>www.micomo.cl<br><br><br><br>------------------------------<br><br>Message: 8<br>Date: Wed, 4 Jul 2012 21:02:38
+0000<br>From: "You, Yalei" <<a ymailto="mailto:yy08@fsu.edu" href="mailto:yy08@fsu.edu">yy08@fsu.edu</a>><br>Subject: [gradsusr] Grads cannot open MERRA HDF file<br>To: "<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>" <<a ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>Message-ID:<br> <<a ymailto="mailto:CBA37D5984B52141980D4AF0362B8AA5299EF4@fsu-exch-nwr04.fsu.edu" href="mailto:CBA37D5984B52141980D4AF0362B8AA5299EF4@fsu-exch-nwr04.fsu.edu">CBA37D5984B52141980D4AF0362B8AA5299EF4@fsu-exch-nwr04.fsu.edu</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hey all,<br><br>I am trying to use GRADS to plot the MERRA data, for example the "surface pressure filed"<br><br>My OS is Ubuntu 11.01, and Grads version is: 2.0.a9<br><br>After starts Grads under ubuntu, I typed in the
fowllowing:<br>***************************<br>sdfopen MERRA100.prod.assim.inst3_3d_asm_Cp.19790101.SUB.hdf<br><br>Here is the infromation:<br><br>Scanning self-describing file: MERRA100.prod.assim.inst3_3d_asm_Cp.19790101.SUB.hdf<br>Error: nc_open failed to open file MERRA100.prod.assim.inst3_3d_asm_Cp.19790101.SUB.hdf<br>Attempt to use feature that was not turned on when netCDF was built.<br>gadsdf: Couldn't ingest SDF metadata.<br>******************************<br><br>Any advice is highly appreciated. Thanks.<br><br>Mike<br><br><br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20120704/d9aadcd5/attachment.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20120704/d9aadcd5/attachment.html</a> <br><br>------------------------------<br><br>_______________________________________________<br>gradsusr mailing list<br><a
ymailto="mailto:gradsusr@gradsusr.org" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br><br>End of gradsusr Digest, Vol 29, Issue 5<br>***************************************<br><br><br> </div> </div> </div></body></html>