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


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


sditfromsdit - Constructor



Package dish
Module dish
Tool sditerator


An sditerator from another sditerator.


Synopsis
sditfromsdit(sdit, selection)


Description
This constructor is equivalent to the select function.



Arguments

sdit in An sditerator
    Allowed: sditerator tool
selection in Record describing any selections to do on opening
    Allowed: Glish record
    Default: [=]


Returns
sditerator tool



Example
  sdit := sditerator("a302_SP");
  selrec := [=];
  selrec.header := [=];
  selrec.header.source_name := "My source";
  sditSource := sditfromsdit(sdit,selrec)

The first line opens an existing data set. The rest make another sditerator by making and applying a selection record to the first iterator. In this example, sources matching the indicated name are selected. The resulting iterator will only have sdrecords which match that selection criteria.





next up previous contents index
Next: sditerator.appendHistory - Function Up: sditerator - Tool Previous: newsditerator - Constructor   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