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