- Timestamp:
- 03/15/13 17:28:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSWriter.cpp
r2746 r2793 866 866 // fill empty SPECTRAL_WINDOW rows 867 867 infillSpectralWindow() ; 868 869 // fill empty FIELD rows 870 infillField() ; 868 871 } 869 872 … … 1058 1061 if ( nchan[i] == 0 ) 1059 1062 tr.put( i ) ; 1063 } 1064 } 1065 void infillField() 1066 { 1067 ScalarColumn<Int> sourceIdCol(fieldtab, "SOURCE_ID"); 1068 ArrayColumn<Double> delayDirCol(fieldtab, "DELAY_DIR"); 1069 ArrayColumn<Double> phaseDirCol(fieldtab, "PHASE_DIR"); 1070 ArrayColumn<Double> referenceDirCol(fieldtab, "REFERENCE_DIR"); 1071 uInt nrow = fieldtab.nrow(); 1072 Matrix<Double> dummy(IPosition(2, 2, 1), 0.0); 1073 for (uInt irow = 0; irow < nrow; ++irow) { 1074 if (!phaseDirCol.isDefined(irow)) { 1075 delayDirCol.put(irow, dummy); 1076 phaseDirCol.put(irow, dummy); 1077 referenceDirCol.put(irow, dummy); 1078 sourceIdCol.put(irow, -1); 1079 } 1060 1080 } 1061 1081 }
Note:
See TracChangeset
for help on using the changeset viewer.