Difference between revisions of "Python"

m (Add unidata python gallery link)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category: Python]][[Category:Training]]
+
We encourage our researchers to use Python for analysing large climate datasets. The Xarray and Dask libraries in particular make it possible to analyse very large datasets with relative ease.
{{Needs Update}}
 
  
=Learning Python=
+
At NCI we maintain a [[Conda]] environment with a wide variety of libraries for climate and weather analysis.
* [http://learnpythonthehardway.org/book/ | Learn Python the Hard Way] - Python tutorial for beginners to programming
 
* [http://swcarpentry.github.io/python-novice-inflammation/ | Software Carpentry] - Programming for Scientists
 
* [http://www.johnny-lin.com/pyintro/ | A Hands-On Introduction to Python in the Atmospheric and Oceanic Sciences]
 
  
 +
= Learning Python =
 +
 +
*[http://learnpythonthehardway.org/book/ Learn Python the Hard Way] - Python tutorial for beginners to programming
 +
*[http://swcarpentry.github.io/python-novice-inflammation/ Software Carpentry] - Programming for Scientists
 +
*[http://www.johnny-lin.com/pyintro/ A Hands-On Introduction to Python in the Atmospheric and Oceanic Sciences]
  
 
= Resources for Climate Scientists =
 
= Resources for Climate Scientists =
  
 
*[[Using_Python_with_Climate_Data|Using Python with Climate Data]]  
 
*[[Using_Python_with_Climate_Data|Using Python with Climate Data]]  
*[[Python_Libraries_on_Raijin|Python Libraries on Raijin]]
 
 
*[http://christopherbull.com.au/blog/?page_id=180 Chris Bull's getting started list]  
 
*[http://christopherbull.com.au/blog/?page_id=180 Chris Bull's getting started list]  
 
*[http://oceanpython.org/ OceanPython plotting examples]  
 
*[http://oceanpython.org/ OceanPython plotting examples]  
 
*[https://unidata.github.io/python-gallery/examples/index.html Unidata example python plot gallery]  
 
*[https://unidata.github.io/python-gallery/examples/index.html Unidata example python plot gallery]  
*[[Running_IPython_Notebook_from_Raijin|Running IPython Notebook from Raijin]]  
+
*[[Running IPython Notebook]]  
*[[How_to_publish_your_Python_code_to_PyPI|Publishing your code on PyPI]]
+
*[[How_to_publish_your_Python_code_to_PyPI|Publishing your code on PyPI]]  
 +
 
 +
= Useful Libraries =
 +
 
 +
*[http://docs.scipy.org/doc/numpy/ NumPy] - Numerical Python Library
 +
*[http://docs.scipy.org/doc/scipy/reference/ SciPy] - Scientific Python Tools
 +
*[http://pandas.pydata.org Pandas] - Tabular data analysis
 +
*[http://xarray.pydata.org Xarray] - Gridded data & NetCDF analysis
 +
*[http://scitools.org.uk/iris/docs/latest/index.html Iris] - Read, Analyse and Plot Climate Datasets (NetCDF, GRIB, UM output)
 +
*[http://scitools.org.uk/cartopy/ Cartopy] - A library containing cartographic tools for python (alternative to basemap)
 +
 
 +
= Creating a Local Environment =
  
=Useful Libraries=
+
For using Python on your desktop computer, consider installing [https://docs.enthought.com/canopy/2.0/index.html Enthought Canopy]. The full version of the software is free for academic users and provides a large library of ready-made python packages
* [http://docs.scipy.org/doc/numpy/ | NumPy] - Numerical Python Library
 
* [http://docs.scipy.org/doc/scipy/reference/ | SciPy] - Scientific Python Tools
 
* [http://scitools.org.uk/iris/docs/latest/index.html | Iris] - Read, Analyse and Plot Climate Datasets (NetCDF, GRIB, UM output)
 
* [http://scitools.org.uk/cartopy/ | Cartopy] - A library containing cartographic tools for python (alternative to basemap)
 
  
* '''[https://accessdev.nci.org.au/trac/wiki/Raijin%20Apps#PythonLibraries | All libraries installed on Raijin]'''
+
Or try [https://www.anaconda.com/distribution/ Anaconda], which we use for the [[Conda|Conda environment]] at NCI
  
=<span style="font-size: 80%;">For using Python on your desktop computer, consider installing ''Enthought: Canopy''</span>=
+
[[Category:Python]] [[Category:Training]]
* <span style="font-size: 14px; line-height: 15.6px;">The full version of the software is free for academic users</span>
 
* <span style="font-size: 14px; line-height: 15.6px;">and provides a large library of ready-made python packages</span>
 

Latest revision as of 23:34, 22 January 2020

We encourage our researchers to use Python for analysing large climate datasets. The Xarray and Dask libraries in particular make it possible to analyse very large datasets with relative ease.

At NCI we maintain a Conda environment with a wide variety of libraries for climate and weather analysis.

Learning Python

Resources for Climate Scientists

Useful Libraries

  • NumPy - Numerical Python Library
  • SciPy - Scientific Python Tools
  • Pandas - Tabular data analysis
  • Xarray - Gridded data & NetCDF analysis
  • Iris - Read, Analyse and Plot Climate Datasets (NetCDF, GRIB, UM output)
  • Cartopy - A library containing cartographic tools for python (alternative to basemap)

Creating a Local Environment

For using Python on your desktop computer, consider installing Enthought Canopy. The full version of the software is free for academic users and provides a large library of ready-made python packages

Or try Anaconda, which we use for the Conda environment at NCI