That’s true, impulse giving real thrust (расчетный импульс) should be calculated from specific impulse (удельный импульс) taking in consideration pressure values. Specific is like said usually given in ratio 40:1 and for example motor burning at 10km in buster phase is let’s say in ratio 100:0,265 (bars)
To correct myself, coefficient K in upper formula is more related to the looses in burning process, some of fuel mass will not contribute making thrust force and with K it is included.
To return on pressure, which value will be used for “pa” … it depends of how nozzle is executed and on expansion of gases. If gases will expand all to the atmospheric pressure (pressure at exit of nozzle is equal to atmospheric pressure) maximal thrust will be at disposal.
That’s why motors of space rockets in upper stages have nozzles as big as bells on churches so that gas can expand to the level of low pressure as it is up there.
Unfortunately for constructors of A-A missiles, they must make compromise with nozzles because those can be used at low level and high level flights.
Conclusion…thrust is variable and that is a fact.
Just as second fact and that is, drag coefficient in turbulent air flow, what is mostly case, for sure will be increasing with altitude (viscosity, Reynold’s number etc)
Motor gives, drag takes!