Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: newsditerator - Constructor Up: sditerator - Tool Previous: sditerator - Tool


sditerator - Constructor



Package dish
Module dish
Tool sditerator


An sditerator from an existing file on disk.


Synopsis
sditerator(filename, readonly, selection, lockoptions, correcteddata)


Description
This constructor is used to open an already existing single dish data set. The type of data set (flat-table or MeasurementSet) is automatically determined. MeasurementSets can only be opened read-only. The lockoptions are the same as those appropriate for the table tool . The selection record follows the same structure as that used by the select function. The CORRECTED_DATA column is only available for MeasurementSet-based sditerators. When CORRECTED_DATA is requested, the type of the arr field in the sdrecord will be complex.



Arguments

filename in Name of SDFITS file on disk
    Allowed: String
readonly in Open Read-only?
    Allowed: Bool
    Default: T
selection in Record describing any selections to do on opening
    Allowed: Glish record
    Default: [=]
lockoptions in locking to be used
    Allowed: String
    Default: auto
correcteddata in Use the CORRECTED_DATA column?
    Allowed: Bool
    Default: F


Returns
sditerator tool



Example
  sdit := sditerator("a302_SP",correcteddata=T);
  r := sdit.get();

The first line opens an existing data set, using the CORRECTED_DATA column to supply the values for the arr field in the returned sdrecord. The second line fetches the first sdrecord found in that sditerator. The type of r.data.arr is complex.





next up previous contents index
Next: newsditerator - Constructor Up: sditerator - Tool Previous: sditerator - Tool   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01