@@ -698,6 +698,30 class removeInterference(Operation): | |||||
698 | return self.dataOut |
|
698 | return self.dataOut | |
699 |
|
699 | |||
700 |
|
700 | |||
|
701 | class deflip(Operation): | |||
|
702 | ||||
|
703 | def run(self, dataOut): | |||
|
704 | # arreglo 1: (num_chan, num_profiles, num_heights) | |||
|
705 | self.dataOut = dataOut | |||
|
706 | ||||
|
707 | # JULIA-oblicua, indice 2 | |||
|
708 | # arreglo 2: (num_profiles, num_heights) | |||
|
709 | jspectra = self.dataOut.data_spc[2] | |||
|
710 | jspectra_tmp=numpy.zeros(jspectra.shape) | |||
|
711 | num_profiles=jspectra.shape[0] | |||
|
712 | freq_dc = int(num_profiles / 2) | |||
|
713 | # Flip con for | |||
|
714 | for j in range(num_profiles): | |||
|
715 | jspectra_tmp[num_profiles-j-1]= jspectra[j] | |||
|
716 | # Intercambio perfil de DC con perfil inmediato anterior | |||
|
717 | jspectra_tmp[freq_dc-1]= jspectra[freq_dc-1] | |||
|
718 | jspectra_tmp[freq_dc]= jspectra[freq_dc] | |||
|
719 | # canal modificado es re-escrito en el arreglo de canales | |||
|
720 | self.dataOut.data_spc[2] = jspectra_tmp | |||
|
721 | ||||
|
722 | return self.dataOut | |||
|
723 | ||||
|
724 | ||||
701 | class IncohInt(Operation): |
|
725 | class IncohInt(Operation): | |
702 |
|
726 | |||
703 | __profIndex = 0 |
|
727 | __profIndex = 0 |
General Comments 0
You need to be logged in to leave comments.
Login now