<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Bernd -- <div>I do not have an answer for this problem. I created images with a transparent color that many applications including Photoshop, Preview, Safari, and Firefox all treat properly, but Google Earth ... does not get it right. I have also created images that Google Earth does get right (the transparent color is indeed transparent and the background shows through), but I have not been able to figure out what the key difference is between these images. My GrADS scripts are essentially the same and so is the KML. After spending a frustrating afternoon figuring out these things, I stopped playing with Google Earth and went back to work on something else. </div><div>--Jennifer</div><div><br><div><div>On Mar 4, 2009, at 7:07 AM, Bernd Becker wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br><br>to create images to be shown on google earth, I would like to<br>create shaded contour plots and contours and symbols all in one png<br>file.<br><br>The areas, where nothing is shown in the image, I would like to be<br>transparent to see whatever google earth puts underneath.<br><br>I do:<br><br>'set parea 0 11 0 8.5'<br>'set grid off'<br>'set mproj scaled'<br>'set x 0.5 321.5 '<br>'set y 0.5 161.5 '<br>'set mpdraw off'<br>'set grads off'<br>'set frame off'<br><br> clevels =' -0.9 -0.5 -0.2 -0.1 0.1 0.2 0.5 0.9 '<br><br>'set cstyle 2 '<br>'set ccolor 1 '<br>'set cthick 1'<br>'set black 'subwrd(clevels,4)' 'subwrd(clevels,5)<br>*'set gxout shaded'<br>'set gxout grfill'<br>'set clevs 'clevels<br>'set ccols 14 4 11 5 0 16 7 12 2 '<br>'set black 'subwrd(clevels,4)' 'subwrd(clevels,5)<br><br><br>'d v7 - v6'<br><br><br>'set gxout shaded'<br>'set clevs 'clevels<br>'set ccols 14 4 11 5 0 16 7 12 2 '<br>'set black 'subwrd(clevels,4)' 'subwrd(clevels,5)<br>'d maskout((v8-v6),v1-23.)'<br><br><br>'set gxout shaded'<br>'set gxout contour'<br>'set cthick 1'<br>'set ccols 12 2 '<br>'set ccols 80 80 48 '<br>'set clab off'<br>'set clevs 'thresh<br>'d v5'<br><br><br>printim pop.png x320 y160 -t 1<br><br><br>Here I am uncertain about which colour code to use:<br>the colour number currently set in grads?<br>the current color code from the X server?<br><br>How can I ascertain, that the regions set to "black"<br>by 'set black'<br>are transparent in the png file?<br><br>These areas are shown as black, so "-t 1" should do the trick,<br>but google earth shows the areas as black, opaque.<br><br>What should I do?<br><br>Many thanks,<br>Bernd.<br><br>--<br>Bernd Becker The Monthly Outlook<br>Met Office FitzRoy Road Exeter Devon EX1 3PB United Kingdom<br>Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050<br>E-mail:bernd.becker@metoffice.com - <a href="http://www.metoffice.com">http://www.metoffice.com</a><br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></body></html>