Python on login.nird.sigma2.no
Or login1.nird.sigma2.no:
- To get python 3 with all the packages installed (same as in the jupyterhub)
module use --append /projects/NS1000K/modulefiles
module load python/anaconda3
source activate negi_course
To return to the default environment:
source deactivate
How to update your local environment
To update your environment on your laptop:
conda env update -f environment.yml
Tutorials
Learn to program with Python
- Programming in Python
- Python for Atmosphere and Ocean Scientists
- Working with Spatio-temporal data in Python
- Reproducible research with Interactive Jupyter Dashboards
- Making a lat-lon reference plot
- Understanding the transform and projection keywords
- Basic plotting of CMIP5 data
- Introduction to python with xarray
- Rename pandas dataframe columns
- Append Pandas dataframes
- select rows and columns in Pandas DataFrames
- Replacing values in Pandas
- Dropping columns in a Pandas dataframe
- Xarray: Calculating Seasonal Averages from Timeseries of Monthly Means
- Xarray Plotting
- Xarray indexing and selecting
- Intermediate Python III: Xarray for Multidimensional Data
Make your python codes more readable and more efficient
- Improve your python programming using python classes and Object Oriented programming
- Using xarray and dask with netCDF data
- Memory usage: Real and Lazy data with iris
- Memory Profiler
Customize your plots
- Customizing colorbars
- Adjust subplots
- Cartopy map gridlines and tick labels
- tick labels example
- Making subplots
- Overlap with contour hatching
Distribute your code
pyaerocom
- Github repository with source code is available at https://github.com/metno/pyaerocom