It is a common practice to use `git` to back-up and sync ones "dotfiles". I also create Python script to help automate this process.
A Python script that "scans through" a collection of local git repositories and generates a report for me.
A toy Python script that converts an image into a spiral curve art.
The convolution functions in `scipy` do not work well with missing data. We create a 2D convolution function that allows a controllable tolerance to missing values. It is first implemented in Fortran, then using `scipy` in an FFT approach.
Peak prominence can be used to identify relatively organized regional maxima while filtering out local disturbances.
In this post we create a *DiskCacher* class that can be used as a *with* context manager, a function wrapper and as the pie-syntax decorator. It modifies a given computation function, and tries to use the cached data if possible, and only do the re-computation if the cache is not found or the user forces an overwrite.
On top of netcdf4, there are some more advanced packages in Python that could make the manipulation of NetCDF data, and your life a lot easier.
In this post I'll talk about some basic 2D geographical plotting workflows, using the `matplotlib` and `basemap` packages. Then we cover some common issues that are worth your attention when creating such plots.
Mixins are like "plugins" to classes, they can be used to extend the functionality of a class in a more modular manner.