Usage for getMostRecentMove

Return to directory of Todd's CASA extensions

Searches the antennaMoves.txt file for the most recent move(s) of the specified antenna name (e.g. 'DV01'), and returns a single string of results. See also mostRecentMoves() to search all antennas from an ms at once.


au.getMostRecentMove(antenna, history=1, before='')
   antenna: name string ('DV01')
   history: maximum number of moves to return
   before: date to search before 'YYYY-MM-DD' (default = today)


CASA <9>: au.getMostRecentMove('DV01')
  Out[9]: '2012-03-31T18:30 DV01 A070 A001'

CASA <11>: print au.getMostRecentMove('DV01',3)
---------> print(au.getMostRecentMove('DV01',3))
2011-09-16T12:00 DV01 A021 OSF
2011-11-14T12:00 DV01 OSF A070
2012-03-31T18:30 DV01 A070 A001

CASA <12>: print au.getMostRecentMove('DV01', 1, '2012-01-01')
---------> print(au.getMostRecentMove('DV01', 1, '2012-01-01'))
2011-11-14T12:00 DV01 OSF A070

-- ToddHunter - 2012-09-11
Topic revision: r2 - 2012-09-12, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback