<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://climate-cms.wikis.unsw.edu.au/index.php?action=history&amp;feed=atom&amp;title=Using_Python_with_Climate_Data</id>
	<title>Using Python with Climate Data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://climate-cms.wikis.unsw.edu.au/index.php?action=history&amp;feed=atom&amp;title=Using_Python_with_Climate_Data"/>
	<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Using_Python_with_Climate_Data&amp;action=history"/>
	<updated>2026-08-17T13:07:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Using_Python_with_Climate_Data&amp;diff=740&amp;oldid=prev</id>
		<title>S.wales at 05:33, 18 March 2019</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Using_Python_with_Climate_Data&amp;diff=740&amp;oldid=prev"/>
		<updated>2019-03-18T05:33:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 05:33, 18 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Needs Update}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;At the Melbourne Uni follow-up meeting for the 2013 Software Carpentry workshop Damien Irving showed off several Python libraries for working with climate data. Damien's notes are given below, he also has material available on [http://drclimate.wordpress.com/2013/02/18/python-and-software-carpentry-a-3-year-journey |&amp;#160; his blog].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;At the Melbourne Uni follow-up meeting for the 2013 Software Carpentry workshop Damien Irving showed off several Python libraries for working with climate data. Damien's notes are given below, he also has material available on [http://drclimate.wordpress.com/2013/02/18/python-and-software-carpentry-a-3-year-journey |&amp;#160; his blog].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l66&quot; &gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* use docstrings as your primary documentation method&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* use docstrings as your primary documentation method&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* use pylint to test the quality of your code&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* use pylint to test the quality of your code&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Python]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>S.wales</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Using_Python_with_Climate_Data&amp;diff=375&amp;oldid=prev</id>
		<title>ScottWales: Imported from Wikispaces</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Using_Python_with_Climate_Data&amp;diff=375&amp;oldid=prev"/>
		<updated>2013-02-26T05:23:50Z</updated>

		<summary type="html">&lt;p&gt;Imported from Wikispaces&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;At the Melbourne Uni follow-up meeting for the 2013 Software Carpentry workshop Damien Irving showed off several Python libraries for working with climate data. Damien's notes are given below, he also has material available on [http://drclimate.wordpress.com/2013/02/18/python-and-software-carpentry-a-3-year-journey |  his blog].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi all,&lt;br /&gt;
&lt;br /&gt;
Thanks for coming to the Software Carpentry boot camp follow up session this afternoon. Below is a summary of the text that I showed at the end, including the various links that I promised. If you're struggling with Python at all, feel free to look through my bitbucket repository for useful examples (https://bitbucket.org/DBrent/phd/src). At the 'cdat_tutorial' directory in that repository, you'll see the example code that I used today.&lt;br /&gt;
&lt;br /&gt;
==netCDF== &lt;br /&gt;
&lt;br /&gt;
* be CF compliant&lt;br /&gt;
* use attributes: data should be self-describing&lt;br /&gt;
* more details: http://drclimate.wordpress.com/2013/02/25/are-you-cf-compliant/&lt;br /&gt;
&lt;br /&gt;
==ipython== &lt;br /&gt;
&lt;br /&gt;
* excellent interactive development environment (IDE)&lt;br /&gt;
* use dir() and ? to explore objects&lt;br /&gt;
* use pdb for debugging&lt;br /&gt;
* use ! to run any command at the system shell&lt;br /&gt;
* on abyss: /usr/local/uvcdat/1.2.0rc1/bin/ipython&lt;br /&gt;
&lt;br /&gt;
==uvcdat== &lt;br /&gt;
&lt;br /&gt;
* for quickly viewing your data&lt;br /&gt;
* overview: http://drclimate.wordpress.com/2012/12/19/getting-started-with-python/&lt;br /&gt;
* youtube: http://www.youtube.com/watch?v=Nuer6B21NA0&lt;br /&gt;
* general cdat documentation: http://www2-pcmdi.llnl.gov/cdat&lt;br /&gt;
* on abyss: /usr/local/uvcdat/1.2.0rc1/bin/uvcdat&lt;br /&gt;
&lt;br /&gt;
==import cdms2== &lt;br /&gt;
&lt;br /&gt;
* for netCDF input and output&lt;br /&gt;
* documentation: http://esg.llnl.gov/cdat/cdms_html/cdms.htm&lt;br /&gt;
&lt;br /&gt;
==import cdutil== &lt;br /&gt;
&lt;br /&gt;
* climate relevant utilities (climatologies, regions, calendars etc)&lt;br /&gt;
* documentation: http://esg.llnl.gov/cdat/cdat_utilities/cdat_utilities.htm&lt;br /&gt;
&lt;br /&gt;
==import genutil== &lt;br /&gt;
&lt;br /&gt;
* climate relevant statistics (correlation, percentiles, etc)&lt;br /&gt;
* documentation: http://esg.llnl.gov/cdat/cdat_utilities/cdat_utilities.htm&lt;br /&gt;
&lt;br /&gt;
==import regrid2== &lt;br /&gt;
&lt;br /&gt;
* for regirdding&lt;br /&gt;
&lt;br /&gt;
==import MV2== &lt;br /&gt;
&lt;br /&gt;
* for masked arrays&lt;br /&gt;
* it's a copy of numpy.ma, but the data keep their attributes&lt;br /&gt;
&lt;br /&gt;
==import matplotlib== &lt;br /&gt;
&lt;br /&gt;
* for all plotting (timeseries, spatial maps, etc)&lt;br /&gt;
* from mpl_toolkits.basemap import Basemap, for spatial maps&lt;br /&gt;
* from mpl_toolkits.basemap import shiftgrid, for longitude axis fiddling&lt;br /&gt;
* documentation: http://matplotlib.org/&lt;br /&gt;
&lt;br /&gt;
==programming tips== &lt;br /&gt;
&lt;br /&gt;
* use the argparse module for parsing the command line&lt;br /&gt;
* create your own modules to avoid duplication of code&lt;br /&gt;
* use docstrings as your primary documentation method&lt;br /&gt;
* use pylint to test the quality of your code&lt;/div&gt;</summary>
		<author><name>ScottWales</name></author>
		
	</entry>
</feed>