|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide samplerinfo.pro
samplerinfo |
function samplerinfo(scan, sampler, [instance=integer], [file=string], [timestamp=string], [/quiet], [recs=variable]) |
Find the if, feed, and polarization numbers which corresponds to the given sampler name in the scan.
A three-element array is returned having the value (ifnum,plnum,fdnum) corresponding to the IF, feed, and polarization numbers associated with the given sampler name and scan.
If the same scan appears more than once in the data file then the value corresponding to instance will be returned. If instance is omitted, the first instance (instance=0) will be returned. The instance and file keywords can be used to ensure that a single scan is used. Alternatively, the timestamp keyword can be used to ensure that a single scan is used (scan and instance are ignored in that case).
If the requested sampler is not found in the scan, the all values of the returned array will be -1.
There is no check to make sure that there is just one (ifnum,plnum,fdnum) associated with the given sampler. The values for the first matching sampler are returned.
Parameters | |
scan |
scan number |
sampler |
sampler name |