Getting Started with Python for Earth Sciences
A four hour crash course in Python focusing on reading and visualizing data-sets used in Earth sciences. The material here has been modified from the courses taught earlier by Rebekah Esmaili.
This course covers the following:
- Basics of Jupyter Notebooks and Numpy and masked Arrays.
- Reading tabular files using pandas, basic plotting using matplotlib and reading NetCDF files.
- Geopgraphical mapping plotiing using cartopy.
Packages covered include :
- To run this you need Anaconda installed on the computer
- Installation instructions are provided for Mac, Windows, and Linux here.
Packages and Tutorials
- Short Introduction: https://pandas.pydata.org/pandas-docs/stable/getting_started/10min.html
- Cookbook for more details: https://pandas.pydata.org/pandas-docs/stable/user_guide/cookbook.html#cookbook
- Pyplot Tutorial: https://matplotlib.org/3.1.1/tutorials/introductory/pyplot.html
Reading self describing file
- Detailed tutorial https://unidata.github.io/netcdf4-python/netCDF4/index.html.
- HDF files
- GRIB/GRIB2 files
- Another common model format.
- Open with python-bufr, part of the pytroll project.
General Python resources
Free online Tutorials