A set of functions to generate Spatially Variant Point Spread Functions