Changeset 2273
- Timestamp:
- 08/12/11 16:20:30 (13 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2210 r2273 544 544 set( ASAP2TO3 asap2to3 ) 545 545 if ( NOT STANDALONE ) 546 set( ASDM2ASAP_OLD oldasdm2ASAP ) 546 547 set( ASDM2ASAP asdm2ASAP ) 547 548 endif() -
trunk/cmake/withcasa.cmake
r2236 r2273 114 114 endif() 115 115 message( STATUS "LIBXML2_LIBRARY = " ${LIBXML2_LIBRARY} ) 116 set( ASDM_INCLUDE_DIR ${CASA_CODE_PATH}/alma/implement/ASDM 117 ${CASA_CODE_PATH}/alma/implement/Enumerations 118 ${CASA_CODE_PATH}/alma/implement/ASDMBinaries 119 ${CASA_CODE_PATH}/alma/implement/Enumtcl 116 set( ASDM_INCLUDE_DIR_OLD ${CASA_CODE_PATH}/alma/implement/ASDM 117 ${CASA_CODE_PATH}/alma/implement/Enumerations 118 ${CASA_CODE_PATH}/alma/implement/ASDMBinaries 119 ${CASA_CODE_PATH}/alma/implement/Enumtcl 120 ${LIBXML2_INCLUDE_DIR} ) 121 set( ASDM_LIBRARY_OLD ${casaroot}/${arch}/lib/libalma${CMAKE_SHARED_LIBRARY_SUFFIX} 122 ${LIBXML2_LIBRARY}/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX} ) 123 set( ASDM_INCLUDE_DIR ${CASA_CODE_PATH}/alma_v3/implement/ASDM 124 ${CASA_CODE_PATH}/alma_v3/implement/Enumerations 125 ${CASA_CODE_PATH}/alma_v3/implement/ASDMBinaries 126 ${CASA_CODE_PATH}/alma_v3/implement/Enumtcl 120 127 ${LIBXML2_INCLUDE_DIR} ) 121 set( ASDM_LIBRARY ${casaroot}/${arch}/lib/libalma ${CMAKE_SHARED_LIBRARY_SUFFIX}122 ${LIBXML2_LIBRARY}/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX} )128 set( ASDM_LIBRARY ${casaroot}/${arch}/lib/libalma_v3${CMAKE_SHARED_LIBRARY_SUFFIX} 129 ${LIBXML2_LIBRARY}/libxml2${CMAKE_SHARED_LIBRARY_SUFFIX} ) 123 130 add_definitions( -DWITHOUT_ACS ) 124 131 … … 139 146 add_subdirectory( python ) 140 147 add_subdirectory( share ) 141 add_subdirectory( external-alma/asdm2ASAP ) 148 add_subdirectory( external-alma/asdm2ASAP ) 149 add_subdirectory( external-alma/oldasdm2ASAP ) 142 150 endmacro( asap_add_subdirectory ) 143 151 -
trunk/external-alma/asdm2ASAP/ASDMFiller.cc
r2253 r2273 125 125 if ( !(reader_->setMainRow( irow )) ) { 126 126 // skip row since the row doesn't have valid configDescId 127 //logsink_->postLocally( LogMessage("skip "+String::toString(irow) ,LogOrigin(className_,funcName,WHERE)) ) ;127 //logsink_->postLocally( LogMessage("skip "+String::toString(irow)+" since ASDMReader::setMainrow() returns False",LogOrigin(className_,funcName,WHERE)) ) ; 128 128 continue ; 129 129 } … … 136 136 if ( !(reader_->setData()) ) { 137 137 // skip row since reader failed to retrieve data 138 //logsink_->postLocally( LogMessage("skip "+String::toString(irow) ,LogOrigin(className_,funcName,WHERE)) ) ;138 //logsink_->postLocally( LogMessage("skip "+String::toString(irow)+" since ASDMReader::setData() returns False",LogOrigin(className_,funcName,WHERE)) ) ; 139 139 continue ; 140 140 } … … 271 271 // oss << dataShape[i] << ", " ; 272 272 // } 273 //logsink_->postLocally( LogMessage(oss.str(),LogOrigin(className_,funcName,WHERE)) ) ;273 //logsink_->postLocally( LogMessage(oss.str(),LogOrigin(className_,funcName,WHERE)) ) ; 274 274 275 275 //int numPol = reader_->getNumPol( idata ) ; … … 285 285 // SPECTRA, FLAGTRA, TSYS, TCAL 286 286 float *sp = reader_->getSpectrum( idata ) ; 287 vector< vector<float> > ts = reader_->getTsys( idata ) ; 288 vector< vector<float> > tc = reader_->getTcal( idata ) ; 287 vector< vector<float> > ts ; 288 vector< vector<float> > tc ; 289 reader_->getTcalAndTsys( idata, tc, ts ) ; 289 290 Matrix<casa::Float> spectra = toMatrix( sp, numPol, numChan ) ; 290 291 Vector<uChar> flagtra( numChan, 0 ) ; -
trunk/external-alma/asdm2ASAP/ASDMReader.cc
r2256 r2273 166 166 // create ASDM object 167 167 asdm_ = new ASDM() ; 168 // avoid unwanted message to stdout 169 ostringstream oss ; 170 streambuf *buforg = cout.rdbuf(oss.rdbuf()) ; 168 171 asdm_->setFromFile( filename ) ; 172 cout.rdbuf(buforg) ; 169 173 170 174 if ( antennaId_ == -1 ) { … … 213 217 processStation() ; 214 218 215 logsink_->postLocally( LogMessage( "antennaId_ = "+String::toString(antennaId_), LogOrigin(className_,funcName,WHERE) ) ) ;216 logsink_->postLocally( LogMessage( "antennaName_ = "+antennaName_, LogOrigin(className_,funcName,WHERE) ) ) ;219 //logsink_->postLocally( LogMessage( "antennaId_ = "+String::toString(antennaId_), LogOrigin(className_,funcName,WHERE) ) ) ; 220 //logsink_->postLocally( LogMessage( "antennaName_ = "+antennaName_, LogOrigin(className_,funcName,WHERE) ) ) ; 217 221 218 222 return true ; … … 286 290 // project 287 291 // T.B.D. (project UID?) 288 project = "T.B.D. (" + ebrow->getProject Id().toString() + ")" ;292 project = "T.B.D. (" + ebrow->getProjectUID().toString() + ")" ; 289 293 290 294 // utc … … 1880 1884 vector< vector<double> > ASDMReader::pointingDir( PointingRow *row ) 1881 1885 { 1886 //String funcName = "pointingDir" ; 1882 1887 vector< vector<Angle> > aTar = row->getTarget() ; 1883 1888 vector< vector<Angle> > aOff = row->getOffset() ; … … 1893 1898 * into account 1894 1899 * 1895 * az = dir[0][0] = target[0][0] + offset[0][0] / cos(el) 1900 * az = dir[0][0] = target[0][0] + offset[0][0] / cos(el) 1896 1901 * + encorder[0][0] - direction[0][0] 1897 1902 * el = dir[0][1] = target[0][1] + offset[0][1] 1898 1903 * + encorder[0][1] - direction[0][1] 1899 1904 **/ 1900 dir[i][0] = aTar[i][0].get() + factor * aOff[i][0].get() ;1905 dir[i][0] = aTar[i][0].get() + factor * aOff[i][0].get() 1901 1906 + aEnc[i][0].get() - aDir[i][0].get() ; 1902 dir[i][1] = aTar[i][1].get() + aOff[i][1].get() ;1907 dir[i][1] = aTar[i][1].get() + aOff[i][1].get() 1903 1908 + aEnc[i][1].get() - aDir[i][1].get() ; 1909 //logsink_->postLocally( LogMessage("tracking offset: ["+String::toString(aEnc[i][0].get()-aDir[i][0].get())+","+String::toString(aEnc[i][0]-aDir[i][0].get())+"]",LogOrigin(className_,funcName,WHERE)) ) ; 1904 1910 } 1905 1911 return dir ; -
trunk/external-alma/asdm2ASAP/asdm2ASAP.cc
r2248 r2273 127 127 CountedPtr<ASDMReader> reader = filler->getReader() ; 128 128 string aname = reader->getAntennaName() ; 129 int aid = reader->getAntennaId() ;130 129 string outname = asapname ; 131 130 if ( asapname.size() == 0 ) { … … 137 136 138 137 //logsink_p->postLocally( LogMessage("specified option summary:",LogOrigin(funcname,WHERE)) ) ; 139 //logsink_p->postLocally( LogMessage(" antenna = "+String(aname)+" (ID: "+String::toString( aid)+")",LogOrigin(funcname,WHERE)) ) ;138 //logsink_p->postLocally( LogMessage(" antenna = "+String(aname)+" (ID: "+String::toString(reader->getAntennaId())+")",LogOrigin(funcname,WHERE)) ) ; 140 139 //logsink_p->postLocally( LogMessage(" asdmname = "+asdmname,LogOrigin(funcname,WHERE)) ) ; 141 140 //logsink_p->postLocally( LogMessage(" asapname = "+outname,LogOrigin(funcname,WHERE)) ) ;
Note:
See TracChangeset
for help on using the changeset viewer.