Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/asap/cookbook/node6.html
Дата изменения: Unknown Дата индексирования: Tue Feb 5 05:49:10 2013 Кодировка: Поисковые слова: arp 220 |
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(msk,weight='tsys') ASAP> av = scans(mask=msk,weight='tsys') ASAP> av = scans(msk,tsys) ASAP> scans.polybaseline(mask=msk, order=0, insitu=True) ASAP> scans.polybaseline(msk,0,True) ASAP> scans.polybaseline(mask, insitu=True)