Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/asap/userguide/node6.html
Дата изменения: Unknown Дата индексирования: Tue Feb 5 06:51:34 2013 Кодировка: Поисковые слова: р р р р р р п п р р р р р р |
Following the object oriented approach, objects have associated ``member functions'' which can either be used to modify the data in some way or change global properties of the object. In this document member functions will be referred to simply as functions. From the command line, the user can execute these functions using the syntax:
ASAP>out = object.function(arguments)
Where out is the name of the returned variable (could be a new scantable object, or a vector of data, or a status return), object is the object variable name (set by the user), function is the name of the member function and arguments is a list of arguments to the function. The arguments can be provided either though position or name=. A mix of the two can be used. E.g.
ASAP>av = scans.average_time(msk,weight='tsys') ASAP>av = scans.average_time(mask=msk,weight='tsys') ASAP>av = scans.average_time(msk,tsys) ASAP>scans.poly_baseline(mask=msk, order=0, insitu=True) ASAP>scans.poly_baseline(msk,0,True) ASAP>scans.poly_baseline(mask, insitu=True)