Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/asap/cookbook/node30.html
Дата изменения: Unknown Дата индексирования: Tue Feb 5 06:33:26 2013 Кодировка: Поисковые слова: voyager |
For more control when reading data into ASAP, the reader object should be used. This has the option of only reading in a range of integrations and does not perform any scan averaging of the data, allowing analysis of the individual integrations. Note that due to limitation of the RPFITS library, only one reader object can be open at one time reading RPFITS files. To read multiple RPFITS files, the old reader must be destroyed before the new file is opened. However, multiple readers can be created and attached to SDFITS files.
Example usage:
ASAP> r = reader('2003-03-16_082048_t0002.rpf') ASAP> r.summary ASAP> scan = r.read() ASAP> s = r.read(range(100)) # To read in the first 100 integrations ASAP> del r