This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import math | |
def CalcOffset(a, oom) : | |
if np.isinf(oom) : | |
return np.nan | |
minval = a.min() | |
if minval < 0.0 : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
# make sure packages are available | |
import matplotlib | |
import numpy | |
if matplotlib.__version__ < "1.2.1": | |
print("Warning: mpl v1.2.1 or greater is desired." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from matplotlib.nxutils import points_inside_poly | |
def polar2rect(azi, r) : | |
# trig is reversed because this is azimuth with 0 pointing north | |
x = np.sin(azi) * r | |
y = np.cos(azi) * r | |
return x, y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So, provided you have some image files of form "_tmp0000.png", you can run generate_movies.sh to create a "result.txt" file which contains a list of the files successfully generated. | |
Additional columns are used to indicate testing status: '1' (failed), '0' (successful), '0.5' (works, but serious artifacts), '?' (couldn't try). | |
The script will provide the first column by testing if the movie plays using ffplay. Note, no movie gets displayed to the screen, so this is fairly quick. I have included my "result.txt" file which contains testing results for additional platforms. Platforms are: | |
* LibreOffice Impress on Linux | |
* QuickTime on Mac | |
* MS Office PowerPoint on Mac | |
* OpenOffice Impress on Mac |