Python interpretation of the NASA Goddard Space Flight Center YAPC ("Yet Another Photon Classifier") algorithm