What do you mean exactly? The script that I've linked does try to guess the resolution. It outputs a text file with the guessed resolution and a plot image.
Or do you mean having this script's functionality as a simple function instead of a callable script?
|