Changeset 1941 for trunk/external-alma/atnf/PKSIO
- Timestamp:
- 10/01/10 12:44:57 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/asap4casa3.1.0 merged: 1940
- Property svn:mergeinfo changed
-
trunk/external-alma
- Property svn:mergeinfo changed
/branches/asap4casa3.1.0/external-alma merged: 1940
- Property svn:mergeinfo changed
-
trunk/external-alma/atnf/PKSIO/PKSMS2writer.cc
r1771 r1941 732 732 // Extend the DATA_DESCRIPTION subtable. 733 733 while (Int(cDataDescription.nrow()) < IFno) { 734 cDataDescription.addRow( );734 cDataDescription.addRow(1,True); 735 735 } 736 736 Int n = IFno - 1; … … 966 966 { 967 967 // Extend the POLARIZATION subtable. 968 Int nr = cPolarization.nrow() ; 968 969 while (Int(cPolarization.nrow()) < IFno) { 969 cPolarization.addRow( );970 cPolarization.addRow(1,True); 970 971 } 971 972 Int n = IFno - 1; … … 985 986 corrType(1) = Stokes::YY; 986 987 } 988 // initialization 989 for ( Int i = nr ; i < n ; i++ ) 990 cPolarizationCols->corrType().put( i, corrType ) ; 987 991 cPolarizationCols->corrType().put(n, corrType); 988 992 … … 1092 1096 { 1093 1097 // Extend the SPECTRAL_WINDOW subtable. 1098 Int nr = cSpectralWindow.nrow() ; 1094 1099 while (Int(cSpectralWindow.nrow()) < IFno) { 1095 cSpectralWindow.addRow( );1100 cSpectralWindow.addRow(1,True); 1096 1101 } 1097 1102 Int n = IFno - 1; … … 1111 1116 freqs(i) = refFreq + (i - refChan)*freqInc; 1112 1117 } 1118 // initialization 1119 for ( Int i = nr ; i < n ; i++ ) 1120 cSpWindowCols->chanFreq().put( i, freqs ) ; 1113 1121 cSpWindowCols->chanFreq().put(n, freqs); 1114 1122 1115 1123 Vector<Double> chanWidths(nChan, freqInc); 1124 // initialization 1125 for ( Int i = nr ; i < n ; i++ ) { 1126 cSpWindowCols->chanWidth().put( i, chanWidths ) ; 1127 cSpWindowCols->effectiveBW().put( i, chanWidths ) ; 1128 } 1116 1129 cSpWindowCols->chanWidth().put(n, chanWidths); 1117 1130 … … 1120 1133 1121 1134 Vector<Double> resolution(nChan, fabs(freqInc)); 1135 // initialization 1136 for ( Int i = nr ; i < n ; i++ ) 1137 cSpWindowCols->resolution().put( i, resolution ) ; 1122 1138 cSpWindowCols->resolution().put(n, resolution); 1123 1139
Note:
See TracChangeset
for help on using the changeset viewer.