|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox/io z_index__define.pro
INDEX_FILE | +-z_index
Child class of INDEX_FILE, contains special functionality for dealing with zpectrometer data. This mostly entails the translation of sdfits-like zpectrometer 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 zpectrometer fits and index rows, translation from zpectrometer row to index rows, and provides the search gateway.
Fields inherited from INDEX_FILE: | ||||||||||||||||||||||
|
Routine Summary 15 routines |
function Z_INDEX::init(_EXTRA=_EXTRA) | |
Child class of INDEX_FILE, contains special functionality for dealing with zpectrometer data. |
procedure Z_INDEX::cleanup | private |
Class Destructor - cleanup resources |
function Z_INDEX::get_row_info_strct() | private |
Returns the special structure needed for zpectrometer data |
function Z_INDEX::search_index([start][, finish], [SEARCH=array of longs], [INDEX=long], [PROJECT=string], [FILE=string], [EXTENSION=long], [ROW=long], [SOURCE=string], [PROCEDURE=string], [MC_SCAN=long], [SUBSCAN=long], [SCAN=long], [BEINDEX=long], [AZIMUTH=string], [ELEVATION=string], [LONGITUDE=string], [LATITUDE=string], [TIMESTAMP=string], [EXPOSURE=double], [TRCKBEAM=integer], [OBSFREQ=string], [DIODE=integer], [SUBREF=integer]) | |
This method searches the rows in the index file using the optional keywords. |
function Z_INDEX::parse_extension_rows(rows, proj, file_name, ext, missing, virtuals, start) | |
Translates raw sdfits-like zpectrometer rows into the rows to be written to the index file. |
procedure Z_INDEX::update_file, ext_rows, proj, file_name, ext, missing, virtuals, start_row | |
Appends row info to an index file, given a group of rows from zpectrometer sdfits-like files. |
function Z_INDEX::get_scan_info(scan_number[, file], count=variable, [/quiet]) | |
Returns a structure or array of structures that contains info about the scan number given, such as scan number, procedure name, number of integrations, ifs, etc. |
procedure Z_INDEX::update_with_spectra, zdc, file_name, extension, start_row | |
Appends row info to an index file, given a group of zpectrometer data containers. |
procedure Z_INDEX::replace_with_spectrum, index, zdc, file_name, extension, row_num | |
Replaces a line specified by index number in the index rows section, with information derived from a given zpectrometer data container, and that data's location (sdfits file, ext, row) Used when a row has been rewritten in an sdfits file with a new spectra (via nsave, for example). |
function Z_INDEX::spectrum_to_info(zdc, index, file_name, extension, row_num) | private |
Translates information in a single zpectrometer data container, along with this data containers location in the sdfits file and index file, into a line in the rows section of the index file |
function Z_INDEX::spectra_to_info(spectra, file_name, extension, start) | private |
Translates spectral line data containers directly into the rows to be written to index file. |
procedure Z_INDEX::set_debug_on | |
Makes object verbose |
procedure Z_INDEX::set_debug_off | |
Makes object quiet |
procedure Z_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. |
procedure z_index__define | private |
Defines class structure |
Routine Details |
Z_INDEX::init |
function Z_INDEX::init(_EXTRA=_EXTRA) |
Child class of INDEX_FILE, contains special functionality for dealing with zpectrometer data. This mostly entails the translation of sdfits-like zpectrometer 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 zpectrometer fits and index rows, translation from zpectrometer row to index rows, and provides the search gateway.
Keywords | |
_EXTRA |
. |
Z_INDEX::cleanup | private |
procedure Z_INDEX::cleanup |
Class Destructor - cleanup resources
Z_INDEX::get_row_info_strct | private |
function Z_INDEX::get_row_info_strct() |
Returns the special structure needed for zpectrometer data
Z_INDEX::search_index |
function Z_INDEX::search_index([start][, finish], [SEARCH=array of longs], [INDEX=long], [PROJECT=string], [FILE=string], [EXTENSION=long], [ROW=long], [SOURCE=string], [PROCEDURE=string], [MC_SCAN=long], [SUBSCAN=long], [SCAN=long], [BEINDEX=long], [AZIMUTH=string], [ELEVATION=string], [LONGITUDE=string], [LATITUDE=string], [TIMESTAMP=string], [EXPOSURE=double], [TRCKBEAM=integer], [OBSFREQ=string], [DIODE=integer], [SUBREF=integer]) |
This method searches the rows in the index file using the optional keywords. Not using any keywords returns all rows. Multiple keywords are combined with a logical AND.
Parameters | |
start |
where to start the range to search in |
finish |
where to stop the range to search in |
Z_INDEX::parse_extension_rows |
function Z_INDEX::parse_extension_rows(rows, proj, file_name, ext, missing, virtuals, start) |
Translates raw sdfits-like zpectrometer rows into the rows to be written to the index file.
Z_INDEX::update_file |
procedure Z_INDEX::update_file, ext_rows, proj, file_name, ext, missing, virtuals, start_row |
Appends row info to an index file, given a group of rows from zpectrometer sdfits-like files. Used for first loading in a zpectrometer file
Z_INDEX::get_scan_info |
function Z_INDEX::get_scan_info(scan_number[, file], count=variable, [/quiet]) |
Returns a structure or 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 TIMESTAMP value for all rows having that scan number.
Parameters | |
scan_number |
scan number information is queried for |
file |
Limit the search for the scan number to a specific file name. |
Keywords | |
count |
The number of elements of the returned array of scan_info structures. |
quiet |
When set, suppress most error messages. |
Z_INDEX::update_with_spectra |
procedure Z_INDEX::update_with_spectra, zdc, file_name, extension, start_row |
Appends row info to an index file, given a group of zpectrometer data containers. Used for when these data have been written to an sdifts file.
Z_INDEX::replace_with_spectrum |
procedure Z_INDEX::replace_with_spectrum, index, zdc, file_name, extension, row_num |
Replaces a line specified by index number in the index rows section, with information derived from a given zpectrometer data container, and that data's location (sdfits file, ext, row) Used when a row has been rewritten in an sdfits file with a new spectra (via nsave, for example).
Z_INDEX::spectrum_to_info | private |
function Z_INDEX::spectrum_to_info(zdc, index, file_name, extension, row_num) |
Translates information in a single zpectrometer data container, along with this data containers location in the sdfits file and index file, into a line in the rows section of the index file
Z_INDEX::spectra_to_info | private |
function Z_INDEX::spectra_to_info(spectra, file_name, extension, start) |
Translates spectral line data containers directly into the rows to be written to index file. No specail coding here, since an index file was used to create this data container at some point. This assumes that the spectra have been recenlty appended to the file in param file_name.
Z_INDEX::set_debug_on |
procedure Z_INDEX::set_debug_on |
Makes object verbose
Z_INDEX::set_debug_off |
procedure Z_INDEX::set_debug_off |
Makes object quiet
Z_INDEX::get_file_properties_in_index | private |
procedure Z_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.
z_index__define | private |
procedure z_index__define |
Defines class structure