Changeset 2176
- Timestamp:
- 05/20/11 15:44:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSWriter.cpp
r2104 r2176 1683 1683 // OBS_MODE string of MS created by importasdm task is slightly 1684 1684 // (but critically) changed. 1685 // 2011/05/20 TN 1686 // OBS_MODE string of MS created by importasdm task is changed 1687 // again (separator is now "#" instead of "_" 1688 String sep1="#" ; 1689 String sep2="," ; 1690 String target="OBSERVE_TARGET" ; 1691 String atmcal="CALIBRATE_TEMPERATURE" ; 1692 String onstr="ON_SOURCE" ; 1693 String offstr="OFF_SOURCE" ; 1694 String pswitch="POSITION_SWITCH" ; 1695 String nod="NOD" ; 1696 String fswitch="FREQUENCY_SWITCH" ; 1697 String sigstr="SIG" ; 1698 String refstr="REF" ; 1699 String unspecified="UNSPECIFIED" ; 1700 String ftlow="LOWER" ; 1701 String fthigh="HIGHER" ; 1685 1702 switch ( type ) { 1686 1703 case SrcType::PSON: 1687 stype = "OBSERVE_TARGET_ON_SOURCE,POSITION_SWITCH" ; 1704 //stype = "OBSERVE_TARGET_ON_SOURCE,POSITION_SWITCH" ; 1705 stype = target+sep1+onstr+sep2+pswitch ; 1688 1706 b = True ; 1689 1707 t = 0.0 ; … … 1691 1709 break ; 1692 1710 case SrcType::PSOFF: 1693 stype = "OBSERVE_TARGET_OFF_SOURCE,POSITION_SWITCH" ; 1711 //stype = "OBSERVE_TARGET_OFF_SOURCE,POSITION_SWITCH" ; 1712 stype = target+sep1+offstr+sep2+pswitch ; 1694 1713 b = False ; 1695 1714 t = 0.0 ; … … 1697 1716 break ; 1698 1717 case SrcType::NOD: 1699 stype = "OBSERVE_TARGET_ON_SOURCE,NOD" ; 1718 //stype = "OBSERVE_TARGET_ON_SOURCE,NOD" ; 1719 stype = target+sep1+onstr+sep2+nod ; 1700 1720 b = True ; 1701 1721 t = 0.0 ; … … 1703 1723 break ; 1704 1724 case SrcType::FSON: 1705 stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_SIG" ; 1725 //stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_SIG" ; 1726 stype = target+sep1+onstr+sep2+fswitch+sep1+sigstr ; 1706 1727 b = True ; 1707 1728 t = 0.0 ; … … 1709 1730 break ; 1710 1731 case SrcType::FSOFF: 1711 stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_REF" ; 1732 //stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_REF" ; 1733 stype = target+sep1+onstr+sep2+fswitch+sep1+refstr ; 1712 1734 b = False ; 1713 1735 t = 0.0 ; … … 1715 1737 break ; 1716 1738 case SrcType::SKY: 1717 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1739 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1740 stype = atmcal+sep1+offstr+sep2+unspecified ; 1718 1741 b = False ; 1719 1742 t = 0.0 ; … … 1721 1744 break ; 1722 1745 case SrcType::HOT: 1723 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1746 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1747 stype = atmcal+sep1+offstr+sep2+unspecified ; 1724 1748 b = False ; 1725 1749 t = 0.0 ; … … 1727 1751 break ; 1728 1752 case SrcType::WARM: 1729 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1753 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1754 stype = atmcal+sep1+offstr+sep2+unspecified ; 1730 1755 t = 0.0 ; 1731 1756 b = False ; … … 1733 1758 break ; 1734 1759 case SrcType::COLD: 1735 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1760 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,UNSPECIFIED" ; 1761 stype = atmcal+sep1+offstr+sep2+unspecified ; 1736 1762 b = False ; 1737 1763 t = 0.0 ; … … 1739 1765 break ; 1740 1766 case SrcType::PONCAL: 1741 stype = "CALIBRATE_TEMPERATURE_ON_SOURCE,POSITION_SWITCH" ; 1767 //stype = "CALIBRATE_TEMPERATURE_ON_SOURCE,POSITION_SWITCH" ; 1768 stype = atmcal+sep1+onstr+sep2+pswitch ; 1742 1769 b = True ; 1743 1770 t = 1.0 ; … … 1745 1772 break ; 1746 1773 case SrcType::POFFCAL: 1747 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,POSITION_SWITCH" ; 1774 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,POSITION_SWITCH" ; 1775 stype = atmcal+sep1+offstr+sep2+pswitch ; 1748 1776 b = False ; 1749 1777 t = 1.0 ; … … 1751 1779 break ; 1752 1780 case SrcType::NODCAL: 1753 stype = "CALIBRATE_TEMPERATURE_ON_SOURCE,NOD" ; 1781 //stype = "CALIBRATE_TEMPERATURE_ON_SOURCE,NOD" ; 1782 stype = atmcal+sep1+onstr+sep2+nod ; 1754 1783 b = True ; 1755 1784 t = 1.0 ; … … 1757 1786 break ; 1758 1787 case SrcType::FONCAL: 1759 stype = "CALIBRATE_TEMPERATURE_ON_SOURCE,FREQUENCY_SWITCH_SIG" ; 1788 //stype = "CALIBRATE_TEMPERATURE_ON_SOURCE,FREQUENCY_SWITCH_SIG" ; 1789 stype = atmcal+sep1+onstr+sep2+fswitch+sep1+sigstr ; 1760 1790 b = True ; 1761 1791 t = 1.0 ; … … 1763 1793 break ; 1764 1794 case SrcType::FOFFCAL: 1765 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_REF" ; 1795 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_REF" ; 1796 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+refstr ; 1766 1797 b = False ; 1767 1798 t = 1.0 ; … … 1769 1800 break ; 1770 1801 case SrcType::FSLO: 1771 stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1802 //stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1803 stype = target+sep1+onstr+sep2+fswitch+sep1+ftlow ; 1772 1804 b = True ; 1773 1805 t = 0.0 ; … … 1775 1807 break ; 1776 1808 case SrcType::FLOOFF: 1777 stype = "OBSERVE_TARGET_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1809 //stype = "OBSERVE_TARGET_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1810 stype = target+sep1+offstr+sep2+fswitch+sep1+ftlow ; 1778 1811 b = False ; 1779 1812 t = 0.0 ; … … 1781 1814 break ; 1782 1815 case SrcType::FLOSKY: 1783 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1816 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1817 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+ftlow ; 1784 1818 b = False ; 1785 1819 t = 0.0 ; … … 1787 1821 break ; 1788 1822 case SrcType::FLOHOT: 1789 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1823 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1824 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+ftlow ; 1790 1825 b = False ; 1791 1826 t = 0.0 ; … … 1793 1828 break ; 1794 1829 case SrcType::FLOWARM: 1795 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1830 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1831 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+ftlow ; 1796 1832 b = False ; 1797 1833 t = 0.0 ; … … 1799 1835 break ; 1800 1836 case SrcType::FLOCOLD: 1801 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1837 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_LOWER" ; 1838 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+ftlow ; 1802 1839 b = False ; 1803 1840 t = 0.0 ; … … 1805 1842 break ; 1806 1843 case SrcType::FSHI: 1807 stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1844 //stype = "OBSERVE_TARGET_ON_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1845 stype = target+sep1+onstr+sep2+fswitch+sep1+fthigh ; 1808 1846 b = True ; 1809 1847 t = 0.0 ; … … 1811 1849 break ; 1812 1850 case SrcType::FHIOFF: 1813 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1851 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1852 stype = target+sep1+offstr+sep2+fswitch+sep1+fthigh ; 1814 1853 b = False ; 1815 1854 t = 0.0 ; … … 1817 1856 break ; 1818 1857 case SrcType::FHISKY: 1819 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1858 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1859 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+fthigh ; 1820 1860 b = False ; 1821 1861 t = 0.0 ; … … 1823 1863 break ; 1824 1864 case SrcType::FHIHOT: 1825 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1865 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1866 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+fthigh ; 1826 1867 b = False ; 1827 1868 t = 0.0 ; … … 1829 1870 break ; 1830 1871 case SrcType::FHIWARM: 1831 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1872 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1873 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+fthigh ; 1832 1874 b = False ; 1833 1875 t = 0.0 ; … … 1835 1877 break ; 1836 1878 case SrcType::FHICOLD: 1837 stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1879 //stype = "CALIBRATE_TEMPERATURE_OFF_SOURCE,FREQUENCY_SWITCH_HIGHER" ; 1880 stype = atmcal+sep1+offstr+sep2+fswitch+sep1+fthigh ; 1838 1881 b = False ; 1839 1882 t = 0.0 ; … … 1841 1884 break ; 1842 1885 case SrcType::SIG: 1843 stype = "OBSERVE_TARGET_ON_SOURCE,UNSPECIFIED" ; 1886 //stype = "OBSERVE_TARGET_ON_SOURCE,UNSPECIFIED" ; 1887 stype = target+sep1+onstr+sep2+unspecified ; 1844 1888 b = True ; 1845 1889 t = 0.0 ; … … 1847 1891 break ; 1848 1892 case SrcType::REF: 1849 stype = "OBSERVE_TARGET_ON_SOURCE,UNSPECIFIED" ; 1893 //stype = "OBSERVE_TARGET_ON_SOURCE,UNSPECIFIED" ; 1894 stype = target+sep1+offstr+sep2+unspecified ; 1850 1895 b = False ; 1851 1896 t = 0.0 ; … … 1853 1898 break ; 1854 1899 default: 1855 stype = "UNSPECIFIED" ; 1900 //stype = "UNSPECIFIED" ; 1901 stype = unspecified ; 1856 1902 b = True ; 1857 1903 t = 0.0 ;
Note:
See TracChangeset
for help on using the changeset viewer.