<br><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 11:51 AM, Joey Mukherjee <span dir="ltr">&lt;<a href="mailto:joeymu@gmail.com">joeymu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">On Thu, Nov 4, 2010 at 10:42 AM, Aashish Chaudhary <span dir="ltr">&lt;<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, <br><br><div class="gmail_quote"><div>On Thu, Nov 4, 2010 at 11:34 AM, Joey Mukherjee <span dir="ltr">&lt;<a href="mailto:joeymu@gmail.com" target="_blank">joeymu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Thanks for posting this example Aashish!  <br><br>I have some NetCDF data files that I would like to overlay over the Earth and be able to extract subsets from them and the like.  To get this same type of visualization, can I make use of the Geo classes?   </blockquote>


<div><br></div></div><div>Probably need more detail on exactly what you are trying to do but in general you should be able to use Geo*  classes for the purpose above.</div><div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does the have to be a texture map or can I use any kind of regularized image data?<div>
<br></div></blockquote></div><div>Can you elaborate this? </div></div></blockquote><div><br></div></div><div>I have some NetCDF files which are described as follows:</div><div><br></div><div>netcdf test {</div><div>dimensions:</div>

<div>        x = 5760 ;</div><div>        y = 2880 ;</div><div>variables:</div><div>        float x(x) ;</div><div>                x:long_name = &quot;x&quot; ;</div><div>                x:actual_range = 0., 360. ;</div>
<div>
        float y(y) ;</div><div>                y:long_name = &quot;y&quot; ;</div><div>                y:actual_range = -90., 90. ;</div><div>        float z(y, x) ;</div><div>                z:long_name = &quot;z&quot; ;</div>

<div>                z:_FillValue = NaNf ;</div><div>                z:actual_range = -9.04707336425781, 10.6143484115601 ;</div><div><br></div><div>// global attributes:</div><div>                :Conventions = &quot;COARDS/CF-1.0&quot; ;</div>

<div>                :GMT_version = &quot;4.3.1 [64-bit]&quot; ;</div><div>                :node_offset = 1 ; </div><div><br></div><div>The X/Y are long/lat respectively, with the z being the scalar values.  I would like to overlay this file and others onto a globe and specify just portions of the map to view.  vtkNetCDFCFReader will output an image (I believe), but its the part of mapping it to the globe which gets me.  I can&#39;t just convert an image to a texture map, can I?  </div>

<div><br></div></div></blockquote><div>Just like the example, you can use vtkTexture and call SetInput on it with the vtkImageData (that s the output of the image reader).  </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div></div><div>You can see that this is a pretty high resolution (5760x2880) dataset so I&#39;d like to just look at portions of the dataset to save time.</div><div><br></div></div></blockquote><div>
Sure.  </div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div></div><div>Thanks,</div><div>Joey</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>| Aashish Chaudhary <br>| R&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    <br>