No, they're truly different in the sense that probably none of the levels perfectly match up. What algorithms do you know of?<br><br>Jeff<br><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 8:58 PM, Arlindo da Silva <span dir="ltr"><<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Jul 13, 2011 at 7:19 PM, Jeffrey Duda <span dir="ltr"><<a href="mailto:jdduda@iastate.edu" target="_blank">jdduda@iastate.edu</a>></span> wrote:<br>
</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have two 2D model grids that have the same horizontal grid spacing and the same domain width (so the X-coordinate is the same between the two) and the same domain height, but different numbers of levels in the vertical. I wish to compare the values of some variables such as vertical motion between the two model grids. How do I do that?<br>
<br></blockquote><div><br></div></div><div>Are the levels really different, or one file is a subset of the other? Say, one has fewer mandatory levels. If the latter, use lats4d or write your own simple script to subset the larger file to make it appear as the first. If the levels are really different, you will need to perform a remapping from one vertical grid to another. This remap algorithm can vary from a simple linear interpolation in log-p to a conservative scheme that preserves monotonicity, all depends on your application. I usually perform this remapping outside grads.</div>
<div><br></div><div> Arlindo</div><div><br></div></div><font color="#888888">-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br>
</font><br>_______________________________________________<br>
gradsusr mailing list<br>
<a 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></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>