How to use TerraSAR data to creat DEM?

as you see, they are 22 days apart. Bperp means the distance between the satellite positions at the two different dates:

High coherence is needed for good results. Did you compute a coherence layer with your interferogram? Only locations with a coherence of > 0.4 can be used/trusted for the DEM generation.

X-band is comparably short and looses much coherence with longer time. So it’s most likely temporal decorrelation which lowers your InSAR quality .

Please also see here: