Changeset 2255
- Timestamp:
- 08/01/11 10:32:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/asdm2ASAP/ASDMReader.cc
r2254 r2255 1880 1880 vector< vector<double> > ASDMReader::pointingDir( PointingRow *row ) 1881 1881 { 1882 //vector< vector<Angle> > aDir = row->getPointingDirection() ;1883 1882 vector< vector<Angle> > aDir = row->getTarget() ; 1884 1883 vector< vector<Angle> > aOff = row->getOffset() ; 1885 1884 unsigned int n = aDir.size() ; 1886 unsigned int m = 0 ;1887 1885 vector< vector<double> > dir( n ) ; 1886 double factor = 1.0 / cos( aDir[0][1].get() ) ; 1888 1887 for ( unsigned int i = 0 ; i < n ; i++ ) { 1889 m = aDir[i].size() ; 1890 dir[i].resize( m ) ; 1891 for ( unsigned int j = 0 ; j < m ; j++ ) { 1892 //dir[i][j] = aDir[i][j].get() ; 1893 dir[i][j] = aDir[i][j].get() + aOff[i][j].get() ; 1894 } 1888 dir[i].resize( 2 ) ; 1889 /** 1890 * This is approximate way to add offset 1891 * 1892 * az = dir[0][0] = target[0][0] + offset[0][0] / cos(el) 1893 * el = dir[0][1] = target[0][1] + offset[0][1] 1894 **/ 1895 dir[i][0] = aDir[i][0].get() + factor * aOff[i][0].get() ; 1896 dir[i][1] = aDir[i][1].get() + aOff[i][1].get() ; 1895 1897 } 1896 1898 return dir ;
Note:
See TracChangeset
for help on using the changeset viewer.