@@ -360,21 +360,27 class SimulatorReader(JRODataReader, ProcessingUnit): | |||||
360 | fd = Fdoppler #+(600.0/120)*self.nReadBlocks |
|
360 | fd = Fdoppler #+(600.0/120)*self.nReadBlocks | |
361 | d_signal = Adoppler*numpy.array(numpy.exp(1.0j*2.0*math.pi*fd*time_vec),dtype=numpy.complex64) |
|
361 | d_signal = Adoppler*numpy.array(numpy.exp(1.0j*2.0*math.pi*fd*time_vec),dtype=numpy.complex64) | |
362 | #·············Señal con ancho espectral···················· |
|
362 | #·············Señal con ancho espectral···················· | |
363 | #specw_sig = numpy.linspace(-149,150,300) |
|
363 | if prof_gen%2==0: | |
364 | #w = 8 |
|
364 | min = int(prof_gen/2.0-1.0) | |
365 | #A = 20 |
|
365 | max = int(prof_gen/2.0) | |
366 | #specw_sig = specw_sig/w |
|
366 | else: | |
367 | #specw_sig = numpy.sinc(specw_sig) |
|
367 | min = int(prof_gen/2.0) | |
368 | #specw_sig = A*numpy.array(specw_sig,dtype=numpy.complex64) |
|
368 | max = int(prof_gen/2.0) | |
|
369 | specw_sig = numpy.linspace(-min,max,prof_gen) | |||
|
370 | w = 4 | |||
|
371 | A = 20 | |||
|
372 | specw_sig = specw_sig/w | |||
|
373 | specw_sig = numpy.sinc(specw_sig) | |||
|
374 | specw_sig = A*numpy.array(specw_sig,dtype=numpy.complex64) | |||
369 | #·················· DATABLOCK + DOPPLER···················· |
|
375 | #·················· DATABLOCK + DOPPLER···················· | |
370 | HD=int(Hdoppler/self.AcqDH_0) |
|
376 | HD=int(Hdoppler/self.AcqDH_0) | |
371 | for i in range(12): |
|
377 | for i in range(12): | |
372 | self.datablock[0,:,HD+i]=self.datablock[0,:,HD+i]+ d_signal# RESULT |
|
378 | self.datablock[0,:,HD+i]=self.datablock[0,:,HD+i]+ d_signal# RESULT | |
373 | #·················· DATABLOCK + DOPPLER*Sinc(x)···················· |
|
379 | #·················· DATABLOCK + DOPPLER*Sinc(x)···················· | |
374 |
|
|
380 | HD=int(Hdoppler/self.AcqDH_0) | |
375 |
|
|
381 | HD=int(HD/2) | |
376 |
|
|
382 | for i in range(12): | |
377 |
|
|
383 | self.datablock[0,:,HD+i]=self.datablock[0,:,HD+i]+ specw_sig*d_signal# RESULT | |
378 |
|
384 | |||
379 | def readBlock(self): |
|
385 | def readBlock(self): | |
380 |
|
386 | |||
@@ -421,7 +427,8 class SimulatorReader(JRODataReader, ProcessingUnit): | |||||
421 | FixPP_CohInt= 1,Tau_0= 250,AcqH0_0 = 70 ,AcqDH_0=1.25, Bauds= 32, |
|
427 | FixPP_CohInt= 1,Tau_0= 250,AcqH0_0 = 70 ,AcqDH_0=1.25, Bauds= 32, | |
422 | FixRCP_TXA = 40, FixRCP_TXB = 50, fAngle = 2.0*math.pi*(1/16),DC_level= 50, |
|
428 | FixRCP_TXA = 40, FixRCP_TXB = 50, fAngle = 2.0*math.pi*(1/16),DC_level= 50, | |
423 | stdev= 8,Num_Codes = 1 , Dyn_snCode = None, samples=200, |
|
429 | stdev= 8,Num_Codes = 1 , Dyn_snCode = None, samples=200, | |
424 |
channels=2,Fdoppler=20,Hdoppler=36,Adoppler=500, |
|
430 | channels=2,Fdoppler=20,Hdoppler=36,Adoppler=500, | |
|
431 | profilesPerBlock=300,dataBlocksPerFile=120,nTotalReadFiles=10000, | |||
425 | **kwargs): |
|
432 | **kwargs): | |
426 |
|
433 | |||
427 | self.set_kwargs(**kwargs) |
|
434 | self.set_kwargs(**kwargs) | |
@@ -447,14 +454,14 class SimulatorReader(JRODataReader, ProcessingUnit): | |||||
447 | codeType=0, nCode=Num_Codes, nBaud=32, code=Dyn_snCode, |
|
454 | codeType=0, nCode=Num_Codes, nBaud=32, code=Dyn_snCode, | |
448 | flip1=0, flip2=0,Taus=Tau_0) |
|
455 | flip1=0, flip2=0,Taus=Tau_0) | |
449 |
|
456 | |||
450 |
self.set_PH(dtype=0, blockSize=0, profilesPerBlock= |
|
457 | self.set_PH(dtype=0, blockSize=0, profilesPerBlock=profilesPerBlock, | |
451 |
dataBlocksPerFile= |
|
458 | dataBlocksPerFile=dataBlocksPerFile, nWindows=1, processFlags=numpy.array([1024]), nCohInt=1, | |
452 | nIncohInt=1, totalSpectra=0, nHeights=samples, firstHeight=AcqH0_0, |
|
459 | nIncohInt=1, totalSpectra=0, nHeights=samples, firstHeight=AcqH0_0, | |
453 | deltaHeight=AcqDH_0, samplesWin=samples, spectraComb=0, nCode=0, |
|
460 | deltaHeight=AcqDH_0, samplesWin=samples, spectraComb=0, nCode=0, | |
454 | code=0, nBaud=None, shif_fft=False, flag_dc=False, |
|
461 | code=0, nBaud=None, shif_fft=False, flag_dc=False, | |
455 | flag_cspc=False, flag_decode=False, flag_deflip=False) |
|
462 | flag_cspc=False, flag_decode=False, flag_deflip=False) | |
456 |
|
463 | |||
457 |
self.set_SH(nSamples=samples, nProfiles= |
|
464 | self.set_SH(nSamples=samples, nProfiles=profilesPerBlock, nChannels=channels) | |
458 |
|
465 | |||
459 | self.readFirstHeader() |
|
466 | self.readFirstHeader() | |
460 |
|
467 |
General Comments 0
You need to be logged in to leave comments.
Login now