<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/pycamx/home/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/pycamx/home/Home/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 05 Oct 2011 14:59:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pycamx/home/Home/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Home modified by yosukesabai</title><link>https://sourceforge.net/p/pycamx/home/Home/</link><description>&lt;pre&gt;--- v2 
+++ v3 
@@ -1,6 +1,9 @@
 [[project_admins]]
 [[download_button]]
 
+###### Credits
+* Environcorp: &lt;http://www.camx.com&gt;
+* FortranFile.py:  Neil Martinsen-Burrell
 #### Description
 
 Basically I can load camx avrg file into python's numpy array.  I also intend to support met files.  
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yosukesabai</dc:creator><pubDate>Wed, 05 Oct 2011 14:59:21 -0000</pubDate><guid>https://sourceforge.net62892d910668ba0a347f368b8a6db68893f443ae</guid></item><item><title>WikiPage Home modified by yosukesabai</title><link>https://sourceforge.net/p/pycamx/home/Home/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -1,5 +1,86 @@
-Welcome to your wiki!
-
-This is the default page, edit it as you see fit. To add a page simply reference it within brackets, e.g.: [SamplePage].
-
-The wiki uses [Markdown](/p/pycamx/home/markdown_syntax/) syntax.
+[[project_admins]]
+[[download_button]]
+
+#### Description
+
+Basically I can load camx avrg file into python's numpy array.  I also intend to support met files.  
+
+* reads:
+    - avrg file
+    - zp file
+    - temp file
+* writes:
+    - avrg file
+* creates:
+    - avrg file
+
+Here is an example.
+
+#### Example
+
+###### reads
+	&gt;&gt;&gt; import camx
+	&gt;&gt;&gt; avfil = camx.camx('avrg.dat')
+	&gt;&gt;&gt; avfil.header
+	{'nx': 89, 'name': 'AVERAGE   ', 'bdatetime': camx_datetime(2006, 6, 1, 0, 0), 
+	'note': 'camx5201pr_cb05, 20060601, dfw8h2.bc06_06jun.reg2.2006ep0ext', 
+	'ny': 89, 'nz': 28, 'iutm': 0, 'xorg': -12000.0, 'delx': 12000.0, 'dely': 12000.0, 
+	'yorg': -1488000.0, 'nspec': 3, 'spec': ['NO', 'NO2', 'O3'], 
+	'edatetime': camx_datetime(2006, 6, 2, 0, 0)}
+	&gt;&gt;&gt; avfil.value.dtype, avfil.value.shape
+	(dtype('float32'), (89, 89, 28, 3, 24))
+	&gt;&gt;&gt; avfil.value[5,5,0,2,:]                                                     
+	array([ 0.01212548,  0.01062091,  0.00699076,  0.00291533,  0.0016371 ,
+		0.00283867,  0.00527306,  0.00860224,  0.01262952,  0.02665699,
+		0.03111625,  0.03403297,  0.03732257,  0.04100296,  0.04435699,
+		0.04419025,  0.04000658,  0.03637949,  0.02711839,  0.02053112,
+		0.02039303,  0.02175843,  0.02041762,  0.01836622], dtype=float32)
+	&gt;&gt;&gt; 
+	&gt;&gt;&gt; 
+
+###### writes
+	&gt;&gt;&gt; avfil.write('out.dat')
+	&gt;&gt;&gt; import filecmp
+	&gt;&gt;&gt; filecmp.cmp('avrg.dat', 'out.dat')
+	True
+	&gt;&gt;&gt; 
+	&gt;&gt;&gt; 
+
+###### met files
+	&gt;&gt;&gt; zpfil = camx.zp('zp.dat', (89,89,28), (-12,-1488,12,0), (6152,0,6152,24))
+	&gt;&gt;&gt; zpfil.header
+	{'nx': 89, 'name': 'AVERAGE   ', 'bdatetime': camx_datetime(2006, 6, 1, 0, 0), 
+	'note': 'pyCamx                                                      ', 
+	'ny': 89, 'nz': 28, 'iutm': 0, 'xorg': -12000.0, 'delx': 12000.0, 'dely': 12000.0, 
+	'yorg': -1488000.0, 'nspec': 2, 'spec': ['HEIGHT', 'PRESS'], 
+	'edatetime': camx_datetime(2006, 6, 2, 0, 0)}
+	&gt;&gt;&gt; 
+	&gt;&gt;&gt; tempfil = camx.temp('temp.dat', (89,89,28), (-12,-1488,12,0), (6152,0,6152,24))
+	&gt;&gt;&gt; tempfil.header
+	{'nx': 89, 'name': 'AVERAGE   ', 'bdatetime': camx_datetime(2006, 6, 1, 0, 0), 
+	'note': 'pyCamx                                                      ', 
+	'ny': 89, 'nz': 28, 'iutm': 0, 'xorg': -12000.0, 'delx': 12000.0, 'dely': 12000.0, 
+	'yorg': -1488000.0, 'nspec': 1, 'spec': ['TEMP'], 
+	'edatetime': camx_datetime(2006, 6, 2, 0, 0)}
+	&gt;&gt;&gt; 
+	&gt;&gt;&gt; 
+
+###### from scratch
+	&gt;&gt;&gt; newfil = camx.camx({'nx':89, 'ny':89, 'nz':1, 'spec': ['O3'], 
+	... 'xorg':-12000,'yorg':-1488000,'delx':12000,'dely':12000,
+	... 'bdatetime': datetime.datetime(2006,6,1), 'edatetime':datetime.datetime(2006,6,2)})
+	&gt;&gt;&gt; newfil.header
+	{'nx': 89, 'name': 'AVERAGE   ', 'bdatetime': camx_datetime(2006, 6, 1, 0, 0), 
+	'note': 'pyCamx                                                      ', 
+	'ny': 89, 'nz': 1, 'iutm': 0, 'xorg': -12000, 'delx': 12000, 'dely': 12000, 
+	'yorg': -1488000, 'nspec': 1, 'spec': ['O3'], 
+	'edatetime': camx_datetime(2006, 6, 2, 0, 0)}
+	&gt;&gt;&gt; newfil.value.dtype, newfil.value.shape
+	(dtype('float32'), (89, 89, 1, 1, 24))
+	&gt;&gt;&gt; newfil.value[5,5,0,0,:]                                                    
+	array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,
+		0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.], dtype=float32)
+	&gt;&gt;&gt; 
+	&gt;&gt;&gt; 
+
+
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yosukesabai</dc:creator><pubDate>Wed, 05 Oct 2011 14:52:43 -0000</pubDate><guid>https://sourceforge.net64c73553f56fb762b7a09fa6f7a7abea9d9b0ba8</guid></item><item><title>WikiPage Home modified by yosukesabai</title><link>https://sourceforge.net/p/pycamx/home/Home/</link><description>Welcome to your wiki!

This is the default page, edit it as you see fit. To add a page simply reference it within brackets, e.g.: [SamplePage].

The wiki uses [Markdown](/p/pycamx/home/markdown_syntax/) syntax.
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yosukesabai</dc:creator><pubDate>Wed, 05 Oct 2011 12:09:14 -0000</pubDate><guid>https://sourceforge.net5d8e78f4bde6cdc31ebfb5fd27ca31e70cdc8911</guid></item></channel></rss>