- File:
-
- 1 edited
-
trunk/external-alma/atnf/PKSIO/ASTEDataset.cc (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/atnf/PKSIO/ASTEDataset.cc
r2436 r1868 529 529 c18[16] = '\0' ; 530 530 RX[i] = string( c18 ) ; 531 } 532 // DEBUG 533 // nro_debug_output( "RX", ASTE_ARYMAX, RX ) ; 534 // 531 // DEBUG 532 // if ( i == 0 ) { 533 // cout << "RX " ; 534 // } 535 // else if ( ( i % 5 ) == 0 ) { 536 // cout << endl << " " ; 537 // } 538 // cout << RX[i] << " " ; 539 // 540 } 541 //cout << endl ; 535 542 for ( int i = 0 ; i < ASTE_ARYMAX ; i++ ) { 536 543 if ( readHeader( HPBW[i], sameEndian ) == -1 ) { … … 538 545 return -1 ; 539 546 } 540 } 541 // DEBUG 542 // nro_debug_output( "HPBW", ASTE_ARYMAX, HPBW ) ; 543 // 547 // DEBUG 548 // if ( i == 0 ) { 549 // cout << "HPBW " ; 550 // } 551 // else if ( ( i % 5 ) == 0 ) { 552 // cout << endl << " " ; 553 // } 554 // cout << HPBW[i] << " " ; 555 // 556 } 557 //cout << endl ; 544 558 for ( int i = 0 ; i < ASTE_ARYMAX ; i++ ) { 545 559 if ( readHeader( EFFA[i], sameEndian ) == -1 ) { … … 547 561 return -1 ; 548 562 } 549 } 550 // DEBUG 551 // nro_debug_output( "EFFA", ASTE_ARYMAX, EFFA ) ; 552 // 563 // DEBUG 564 // if ( i == 0 ) { 565 // cout << "EFFA " ; 566 // } 567 // else if ( ( i % 5 ) == 0 ) { 568 // cout << endl << " " ; 569 // } 570 // cout << EFFA[i] << " " ; 571 // 572 } 573 //cout << endl ; 553 574 for ( int i = 0 ; i < ASTE_ARYMAX ; i++ ) { 554 575 if ( readHeader( EFFB[i], sameEndian ) == -1 ) { … … 556 577 return -1 ; 557 578 } 558 } 559 // DEBUG 560 // nro_debug_output( "EFFB", ASTE_ARYMAX, EFFB ) ; 561 // 579 // DEBUG 580 // if ( i == 0 ) { 581 // cout << "EFFB " ; 582 // } 583 // else if ( ( i % 5 ) == 0 ) { 584 // cout << endl << " " ; 585 // } 586 // cout << EFFB[i] << " " ; 587 // 588 } 589 //cout << endl ; 562 590 for ( int i = 0 ; i < ASTE_ARYMAX ; i++ ) { 563 591 if ( readHeader( EFFL[i], sameEndian ) == -1 ) { … … 565 593 return -1 ; 566 594 } 567 } 568 // DEBUG 569 // nro_debug_output( "EFFL", ASTE_ARYMAX, EFFL ) ; 570 // 595 // DEBUG 596 // if ( i == 0 ) { 597 // cout << "EFFL " ; 598 // } 599 // else if ( ( i % 5 ) == 0 ) { 600 // cout << endl << " " ; 601 // } 602 // cout << EFFL[i] << " " ; 603 // 604 } 605 //cout << endl ; 571 606 for ( int i = 0 ; i < ASTE_ARYMAX ; i++ ) { 572 607 if ( readHeader( EFSS[i], sameEndian ) == -1 ) { … … 574 609 return -1 ; 575 610 } 576 } 577 // DEBUG 578 // nro_debug_output( "EFSS", ASTE_ARYMAX, EFSS ) ; 579 // 611 // DEBUG 612 // if ( i == 0 ) { 613 // cout << "EFSS " ; 614 // } 615 // else if ( ( i % 5 ) == 0 ) { 616 // cout << endl << " " ; 617 // } 618 // cout << EFSS[i] << " " ; 619 // 620 } 621 //cout << endl ; 580 622 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 581 623 if ( readHeader( GAIN[i], sameEndian ) == -1 ) { … … 583 625 return -1 ; 584 626 } 585 } 586 // DEBUG 587 // nro_debug_output( "GAIN", ASTE_ARYMAX, GAIN ) ; 588 // 627 // DEBUG 628 // if ( i == 0 ) { 629 // cout << "GAIN " ; 630 // } 631 // else if ( ( i % 5 ) == 0 ) { 632 // cout << endl << " " ; 633 // } 634 // cout << GAIN[i] << " " ; 635 // 636 } 637 //cout << endl ; 589 638 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 590 639 strcpy( c4, str4.c_str() ) ; … … 594 643 } 595 644 HORN[i] = string( c4 ) ; 596 } 597 // DEBUG 598 // nro_debug_output( "HORN", ASTE_ARYMAX, HORN ) ; 599 // 645 // DEBUG 646 // if ( i == 0 ) { 647 // cout << "HORN " ; 648 // } 649 // else if ( ( i % 5 ) == 0 ) { 650 // cout << endl << " " ; 651 // } 652 // cout << HORN[i] << " " ; 653 // 654 } 655 //cout << endl ; 600 656 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 601 657 strcpy( c4, str4.c_str() ) ; … … 605 661 } 606 662 POLTP[i] = string( c4 ) ; 607 } 608 // DEBUG 609 // nro_debug_output( "POLTP", ASTE_ARYMAX, POLTP ) ; 610 // 663 // DEBUG 664 // if ( i == 0 ) { 665 // cout << "POLTP " ; 666 // } 667 // else if ( ( i % 5 ) == 0 ) { 668 // cout << endl << " " ; 669 // } 670 // cout << POLTP[i] << " " ; 671 // 672 } 673 //cout << endl ; 611 674 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 612 675 if ( readHeader( POLDR[i], sameEndian ) == -1 ) { … … 614 677 return -1 ; 615 678 } 616 } 617 // DEBUG 618 // nro_debug_output( "POLDR", ASTE_ARYMAX, POLDR ) ; 619 // 679 // DEBUG 680 // if ( i == 0 ) { 681 // cout << "POLDR " ; 682 // } 683 // else if ( ( i % 5 ) == 0 ) { 684 // cout << endl << " " ; 685 // } 686 // cout << POLDR[i] << " " ; 687 // 688 } 689 //cout << endl ; 620 690 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 621 691 if ( readHeader( POLAN[i], sameEndian ) == -1 ) { … … 623 693 return -1 ; 624 694 } 625 } 626 // DEBUG 627 // nro_debug_output( "POLAN", ASTE_ARYMAX, POLAN ) ; 628 // 695 // DEBUG 696 // if ( i == 0 ) { 697 // cout << "POLAN " ; 698 // } 699 // else if ( ( i % 5 ) == 0 ) { 700 // cout << endl << " " ; 701 // } 702 // cout << POLAN[i] << " " ; 703 // 704 } 705 //cout << endl ; 629 706 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 630 707 if ( readHeader( DFRQ[i], sameEndian ) == -1 ) { … … 632 709 return -1 ; 633 710 } 634 } 635 // DEBUG 636 // nro_debug_output( "DFRQ", ASTE_ARYMAX, DFRQ ) ; 637 // 711 // DEBUG 712 // if ( i == 0 ) { 713 // cout << "DFRQ " ; 714 // } 715 // else if ( ( i % 5 ) == 0 ) { 716 // cout << endl << " " ; 717 // } 718 // cout << DFRQ[i] << " " ; 719 // 720 } 721 //cout << endl ; 638 722 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 639 723 strcpy( c4, str4.c_str() ) ; … … 643 727 } 644 728 SIDBD[i] = string( c4 ) ; 645 } 646 // DEBUG 647 // nro_debug_output( "SIDBD", ASTE_ARYMAX, SIDBD ) ; 648 // 729 // DEBUG 730 // if ( i == 0 ) { 731 // cout << "SIDBD " ; 732 // } 733 // else if ( ( i % 5 ) == 0 ) { 734 // cout << endl << " " ; 735 // } 736 // cout << SIDBD[i] << " " ; 737 // 738 } 739 //cout << endl ; 649 740 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 650 741 if ( readHeader( REFN[i], sameEndian ) == -1 ) { … … 652 743 return -1 ; 653 744 } 654 } 655 // DEBUG 656 // nro_debug_output( "REFN", ASTE_ARYMAX, REFN ) ; 657 // 745 // DEBUG 746 // if ( i == 0 ) { 747 // cout << "REFN " ; 748 // } 749 // else if ( ( i % 5 ) == 0 ) { 750 // cout << endl << " " ; 751 // } 752 // cout << REFN[i] << " " ; 753 // 754 } 755 //cout << endl ; 658 756 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 659 757 if ( readHeader( IPINT[i], sameEndian ) == -1 ) { … … 661 759 return -1 ; 662 760 } 663 } 664 // DEBUG 665 // nro_debug_output( "IPINT", ASTE_ARYMAX, IPINT ) ; 666 // 761 // DEBUG 762 // if ( i == 0 ) { 763 // cout << "IPINT " ; 764 // } 765 // else if ( ( i % 5 ) == 0 ) { 766 // cout << endl << " " ; 767 // } 768 // cout << IPINT[i] << " " ; 769 // 770 } 771 //cout << endl ; 667 772 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 668 773 if ( readHeader( MULTN[i], sameEndian ) == -1 ) { … … 670 775 return -1 ; 671 776 } 672 } 673 // DEBUG 674 // nro_debug_output( "MULTN", ASTE_ARYMAX, MULTN ) ; 675 // 777 // DEBUG 778 // if ( i == 0 ) { 779 // cout << "MULTN " ; 780 // } 781 // else if ( ( i % 5 ) == 0 ) { 782 // cout << endl << " " ; 783 // } 784 // cout << MULTN[i] << " " ; 785 // 786 } 787 //cout << endl ; 676 788 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 677 789 if ( readHeader( MLTSCF[i], sameEndian ) == -1 ) { … … 679 791 return -1 ; 680 792 } 681 } 682 // DEBUG 683 // nro_debug_output( "MLTSCF", ASTE_ARYMAX, MLTSCF ) ; 684 // 793 // DEBUG 794 // if ( i == 0 ) { 795 // cout << "MLTSCF " ; 796 // } 797 // else if ( ( i % 5 ) == 0 ) { 798 // cout << endl << " " ; 799 // } 800 // cout << MLTSCF[i] << " " ; 801 // 802 } 803 //cout << endl ; 685 804 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 686 805 strcpy( c8, str8.c_str() ) ; … … 690 809 } 691 810 LAGWIND[i] = string( c8 ) ; 692 } 693 // DEBUG 694 // nro_debug_output( "LAGWIND", ASTE_ARYMAX, LAGWIND ) ; 695 // 811 // DEBUG 812 // if ( i == 0 ) { 813 // cout << "LAGWIND " ; 814 // } 815 // else if ( ( i % 5 ) == 0 ) { 816 // cout << endl << " " ; 817 // } 818 // cout << LAGWIND[i] << " " ; 819 // 820 } 821 //cout << endl ; 696 822 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 697 823 if ( readHeader( BEBW[i], sameEndian ) == -1 ) { … … 699 825 return -1 ; 700 826 } 701 } 702 // DEBUG 703 // nro_debug_output( "BEBW", ASTE_ARYMAX, BEBW ) ; 704 // 827 // DEBUG 828 // if ( i == 0 ) { 829 // cout << "BEBW " ; 830 // } 831 // else if ( ( i % 5 ) == 0 ) { 832 // cout << endl << " " ; 833 // } 834 // cout << BEBW[i] << " " ; 835 // 836 } 837 //cout << endl ; 705 838 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 706 839 if ( readHeader( BERES[i], sameEndian ) == -1 ) { … … 708 841 return -1 ; 709 842 } 710 } 711 // DEBUG 712 // nro_debug_output( "BERES", ASTE_ARYMAX, BERES ) ; 713 // 843 // DEBUG 844 // if ( i == 0 ) { 845 // cout << "BERES " ; 846 // } 847 // else if ( ( i % 5 ) == 0 ) { 848 // cout << endl << " " ; 849 // } 850 // cout << BERES[i] << " " ; 851 // 852 } 853 //cout << endl ; 714 854 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 715 855 if ( readHeader( CHWID[i], sameEndian ) == -1 ) { … … 717 857 return -1 ; 718 858 } 719 } 720 // DEBUG 721 // nro_debug_output( "CHWID", ASTE_ARYMAX, CHWID ) ; 722 // 859 // DEBUG 860 // if ( i == 0 ) { 861 // cout << "CHWID " ; 862 // } 863 // else if ( ( i % 5 ) == 0 ) { 864 // cout << endl << " " ; 865 // } 866 // cout << CHWID[i] << " " ; 867 // 868 } 869 //cout << endl ; 723 870 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 724 871 if ( readHeader( ARRY[i], sameEndian ) == -1 ) { … … 726 873 return -1 ; 727 874 } 728 } 729 // DEBUG 730 // nro_debug_output( "ARRY", ASTE_ARYMAX, ARRY ) ; 731 // 875 // DEBUG 876 // if ( i == 0 ) { 877 // cout << "ARRY " ; 878 // } 879 // else if ( ( i % 5 ) == 0 ) { 880 // cout << endl << " " ; 881 // } 882 // cout << ARRY[i] << " " ; 883 // 884 } 885 //cout << endl ; 732 886 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 733 887 if ( readHeader( NFCAL[i], sameEndian ) == -1 ) { … … 735 889 return -1 ; 736 890 } 737 } 738 // DEBUG 739 // nro_debug_output( "NFCAL", ASTE_ARYMAX, NFCAL ) ; 740 // 891 // DEBUG 892 // if ( i == 0 ) { 893 // cout << "NFCAL " ; 894 // } 895 // else if ( ( i % 5 ) == 0 ) { 896 // cout << endl << " " ; 897 // } 898 // cout << NFCAL[i] << " " ; 899 // 900 } 901 //cout << endl ; 741 902 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 742 903 if ( readHeader( F0CAL[i], sameEndian ) == -1 ) { … … 744 905 return -1 ; 745 906 } 746 } 747 // DEBUG 748 // nro_debug_output( "F0CAL", ASTE_ARYMAX, F0CAL ) ; 749 // 907 // DEBUG 908 // if ( i == 0 ) { 909 // cout << "F0CAL " ; 910 // } 911 // else if ( ( i % 5 ) == 0 ) { 912 // cout << endl << " " ; 913 // } 914 // cout << F0CAL[i] << " " ; 915 // 916 } 917 //cout << endl ; 750 918 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 751 919 for ( int j = 0 ; j < 10 ; j++ ) { … … 754 922 return -1 ; 755 923 } 756 } 757 } 758 // DEBUG 759 // nro_debug_output( "FQCAL", ASTE_ARYMAX, 10, FQCAL ) ; 760 // 924 // DEBUG 925 // if ( j == 0 ) { 926 // if ( i < 10 ) 927 // cout << "FQCAL0" << i << " " ; 928 // else 929 // cout << "FQCAL" << i << " " ; 930 // } 931 // else if ( ( j % 5 ) == 0 ) { 932 // cout << endl << " " ; 933 // } 934 // cout << FQCAL[i][j] << " " ; 935 // 936 } 937 //cout << endl ; 938 } 761 939 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 762 940 for ( int j = 0 ; j < 10 ; j++ ) { … … 765 943 return -1 ; 766 944 } 767 } 768 } 769 // DEBUG 770 // nro_debug_output( "CHCAL", ASTE_ARYMAX, 10, CHCAL ) ; 771 // 945 // DEBUG 946 // if ( j == 0 ) { 947 // if ( i < 10 ) 948 // cout << "CHCAL0" << i << " " ; 949 // else 950 // cout << "CHCAL" << i << " " ; 951 // } 952 // else if ( ( j % 5 ) == 0 ) { 953 // cout << endl << " " ; 954 // } 955 // cout << CHCAL[i][j] << " " ; 956 // 957 } 958 //cout << endl ; 959 } 772 960 for ( int i= 0 ; i < ASTE_ARYMAX ; i++) { 773 961 for ( int j = 0 ; j < 10 ; j++ ) { … … 776 964 return -1 ; 777 965 } 778 } 779 } 780 // DEBUG 781 // nro_debug_output( "CWCAL", ASTE_ARYMAX, 10, CWCAL ) ; 782 // 966 // DEBUG 967 // if ( j == 0 ) { 968 // if ( i < 10 ) 969 // cout << "CWCAL0" << i << " " ; 970 // else 971 // cout << "CWCAL" << i << " " ; 972 // } 973 // else if ( ( j % 5 ) == 0 ) { 974 // cout << endl << " " ; 975 // } 976 // cout << CWCAL[i][j] << " " ; 977 // 978 } 979 //cout << endl ; 980 } 783 981 if ( readHeader( SCNLEN, sameEndian ) == -1 ) { 784 982 os << LogIO::WARN << "Error while reading data SCNLEN." << LogIO::POST ; … … 826 1024 return -1 ; 827 1025 } 828 } 829 // DEBUG 830 // nro_debug_output( "DSBFC", ASTE_ARYMAX, DSBFC ) ; 831 // 832 1026 // DEBUG 1027 // if ( i == 0 ) { 1028 // cout << "DSBFC " ; 1029 // } 1030 // else if ( ( i % 5 ) == 0 ) { 1031 // cout << endl << " " ; 1032 // } 1033 // cout << DSBFC[i] << " " ; 1034 // 1035 } 1036 //cout << endl ; 833 1037 834 1038 scanNum_ = NSCAN + 1 ; // includes ZERO scan
Note:
See TracChangeset
for help on using the changeset viewer.
