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