Skip to content

Commit

Permalink
fixed slash issue in loading matrix
Browse files Browse the repository at this point in the history
compatable with ubuntu now
  • Loading branch information
Narayana-Rao committed Jan 6, 2021
1 parent 081f36e commit c3d8abf
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions SAR_Tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,28 +825,28 @@ def openRaster(self):
###############################################################
def load_C2(self,folder):

C11 = self.read_bin(folder+"\C11.bin")
C22 = self.read_bin(folder+"\C22.bin")
C11 = self.read_bin(folder+"/C11.bin")
C22 = self.read_bin(folder+"/C22.bin")

C12_i = self.read_bin(folder+'\C12_imag.bin')
C12_r = self.read_bin(folder+'\C12_real.bin')
C12_i = self.read_bin(folder+'/C12_imag.bin')
C12_r = self.read_bin(folder+'/C12_real.bin')

C12 = C12_r + 1j*C12_i

return np.dstack((C11,C12,np.conj(C12),C22))

def load_C3(self,folder):

C11 = self.read_bin(folder+"\C11.bin")
C22 = self.read_bin(folder+"\C22.bin")
C33 = self.read_bin(folder+"\C33.bin")
C11 = self.read_bin(folder+"/C11.bin")
C22 = self.read_bin(folder+"/C22.bin")
C33 = self.read_bin(folder+"/C33.bin")

C12_i = self.read_bin(folder+'\C12_imag.bin')
C12_r = self.read_bin(folder+'\C12_real.bin')
C13_i = self.read_bin(folder+'\C13_imag.bin')
C13_r = self.read_bin(folder+'\C13_real.bin')
C23_i = self.read_bin(folder+'\C23_imag.bin')
C23_r = self.read_bin(folder+'\C23_real.bin')
C12_i = self.read_bin(folder+'/C12_imag.bin')
C12_r = self.read_bin(folder+'/C12_real.bin')
C13_i = self.read_bin(folder+'/C13_imag.bin')
C13_r = self.read_bin(folder+'/C13_real.bin')
C23_i = self.read_bin(folder+'/C23_imag.bin')
C23_r = self.read_bin(folder+'/C23_real.bin')

C12 = C12_r + 1j*C12_i
C13 = C13_r + 1j*C13_i
Expand All @@ -857,16 +857,16 @@ def load_C3(self,folder):

def load_T3(self,folder):

T11 = self.read_bin(folder+"\T11.bin")
T22 = self.read_bin(folder+"\T22.bin")
T33 = self.read_bin(folder+"\T33.bin")
T11 = self.read_bin(folder+"/T11.bin")
T22 = self.read_bin(folder+"/T22.bin")
T33 = self.read_bin(folder+"/T33.bin")

T12_i = self.read_bin(folder+'\T12_imag.bin')
T12_r = self.read_bin(folder+'\T12_real.bin')
T13_i = self.read_bin(folder+'\T13_imag.bin')
T13_r = self.read_bin(folder+'\T13_real.bin')
T23_i = self.read_bin(folder+'\T23_imag.bin')
T23_r = self.read_bin(folder+'\T23_real.bin')
T12_i = self.read_bin(folder+'/T12_imag.bin')
T12_r = self.read_bin(folder+'/T12_real.bin')
T13_i = self.read_bin(folder+'/T13_imag.bin')
T13_r = self.read_bin(folder+'/T13_real.bin')
T23_i = self.read_bin(folder+'/T23_imag.bin')
T23_r = self.read_bin(folder+'/T23_real.bin')

T12 = T12_r + 1j*T12_i
T13 = T13_r + 1j*T13_i
Expand Down

0 comments on commit c3d8abf

Please sign in to comment.