Changeset 2255


Ignore:
Timestamp:
08/01/11 10:32:31 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1913

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Azimuth and elevation are derived as following formula:

Az = target[0][0] + offset[0][0] / cos( target[0][1] )
El = target[0][1] + offset[0][1]


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/asdm2ASAP/ASDMReader.cc

    r2254 r2255  
    18801880vector< vector<double> > ASDMReader::pointingDir( PointingRow *row )
    18811881{
    1882   //vector< vector<Angle> > aDir = row->getPointingDirection() ;
    18831882  vector< vector<Angle> > aDir = row->getTarget() ;
    18841883  vector< vector<Angle> > aOff = row->getOffset() ;
    18851884  unsigned int n = aDir.size() ;
    1886   unsigned int m = 0 ;
    18871885  vector< vector<double> > dir( n ) ;
     1886  double factor = 1.0 / cos( aDir[0][1].get() ) ;
    18881887  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() ;
    18951897  }
    18961898  return dir ;
Note: See TracChangeset for help on using the changeset viewer.