Produced by IDL 7.1.1
User Documentation

./guide
scan_info.pro

Last modification date:
Wed Sep 28 13:27:09 2016

scan_info

function scan_info(scan[, file], [/keep], [/quiet], [count=integer])

Get scan information structure from the appropriate I/O object.

This uses !g.line to determine which I/O object to get the information from, unless keep is set, in which case it gets it from the keep file.

Note that this may return more than one structure (an array of structures would be returned). This can happen if the same scan number appears in the data with more than one timestamp. The instance and timestamp keywords of the various data retrieval procedures (getscan, get, getnod, getps, etc) can be used to differentiate between these duplicate scans. The instance keyword in those cases corresponds to the element number of the array returned by scan_info. The timestamp keyword corresponds to the timestamp field in the scan_info structure.

The data corresponding to a given instance are always found in consecutive records. The index_start and nrecords fields can be used to get just the data associated with a specific instance. See the examples. The fields in the returned structure are:

Returns
Scan information structure. Returns -1 on error.
Examples
Get all of the data associated with one scan.
    a = scan_info(65)
    indx = lindgen(a.nrecords) + a.index_start
    d65 = getchunk(index=indx)
    ... do stuff with d65, but don't forget to free it when done
    data_free, d65
 

Find paired scan's and their info structure (e.g. position switched)

    a = scan_info(65)
    b = find_paired_info(a)
 
Version
$Id$

Parameters
scan
in, required
integer
Scan number to get information on.
file
in, optional
string
Limit the search for matching scans to a specific file. If omitted, scans are found in all files currently opened through filein (a single file) or dirin (possibly multiple files).

Keywords
keep
in, optional
boolean
If set, the scan information comes from the keep file.
quiet
in, optional
boolean
When set, suppress most error messages. Useful when being used within another procedure.
count
in, optional
integer
Returns the number of elements of the returned array of scan_info structures.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:36 2016