A Monte Carlo simulation of the NOAA POES Medium Energy Proton and Electron Detector instrument