<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>meta-data</title>
	<atom:link href="http://protian.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://protian.wordpress.com</link>
	<description>that's when tian becomes protian</description>
	<lastBuildDate>Thu, 21 Feb 2008 04:29:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='protian.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>meta-data</title>
		<link>http://protian.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://protian.wordpress.com/osd.xml" title="meta-data" />
	<atom:link rel='hub' href='http://protian.wordpress.com/?pushpress=hub'/>
		<item>
		<title>question during the development of 3D CaMRL hybrid code</title>
		<link>http://protian.wordpress.com/2008/02/20/question-during-the-development-of-3d-camrl-hybrid-code/</link>
		<comments>http://protian.wordpress.com/2008/02/20/question-during-the-development-of-3d-camrl-hybrid-code/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 04:29:18 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/20/question-during-the-development-of-3d-camrl-hybrid-code/</guid>
		<description><![CDATA[1. writedata_bd and writedata_cut not implemented yet 2. why the turbulent source term is not called? sourcet<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=56&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. writedata_bd and writedata_cut not implemented yet</p>
<p>2. why the turbulent source term is not called? sourcet</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=56&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/20/question-during-the-development-of-3d-camrl-hybrid-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>python, sort a list</title>
		<link>http://protian.wordpress.com/2008/02/15/python-sort-a-list/</link>
		<comments>http://protian.wordpress.com/2008/02/15/python-sort-a-list/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 21:28:46 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/15/python-sort-a-list/</guid>
		<description><![CDATA['my283.jpg' 'my23i.jpg' 'web7-s.jpg' 'fris88large.jpg' ... You want to sort them by the number embedded in them. What you have to do, is to provide sort() method a order-deciding function, that takes two strings, and compares the integer inside the string. Here&#8217;s the solution: li=[ 'my283.jpg', 'my23i.jpg', 'web7-s.jpg', 'fris88large.jpg', ] def myComp (x,y): import re def [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=55&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>'my283.jpg'
'my23i.jpg'
'web7-s.jpg'
'fris88large.jpg'
...</pre>
<p>You want to sort them by the number embedded in them. What you have to do, is to provide sort() method a order-deciding function, that takes two strings, and compares the integer inside the string. Here&#8217;s the solution:</p>
<pre>li=[
<span class="string">'my283.jpg'</span>,
<span class="string">'my23i.jpg'</span>,
<span class="string">'web7-s.jpg'</span>,
<span class="string">'fris88large.jpg'</span>,
]

<span class="keyword">def</span> <span class="function-name">myComp</span> (x,y):
    <span class="keyword">import</span> re
    <span class="keyword">def</span> <span class="function-name">getNum</span>(str): <span class="keyword">return</span> float(re.findall(r<span class="string">'\d+'</span>,str)[0])
    <span class="keyword">return</span> cmp(getNum(x),getNum(y))

li.sort(myComp)
<span class="keyword">print</span> li <span class="comment"># returns ['web7-s.jpg', 'my23i.jpg', 'fris88large.jpg', 'my283.jpg']
</span></pre>
<p>Here, we defined a function myComp to tell sort about the ordering. Normally, one would use the “lambda” construct, but Python&#8217;s lambda construct cannot be used to define any function that takes more than one Python-line to express.</p>
<h1><a href="http://www.amk.ca/python/howto/regex/" title="SECTION006200000000000000000" name="SECTION006200000000000000000"></a><a href="http://www.amk.ca/python/howto/regex/"><tt>re</tt> &#8212;          Regular expression operations</a></h1>
<p>here is the solution for sorting a list of class instances:</p>
<p>class Spam:</p>
<p>def _int_(self, spam, eggs):</p>
<p>self.spam = spam</p>
<p>self.eggs = eggs</p>
<p>a = [Spam(1,4), Spam(9,3), Spam(4,6)]</p>
<p>a.sort( lambda x, y: cmp(  x.eggs(), y,eggs() )  )</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=55&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/15/python-sort-a-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>python, declare your own class.</title>
		<link>http://protian.wordpress.com/2008/02/15/python-declare-your-own-class/</link>
		<comments>http://protian.wordpress.com/2008/02/15/python-declare-your-own-class/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 20:38:34 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[python script]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/?p=54</guid>
		<description><![CDATA[well, it is ashamed to say that after 2 years of using python, I only use its text-processing ability. Now is its object-oriented part:  class MyClass: &#8220;A simple example class&#8221; i = 12345 def f(self): return &#8216;hello world&#8217; and x = MyClass() ok<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=54&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>well, it is ashamed to say that after 2 years of using python, I only use its text-processing ability. Now is its object-oriented part:</p>
<blockquote><p> class MyClass:</p>
<p>&#8220;A simple example class&#8221;</p>
<p>i = 12345</p>
<p>def f(self):</p>
<p>return &#8216;hello world&#8217;</p></blockquote>
<p>and</p>
<blockquote><p>x = MyClass()</p></blockquote>
<p>ok</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=54&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/15/python-declare-your-own-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>node reordering technique</title>
		<link>http://protian.wordpress.com/2008/02/14/node-reordering-technique/</link>
		<comments>http://protian.wordpress.com/2008/02/14/node-reordering-technique/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 17:37:53 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/?p=53</guid>
		<description><![CDATA[today officially starts CFD code development for ngc under /Volumes/Work/tian/stu_source/FEMFreesurf/CaMEL_Twofluid_v1.1.1_mac/node_elem_align.c call in subroutine hypo in hypo.f call node_elem_align(ien, rng, d, x, df, id, nmap, ibuff, nbuff, nnc, nec, nn_loc, nen, nef, nsd, ndf) in node_elem_align.c: void node_elem_align_(int *ien, int *rng, double *d, double *x, double *f, double *id, int *npoint, int *ibuff, int *tnbuff, int [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=53&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>today officially starts CFD code development for ngc</p>
<p>under /Volumes/Work/tian/stu_source/FEMFreesurf/CaMEL_Twofluid_v1.1.1_mac/node_elem_align.c</p>
<p>call in subroutine hypo in hypo.f</p>
<p>call node_elem_align(ien, rng, d, x, df, id, nmap, ibuff, nbuff, nnc, nec, nn_loc, nen, nef, nsd, ndf)</p>
<p>in node_elem_align.c:</p>
<p>void node_elem_align_(int *ien, int *rng,<br />
double *d, double *x, double *f, double *id, int *npoint,<br />
int *ibuff, int *tnbuff,<br />
int *tnnc, int *tnec, int *tnnp, int *tNEN, int *tNFC,<br />
int *tNSD, int *tNDF)</p>
<p>allocate (ien(nen*ebuff))</p>
<p>allocate (rng(nef*ebuff))</p>
<p>ebuff = 2.5 * nec</p>
<p>nnc = (nn-1)/numproc +1</p>
<p>maxnnc = nnc</p>
<p>if (myid.eq.numproc-1) nnc = nn &#8211; (numproc -1)*maxnnc</p>
<p>allocate(nnpl(numproc+1))</p>
<p>nnpl(myid+1) stores how many nodes are in the processes up to myid</p>
<p>in hypo.f, call ncommsetup(ien, nec, nen, ndf, nnpl, nn_loc, ntag)</p>
<p>in ncommsetup.f</p>
<p>subroutine ncommsetup(ien, nec, nen, ndf, nnpl, nnp, ntag)</p>
<p>nn_loc is the number of local nodes in a processor.</p>
<p>allocate(  d(nn_loc*ndf)  )   :  flow arrays</p>
<p>allocate(  x(nn_loc*ndf)  )   :  mesh arrays</p>
<p>allocate(df(nn_loc))             :  interface arrays</p>
<p>allocate(nmap(nn_loc))</p>
<p>emap = (TempE *) malloc(sizeof(TempE) *nec);</p>
<p>emap[i].xx is the coordinate of the centroid</p>
<p>emap[i].ie = i</p>
<p>qsort(emap, nec, sizeof(TempE), &amp;compTE) sort emap according to xx in ascending order.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=53&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/14/node-reordering-technique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>katrina simulation</title>
		<link>http://protian.wordpress.com/2008/02/14/katrina-simulation/</link>
		<comments>http://protian.wordpress.com/2008/02/14/katrina-simulation/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 14:38:48 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/14/katrina-simulation/</guid>
		<description><![CDATA[http://www.worldwindsinc.com/techpapers.htm a lot of paper here, good<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=51&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>http://www.worldwindsinc.com/techpapers.htm</p>
<p>a lot of paper here, good</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=51&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/14/katrina-simulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>WRF &#8211; ADCIRC coupling</title>
		<link>http://protian.wordpress.com/2008/02/12/wrf-adcirc-coupling/</link>
		<comments>http://protian.wordpress.com/2008/02/12/wrf-adcirc-coupling/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 18:48:58 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/12/wrf-adcirc-coupling/</guid>
		<description><![CDATA[search for paper and forward to Lily Sheng and Prof. Liu. WRF output wind stress for ADCIRC, output u10/v10 for SWAN<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=50&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>search for paper and forward to Lily Sheng and Prof. Liu.</p>
<p>WRF output wind stress for ADCIRC,</p>
<p>output u10/v10 for SWAN</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=50&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/12/wrf-adcirc-coupling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>run swan again with dense adcirc output</title>
		<link>http://protian.wordpress.com/2008/02/12/run-swan-again-with-dense-adcirc-output/</link>
		<comments>http://protian.wordpress.com/2008/02/12/run-swan-again-with-dense-adcirc-output/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 17:12:23 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/12/run-swan-again-with-dense-adcirc-output/</guid>
		<description><![CDATA[will the accuracy be improved? let&#8217;s see.. from katrina_dense1: create a new folder called katrina_dense1_swan fort.15_nostation station.info addstation.py adcprep mpirun after finishing, station2swan.py copy bot, buoys.loc file, then swanrun running<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=49&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>will the accuracy be improved?</p>
<p>let&#8217;s see..</p>
<p>from katrina_dense1:</p>
<p>create a new folder called katrina_dense1_swan</p>
<p>fort.15_nostation</p>
<p>station.info</p>
<p>addstation.py</p>
<p>adcprep</p>
<p>mpirun</p>
<p>after finishing, station2swan.py</p>
<p>copy bot, buoys.loc file, then swanrun</p>
<p>running</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=49&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/12/run-swan-again-with-dense-adcirc-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>2d is so 10 years ago, let&#8217;s make it 3D!!!!!</title>
		<link>http://protian.wordpress.com/2008/02/11/2d-is-so-10-years-ago-lets-make-it-3d/</link>
		<comments>http://protian.wordpress.com/2008/02/11/2d-is-so-10-years-ago-lets-make-it-3d/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 01:13:41 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/11/2d-is-so-10-years-ago-lets-make-it-3d/</guid>
		<description><![CDATA[let&#8217;s bake a 3D movie out of those data. writing scripts .. well, turns out paraview pvd file can not take wrl files. fine, let&#8217;s rewrite them into paraview polydata file format writing a script: filter_swanvtr2vtp.py which basically does the same thing as filter_swanvtr.py, only outputting data as paraview polydata format .vtp. vtpmovie.py: generate a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=48&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>let&#8217;s bake a 3D movie out of those data.</p>
<p>writing scripts ..</p>
<p>well, turns out paraview pvd file can not take wrl files.</p>
<p>fine, let&#8217;s rewrite them into paraview polydata file format</p>
<p>writing a script: filter_swanvtr2vtp.py which basically does the same thing as filter_swanvtr.py, only outputting data as paraview polydata format .vtp.</p>
<p>vtpmovie.py: generate a pvd movie file using vtp files.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=48&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/11/2d-is-so-10-years-ago-lets-make-it-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>meeting 02/11/2008</title>
		<link>http://protian.wordpress.com/2008/02/11/meeting-02112008/</link>
		<comments>http://protian.wordpress.com/2008/02/11/meeting-02112008/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 23:43:08 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/?p=46</guid>
		<description><![CDATA[per meeting this morning, task for the week: 1. create a movie of net water height, using water elevation and wave height 2. compare speed of wave and speed of current at the shore 3. generate wave profile 4. node re-ordering built in 5. cooperate with Lily Sheng and Heping Liu on WRF model 6. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=46&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>per meeting this morning, task for the week:</p>
<p>1. <strike>create a movie of net water height, using water elevation and wave height</strike></p>
<p>2. compare speed of wave and speed of current at the shore</p>
<p>3. generate wave profile</p>
<p><strike>4. node re-ordering built in</strike></p>
<p><strike>5. cooperate with Lily Sheng and Heping Liu on WRF model</strike></p>
<p><strike>6. begin code development</strike></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=46&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/11/meeting-02112008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>
	</item>
		<item>
		<title>paraview programmable filter</title>
		<link>http://protian.wordpress.com/2008/02/11/paraview-programmable-filter/</link>
		<comments>http://protian.wordpress.com/2008/02/11/paraview-programmable-filter/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 19:29:06 +0000</pubDate>
		<dc:creator>protian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://protian.wordpress.com/2008/02/11/paraview-programmable-filter/</guid>
		<description><![CDATA[Trying to add an array to the VRML scene and color by it. not successful yet http://www.vtk.org/doc/nightly/html/classvtkDataArray.html#ad0e8ab37eacfb957845c1ee962edc6b http://www.vtk.org/doc/nightly/html/classvtkAbstractArray.html#5c37ed79c3cb07dbc970e2579685de30 http://paraview.org/Wiki/Python_Programmable_Filter pdi = self.GetInput() print pdi.GetClassName() print pdi.GetNumberOfPoints() print pdi.GetNumberOfVerts() print pdi.GetNumberOfLines() print pdi.GetNumberOfPolys() print pdi.GetNumberOfStrips() pdo = self.GetOutput() ivals = pdi.GetPointData().GetScalars() ntuple = ivals.GetNumberOfTuples() print ivals.GetComponent(100,0) print ivals.GetComponent(100,1) print ivals.GetComponent(100,2) ca = paraview.vtkFloatArray() ca.SetName(&#8220;height&#8221;) ca.SetNumberOfComponents(1) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=45&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trying to add an array to the VRML scene and color by it. not successful yet</p>
<p>http://www.vtk.org/doc/nightly/html/classvtkDataArray.html#ad0e8ab37eacfb957845c1ee962edc6b</p>
<p>http://www.vtk.org/doc/nightly/html/classvtkAbstractArray.html#5c37ed79c3cb07dbc970e2579685de30</p>
<p>http://paraview.org/Wiki/Python_Programmable_Filter</p>
<p>pdi = self.GetInput()<br />
print pdi.GetClassName()<br />
print pdi.GetNumberOfPoints()<br />
print pdi.GetNumberOfVerts()<br />
print pdi.GetNumberOfLines()<br />
print pdi.GetNumberOfPolys()<br />
print pdi.GetNumberOfStrips()</p>
<p>pdo = self.GetOutput()<br />
ivals = pdi.GetPointData().GetScalars()<br />
ntuple = ivals.GetNumberOfTuples()</p>
<p>print ivals.GetComponent(100,0)<br />
print ivals.GetComponent(100,1)<br />
print ivals.GetComponent(100,2)<br />
ca = paraview.vtkFloatArray()<br />
ca.SetName(&#8220;height&#8221;)<br />
ca.SetNumberOfComponents(1)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>start over.</p>
<p>1. print self</p>
<blockquote><p>vtkPythonProgrammableFilter (0x1cba5270)<br />
Debug: Off<br />
Modified Time: 139840<br />
Reference Count: 5<br />
Registered Events:<br />
Registered Observers:<br />
vtkObserver (0x20dc2e20)<br />
Event: 3<br />
EventName: StartEvent<br />
Command: 0x20dc2da0<br />
Priority: 0<br />
Tag: 2<br />
vtkObserver (0x20dc12f0)<br />
Event: 4<br />
EventName: EndEvent<br />
Command: 0x20dc2d80<br />
Priority: 0<br />
Tag: 3<br />
vtkObserver (0x1cba09b0)<br />
Event: 6<br />
EventName: ProgressEvent<br />
Command: 0x6e4eb60<br />
Priority: 0<br />
Tag: 1<br />
Executive: 0x1c750a00<br />
ErrorCode: Unknown error: 0<br />
Information: 0x1cba5310<br />
AbortExecute: Off<br />
Progress: 0<br />
Progress Text: (None)<br />
OutputDataSetType: 8</p></blockquote>
<p>2. print self.GetInput()</p>
<blockquote><p>vtkPolyData (0x1fc78960)<br />
Debug: Off<br />
Modified Time: 59104<br />
Reference Count: 6<br />
Registered Events: (none)<br />
Source: (none)<br />
Information: 0x1fcc14c0<br />
Data Released: False<br />
Global Release Data: Off<br />
UpdateTime: 0<br />
Release Data: Off<br />
UpdateExtent: Not Initialized<br />
MaximumNumberOfPieces: 1<br />
RequestExactExtent: Off<br />
Field Data:<br />
Debug: Off<br />
Modified Time: 59087<br />
Reference Count: 1<br />
Registered Events: (none)<br />
Number Of Arrays: 0<br />
Number Of Components: 0<br />
Number Of Tuples: 0<br />
Number Of Points: 56018<br />
Number Of Cells: 109496<br />
Cell Data:<br />
Debug: Off<br />
Modified Time: 59098<br />
Reference Count: 1<br />
Registered Events: (none)<br />
Number Of Arrays: 0<br />
Number Of Components: 0<br />
Number Of Tuples: 0<br />
Copy Tuple Flags: ( 1 1 1 1 1 0 1 )<br />
Interpolate Flags: ( 1 1 1 1 1 0 0 )<br />
Pass Through Flags: ( 1 1 1 1 1 1 1 )<br />
Scalars: (none)<br />
Vectors: (none)<br />
Normals: (none)<br />
TCoords: (none)<br />
Tensors: (none)<br />
GlobalIds: (none)<br />
PedigreeIds: (none)<br />
Point Data:<br />
Debug: Off<br />
Modified Time: 59104<br />
Reference Count: 1<br />
Registered Events: (none)<br />
Number Of Arrays: 2<br />
Array 0 name = VRMLArray1<br />
Array 1 name = VRMLColor<br />
Number Of Components: 4<br />
Number Of Tuples: 56018<br />
Copy Tuple Flags: ( 0 1 1 1 1 0 1 )<br />
Interpolate Flags: ( 0 1 1 1 1 0 0 )<br />
Pass Through Flags: ( 0 1 1 1 1 1 1 )<br />
Scalars:<br />
Debug: Off<br />
Modified Time: 59058<br />
Reference Count: 1<br />
Registered Events: (none)<br />
Name: VRMLColor<br />
Data type: unsigned char<br />
Size: 168054<br />
MaxId: 168053<br />
NumberOfComponents: 3<br />
Name: VRMLColor<br />
Number Of Components: 3<br />
Number Of Tuples: 56018<br />
Size: 168054<br />
MaxId: 168053<br />
LookupTable: (none)<br />
Array: 0&#215;20678000<br />
Vectors: (none)<br />
Normals: (none)<br />
TCoords: (none)<br />
Tensors: (none)<br />
GlobalIds: (none)<br />
PedigreeIds: (none)<br />
Bounds:<br />
Xmin,Xmax: (-92, -80)<br />
Ymin,Ymax: (24, 32.5667)<br />
Zmin,Zmax: (-0.84625, 8.8772)<br />
Compute Time: 59243<br />
Number Of Points: 56018<br />
Point Coordinates: 0x1fcf6760<br />
Locator: 0<br />
Number Of Vertices: 0<br />
Number Of Lines: 0<br />
Number Of Polygons: 109496<br />
Number Of Triangle Strips: 0<br />
Number Of Pieces: 1<br />
Piece: 0<br />
Ghost Level: 0</p></blockquote>
<blockquote></blockquote>
<p>3. print self.GetInput().GetPointData()</p>
<blockquote><p>vtkPointData (0x1cb81240)<br />
Debug: Off<br />
Modified Time: 59104<br />
Reference Count: 3<br />
Registered Events: (none)<br />
Number Of Arrays: 2<br />
Array 0 name = VRMLArray1<br />
Array 1 name = VRMLColor<br />
Number Of Components: 4<br />
Number Of Tuples: 56018<br />
Copy Tuple Flags: ( 0 1 1 1 1 0 1 )<br />
Interpolate Flags: ( 0 1 1 1 1 0 0 )<br />
Pass Through Flags: ( 0 1 1 1 1 1 1 )<br />
Scalars:<br />
Debug: Off<br />
Modified Time: 59058<br />
Reference Count: 1<br />
Registered Events: (none)<br />
Name: VRMLColor<br />
Data type: unsigned char<br />
Size: 168054<br />
MaxId: 168053<br />
NumberOfComponents: 3<br />
Name: VRMLColor<br />
Number Of Components: 3<br />
Number Of Tuples: 56018<br />
Size: 168054<br />
MaxId: 168053<br />
LookupTable: (none)<br />
Array: 0&#215;20678000<br />
Vectors: (none)<br />
Normals: (none)<br />
TCoords: (none)<br />
Tensors: (none)<br />
GlobalIds: (none)<br />
PedigreeIds: (none)</p></blockquote>
<p>4. found the data at the fourth attempt. print self.GetInput().GetPoints()</p>
<blockquote><p>vtkPoints (0x1fcf6760)<br />
Debug: Off<br />
Modified Time: 59042<br />
Reference Count: 4<br />
Registered Events: (none)<br />
Data: 0&#215;20732240<br />
Data Array Name: (none)<br />
Number Of Points: 56018<br />
Bounds:<br />
Xmin,Xmax: (-92, -80)<br />
Ymin,Ymax: (24, 32.6333)<br />
Zmin,Zmax: (-0.84625, 8.8772)</p></blockquote>
<p>the reason is vtkPoints and vtkPointData are totally different.</p>
<p>SUCCESS declared. This script does the trick:</p>
<p>pdi = self.GetInput()<br />
pdo = self.GetOutput()</p>
<p>pts = pdi.GetPoints()<br />
npt = pts.GetNumberOfPoints()<br />
height = paraview.vtkFloatArray()<br />
height.SetName(&#8220;absolute water level&#8221;)<br />
height.SetNumberOfComponents(1)<br />
height.SetNumberOfTuples(npt)</p>
<p>pdo.GetPointData().AddArray(height)</p>
<p>for i in range(0, npt):<br />
coor = pts.GetPoint(i)<br />
height.SetValue(i, coor[2])</p>
<p><a href="http://protian.files.wordpress.com/2008/02/isosurface_color.png" title="isosurface_color.png"><img src="http://protian.files.wordpress.com/2008/02/isosurface_color.png?w=700" alt="isosurface_color.png" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/protian.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/protian.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/protian.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/protian.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/protian.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/protian.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/protian.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/protian.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/protian.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/protian.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=protian.wordpress.com&amp;blog=1145551&amp;post=45&amp;subd=protian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://protian.wordpress.com/2008/02/11/paraview-programmable-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/18efc362ad0a291e2546350875fada65?s=96&#38;d=identicon" medium="image">
			<media:title type="html">protian</media:title>
		</media:content>

		<media:content url="http://protian.files.wordpress.com/2008/02/isosurface_color.png" medium="image">
			<media:title type="html">isosurface_color.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
