<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Code snippets</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>Recent changes to Code snippets</description><atom:link href="https://sourceforge.net/p/geoms2/wiki/Code%20snippets/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 26 Feb 2014 16:39:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/geoms2/wiki/Code%20snippets/feed" rel="self" type="application/rss+xml"/><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -46,21 +46,21 @@
 ----

 ***Files:***
-- [File reading and writing](Code - file reading and writing)
-- [Binary file reading and writing](Code - binary file reading and writing)
-- [File format](Code - file format)
+- [File reading and writing](File reading and writing)
+- [Binary file reading and writing](Binary file reading and writing)
+- [File format](File format)

 ***Statistics:***
-- [Linear regression](Code - Linear regression)
-- [Basic statistics parameters](Code - Basic statistics parameters)
-- [Experimental variogram](Code - Experimental variogram)
+- [Linear regression](Linear regression)
+- [Basic statistics parameters](Basic statistics parameters)
+- [Experimental variogram](Experimental variogram)

 ***Statistics;Plot:***
-- [Histogram](Code - Histogram)
-- [Scatterplot](Code - Scatterplot)
-- [Boxplot](Code - Boxplot)
-- [Lineplot](Code - Lineplot)
-- [Stereonet](Code - Stereonet)
+- [Histogram](Histogram)
+- [Scatterplot](Scatterplot)
+- [Boxplot](Boxplot)
+- [Lineplot](Lineplot)
+- [Stereonet](Stereonet)

 ***Spatial estimation:***
 - [Nearest neighbor](Nearest neighbor)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Wed, 26 Feb 2014 16:39:11 -0000</pubDate><guid>https://sourceforge.nete9f7aa59a5e3359f861df0a437ecf030d9a25193</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Wed, 26 Feb 2014 15:07:04 -0000</pubDate><guid>https://sourceforge.netb223352ec89da5ce7aac5ffded42c35aafc9181e</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -63,7 +63,7 @@
 - [Stereonet](Code - Stereonet)

 ***Spatial estimation:***
