Changeset 2575 for trunk/src


Ignore:
Timestamp:
06/22/12 14:08:05 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

import asap
scan = asap.scantable("SOME_NAME")
scan.get_direction(0)
# retuns a string of reference frame in addition to RA and Dec.

Put in Release Notes: No

Module(s): scantable.get_direction, scantable._getdirection

Description:

Modified Scantable::formatDirection so that it returns a string of direction
with the reference frame.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2531 r2575  
    478478  Int prec = 7;
    479479
     480  String ref = md.getRefString();
    480481  MVAngle mvLon(t[0]);
    481482  String sLon = mvLon.string(MVAngle::TIME,prec);
     
    487488  MVAngle mvLat(t[1]);
    488489  String sLat = mvLat.string(MVAngle::ANGLE+MVAngle::DIG2,prec);
    489   return sLon + String(" ") + sLat;
     490  return  ref + String(" ") + sLon + String(" ") + sLat;
    490491}
    491492
Note: See TracChangeset for help on using the changeset viewer.