Produced by IDL 7.1.1
Developer Documentation

./toolbox/io
cntm_index__define.pro

INDEX_FILE
|
+-cntm_index

All known superclasses:
INDEX_FILE
Last modification date:
Wed Sep 28 13:27:14 2016

Child class of INDEX_FILE, contains special functionality for dealing with continuum data. This mostly entails the translation of sdfits data into contents of the index file. See UML for all IO Classes, or INDEX UML for just index classes. This class is responsible for establishing the correct class for managing the row section of the index file, the translation between sdfits and index rows, and provides the search gateway.

Fields inherited from INDEX_FILE:
string  FILE_NAME
longword integer  FILE_LOADED
string  FILE_PATH
object reference  HEADER
object reference  ROWS
string  ROWS_CLASS
pointer  ROW_LINES
string  VERSION
longword integer  SPROTECT
structure [1] INFO
longword integer  DEBUG

Routine Summary  9 routines

procedure cntm_index__define

Child class of INDEX_FILE, contains special functionality for dealing with continuum data.

function CNTM_INDEX::init(_EXTRA=_EXTRA)

function CNTM_INDEX::get_row_info_strct()

private

Returns the specail structure needed for continuum data

function CNTM_INDEX::search_index([start][, finish], SEARCH=SEARCH, [INDEX=long], [PROJECT=string], [FILE=string], [EXTENSION=long], [FIRSTROW=long], [NUMROWS=long], [STRIDE=long], [SOURCE=string], [PROCEDURE=string], [OBSID=string], [PROCSCAN=string], [PROCTYPE=string], [SCAN=long ], [PROCSEQN=long ], [E2ESCAN=long ], [POLARIZATION=string], [IFNUM=long ], [TRGTLONG=float], [TRGTLAT=float], [SIG=string], [CAL=string], [NSAVE=string])

This method searches the rows in the index file using the optional keywords.

procedure CNTM_INDEX::update_file_with_scan, first_row, proj, file_name, ext, start_row, n_data, samplers, sigs, cals, pols

Appends row info to an index file, given a group of rows from sdfits files.

function CNTM_INDEX::parse_scan_info(first_row, proj, file_name, ext, start_row, n_data, unique_samplers, sigs, cals, sampler_pols)

private

Takes in information about a continuum scan, and converts that to several rows in the index file.

function CNTM_INDEX::check_file_properties(file_name[, expanded], [/verbose])

private

Checks basic file properties to see if they agree with what the index file has listed.

function CNTM_INDEX::get_scan_info(scan_number[, file], count=variable, [/quiet])

Returns an array of structures that contains info about the scan number given, such as scan number, procedure name, number of integrations, ifs, etc.

procedure CNTM_INDEX::get_file_properties_in_index, file_name, extensions, num_rows

private

Finds the number and sizes of extensions for a file listed in the index file, according to the index file.

Routine Details

cntm_index__define

procedure cntm_index__define

Child class of INDEX_FILE, contains special functionality for dealing with continuum data. This mostly entails the translation of sdfits data into contents of the index file. See UML for all IO Classes, or INDEX UML for just index classes. This class is responsible for establishing the correct class for managing the row section of the index file, the translation between sdfits and index rows, and provides the search gateway.

CNTM_INDEX::init

function CNTM_INDEX::init(_EXTRA=_EXTRA)

Keywords
_EXTRA
.

CNTM_INDEX::get_row_info_strct private

function CNTM_INDEX::get_row_info_strct()

Returns the specail structure needed for continuum data

Returns
cntm_row_info_strct structure

CNTM_INDEX::search_index

function CNTM_INDEX::search_index([start][, finish], SEARCH=SEARCH, [INDEX=long], [PROJECT=string], [FILE=string], [EXTENSION=long], [FIRSTROW=long], [NUMROWS=long], [STRIDE=long], [SOURCE=string], [PROCEDURE=string], [OBSID=string], [PROCSCAN=string], [PROCTYPE=string], [SCAN=long ], [PROCSEQN=long ], [E2ESCAN=long ], [POLARIZATION=string], [IFNUM=long ], [TRGTLONG=float], [TRGTLAT=float], [SIG=string], [CAL=string], [NSAVE=string])

This method searches the rows in the index file using the optional keywords. Not using any keywords returns all rows. Use of more then one keyword is like using an AND.

Returns
Array of structures, each element corresponding to a line of the index file that matches the search

Parameters
start
in, optional
long
where to start the range to search in
finish
in, optional
long
where to stop the range to search in

Keywords
SEARCH
.
INDEX
in, optional
long
What index # to search for
PROJECT
in, optional
string
What projects to search for
FILE
in, optional
string
What sdfits files to search for
EXTENSION
in, optional
long
What sdfits extension numbers to search for
FIRSTROW
in, optional
long
What sdfits row numbers to search for
NUMROWS
in, optional
long
What number of rows to search for
STRIDE
in, optional
long
What stride to search for
SOURCE
in, optional
string
What source names to search for
PROCEDURE
in, optional
string
What procecures to search for
OBSID
in, optional
string
What obsid to search for
PROCSCAN
in, optional
string
What procscan to search for
PROCTYPE
in, optional
string
What proctype to search for
SCAN
in, optional
long
What M&C scan numbers to search for
PROCSEQN
in, optional
long
What M&C procedure sequence numbers to search for
E2ESCAN
in, optional
long
What e2e scan numbers to search for (not yet supported)
POLARIZATION
in, optional
string
What polarizations to search for
IFNUM
in, optional
long
What if numbers to search for
TRGTLONG
in, optional
float
What target longitude to search for.
TRGTLAT
in, optional
float
What target latitude to search for.
SIG
in, optional
string
What sig states to search for
CAL
in, optional
string
What cal states to search for
NSAVE
in, optional
string
What nsaves to search for

CNTM_INDEX::update_file_with_scan

procedure CNTM_INDEX::update_file_with_scan, first_row, proj, file_name, ext, start_row, n_data, samplers, sigs, cals, pols

Appends row info to an index file, given a group of rows from sdfits files. Used for first loading in an sdfits file

Uses
CNTM_INDEX::parse_scan_info CNTM_INDEX::update_index_file

Parameters
first_row
in
struct
represents the first row in the sdfits file of the scan
proj
in
string
project for scan
file_name
in
string
file location
ext
in
long
extension location
start_row
in
long
where this scan starts in the extension
n_data
in
long
length of a continuum in this scan
samplers
in
array
array of sampler names used in this scan
sigs
in
array
array of unique signal states in scan
cals
in
array
array of unique cal states in scan
pols
in
array
array of polarizations for each sampler

CNTM_INDEX::parse_scan_info private

function CNTM_INDEX::parse_scan_info(first_row, proj, file_name, ext, start_row, n_data, unique_samplers, sigs, cals, sampler_pols)

Takes in information about a continuum scan, and converts that to several rows in the index file. A single scan may have several continua (or rows in index) depending on the switching type, receiver type, etc...

Parameters
first_row
in
struct
represents the first row in the sdfits file of the scan
proj
in
string
project for scan
file_name
in
string
file location
ext
in
long
extension location
start_row
in
long
where this scan starts in the extension, should be zero for the first scan
n_data
in
long
length of a continuum in this scan
unique_samplers
in
array
array of sampler names used in this scan
sigs
in
array
array of unique signal states in scan
cals
in
array
array of unique cal states in scan
sampler_pols
in
array
array of polarizations for each sampler returns array of structures representing new rows for the index file (all for just this scan)

CNTM_INDEX::check_file_properties private

function CNTM_INDEX::check_file_properties(file_name[, expanded], [/verbose])

Checks basic file properties to see if they agree with what the index file has listed.

Returns
0,1

Parameters
file_name
in
string
sdfits file to check
expanded
in, optional
boolean
has this file been expanded since its listing in the index file?

Keywords
verbose
in, optional
boolean
print out details of errors?

CNTM_INDEX::get_scan_info

function CNTM_INDEX::get_scan_info(scan_number[, file], count=variable, [/quiet])

Returns an array of structures that contains info about the scan number given, such as scan number, procedure name, number of integrations, ifs, etc.. One element in the array for each unique FILE value for all rows having that scan number (there is no TIMESTAMP available yet for continuum data).

Returns
array of structures containing info on scan, returns -1 on failure.

Parameters
scan_number
in
long
scan number information is queried for
file
in, optional
string
Limit the search for the scan number to a specific file name.

Keywords
count
out
variable
The number of elements of the returned array of scan_info structures.
quiet
in, optional
boolean
When set, suppress most error messages.

CNTM_INDEX::get_file_properties_in_index private

procedure CNTM_INDEX::get_file_properties_in_index, file_name, extensions, num_rows

Finds the number and sizes of extensions for a file listed in the index file, according to the index file.

Uses
INDEX_FILE::search_for_row_info

Parameters
file_name
in
string
file whose properties are being queried
extensions
out
variable
number of extensions for this file
num_rows
out
variable
array showing how many rows in each extension for this file


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