User Tools

Site Tools


other:python:jyp_steps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:python:jyp_steps [2016/02/19 15:17]
jypeter Added more debugger mode instructions
other:python:jyp_steps [2016/06/27 15:31]
jypeter [Basemap] Added note about basemap->cartopy transition, and started cartopy section
Line 1: Line 1:
 ====== JYP's recommended steps for learning python ====== ====== JYP's recommended steps for learning python ======
 +
 +<note tip>If you don't know which python distribution to use and how to start the python interpreter,​ you should first read the [[starting|Working with Python]] page</​note>​
  
 As can be expected, there is **a lot** of online python documentation available, and it's easy to get lost. You can always use google to find an answer to your problem, and you will probably end up looking at lots of answers on [[http://​stackoverflow.com/​questions/​tagged/​python|Stack Overflow]] or a similar site. But it's always better to know where you can find some good documentation... and to spend some time to read the documentation As can be expected, there is **a lot** of online python documentation available, and it's easy to get lost. You can always use google to find an answer to your problem, and you will probably end up looking at lots of answers on [[http://​stackoverflow.com/​questions/​tagged/​python|Stack Overflow]] or a similar site. But it's always better to know where you can find some good documentation... and to spend some time to read the documentation
Line 161: Line 163:
  
 ===== Basemap ===== ===== Basemap =====
 +
 +<note warning>​It seems that basemap is going to slowly phased out, in favor of [[#​cartopy]]\\ More information in this [[https://​github.com/​matplotlib/​basemap/​issues/​267|basemap github issue]]
 +</​note>​
  
 Summary: Basemap is an extension of Matplotlib that you can use for plotting maps, using different projections Summary: Basemap is an extension of Matplotlib that you can use for plotting maps, using different projections
Line 169: Line 174:
   - look at the [[http://​matplotlib.org/​basemap/​users/​examples.html|examples]]   - look at the [[http://​matplotlib.org/​basemap/​users/​examples.html|examples]]
   - check the [[http://​matplotlib.org/​basemap/​users/​mapsetup.html|different projections]]   - check the [[http://​matplotlib.org/​basemap/​users/​mapsetup.html|different projections]]
-  - look at the [[http://​matplotlib.org/​basemap/​api/​basemap_api.html#​module-mpl_toolkits.basemap|detailed documentation]]+  ​- read some documentation! 
 +    - the **really nice** [[http://​basemaptutorial.readthedocs.io/​en/​latest/​index.html|basemap tutorial]] seems much better than the official documentation below 
 +    ​- look at the [[http://​matplotlib.org/​basemap/​api/​basemap_api.html#​module-mpl_toolkits.basemap|detailed ​official ​documentation]]
  
 +===== Cartopy =====
  
 +Summary: //Cartopy makes use of the powerful PROJ.4, numpy and shapely libraries and has a simple and intuitive drawing interface to matplotlib for creating publication quality maps//
 +
 +Where: [[http://​scitools.org.uk/​cartopy/​docs/​latest/​|Cartopy web site]]
 ===== Scipy Lecture Notes ===== ===== Scipy Lecture Notes =====
  
Line 223: Line 234:
  
 Hint: before optimizing your script, you should spent some time //​profiling//​ it, in order to only spend time improving the slow parts of your script Hint: before optimizing your script, you should spent some time //​profiling//​ it, in order to only spend time improving the slow parts of your script
 +
 +==== Useful packages ====
 +
 +  * [[https://​github.com/​pydata/​numexpr|Numexpr]]:​ //Numexpr is a **fast numerical expression evaluator for NumPy**. With it, expressions that operate on arrays (like "​3*a+4*b"​) are accelerated and use less memory than doing the same calculation in Python.//
 +  * [[http://​www.pytables.org/​|PyTables]]:​ //PyTables is a package for managing hierarchical datasets and designed to efficiently and **easily cope with extremely large amounts of data**//
  
 ==== Tutorials by Ian Osvald ==== ==== Tutorials by Ian Osvald ====
other/python/jyp_steps.txt · Last modified: 2024/03/07 10:15 by jypeter