-- [Nearest neighbor](Code - Nearest neighbor)
-- [Inverse weighted distance](Code - Inverse weighted distance)
-- [Kriging](Code - Kriging)
-- [Cubic interpolation](Code - Cubic interpolation)
+- [Nearest neighbor](Nearest neighbor)
+- [Inverse weighted distance](Inverse weighted distance)
+- [Kriging](Kriging)
+- [Cubic interpolation](Cubic interpolation)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Wed, 26 Feb 2014 15:06:53 -0000</pubDate><guid>https://sourceforge.net1bf0b5a830571c9656083259c209dd8c787a1b15</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -19,7 +19,7 @@

 The example below in [Python](http://www.python.org/) shows an example of a 2d array being created with the [indices](http://docs.scipy.org/doc/numpy/reference/generated/numpy.indices.html) function from [numpy](http://www.numpy.org/) library.

-The array is than plotted with [imshow](http://matplotlib.org/users/image_tutorial.html) function from [matplotlib](http://matplotlib.org/) library. Notice the ***origin*** argument makes sure the plots starts in X,Y = "0,0" in bottom left corner. The ***interpolation*** argument is put as nearest to call the [nearest neighbor](Nearest neighbor) interpolation method (if other the image would appear smoothed beyond normality). Finally the [colormap](Colormap), ***cmap*** argument, is put as [Greens](Greens) (sometimes called rainbow, goes from blue to red with yellow and orange in between). I've also called for a grid over the plot.
+The array is than plotted with [imshow](http://matplotlib.org/users/image_tutorial.html) function from [matplotlib](http://matplotlib.org/) library. Notice the ***origin*** argument makes sure the plots starts in X,Y = "0,0" in bottom left corner. The ***interpolation*** argument is put as nearest to call the [nearest neighbor](Nearest neighbor) interpolation method (if other the image would appear smoothed beyond normality). Finally the [colormap](Colormap), ***cmap*** argument, is put as [Greens](Greens). I've also called for a grid over the plot.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Wed, 26 Feb 2014 14:50:13 -0000</pubDate><guid>https://sourceforge.net4f97e3a831d059d58c308c5bee62bc303df3d8a3</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -8,7 +8,7 @@
 Code recipes are easily readable trenches of code you can use to work your data. In this wiki you can find example of how to load and save data in different file formats, how to calculate moving window attributes from grids, how to view your data, etc. There's really no well defined boundary of what type of code can be put here.

-If you have a recipe you want to put in this wiki please send us an email to: cerena.cmrp@gmail.com.
+If you have a recipe you want to put in this wiki please send us an email to: ***cerena.cmrp@gmail.com***.

 We'll try to separate the recipes by purposes and inside each purpose you may have more than one language available to check the code.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Mon, 24 Feb 2014 19:01:14 -0000</pubDate><guid>https://sourceforge.net11ed7297d88fe83ae1c9ee3f725511ce38be3a84</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,5 +1,8 @@
 Code recipes
 =============
+
+
+[TOC]

 Code recipes are easily readable trenches of code you can use to work your data. In this wiki you can find example of how to load and save data in different file formats, how to calculate moving window attributes from grids, how to view your data, etc. There's really no well defined boundary of what type of code can be put here. 
@@ -16,7 +19,7 @@

 The example below in [Python](http://www.python.org/) shows an example of a 2d array being created with the [indices](http://docs.scipy.org/doc/numpy/reference/generated/numpy.indices.html) function from [numpy](http://www.numpy.org/) library.

-The array is than plotted with [imshow](http://matplotlib.org/users/image_tutorial.html) function from [matplotlib](http://matplotlib.org/) library. Notice the ***origin*** argument makes sure the plots starts in X,Y = "0,0" in bottom left corner. The ***interpolation*** argument is put as nearest to call the [nearest neighbor](Nearest neighbor) interpolation method (if other the image would appear smoothed beyond normality). Finally the [colormap](Colormap), ***cmap*** argument, is put as [jet](Jet) (sometimes called rainbow, goes from blue to red with yellow and orange in between). I've also called for a grid over the plot.
+The array is than plotted with [imshow](http://matplotlib.org/users/image_tutorial.html) function from [matplotlib](http://matplotlib.org/) library. Notice the ***origin*** argument makes sure the plots starts in X,Y = "0,0" in bottom left corner. The ***interpolation*** argument is put as nearest to call the [nearest neighbor](Nearest neighbor) interpolation method (if other the image would appear smoothed beyond normality). Finally the [colormap](Colormap), ***cmap*** argument, is put as [Greens](Greens) (sometimes called rainbow, goes from blue to red with yellow and orange in between). I've also called for a grid over the plot.

@@ -31,3 +34,36 @@
 plt.grid()
 plt.show() # Function to draw the plot once all editing is finished.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+The result is this:
+
+
+[[img src=image.png width=320px align=center]]
+
+
+Tags
+----
+
+***Files:***
+- [File reading and writing](Code - file reading and writing)
+- [Binary file reading and writing](Code - binary file reading and writing)
+- [File format](Code - file format)
+
+***Statistics:***
+- [Linear regression](Code - Linear regression)
+- [Basic statistics parameters](Code - Basic statistics parameters)
+- [Experimental variogram](Code - Experimental variogram)
+
+***Statistics;Plot:***
+- [Histogram](Code - Histogram)
+- [Scatterplot](Code - Scatterplot)
+- [Boxplot](Code - Boxplot)
+- [Lineplot](Code - Lineplot)
+- [Stereonet](Code - Stereonet)
+
+***Spatial estimation:***
+- [Nearest neighbor](Code - Nearest neighbor)
+- [Inverse weighted distance](Code - Inverse weighted distance)
+- [Kriging](Code - Kriging)
+- [Cubic interpolation](Code - Cubic interpolation)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Mon, 24 Feb 2014 19:00:22 -0000</pubDate><guid>https://sourceforge.net806265a1edc24658129e3c72320299effbe40095</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -14,7 +14,20 @@
 Example
 -------

-The following example creates a 2D array and visualizes it with matplotlib (Python):
+The example below in [Python](http://www.python.org/) shows an example of a 2d array being created with the [indices](http://docs.scipy.org/doc/numpy/reference/generated/numpy.indices.html) function from [numpy](http://www.numpy.org/) library.
+
+The array is than plotted with [imshow](http://matplotlib.org/users/image_tutorial.html) function from [matplotlib](http://matplotlib.org/) library. Notice the ***origin*** argument makes sure the plots starts in X,Y = "0,0" in bottom left corner. The ***interpolation*** argument is put as nearest to call the [nearest neighbor](Nearest neighbor) interpolation method (if other the image would appear smoothed beyond normality). Finally the [colormap](Colormap), ***cmap*** argument, is put as [jet](Jet) (sometimes called rainbow, goes from blue to red with yellow and orange in between). I've also called for a grid over the plot.

-[https://sourceforge.net/p/geoms2/wiki/Code%20snippets/attachment/image.png]
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+# Creating some 2D data...
+ind = np.indices((100,100))
+grid = np.cos(ind[0]/20)**2+np.sin(ind[1]/20)**2
+
+# Plotting the data with imshow function...
+plt.imshow(grid,origin='lower',interpolation='nearest',cmap='Greens')
+plt.grid()
+plt.show() # Function to draw the plot once all editing is finished.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Mon, 24 Feb 2014 18:41:43 -0000</pubDate><guid>https://sourceforge.netea946de4ae24a5fd61243ae3509e6630af4e5ccb</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -17,3 +17,4 @@
 The following example creates a 2D array and visualizes it with matplotlib (Python):

+[https://sourceforge.net/p/geoms2/wiki/Code%20snippets/attachment/image.png]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Mon, 24 Feb 2014 18:34:07 -0000</pubDate><guid>https://sourceforge.net67211ba0c5357f6f2670ece1ea7165654c8e3945</guid></item><item><title>Code snippets modified by CMRP Software</title><link>https://sourceforge.net/p/geoms2/wiki/Code%2520snippets/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="code-recipes"&gt;Code recipes&lt;/h1&gt;
&lt;p&gt;Code recipes are easily readable trenches of code you can use to work your data. In this wiki you can find example of how to load and save data in different file formats, how to calculate moving window attributes from grids, how to view your data, etc. There's really no well defined boundary of what type of code can be put here. &lt;/p&gt;
&lt;p&gt;If you have a recipe you want to put in this wiki please send us an email to: cerena.cmrp@gmail.com.&lt;/p&gt;
&lt;p&gt;We'll try to separate the recipes by purposes and inside each purpose you may have more than one language available to check the code.&lt;/p&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;p&gt;The following example creates a 2D array and visualizes it with matplotlib (Python):&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">CMRP Software</dc:creator><pubDate>Mon, 24 Feb 2014 18:15:08 -0000</pubDate><guid>https://sourceforge.net217c1c6bbb375c92de75605cd4c57de8733ae174</guid></item></channel></rss>