@@ -605,6 +605,40 class ParametersPlot(Figure): | |||
|
605 | 605 | nplots = None |
|
606 | 606 | nchan = None |
|
607 | 607 | |
|
608 | parameters = { | |
|
609 | 'id': global_type_string, | |
|
610 | 'wintitle': global_type_string, | |
|
611 | 'channelList': global_type_list, | |
|
612 | 'paramIndex': global_type_integer, | |
|
613 | 'colormap': global_type_colormap, | |
|
614 | 'xmin': global_type_float, | |
|
615 | 'xmax': global_type_float, | |
|
616 | 'ymin': global_type_float, | |
|
617 | 'ymax': global_type_float, | |
|
618 | 'zmin': global_type_float, | |
|
619 | 'zmax': global_type_float, | |
|
620 | 'timerange': global_type_float, | |
|
621 | 'showSNR': global_type_boolean, | |
|
622 | 'SNRthresh': global_type_float, | |
|
623 | 'SNRmin': global_type_float, | |
|
624 | 'SNRmax': global_type_float, | |
|
625 | 'save': global_type_boolean, | |
|
626 | 'figpath': global_type_string, | |
|
627 | 'lastone': global_type_integer, | |
|
628 | 'figfile': global_type_string, | |
|
629 | 'ftp': global_type_boolean, | |
|
630 | 'wr_period': global_type_integer, | |
|
631 | 'show': global_type_boolean, | |
|
632 | 'server': global_type_string, | |
|
633 | 'folder': global_type_string, | |
|
634 | 'username': global_type_string, | |
|
635 | 'password': global_type_string, | |
|
636 | 'ftp_wei': global_type_integer, | |
|
637 | 'exp_code': global_type_integer, | |
|
638 | 'sub_exp_code': global_type_integer, | |
|
639 | 'plot_pos': global_type_integer, | |
|
640 | } | |
|
641 | ||
|
608 | 642 | def __init__(self, **kwargs): |
|
609 | 643 | Figure.__init__(self, **kwargs) |
|
610 | 644 | self.timerange = None |
@@ -812,6 +846,46 class Parameters1Plot(Figure): | |||
|
812 | 846 | HEIGHTPROF = None |
|
813 | 847 | PREFIX = 'prm' |
|
814 | 848 | |
|
849 | parameters = { | |
|
850 | 'id': global_type_string, | |
|
851 | 'wintitle': global_type_string, | |
|
852 | 'channelList': global_type_list, | |
|
853 | 'showprofile': global_type_boolean, | |
|
854 | 'xmin': global_type_float, | |
|
855 | 'xmax': global_type_float, | |
|
856 | 'ymin': global_type_float, | |
|
857 | 'ymax': global_type_float, | |
|
858 | 'zmin': global_type_float, | |
|
859 | 'zmax': global_type_float, | |
|
860 | 'timerange': global_type_float, | |
|
861 | 'parameterIndex': global_type_float, | |
|
862 | 'onlyPositive': global_type_boolean, | |
|
863 | 'SNRthresh': global_type_float, | |
|
864 | 'SNR': global_type_boolean, | |
|
865 | 'SNRmin': global_type_float, | |
|
866 | 'SNRmax': global_type_float, | |
|
867 | 'onlySNR': global_type_boolean, | |
|
868 | 'DOP': global_type_boolean, | |
|
869 | 'zlabel': global_type_string, | |
|
870 | 'parameterName': global_type_string, | |
|
871 | 'parameterObject': global_type_string, | |
|
872 | 'save': global_type_boolean, | |
|
873 | 'figpath': global_type_string, | |
|
874 | 'lastone': global_type_integer, | |
|
875 | 'figfile': global_type_string, | |
|
876 | 'ftp': global_type_boolean, | |
|
877 | 'wr_period': global_type_integer, | |
|
878 | 'show': global_type_string, | |
|
879 | 'server': global_type_string, | |
|
880 | 'folder': global_type_string, | |
|
881 | 'username': global_type_string, | |
|
882 | 'password': global_type_string, | |
|
883 | 'ftp_wei': global_type_integer, | |
|
884 | 'exp_code': global_type_integer, | |
|
885 | 'sub_exp_code': global_type_integer, | |
|
886 | 'plot_pos': global_type_integer, | |
|
887 | } | |
|
888 | ||
|
815 | 889 | def __init__(self, **kwargs): |
|
816 | 890 | Figure.__init__(self, **kwargs) |
|
817 | 891 | self.timerange = 2*60*60 |
@@ -1481,6 +1555,32 class PhasePlot(Figure): | |||
|
1481 | 1555 | |
|
1482 | 1556 | PREFIX = 'mphase' |
|
1483 | 1557 | |
|
1558 | parameters = { | |
|
1559 | 'id': global_type_string, | |
|
1560 | 'wintitle': global_type_string, | |
|
1561 | 'pairsList': global_type_pairsList, | |
|
1562 | 'showprofile': global_type_boolean, | |
|
1563 | 'xmin': global_type_float, | |
|
1564 | 'xmax': global_type_float, | |
|
1565 | 'ymin': global_type_float, | |
|
1566 | 'ymax': global_type_float, | |
|
1567 | 'timerange': global_type_float, | |
|
1568 | 'save': global_type_boolean, | |
|
1569 | 'figpath': global_type_string, | |
|
1570 | 'figfile': global_type_string, | |
|
1571 | 'show': global_type_boolean, | |
|
1572 | 'ftp': global_type_boolean, | |
|
1573 | 'wr_period': global_type_integer, | |
|
1574 | 'server': global_type_string, | |
|
1575 | 'folder': global_type_string, | |
|
1576 | 'username': global_type_string, | |
|
1577 | 'password': global_type_string, | |
|
1578 | 'ftp_wei': global_type_integer, | |
|
1579 | 'exp_code': global_type_integer, | |
|
1580 | 'sub_exp_code': global_type_integer, | |
|
1581 | 'plot_pos': global_type_integer, | |
|
1582 | } | |
|
1583 | ||
|
1484 | 1584 | def __init__(self, **kwargs): |
|
1485 | 1585 | Figure.__init__(self, **kwargs) |
|
1486 | 1586 | self.timerange = 24*60*60 |
@@ -602,33 +602,32 class ParamWriter(Operation): | |||
|
602 | 602 | |
|
603 | 603 | lastTime = None |
|
604 | 604 | |
|
605 | parameters = { | |
|
606 | 'path': global_type_string, | |
|
607 | 'blocksPerFile':global_type_integer, | |
|
608 | 'metadataList': global_type_list, | |
|
609 | 'dataList': global_type_list, | |
|
610 | 'mode': global_type_integer, | |
|
611 | } | |
|
612 | ||
|
605 | 613 | def __init__(self, **kwargs): |
|
606 | 614 | Operation.__init__(self, **kwargs) |
|
607 | 615 | self.isConfig = False |
|
608 | 616 | return |
|
609 | 617 | |
|
610 | def setup(self, dataOut, **kwargs): | |
|
611 | ||
|
612 | self.path = kwargs['path'] | |
|
618 | def setup(self, dataOut, path=None, blocksPerFile=10, metadataList=None, dataList=None, mode=None, **kwargs): | |
|
613 | 619 | |
|
614 | if kwargs.has_key('blocksPerFile'): | |
|
615 |
|
|
|
616 | else: | |
|
617 | self.blocksPerFile = 10 | |
|
618 | ||
|
619 | self.metadataList = kwargs['metadataList'] | |
|
620 | self.dataList = kwargs['dataList'] | |
|
620 | self.path = path | |
|
621 | self.blocksPerFile = blocksPerFile | |
|
622 | self.metadataList = metadataList | |
|
623 | self.dataList = dataList | |
|
621 | 624 | self.dataOut = dataOut |
|
622 | ||
|
623 | if kwargs.has_key('mode'): | |
|
624 | mode = kwargs['mode'] | |
|
625 | ||
|
626 | if type(mode) == int: | |
|
627 | mode = numpy.zeros(len(self.dataList)) + mode | |
|
628 | else: | |
|
629 | mode = numpy.ones(len(self.dataList)) | |
|
630 | ||
|
631 | 625 | self.mode = mode |
|
626 | ||
|
627 | if self.mode is not None: | |
|
628 | self.mode = numpy.zeros(len(self.dataList)) + mode | |
|
629 | else: | |
|
630 | self.mode = numpy.ones(len(self.dataList)) | |
|
632 | 631 | |
|
633 | 632 | arrayDim = numpy.zeros((len(self.dataList),5)) |
|
634 | 633 | |
@@ -1074,10 +1073,11 class ParamWriter(Operation): | |||
|
1074 | 1073 | self.fp.close() |
|
1075 | 1074 | return |
|
1076 | 1075 | |
|
1077 | def run(self, dataOut, **kwargs): | |
|
1076 | def run(self, dataOut, path=None, blocksPerFile=10, metadataList=None, dataList=None, mode=None, **kwargs): | |
|
1078 | 1077 | |
|
1079 | 1078 | if not(self.isConfig): |
|
1080 |
flagdata = self.setup(dataOut, |
|
|
1079 | flagdata = self.setup(dataOut, path=path, blocksPerFile=blocksPerFile, | |
|
1080 | metadataList=metadataList, dataList=dataList, mode=mode, **kwargs) | |
|
1081 | 1081 | |
|
1082 | 1082 | if not(flagdata): |
|
1083 | 1083 | return |
@@ -7,6 +7,7 global_type_boolean = 'bolean' | |||
|
7 | 7 | global_type_float = 'float' |
|
8 | 8 | global_type_colormap = 'colormap' |
|
9 | 9 | global_type_list = 'list' |
|
10 | global_type_integer_or_list = 'integer_or_list' | |
|
10 | 11 | |
|
11 | 12 | #BeaconPhase |
|
12 | 13 | parameters = { |
@@ -400,13 +401,17 parameters = { | |||
|
400 | 401 | } |
|
401 | 402 | |
|
402 | 403 | |
|
403 | ParamWriter | |
|
404 | #ParamWriter | |
|
404 | 405 | parameters = { |
|
405 | : global_type_string, | |
|
406 | } | |
|
406 | 'path': global_type_string, | |
|
407 | 'blocksPerFile':global_type_integer, | |
|
408 | 'metadataList': global_type_list, | |
|
409 | 'dataList': global_type_list, | |
|
410 | 'mode': global_type_integer, | |
|
411 | } | |
|
407 | 412 | |
|
408 | 413 | |
|
409 | Parameters1Plot | |
|
414 | #Parameters1Plot | |
|
410 | 415 | parameters = { |
|
411 | 416 | 'id': global_type_string, |
|
412 | 417 | 'wintitle': global_type_string, |
@@ -419,22 +424,22 parameters = { | |||
|
419 | 424 | 'zmin': global_type_float, |
|
420 | 425 | 'zmax': global_type_float, |
|
421 | 426 | 'timerange': global_type_float, |
|
422 |
'parameterIndex': global_type_ |
|
|
423 |
'onlyPositive': global_type_ |
|
|
424 |
'SNRthresh': global_type_ |
|
|
425 |
'SNR': global_type_ |
|
|
427 | 'parameterIndex': global_type_float, | |
|
428 | 'onlyPositive': global_type_boolean, | |
|
429 | 'SNRthresh': global_type_float, | |
|
430 | 'SNR': global_type_boolean, | |
|
426 | 431 | 'SNRmin': global_type_float, |
|
427 | 432 | 'SNRmax': global_type_float, |
|
428 |
'onlySNR': global_type_ |
|
|
429 |
'DOP': global_type_ |
|
|
433 | 'onlySNR': global_type_boolean, | |
|
434 | 'DOP': global_type_boolean, | |
|
430 | 435 | 'zlabel': global_type_string, |
|
431 | 436 | 'parameterName': global_type_string, |
|
432 | 437 | 'parameterObject': global_type_string, |
|
433 | 438 | 'save': global_type_boolean, |
|
434 | 439 | 'figpath': global_type_string, |
|
435 |
'lastone': global_type_ |
|
|
440 | 'lastone': global_type_integer, | |
|
436 | 441 | 'figfile': global_type_string, |
|
437 |
'ftp': global_type_ |
|
|
442 | 'ftp': global_type_boolean, | |
|
438 | 443 | 'wr_period': global_type_integer, |
|
439 | 444 | 'show': global_type_string, |
|
440 | 445 | 'server': global_type_string, |
@@ -448,13 +453,13 parameters = { | |||
|
448 | 453 | } |
|
449 | 454 | |
|
450 | 455 | |
|
451 | ParametersPlot | |
|
456 | #ParametersPlot | |
|
452 | 457 | parameters = { |
|
453 | 458 | 'id': global_type_string, |
|
454 | 459 | 'wintitle': global_type_string, |
|
455 | 460 | 'channelList': global_type_list, |
|
456 |
'paramIndex': global_type_ |
|
|
457 |
'colormap': global_type_ |
|
|
461 | 'paramIndex': global_type_integer, | |
|
462 | 'colormap': global_type_colormap, | |
|
458 | 463 | 'xmin': global_type_float, |
|
459 | 464 | 'xmax': global_type_float, |
|
460 | 465 | 'ymin': global_type_float, |
@@ -462,17 +467,17 parameters = { | |||
|
462 | 467 | 'zmin': global_type_float, |
|
463 | 468 | 'zmax': global_type_float, |
|
464 | 469 | 'timerange': global_type_float, |
|
465 |
'showSNR': global_type_ |
|
|
466 |
'SNRthresh': global_type_ |
|
|
470 | 'showSNR': global_type_boolean, | |
|
471 | 'SNRthresh': global_type_float, | |
|
467 | 472 | 'SNRmin': global_type_float, |
|
468 | 473 | 'SNRmax': global_type_float, |
|
469 | 474 | 'save': global_type_boolean, |
|
470 | 475 | 'figpath': global_type_string, |
|
471 |
'lastone': global_type_ |
|
|
476 | 'lastone': global_type_integer, | |
|
472 | 477 | 'figfile': global_type_string, |
|
473 |
'ftp': global_type_ |
|
|
478 | 'ftp': global_type_boolean, | |
|
474 | 479 | 'wr_period': global_type_integer, |
|
475 |
'show': global_type_ |
|
|
480 | 'show': global_type_boolean, | |
|
476 | 481 | 'server': global_type_string, |
|
477 | 482 | 'folder': global_type_string, |
|
478 | 483 | 'username': global_type_string, |
@@ -484,11 +489,11 parameters = { | |||
|
484 | 489 | } |
|
485 | 490 | |
|
486 | 491 | |
|
487 | PhasePlot | |
|
492 | #PhasePlot | |
|
488 | 493 | parameters = { |
|
489 | 494 | 'id': global_type_string, |
|
490 | 495 | 'wintitle': global_type_string, |
|
491 |
'pairsList': |
|
|
496 | 'pairsList': global_type_pairsList, | |
|
492 | 497 | 'showprofile': global_type_boolean, |
|
493 | 498 | 'xmin': global_type_float, |
|
494 | 499 | 'xmax': global_type_float, |
@@ -498,8 +503,8 parameters = { | |||
|
498 | 503 | 'save': global_type_boolean, |
|
499 | 504 | 'figpath': global_type_string, |
|
500 | 505 | 'figfile': global_type_string, |
|
501 |
'show': global_type_ |
|
|
502 |
'ftp': global_type_ |
|
|
506 | 'show': global_type_boolean, | |
|
507 | 'ftp': global_type_boolean, | |
|
503 | 508 | 'wr_period': global_type_integer, |
|
504 | 509 | 'server': global_type_string, |
|
505 | 510 | 'folder': global_type_string, |
@@ -590,8 +595,8 parameters = { | |||
|
590 | 595 | 'save': global_type_boolean, |
|
591 | 596 | 'figpath': global_type_string, |
|
592 | 597 | 'figfile': global_type_string, |
|
593 |
'show': global_type_ |
|
|
594 |
'ftp': global_type_ |
|
|
598 | 'show': global_type_boolean, | |
|
599 | 'ftp': global_type_boolean, | |
|
595 | 600 | 'wr_period': global_type_integer, |
|
596 | 601 | 'server': global_type_string, |
|
597 | 602 | 'folder': global_type_string, |
@@ -652,9 +657,9 parameters = { | |||
|
652 | 657 | 'figpath': global_type_string, |
|
653 | 658 | 'lastone': global_type_string, |
|
654 | 659 | 'figfile': global_type_string, |
|
655 |
'ftp': global_type_ |
|
|
660 | 'ftp': global_type_boolean, | |
|
656 | 661 | 'wr_period': global_type_integer, |
|
657 |
'show': global_type_ |
|
|
662 | 'show': global_type_boolean, | |
|
658 | 663 | 'server': global_type_string, |
|
659 | 664 | 'folder': global_type_string, |
|
660 | 665 | 'username': global_type_string, |
@@ -680,9 +685,9 parameters = { | |||
|
680 | 685 | 'save': global_type_boolean, |
|
681 | 686 | 'figpath': global_type_string, |
|
682 | 687 | 'figfile': global_type_string, |
|
683 |
'ftp': global_type_ |
|
|
688 | 'ftp': global_type_boolean, | |
|
684 | 689 | 'wr_period': global_type_integer, |
|
685 |
'show': global_type_ |
|
|
690 | 'show': global_type_boolean, | |
|
686 | 691 | 'server': global_type_string, |
|
687 | 692 | 'folder': global_type_string, |
|
688 | 693 | 'username': global_type_string, |
@@ -749,9 +754,9 parameters = { | |||
|
749 | 754 | 'save': global_type_boolean, |
|
750 | 755 | 'figpath': global_type_string, |
|
751 | 756 | 'figfile': global_type_string, |
|
752 |
'show': global_type_ |
|
|
757 | 'show': global_type_boolean, | |
|
753 | 758 | 'wr_period': global_type_integer, |
|
754 |
'ftp': global_type_ |
|
|
759 | 'ftp': global_type_boolean, | |
|
755 | 760 | 'server': global_type_string, |
|
756 | 761 | 'folder': global_type_string, |
|
757 | 762 | 'username': global_type_string, |
@@ -784,8 +789,8 parameters = { | |||
|
784 | 789 | 'save': global_type_boolean, |
|
785 | 790 | 'figpath': global_type_string, |
|
786 | 791 | 'figfile': global_type_string, |
|
787 |
'show': global_type_ |
|
|
788 |
'ftp': global_type_ |
|
|
792 | 'show': global_type_boolean, | |
|
793 | 'ftp': global_type_boolean, | |
|
789 | 794 | 'wr_period': global_type_integer, |
|
790 | 795 | 'server': global_type_string, |
|
791 | 796 | 'folder': global_type_string, |
@@ -811,8 +816,8 parameters = { | |||
|
811 | 816 | 'save': global_type_boolean, |
|
812 | 817 | 'figpath': global_type_string, |
|
813 | 818 | 'figfile': global_type_string, |
|
814 |
'show': global_type_ |
|
|
815 |
'ftp': global_type_ |
|
|
819 | 'show': global_type_boolean, | |
|
820 | 'ftp': global_type_boolean, | |
|
816 | 821 | 'wr_period': global_type_integer, |
|
817 | 822 | 'server': global_type_string, |
|
818 | 823 | 'folder': global_type_string, |
@@ -834,9 +839,9 parameters = { | |||
|
834 | 839 | 'save': global_type_boolean, |
|
835 | 840 | 'figpath': global_type_string, |
|
836 | 841 | 'figfile': global_type_string, |
|
837 |
'ftp': global_type_ |
|
|
842 | 'ftp': global_type_boolean, | |
|
838 | 843 | 'wr_period': global_type_integer, |
|
839 |
'show': global_type_ |
|
|
844 | 'show': global_type_boolean, | |
|
840 | 845 | 'server': global_type_string, |
|
841 | 846 | 'folder': global_type_string, |
|
842 | 847 | 'username': global_type_string, |
@@ -869,8 +874,8 parameters = { | |||
|
869 | 874 | 'save': global_type_boolean, |
|
870 | 875 | 'figpath': global_type_string, |
|
871 | 876 | 'figfile': global_type_string, |
|
872 |
'show': global_type_ |
|
|
873 |
'ftp': global_type_ |
|
|
877 | 'show': global_type_boolean, | |
|
878 | 'ftp': global_type_boolean, | |
|
874 | 879 | 'wr_period': global_type_integer, |
|
875 | 880 | 'server': global_type_string, |
|
876 | 881 | 'folder': global_type_string, |
@@ -920,7 +925,7 parameters = { | |||
|
920 | 925 | 'save': global_type_boolean, |
|
921 | 926 | 'figpath': global_type_string, |
|
922 | 927 | 'figfile': global_type_string, |
|
923 |
'show': global_type_ |
|
|
928 | 'show': global_type_boolean, | |
|
924 | 929 | } |
|
925 | 930 | |
|
926 | 931 | |
@@ -981,9 +986,9 parameters = { | |||
|
981 | 986 | 'figpath': global_type_string, |
|
982 | 987 | 'lastone': global_type_string, |
|
983 | 988 | 'figfile': global_type_string, |
|
984 |
'ftp': global_type_ |
|
|
989 | 'ftp': global_type_boolean, | |
|
985 | 990 | 'wr_period': global_type_integer, |
|
986 |
'show': global_type_ |
|
|
991 | 'show': global_type_boolean, | |
|
987 | 992 | 'server': global_type_string, |
|
988 | 993 | 'folder': global_type_string, |
|
989 | 994 | 'username': global_type_string, |
General Comments 0
You need to be logged in to leave comments.
Login now