Hi there!
I am working with interferograms stored as geotiffs. They are 2-band geotiffs, the first band is the real component of the phase change in radians, while the second band is the imaginary component of the phase change. I am trying to use the following code to read in the bands:
[Real,R_r] = readgeoraster(pathName,"OutputType","double","Bands",1);
[complex,R_i] = readgeoraster(pathName,"OutputType","double","Bands",2);
The first band reads in perfectly fine and I have been able to perform some preliminary analysis with it. The second band yields the following error:
"Error using readgeoraster
Unable to read band 2. Band values must be less than or equal to the total number of bands, 1."
I've read through the documentation on readgeoraster and there doesn't seem to be an argument that enables the function to read in complex numbers.
All that to say, how can I read into matlab a complex band from a geotiff?
Thanks in advance for any insight/help given!