Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | dish | |
Module | dish | |
Tool | sditerator |
# tediously extract the individual values sdit.origin(); nrecords := sdit.length(); scans := array(0,nrecords); sources := array("",nrecords); restfqs := array(0.0,nrecords); count := 1; rec := sdit.get(); scans[count] := rec.header.scan_number; sources[count] := rec.header.source_name; restfqs[count] := rec.data.desc.restfrequency; while (sdit.more()) { sdit.next(); rec := sdit.get() count +:= 1 scans[count] := rec.header.scan_number; sources[count] := rec.header.source_name; restfqs[count] := rec.data.desc.restfrequency; } # or alternatively using getvectors template := [data=[desc=[restfrequency=0.0]], header=[scan_number=0,source_name=""]]; vec := sdit.getvectors(template); scans := vec.header.scan_number; sources := vec.header.source_name; restfqs := vec.data.desc.restfrequency;
template | in | The template indicating which fields to fetch. | |
Allowed: | record |