@@ -3158,10 +3158,10 class remFaradayProfiles(Operation): | |||||
3158 | fi = 0 |
|
3158 | fi = 0 | |
3159 |
|
3159 | |||
3160 | if f_iTaus: |
|
3160 | if f_iTaus: | |
3161 |
if fi > offTaus |
|
3161 | if fi > offTaus: | |
3162 | booldataset[i, j]=0 #Afected profile |
|
3162 | booldataset[i, j]=0 #Afected profile | |
3163 | fi += 1 |
|
3163 | fi += 1 | |
3164 |
if fi == nTaus |
|
3164 | if fi == nTaus: #restart the taus sequence | |
3165 | fi = 0 |
|
3165 | fi = 0 | |
3166 | f_iTaus = False |
|
3166 | f_iTaus = False | |
3167 | fi_reps += 1 |
|
3167 | fi_reps += 1 | |
@@ -3169,6 +3169,7 class remFaradayProfiles(Operation): | |||||
3169 | fi = 0 |
|
3169 | fi = 0 | |
3170 | fi_reps = 0 |
|
3170 | fi_reps = 0 | |
3171 | f_ntx=False |
|
3171 | f_ntx=False | |
|
3172 | #break | |||
3172 | kt += 1 |
|
3173 | kt += 1 | |
3173 | k += 1 |
|
3174 | k += 1 | |
3174 |
|
3175 | |||
@@ -3201,8 +3202,8 class remFaradayProfiles(Operation): | |||||
3201 | new_block[:,ich,:] = booldataset[:,idx_ch] |
|
3202 | new_block[:,ich,:] = booldataset[:,idx_ch] | |
3202 |
|
3203 | |||
3203 | new_block = numpy.transpose(new_block, (1,0,2)) |
|
3204 | new_block = numpy.transpose(new_block, (1,0,2)) | |
3204 |
|
|
3205 | new_block = numpy.reshape(new_block, (nChannels,-1)) | |
3205 | new_block = numpy.reshape(new_block, (nChannels,profPerCH*nBlocks)) |
|
3206 | #new_block = numpy.reshape(new_block, (nChannels,profPerCH*nBlocks)) | |
3206 | self.profilesFlag = new_block.copy() |
|
3207 | self.profilesFlag = new_block.copy() | |
3207 |
|
3208 | |||
3208 | # fig = plt.figure() |
|
3209 | # fig = plt.figure() | |
@@ -3215,7 +3216,7 class remFaradayProfiles(Operation): | |||||
3215 |
|
3216 | |||
3216 |
|
3217 | |||
3217 | def run(self,dataOut, channel=0, nChannels=5, nProfiles=300,nBlocks=100,nIpp1=100, |
|
3218 | def run(self,dataOut, channel=0, nChannels=5, nProfiles=300,nBlocks=100,nIpp1=100, | |
3218 |
nIpp2=300, nTx2=132, nTaus=22, offTaus= |
|
3219 | nIpp2=300, nTx2=132, nTaus=22, offTaus=12, iTaus=10, nfft=1 ,offIpp=0): | |
3219 |
|
3220 | |||
3220 | dataOut.flagNoData = False |
|
3221 | dataOut.flagNoData = False | |
3221 |
|
3222 |
General Comments 0
You need to be logged in to leave comments.
Login now