Plotting ISCE outputs in MATLAB #449
-
|
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi, It is a real*4 two band file. Try the following code h =fopen('filt_topophase.unw.geo','r'); Here mag and phs are the amplitude and phase of the unwrapped interferogram. You need to get nx and ny from the file metadata Francisco |
Beta Was this translation helpful? Give feedback.
Hi,
It is a real*4 two band file. Try the following code
h =fopen('filt_topophase.unw.geo','r');
[F,count] = fread(h,2nxny,'float32');
rmg = reshape(F,2nx,ny);
phs = rmg(nx+1:nx2,:);
mag = flipud(rmg(1:nx,:)');
phs = flipud(phs');
Here mag and phs are the amplitude and phase of the unwrapped interferogram. You need to get nx and ny from the file metadata
Francisco