@@ -409,6 +409,77 class WeatherPlot(Plot): | |||||
409 | data['azi'] = dataOut.data_azi |
|
409 | data['azi'] = dataOut.data_azi | |
410 | return data, meta |
|
410 | return data, meta | |
411 |
|
411 | |||
|
412 | def get2List(self,angulos): | |||
|
413 | list1=[] | |||
|
414 | list2=[] | |||
|
415 | for i in reversed(range(len(angulos))): | |||
|
416 | diff_ = angulos[i]-angulos[i-1] | |||
|
417 | if diff_ >1.5: | |||
|
418 | list1.append(i-1) | |||
|
419 | list2.append(diff_) | |||
|
420 | return list(reversed(list1)),list(reversed(list2)) | |||
|
421 | ||||
|
422 | def fixData360(self,list_,ang_): | |||
|
423 | if list_[0]==-1: | |||
|
424 | vec = numpy.where(ang_<ang_[0]) | |||
|
425 | ang_[vec] = ang_[vec]+360 | |||
|
426 | return ang_ | |||
|
427 | return ang_ | |||
|
428 | ||||
|
429 | ||||
|
430 | def fixData360HL(self,angulos): | |||
|
431 | vec = numpy.where(angulos>=360) | |||
|
432 | angulos[vec]=angulos[vec]-360 | |||
|
433 | return angulos | |||
|
434 | ||||
|
435 | def search_pos(self,pos,list_): | |||
|
436 | for i in range(len(list_)): | |||
|
437 | if pos == list_[i]: | |||
|
438 | return True,i | |||
|
439 | i=None | |||
|
440 | return False,i | |||
|
441 | ||||
|
442 | def fixDataComp(self,ang_,list1_,list2_): | |||
|
443 | size = len(ang_) | |||
|
444 | size2 = 0 | |||
|
445 | for i in range(len(list2_)): | |||
|
446 | size2=size2+list2_[i]-1 | |||
|
447 | new_size= size+size2 | |||
|
448 | ang_new = numpy.zeros(new_size) | |||
|
449 | ang_new2 = numpy.zeros(new_size) | |||
|
450 | ||||
|
451 | tmp = 0 | |||
|
452 | c = 0 | |||
|
453 | for i in range(len(ang_)): | |||
|
454 | ang_new[tmp +c] = ang_[i] | |||
|
455 | ang_new2[tmp+c] = ang_[i] | |||
|
456 | condition , value = self.search_pos(i,list1_) | |||
|
457 | if condition: | |||
|
458 | pos = tmp + c + 1 | |||
|
459 | for k in range(list2_[value]-1): | |||
|
460 | ang_new[pos+k] = ang_new[pos+k-1]+1 | |||
|
461 | ang_new2[pos+k] = numpy.nan | |||
|
462 | tmp = pos +k | |||
|
463 | c = 0 | |||
|
464 | c=c+1 | |||
|
465 | return ang_new,ang_new2 | |||
|
466 | ||||
|
467 | ||||
|
468 | def globalCheckPED(self,angulos): | |||
|
469 | l1,l2 = self.get2List(angulos) | |||
|
470 | if len(l1)>0: | |||
|
471 | angulos2 = self.fixData360(list_=l1,ang_=angulos) | |||
|
472 | l1,l2 = self.get2List(angulos2) | |||
|
473 | ||||
|
474 | ang1_,ang2_ = self.fixDataComp(ang_=angulos2,list1_=l1,list2_=l2) | |||
|
475 | ang1_ = self.fixData360HL(ang1_) | |||
|
476 | ang2_ = self.fixData360HL(ang2_) | |||
|
477 | ||||
|
478 | else: | |||
|
479 | ang1_= angulos | |||
|
480 | ang2_= angulos | |||
|
481 | return ang1_,ang2_ | |||
|
482 | ||||
412 | def analizeDATA(self,data_azi): |
|
483 | def analizeDATA(self,data_azi): | |
413 | list1 = [] |
|
484 | list1 = [] | |
414 | list2 = [] |
|
485 | list2 = [] | |
@@ -450,15 +521,15 class WeatherPlot(Plot): | |||||
450 | return data |
|
521 | return data | |
451 |
|
522 | |||
452 | def replaceNAN(self,data_weather,data_azi,val): |
|
523 | def replaceNAN(self,data_weather,data_azi,val): | |
453 | print("----------------activeNEWFUNCTION") |
|
524 | ####print("----------------activeNEWFUNCTION") | |
454 | data= data_azi |
|
525 | data= data_azi | |
455 | data_T= data_weather |
|
526 | data_T= data_weather | |
456 | print("data_azi",data_azi) |
|
527 | ####print("data_azi",data_azi) | |
457 | print("VAL:",val) |
|
528 | ####print("VAL:",val) | |
458 | print("SHAPE",data_T.shape) |
|
529 | ####print("SHAPE",data_T.shape) | |
459 | for i in range(len(data)): |
|
530 | for i in range(len(data)): | |
460 | if numpy.isnan(data[i]): |
|
531 | if numpy.isnan(data[i]): | |
461 | print("NAN") |
|
532 | ####print("NAN") | |
462 | data_T[i,:]=numpy.ones(data_T.shape[1])*val |
|
533 | data_T[i,:]=numpy.ones(data_T.shape[1])*val | |
463 | #data_T[i,:]=numpy.ones(data_T.shape[1])*numpy.nan |
|
534 | #data_T[i,:]=numpy.ones(data_T.shape[1])*numpy.nan | |
464 | return data_T |
|
535 | return data_T | |
@@ -467,9 +538,11 class WeatherPlot(Plot): | |||||
467 | if self.ini==0: |
|
538 | if self.ini==0: | |
468 | #------- AZIMUTH |
|
539 | #------- AZIMUTH | |
469 | n = (360/res)-len(data_azi) |
|
540 | n = (360/res)-len(data_azi) | |
470 | ##### new |
|
541 | #--------------------- new ------------------------- | |
471 | data_azi_old = data_azi |
|
542 | ####data_azi_old = data_azi | |
472 |
data_azi_new |
|
543 | data_azi_new ,data_azi_old= self.globalCheckPED(data_azi) | |
|
544 | #------------------------ | |||
|
545 | ####data_azi_new = self.fixDATA(data_azi) | |||
473 | #ata_azi_new = self.fixDATANEW(data_azi) |
|
546 | #ata_azi_new = self.fixDATANEW(data_azi) | |
474 |
|
547 | |||
475 | start = data_azi_new[-1] + res |
|
548 | start = data_azi_new[-1] + res | |
@@ -491,16 +564,17 class WeatherPlot(Plot): | |||||
491 | # azimuth |
|
564 | # azimuth | |
492 | flag=0 |
|
565 | flag=0 | |
493 | start_azi = self.res_azi[0] |
|
566 | start_azi = self.res_azi[0] | |
494 | #### new |
|
567 | #-----------new------------ | |
495 | data_azi_old = data_azi |
|
568 | data_azi ,data_azi_old= self.globalCheckPED(data_azi) | |
496 | ### weather ### |
|
|||
497 | data_weather = self.replaceNAN(data_weather=data_weather,data_azi=data_azi_old,val=self.val_mean) |
|
569 | data_weather = self.replaceNAN(data_weather=data_weather,data_azi=data_azi_old,val=self.val_mean) | |
|
570 | #-------------------------- | |||
|
571 | ####data_azi_old = data_azi | |||
|
572 | ### weather ### | |||
|
573 | ####data_weather = self.replaceNAN(data_weather=data_weather,data_azi=data_azi_old,val=self.val_mean) | |||
498 |
|
574 | |||
499 | if numpy.isnan(data_azi[0]): |
|
575 | ####if numpy.isnan(data_azi[0]): | |
500 | data_azi[0]=self.last_data_azi+1 |
|
576 | #### data_azi[0]=self.last_data_azi+1 | |
501 | data_azi = self.fixDATA(data_azi) |
|
577 | ####data_azi = self.fixDATA(data_azi) | |
502 | #### |
|
|||
503 |
|
||||
504 | start = data_azi[0] |
|
578 | start = data_azi[0] | |
505 | end = data_azi[-1] |
|
579 | end = data_azi[-1] | |
506 | self.last_data_azi= end |
|
580 | self.last_data_azi= end | |
@@ -510,7 +584,6 class WeatherPlot(Plot): | |||||
510 | start = start +360 |
|
584 | start = start +360 | |
511 | if end <start_azi: |
|
585 | if end <start_azi: | |
512 | end = end +360 |
|
586 | end = end +360 | |
513 |
|
||||
514 | ####print("start",start) |
|
587 | ####print("start",start) | |
515 | ####print("end",end) |
|
588 | ####print("end",end) | |
516 | #### AQUI SERA LA MAGIA |
|
589 | #### AQUI SERA LA MAGIA |
@@ -4018,9 +4018,9 class PedestalInformation(Operation): | |||||
4018 |
|
4018 | |||
4019 | nro_file,utc_ped,utc_ped_1 =self.getNROFile(utc_adq,utc_ped_list) |
|
4019 | nro_file,utc_ped,utc_ped_1 =self.getNROFile(utc_adq,utc_ped_list) | |
4020 | #print("utc_adq",utc_adq) |
|
4020 | #print("utc_adq",utc_adq) | |
4021 | print("utc_ped",utc_ped) |
|
4021 | ####print("utc_ped",utc_ped) | |
4022 | print("DIFF",utc_adq-utc_ped) |
|
4022 | ####print("DIFF",utc_adq-utc_ped) | |
4023 | print("nro_file",nro_file) |
|
4023 | ####print("nro_file",nro_file) | |
4024 | if nro_file < 0: |
|
4024 | if nro_file < 0: | |
4025 | #print("-----------------------------------------------------------------") |
|
4025 | #print("-----------------------------------------------------------------") | |
4026 | #print("INSERTANDO ANGULO NAN") |
|
4026 | #print("INSERTANDO ANGULO NAN") | |
@@ -4127,9 +4127,9 class PedestalInformation(Operation): | |||||
4127 | def setup_offline(self,dataOut,list_pedestal): |
|
4127 | def setup_offline(self,dataOut,list_pedestal): | |
4128 |
|
4128 | |||
4129 | print("SETUP OFFLINE") |
|
4129 | print("SETUP OFFLINE") | |
4130 | print(self.path_ped) |
|
4130 | ####print(self.path_ped) | |
4131 | #print(self.path_adq) |
|
4131 | #print(self.path_adq) | |
4132 | print(len(self.list_pedestal)) |
|
4132 | ####print(len(self.list_pedestal)) | |
4133 | #print(len(self.list_adq)) |
|
4133 | #print(len(self.list_adq)) | |
4134 | utc_ped_list=[] |
|
4134 | utc_ped_list=[] | |
4135 | for i in range(len(self.list_pedestal)): |
|
4135 | for i in range(len(self.list_pedestal)): | |
@@ -4138,27 +4138,27 class PedestalInformation(Operation): | |||||
4138 |
|
4138 | |||
4139 | #utc_ped_list= utc_ped_list |
|
4139 | #utc_ped_list= utc_ped_list | |
4140 | ###utc_adq = self.gettimeutcadqfromDirFilename(path=self.path_adq,file=self.list_adq[0]) |
|
4140 | ###utc_adq = self.gettimeutcadqfromDirFilename(path=self.path_adq,file=self.list_adq[0]) | |
4141 | print("dios existe donde esta") |
|
4141 | ####print("dios existe donde esta") | |
4142 |
|
4142 | |||
4143 | print("utc_ped_list",utc_ped_list) |
|
4143 | #####print("utc_ped_list",utc_ped_list) | |
4144 | #print("utc_adq",utc_adq) |
|
4144 | #print("utc_adq",utc_adq) | |
4145 | # utc_adq_dataOut |
|
4145 | # utc_adq_dataOut | |
4146 | utc_adq_dataOut =dataOut.utctime |
|
4146 | utc_adq_dataOut =dataOut.utctime | |
4147 | print("OFFLINE-UTC_ADQ_dataout",utc_adq_dataOut) |
|
4147 | ####print("OFFLINE-UTC_ADQ_dataout",utc_adq_dataOut) | |
4148 |
|
4148 | |||
4149 | nro_file,utc_ped,utc_ped_1 = self.getNROFile(utc_adq=utc_adq_dataOut, utc_ped_list= utc_ped_list) |
|
4149 | nro_file,utc_ped,utc_ped_1 = self.getNROFile(utc_adq=utc_adq_dataOut, utc_ped_list= utc_ped_list) | |
4150 |
|
4150 | |||
4151 | print("nro_file",nro_file,"utc_ped",utc_ped) |
|
4151 | ####print("nro_file",nro_file,"utc_ped",utc_ped) | |
4152 | print("nro_file",i) |
|
4152 | ####print("nro_file",i) | |
4153 | nro_key_p = int((utc_adq_dataOut-utc_ped)/self.t_Interval_p)-1 # ojito al -1 estimado alex |
|
4153 | nro_key_p = int((utc_adq_dataOut-utc_ped)/self.t_Interval_p)-1 # ojito al -1 estimado alex | |
4154 | print("nro_key_p",nro_key_p) |
|
4154 | ####print("nro_key_p",nro_key_p) | |
4155 |
|
4155 | |||
4156 | ff_pedestal = self.list_ |
|
4156 | ff_pedestal = self.list_ | |
4157 | pedestal[nro_file] |
|
4157 | pedestal[nro_file] | |
4158 | #angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azimuth") |
|
4158 | #angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azimuth") | |
4159 | angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azi_pos") |
|
4159 | angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azi_pos") | |
4160 |
|
4160 | |||
4161 | print("utc_pedestal_init :",utc_ped+nro_key_p*self.t_Interval_p) |
|
4161 | ####print("utc_pedestal_init :",utc_ped+nro_key_p*self.t_Interval_p) | |
4162 | if nro_key_p>0: |
|
4162 | if nro_key_p>0: | |
4163 | print("angulo_array :",angulo[nro_key_p]) |
|
4163 | print("angulo_array :",angulo[nro_key_p]) | |
4164 | self.nro_file = nro_file |
|
4164 | self.nro_file = nro_file | |
@@ -4166,25 +4166,25 class PedestalInformation(Operation): | |||||
4166 |
|
4166 | |||
4167 | def setup_online(self,dataOut): |
|
4167 | def setup_online(self,dataOut): | |
4168 | utc_adq =dataOut.utctime |
|
4168 | utc_adq =dataOut.utctime | |
4169 | print("Online-utc_adq",utc_adq) |
|
4169 | ####print("Online-utc_adq",utc_adq) | |
4170 | print(len(self.list_pedestal)) |
|
4170 | ####print(len(self.list_pedestal)) | |
4171 | utc_ped_list=[] |
|
4171 | utc_ped_list=[] | |
4172 | for i in range(len(self.list_pedestal)): |
|
4172 | for i in range(len(self.list_pedestal)): | |
4173 | utc_ped_list.append(self.gettimeutcfromDirFilename(path=self.path_ped,file=self.list_pedestal[i])) |
|
4173 | utc_ped_list.append(self.gettimeutcfromDirFilename(path=self.path_ped,file=self.list_pedestal[i])) | |
4174 | print(utc_ped_list[:20]) |
|
4174 | ####print(utc_ped_list[:20]) | |
4175 | #print(utc_ped_list[488:498]) |
|
4175 | ####print(utc_ped_list[488:498]) | |
4176 | print("ultimo UTC-PEDESTAL",utc_ped_list[-1]) |
|
4176 | ####print("ultimo UTC-PEDESTAL",utc_ped_list[-1]) | |
4177 | nro_file,utc_ped,utc_ped_1 = self.getNROFile(utc_adq=utc_adq, utc_ped_list= utc_ped_list) |
|
4177 | nro_file,utc_ped,utc_ped_1 = self.getNROFile(utc_adq=utc_adq, utc_ped_list= utc_ped_list) | |
4178 | print("nro_file",nro_file,"utc_ped",utc_ped,"utc_ped_1",utc_ped_1) |
|
4178 | ####print("nro_file",nro_file,"utc_ped",utc_ped,"utc_ped_1",utc_ped_1) | |
4179 | print("name_PEDESTAL",self.list_pedestal[nro_file]) |
|
4179 | ####print("name_PEDESTAL",self.list_pedestal[nro_file]) | |
4180 | nro_key_p = int((utc_adq-utc_ped)/self.t_Interval_p)-1 |
|
4180 | nro_key_p = int((utc_adq-utc_ped)/self.t_Interval_p)-1 | |
4181 | print("nro_key_p",nro_key_p) |
|
4181 | ####print("nro_key_p",nro_key_p) | |
4182 | ff_pedestal = self.list_pedestal[nro_file] |
|
4182 | ff_pedestal = self.list_pedestal[nro_file] | |
4183 | #angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azimuth") |
|
4183 | #angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azimuth") | |
4184 | angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azi_pos") |
|
4184 | angulo = self.getDatavaluefromDirFilename(path=self.path_ped,file=ff_pedestal,value="azi_pos") | |
4185 |
|
4185 | |||
4186 | print("utc_pedestal_init :",utc_ped+nro_key_p*self.t_Interval_p) |
|
4186 | ####print("utc_pedestal_init :",utc_ped+nro_key_p*self.t_Interval_p) | |
4187 | print("angulo_array :",angulo[nro_key_p]) |
|
4187 | ####print("angulo_array :",angulo[nro_key_p]) | |
4188 | self.nro_file = nro_file |
|
4188 | self.nro_file = nro_file | |
4189 | self.nro_key_p = nro_key_p |
|
4189 | self.nro_key_p = nro_key_p | |
4190 |
|
4190 | |||
@@ -4207,7 +4207,7 class PedestalInformation(Operation): | |||||
4207 | print(self.path_ped) |
|
4207 | print(self.path_ped) | |
4208 | #print(self.path_adq) |
|
4208 | #print(self.path_adq) | |
4209 | self.list_pedestal = self.getfirstFilefromPath(path=self.path_ped,meta="PE",ext=".hdf5") |
|
4209 | self.list_pedestal = self.getfirstFilefromPath(path=self.path_ped,meta="PE",ext=".hdf5") | |
4210 | print("LIST NEW", self.list_pedestal[:20]) |
|
4210 | ####print("LIST NEW", self.list_pedestal[:20]) | |
4211 | #self.list_adq = self.getfirstFilefromPath(path=self.path_adq,meta="D",ext=".hdf5") |
|
4211 | #self.list_adq = self.getfirstFilefromPath(path=self.path_adq,meta="D",ext=".hdf5") | |
4212 | print("*************Longitud list pedestal****************",len(self.list_pedestal)) |
|
4212 | print("*************Longitud list pedestal****************",len(self.list_pedestal)) | |
4213 | ''' |
|
4213 | ''' | |
@@ -4239,20 +4239,20 class PedestalInformation(Operation): | |||||
4239 | return diff_utc |
|
4239 | return diff_utc | |
4240 |
|
4240 | |||
4241 | def setNextFileoffline(self,dataOut): |
|
4241 | def setNextFileoffline(self,dataOut): | |
4242 | print("error") |
|
4242 | ####print("error") | |
4243 | print("no entiendo") |
|
4243 | ####print("no entiendo") | |
4244 | flag_NOPedfile = False |
|
4244 | flag_NOPedfile = False | |
4245 | cont_NOPedFile = 0 |
|
4245 | cont_NOPedFile = 0 | |
4246 | if self.nro_file<0: |
|
4246 | if self.nro_file<0: | |
4247 | print("adq empieza antes") |
|
4247 | ####print("adq empieza antes") | |
4248 | return numpy.ones(self.blocksPerfile)*numpy.nan |
|
4248 | return numpy.ones(self.blocksPerfile)*numpy.nan | |
4249 | print("INICIO-----------------------------------------") |
|
4249 | ####print("INICIO-----------------------------------------") | |
4250 | sleep(3) |
|
4250 | sleep(3) | |
4251 | for j in range(self.blocksPerfile): |
|
4251 | for j in range(self.blocksPerfile): | |
4252 | print(j) |
|
4252 | ####print(j) | |
4253 | iterador = self.nro_key_p + self.f_a_p*self.c_ped |
|
4253 | iterador = self.nro_key_p + self.f_a_p*self.c_ped | |
4254 | self.c_ped = self.c_ped + 1 |
|
4254 | self.c_ped = self.c_ped + 1 | |
4255 | print("Iterador-->", iterador) |
|
4255 | ####print("Iterador-->", iterador) | |
4256 | if iterador < self.n_Muestras_p: |
|
4256 | if iterador < self.n_Muestras_p: | |
4257 | self.nro_file = self.nro_file |
|
4257 | self.nro_file = self.nro_file | |
4258 | else: |
|
4258 | else: | |
@@ -4260,15 +4260,15 class PedestalInformation(Operation): | |||||
4260 | ########################### |
|
4260 | ########################### | |
4261 | self.nro_file = self.nro_file +1 |
|
4261 | self.nro_file = self.nro_file +1 | |
4262 | ########################### |
|
4262 | ########################### | |
4263 | print("nro_file",self.nro_file) |
|
4263 | ####print("nro_file",self.nro_file) | |
4264 | diff_utc = self.checkPedFile(path=self.path_ped,nro_file=self.nro_file) |
|
4264 | diff_utc = self.checkPedFile(path=self.path_ped,nro_file=self.nro_file) | |
4265 | print("diff_utc",diff_utc) |
|
4265 | ####print("diff_utc",diff_utc) | |
4266 | if diff_utc==1: |
|
4266 | if diff_utc==1: | |
4267 | utc_ped_setnext=self.gettimeutcfromDirFilename(path=self.path_ped,file=self.list_pedestal[self.nro_file]) |
|
4267 | utc_ped_setnext=self.gettimeutcfromDirFilename(path=self.path_ped,file=self.list_pedestal[self.nro_file]) | |
4268 | utc_adq_setnext=dataOut.utctime |
|
4268 | utc_adq_setnext=dataOut.utctime | |
4269 | print("utc_pedestal",utc_ped_setnext) |
|
4269 | ####print("utc_pedestal",utc_ped_setnext) | |
4270 | print("utc_adq",utc_adq_setnext) |
|
4270 | ####print("utc_adq",utc_adq_setnext) | |
4271 | print("self.c_ped",self.c_ped) |
|
4271 | ####print("self.c_ped",self.c_ped) | |
4272 | #dif = self.blocksPerfile-(self.nro_key_p+self.f_a_p*(self.c_ped-2)) |
|
4272 | #dif = self.blocksPerfile-(self.nro_key_p+self.f_a_p*(self.c_ped-2)) | |
4273 | dif = self.n_Muestras_p-(self.nro_key_p+self.f_a_p*(self.c_ped-2)) |
|
4273 | dif = self.n_Muestras_p-(self.nro_key_p+self.f_a_p*(self.c_ped-2)) | |
4274 | self.c_ped = 1 |
|
4274 | self.c_ped = 1 | |
@@ -4276,13 +4276,13 class PedestalInformation(Operation): | |||||
4276 | ##print("tmp else",tmp) |
|
4276 | ##print("tmp else",tmp) | |
4277 | self.nro_key_p= self.f_a_p-dif |
|
4277 | self.nro_key_p= self.f_a_p-dif | |
4278 | iterador = self.nro_key_p |
|
4278 | iterador = self.nro_key_p | |
4279 | print("iterador else",iterador) |
|
4279 | ####print("iterador else",iterador) | |
4280 | if diff_utc >1: |
|
4280 | if diff_utc >1: | |
4281 | print("FALTAN DATOS DEL PEDESTAL AMIGO WAIT") |
|
4281 | ####print("FALTAN DATOS DEL PEDESTAL AMIGO WAIT") | |
4282 | sleep(1) |
|
4282 | ####sleep(1) | |
4283 | #aqui no hay DATA pero creo el nro_key_p "como si existiera" y reinicio el c_ped |
|
4283 | #aqui no hay DATA pero creo el nro_key_p "como si existiera" y reinicio el c_ped | |
4284 | print("continua bro") |
|
4284 | ####print("continua bro") | |
4285 | print("self.c_ped",self.c_ped) |
|
4285 | ####print("self.c_ped",self.c_ped) | |
4286 | dif = self.n_Muestras_p-(self.nro_key_p+self.f_a_p*(self.c_ped-2)) |
|
4286 | dif = self.n_Muestras_p-(self.nro_key_p+self.f_a_p*(self.c_ped-2)) | |
4287 | self.c_ped = 1 |
|
4287 | self.c_ped = 1 | |
4288 | self.nro_key_p = self.f_a_p-dif |
|
4288 | self.nro_key_p = self.f_a_p-dif | |
@@ -4400,10 +4400,10 class PedestalInformation(Operation): | |||||
4400 | #print("config TRUE") |
|
4400 | #print("config TRUE") | |
4401 |
|
4401 | |||
4402 | utc_adq = dataOut.utctime |
|
4402 | utc_adq = dataOut.utctime | |
4403 | print("utc_adq---------------",utc_adq) |
|
4403 | ####print("utc_adq---------------",utc_adq) | |
4404 | list_pedestal = self.list_pedestal |
|
4404 | list_pedestal = self.list_pedestal | |
4405 | angulo = self.getAnguloProfile(utc_adq=utc_adq,list_pedestal=list_pedestal) |
|
4405 | angulo = self.getAnguloProfile(utc_adq=utc_adq,list_pedestal=list_pedestal) | |
4406 | print("angulo**********",angulo) |
|
4406 | ####print("angulo**********",angulo) | |
4407 | dataOut.flagNoData = False |
|
4407 | dataOut.flagNoData = False | |
4408 | if numpy.isnan(angulo): |
|
4408 | if numpy.isnan(angulo): | |
4409 | dataOut.flagNoData = True |
|
4409 | dataOut.flagNoData = True |
@@ -24,7 +24,7 from schainpy.controller import Project | |||||
24 | print("SETUP- RADAR METEOROLOGICO") |
|
24 | print("SETUP- RADAR METEOROLOGICO") | |
25 | V = 6 |
|
25 | V = 6 | |
26 | V = 10 |
|
26 | V = 10 | |
27 |
mode = |
|
27 | mode = 0 | |
28 | #--------------------------PATH ----------------------------- |
|
28 | #--------------------------PATH ----------------------------- | |
29 | # path = '/DATA_RM/23/6v' |
|
29 | # path = '/DATA_RM/23/6v' | |
30 | # path = '/DATA_RM/TEST_INTEGRACION_2M' |
|
30 | # path = '/DATA_RM/TEST_INTEGRACION_2M' | |
@@ -41,7 +41,7 path ="/DATA_RM/10" | |||||
41 | #figpath_spec = "/home/soporte/Pictures/TEST_MOM" |
|
41 | #figpath_spec = "/home/soporte/Pictures/TEST_MOM" | |
42 | figpath_spec = "/home/soporte/Pictures/ppi" |
|
42 | figpath_spec = "/home/soporte/Pictures/ppi" | |
43 | figpath_ppi = "/home/soporte/Pictures/ppi_SPEC_10DIC" |
|
43 | figpath_ppi = "/home/soporte/Pictures/ppi_SPEC_10DIC" | |
44 |
figpath_ppi_pp = "/home/soporte/Pictures/ppi_ |
|
44 | figpath_ppi_pp = "/home/soporte/Pictures/ppi_PP_10_DIC" | |
45 | figpath_pp = "/home/soporte/Pictures/TEST_POT" |
|
45 | figpath_pp = "/home/soporte/Pictures/TEST_POT" | |
46 | figpath_pp = "/home/soporte/Pictures/TEST_POT2" |
|
46 | figpath_pp = "/home/soporte/Pictures/TEST_POT2" | |
47 |
|
47 | |||
@@ -57,7 +57,7 figpath_mom = "/home/soporte/Pictures/TEST_MOM" | |||||
57 | #--------------------------OPCIONES----------------------------------- |
|
57 | #--------------------------OPCIONES----------------------------------- | |
58 | plot = 0 |
|
58 | plot = 0 | |
59 | integration = 1 |
|
59 | integration = 1 | |
60 |
save = |
|
60 | save = 0 | |
61 | if save == 1: |
|
61 | if save == 1: | |
62 | if mode==0: |
|
62 | if mode==0: | |
63 | path_save = '/DATA_RM/TEST_HDF5_PP_23/6v' |
|
63 | path_save = '/DATA_RM/TEST_HDF5_PP_23/6v' | |
@@ -182,17 +182,17 if mode ==0: | |||||
182 | opObj11.addParameter(name='n_Muestras_p', value='100', format='float') |
|
182 | opObj11.addParameter(name='n_Muestras_p', value='100', format='float') | |
183 | opObj11.addParameter(name='f_a_p', value=f_a_p, format='int') |
|
183 | opObj11.addParameter(name='f_a_p', value=f_a_p, format='int') | |
184 | opObj11.addParameter(name='online', value='0', format='int') |
|
184 | opObj11.addParameter(name='online', value='0', format='int') | |
185 | ''' |
|
185 | ||
186 | opObj11 = procUnitConfObjB.addOperation(name='Block360') |
|
186 | opObj11 = procUnitConfObjB.addOperation(name='Block360') | |
187 | opObj11.addParameter(name='n', value='10', format='int') |
|
187 | opObj11.addParameter(name='n', value='10', format='int') | |
188 | opObj11.addParameter(name='mode', value=mode, format='int') |
|
188 | opObj11.addParameter(name='mode', value=mode, format='int') | |
189 | ''' |
|
189 | ||
190 | # este bloque funciona bien con divisores de 360 no olvidar 0 10 20 30 40 60 90 120 180 |
|
190 | # este bloque funciona bien con divisores de 360 no olvidar 0 10 20 30 40 60 90 120 180 | |
191 | ''' |
|
191 | ||
192 | opObj11= procUnitConfObjB.addOperation(name='WeatherPlot',optype='other') |
|
192 | opObj11= procUnitConfObjB.addOperation(name='WeatherPlot',optype='other') | |
193 | opObj11.addParameter(name='save', value=figpath_ppi_pp) |
|
193 | opObj11.addParameter(name='save', value=figpath_ppi_pp) | |
194 | opObj11.addParameter(name='save_period', value=1) |
|
194 | opObj11.addParameter(name='save_period', value=1) | |
195 | ''' |
|
195 | ||
196 | if save==1: |
|
196 | if save==1: | |
197 | opObj10 = procUnitConfObjB.addOperation(name='HDFWriter') |
|
197 | opObj10 = procUnitConfObjB.addOperation(name='HDFWriter') | |
198 | opObj10.addParameter(name='path',value=path_save) |
|
198 | opObj10.addParameter(name='path',value=path_save) | |
@@ -219,7 +219,7 else: | |||||
219 | opObj11.addParameter(name='zmax', value=dBmax) |
|
219 | opObj11.addParameter(name='zmax', value=dBmax) | |
220 | opObj11.addParameter(name='save', value=figpath_mom) |
|
220 | opObj11.addParameter(name='save', value=figpath_mom) | |
221 | opObj11.addParameter(name='showprofile', value=0) |
|
221 | opObj11.addParameter(name='showprofile', value=0) | |
222 | opObj11.addParameter(name='save_period', value=100) |
|
222 | opObj11.addParassmeter(name='save_period', value=100) | |
223 |
|
223 | |||
224 |
|
224 | |||
225 | if integration==1: |
|
225 | if integration==1: | |
@@ -239,14 +239,13 else: | |||||
239 | opObj11.addParameter(name='online', value='0', format='int') |
|
239 | opObj11.addParameter(name='online', value='0', format='int') | |
240 |
|
240 | |||
241 | opObj11 = procUnitConfObjC.addOperation(name='Block360') |
|
241 | opObj11 = procUnitConfObjC.addOperation(name='Block360') | |
242 |
opObj11.addParameter(name='n', value=' |
|
242 | opObj11.addParameter(name='n', value='20', format='int') | |
243 | opObj11.addParameter(name='mode', value=mode, format='int') |
|
243 | opObj11.addParameter(name='mode', value=mode, format='int') | |
244 | ''' |
|
244 | ||
245 | # este bloque funciona bien con divisores de 360 no olvidar 0 10 20 30 40 60 90 120 180 |
|
245 | # este bloque funciona bien con divisores de 360 no olvidar 0 10 20 30 40 60 90 120 180 | |
246 | opObj11= procUnitConfObjC.addOperation(name='WeatherPlot',optype='other') |
|
246 | opObj11= procUnitConfObjC.addOperation(name='WeatherPlot',optype='other') | |
247 | opObj11.addParameter(name='save', value=figpath_ppi) |
|
247 | opObj11.addParameter(name='save', value=figpath_ppi) | |
248 | opObj11.addParameter(name='save_period', value=1) |
|
248 | opObj11.addParameter(name='save_period', value=1) | |
249 | ''' |
|
|||
250 |
|
249 | |||
251 | if save==1: |
|
250 | if save==1: | |
252 | opObj10 = procUnitConfObjC.addOperation(name='HDFWriter') |
|
251 | opObj10 = procUnitConfObjC.addOperation(name='HDFWriter') |
General Comments 0
You need to be logged in to leave comments.
Login now