<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 9, 2011, at 4:27 PM, Howard Staines wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Meteograms seem to take a long time and data efficiency seems to <br>Make the difference between a good and a bad script.<br></div></blockquote><div>True. That is primarily because of the compression in grib2 files -- in order to get data for a single grid point, you must first read the entire grid from disk, uncompress it, then extract the one data value. The meteogram, a set of 1-D time varying plots, forces you to read a whole lot more data than you really need, but there is no way around that. Meteograms are slow to draw even when reading from local disk.&nbsp;</div><br><blockquote type="cite"><div>I imagine the same is true of skew plots.<br><br>With multiple variables what is the efficient way to write the script for <br>For server efficiency with dods/gds/opendap type data calls?<br></div></blockquote>The workaround is to create a local binary version of the data you want to draw, so that you only need to hit the server once to get the data point of interest. From then on, you are reading from your local version, and it is much faster. If you are drawing meteograms for more than one location, download the smallest possible lat/lon grid that will contain all your locations of interest for each variable and time step.&nbsp;</div><div><br></div><div>Have a look at the scripts I use to draw meteograms at COLA -- they are in&nbsp;<a href="ftp://iges.org/pub/jma/meteograms/">ftp://iges.org/pub/jma/meteograms/</a></div><div>They are not enabled for opendap access, but have a look at the README file and you will get the idea of how to do what you want. I save the entire global domain at each time step, but you could limit the lat/lon boundaries (or even just write out a single point) to speed up the I/O from the server.</div><div><br></div><div><blockquote type="cite"><div><br>Is the function collect any use for this purpose?<br></div></blockquote>No, that won't help speed things up.&nbsp;</div><div><br></div><div>--Jennifer<br><blockquote type="cite"><div><br>Regards<br><br>Howard Staines<br><br> &nbsp;&nbsp;&nbsp;&nbsp;Metris Limited<br><br>phone 0800 372 433 - mobile 027 2785586 - P O Box 5136 Greenmeadows, NAPIER<br>email <a href="mailto:info@metris.co.nz">info@metris.co.nz</a> - <a href="mailto:info@metscape.net.nz">info@metscape.net.nz</a> - website <a href="http://www.metris.co.nz">www.metris.co.nz</a> -<br><a href="http://www.metscape.net.nz">www.metscape.net.nz</a><br><br><br><br><br>_______________________________________________<br>gradsusr mailing list<br>gradsusr@gradsusr.org<br>http://gradsusr.org/mailman/listinfo/gradsusr<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></body></html>