Changeset 2355 for trunk/external-alma/asdm2ASAP/ASDMReader.cc
- Timestamp:
- 12/01/11 17:33:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/asdm2ASAP/ASDMReader.cc
r2307 r2355 850 850 vector<double> &restfreq ) 851 851 { 852 String funcName = "getSourceProperty" ; 852 853 ostringstream oss ; 853 854 oss << fieldRow_p->getFieldName() << "__" << vmsData_->v_fieldId[dataIndex_] ; 854 855 fieldname = oss.str() ; 856 SourceRow *srow = 0 ; 855 857 if ( fieldRow_p->isSourceIdExists() ) { 856 858 int sourceId = fieldRow_p->getSourceId() ; 857 SourceRow *srow = asdm_->getSource().getRowByKey( sourceId, timeInterval_, specWinTag_ ) ; 859 srow = asdm_->getSource().getRowByKey( sourceId, timeInterval_, specWinTag_ ) ; 860 } 861 if ( srow != 0 ) { 862 //logsink_->postLocally( LogMessage("timeInterval_="+String::toString(timeInterval_.getStart().getMJD()),LogOrigin(className_,funcName,WHERE)) ) ; 863 //logsink_->postLocally( LogMessage("specWinTag_="+String::toString(specWinTag_.toString()),LogOrigin(className_,funcName,WHERE)) ) ; 864 //SourceRow *srow = asdm_->getSource().getRowByKey( sourceId, timeInterval_, specWinTag_ ) ; 865 //logsink_->postLocally( LogMessage("sourceId="+String::toString(sourceId),LogOrigin(className_,funcName,WHERE)) ) ; 866 //if ( srow == 0 ) 867 //logsink_->postLocally( LogMessage("nullpo",LogOrigin(className_,funcName,WHERE)) ) ; 858 868 859 869 // source name 860 870 srcname = srow->getSourceName() ; 871 //logsink_->postLocally( LogMessage("srcname="+String::toString(srcname),LogOrigin(className_,funcName,WHERE)) ) ; 861 872 862 873 // source direction … … 865 876 srcdir[0] = limitedAngle( srcdirA[0].get() ) ; 866 877 srcdir[1] = limitedAngle( srcdirA[1].get() ) ; 878 //logsink_->postLocally( LogMessage("srcdir=["+String::toString(srcdir[0])+","+String::toString(srcdir[1])+"]",LogOrigin(className_,funcName,WHERE)) ) ; 867 879 if ( srow->isDirectionCodeExists() ) { 868 880 DirectionReferenceCodeMod::DirectionReferenceCode dircode = srow->getDirectionCode() ; … … 881 893 srcpm[0] = srcpmA[0].get() ; 882 894 srcpm[1] = srcpmA[1].get() ; 883 895 //logsink_->postLocally( LogMessage("srcpm=["+String::toString(srcpm[0])+","+String::toString(srcpm[1])+"]",LogOrigin(className_,funcName,WHERE)) ) ; 884 896 // systemic velocity 885 897 if ( srow->isSysVelExists() ) { … … 891 903 sysvel = 0.0 ; 892 904 } 893 905 //logsink_->postLocally( LogMessage("sysvel="+String::toString(sysvel),LogOrigin(className_,funcName,WHERE)) ) ; 894 906 // rest frequency 895 907 if ( srow->isRestFrequencyExists() ) { … … 903 915 restfreq.resize( 0 ) ; 904 916 } 917 //logsink_->postLocally( LogMessage("restfreq.size()="+String::toString(restfreq.size()),LogOrigin(className_,funcName,WHERE)) ) ; 905 918 } 906 919 else { … … 1175 1188 vector< vector<float> > defaultT( 1, vector<float>( 1, 1.0 ) ) ; 1176 1189 SysCalRow *scrow = getSysCalRow() ; 1190 //logsink_->postLocally( LogMessage("scrow = "+String::toString((long)scrow),LogOrigin(className_,funcName,WHERE)) ) ; 1177 1191 if ( scrow == 0 ) { 1178 1192 tcal = defaultT ; … … 1184 1198 unsigned int numReceptor = tsysSpec.size() ; 1185 1199 unsigned int numChan = tsysSpec[0].size() ; 1200 //logsink_->postLocally( LogMessage("TSYS: numReceptor = "+String::toString(numReceptor),LogOrigin(className_,funcName,WHERE)) ) ; 1201 //logsink_->postLocally( LogMessage("TSYS:numChan = "+String::toString(numChan),LogOrigin(className_,funcName,WHERE)) ) ; 1186 1202 tsys.resize( numReceptor ) ; 1187 1203 for ( unsigned int ir = 0 ; ir < numReceptor ; ir++ ) { … … 1199 1215 unsigned int numReceptor = tcalSpec.size() ; 1200 1216 unsigned int numChan = tcalSpec[0].size() ; 1217 //logsink_->postLocally( LogMessage("TCAL: numReceptor = "+String::toString(numReceptor),LogOrigin(className_,funcName,WHERE)) ) ; 1218 //logsink_->postLocally( LogMessage("TCAL: numChan = "+String::toString(numChan),LogOrigin(className_,funcName,WHERE)) ) ; 1201 1219 tcal.resize( numReceptor ) ; 1202 1220 for ( unsigned int ir = 0 ; ir < numReceptor ; ir++ ) { 1203 tcal[ir].resize( num Receptor) ;1221 tcal[ir].resize( numChan ) ; 1204 1222 for ( unsigned int ic = 0 ; ic < numChan ; ic++ ) { 1205 1223 tcal[ir][ic] = tcalSpec[ir][ic].get() ;
Note:
See TracChangeset
for help on using the changeset viewer.