AlexeyPechnikov / pygmtsar

PyGMTSAR (Python InSAR): Powerful and Accessible Satellite Interferometry
http://insar.dev/
BSD 3-Clause "New" or "Revised" License
434 stars 97 forks source link

[Help]: Read the rslc file generated by snap using pygmtsar #174

Open kjz1997 opened 1 month ago

kjz1997 commented 1 month ago

hello Dr Hello, Doctor. I used the code in the PRM file of pygmtsar to read the rslc file generated by snap, and then I found that the read result was different from the result read by Matlab. Can you give me some suggestions? Here is the MATLAB code machinefmt = 'b'; fid = fopen(infile,'r',machinefmt); [data,count]=fread(fid,bkformat); data = complex(data(1:2:count),data(2:2:count)); count=count/2; width = count/lines;% data = reshape(data,width,lines).';

AlexeyPechnikov commented 1 month ago

PyGMTSAR reads binary files in GMTSAR format. To read SNAP files, you would need to modify the code, following your MATLAB script if you believe this is correct.

kjz1997 commented 1 month ago

OK,thank you reply,I have another problem, can pygmtsar calculate the backscatter coefficient?

AlexeyPechnikov commented 1 month ago

No, it has only persistent scatterers function calculation for weighted interferograms.