I would think temperature (air and asteroid), friction, air density, velocity, asteroid material, as for the other things.
FYI, I don't know ablation rate, and I don't know the speed reduction rate to terminal velocity. All I need are the formulas for them then I can plug them into my script...