Measuring the ejecta velocities of type Ia supernovae from the pan-STARRS1 medium deep survey | Synapse