|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./toolbox/io File index_file__define.pro
Base Class used for profiling contents of sdfits files inside an ASCII file. File has two main sections: the header section contains generic info, while the rows section is a mapping of 'data containers' (spectra or continua) to their location in sdfits files. See UML for all IO Classes, or INDEX UML for just index classes.
| Routine Summary 22 routines |
procedure index_file__define | |
Base Class used for profiling contents of sdfits files inside an ASCII file. |
function INDEX_FILE::init([file_name=string], [version=string]) | |
Class Constructor - flags and constants set here. |
procedure INDEX_FILE::set_file_name, file_name | |
Sets file name of index file |
procedure INDEX_FILE::set_file_path, file_path | |
Sets path to index file |
function INDEX_FILE::get_file_name() | |
Retrieves file name of index file |
function INDEX_FILE::is_file_loaded() | |
Finds if object contains index file's contents in memory |
procedure INDEX_FILE::set_version, version | |
Sets version number of I/O modules |
function INDEX_FILE::get_version() | |
Retrieves the version number of the I/O module using this object |
procedure INDEX_FILE::list, rows=rows, verbose=verbose | |
Prints the rows section of the index file for those rows specified |
procedure INDEX_FILE::read_file, [file_name=string] | |
Loads contents of index file into memory. |
function INDEX_FILE::get_header_value(keyword[, status]) | |
Retrieves values from the header section of the index file. |
procedure INDEX_FILE::list_header | |
Prints contents of index header section |
function INDEX_FILE::search_for_row_info(_EXTRA=_EXTRA) | |
Given the search parameters used by search_index, returns the structures representing those rows in the index file |
function INDEX_FILE::search_row_location(_EXTRA=_EXTRA) | |
Given the search parameters used by search_index, returns the structures representing the locations of each row in the index file in their sdfits files |
procedure INDEX_FILE::new_file, observer, backend, tcal_table, file_path, [file_name=string] | |
Creates a new index file, initializing the header section |
function INDEX_FILE::get_column_values(column, [/unique]) | |
Retrieves values found for a column in the index file (all the files for exampler). |
procedure INDEX_FILE::write_index_file, header_strings, [rows_info=array] | |
Takes a given header section and list of rows, and writes them to a file |
procedure INDEX_FILE::update_index_file, rows_info | |
Appends new rows to the end of the rows section of index file |
function INDEX_FILE::check_index_with_reality([expanded], [/verbose]) | |
Checks the contents of the index file with the actual charcteristics of the files it lists, looking for inconsistencies |
function INDEX_FILE::check_io_version_number() | |
Compares io version number found in index file with number coded in object |
procedure INDEX_FILE::set_debug_on | |
Makes object verbose |
procedure INDEX_FILE::set_debug_off | |
Makes object quiet |
| Routine Details |
index_file__define |
procedure index_file__define |
Base Class used for profiling contents of sdfits files inside an ASCII file. File has two main sections: the header section contains generic info, while the rows section is a mapping of 'data containers' (spectra or continua) to their location in sdfits files. See UML for all IO Classes, or INDEX UML for just index classes.
INDEX_FILE::init |
function INDEX_FILE::init([file_name=string], [version=string]) |
Class Constructor - flags and constants set here.
| Keywords | |
|
file_name |
file name of index file |
|
version |
version number |
INDEX_FILE::set_file_name |
procedure INDEX_FILE::set_file_name, file_name |
Sets file name of index file
| Parameters | |
|
file_name |
name of index file |
INDEX_FILE::set_file_path |
procedure INDEX_FILE::set_file_path, file_path |
Sets path to index file
| Parameters | |
|
file_path |
path to index file |
INDEX_FILE::get_file_name |
function INDEX_FILE::get_file_name() |
Retrieves file name of index file
INDEX_FILE::is_file_loaded |
function INDEX_FILE::is_file_loaded() |
Finds if object contains index file's contents in memory
INDEX_FILE::set_version |
procedure INDEX_FILE::set_version, version |
Sets version number of I/O modules
| Parameters | |
|
version |
version number |
INDEX_FILE::get_version |
function INDEX_FILE::get_version() |
Retrieves the version number of the I/O module using this object
INDEX_FILE::list |
Prints the rows section of the index file for those rows specified
| Keywords | |
|
rows |
the row numbers which are to be printed |
|
verbose |
set to true and ALL info on each row is printed, otherwise just select columns printed |
INDEX_FILE::read_file |
procedure INDEX_FILE::read_file, [file_name=string] |
Loads contents of index file into memory. Sets file loaded flag to True.
| Keywords | |
|
file_name |
file name of index file |
INDEX_FILE::get_header_value |
Retrieves values from the header section of the index file. Problem: why is this class not using a key_value_parser object?
| Parameters | |
|
keyword |
the keyword whose value is needed |
|
status |
was the keyword found? |
INDEX_FILE::list_header |
procedure INDEX_FILE::list_header |
Prints contents of index header section
INDEX_FILE::search_for_row_info |
function INDEX_FILE::search_for_row_info(_EXTRA=_EXTRA) |
Given the search parameters used by search_index, returns the structures representing those rows in the index file
| Keywords | |
|
_EXTRA |
. |
INDEX_FILE::search_row_location |
function INDEX_FILE::search_row_location(_EXTRA=_EXTRA) |
Given the search parameters used by search_index, returns the structures representing the locations of each row in the index file in their sdfits files
| Keywords | |
|
_EXTRA |
. |
INDEX_FILE::new_file |
procedure INDEX_FILE::new_file, observer, backend, tcal_table, file_path, [file_name=string] |
Creates a new index file, initializing the header section
| Keywords | |
|
file_name |
name of index file can be specified here |
INDEX_FILE::get_column_values |
Retrieves values found for a column in the index file (all the files for exampler).
| Parameters | |
|
column |
name of column to query |
| Keywords | |
|
unique |
just return the unique values for this column? |
INDEX_FILE::write_index_file |
procedure INDEX_FILE::write_index_file, header_strings, [rows_info=array] |
Takes a given header section and list of rows, and writes them to a file
| Parameters | |
|
header_strings |
string array of key-value pairs for header section |
| Keywords | |
|
rows_info |
array of structures representing rows for index file |
INDEX_FILE::update_index_file |
procedure INDEX_FILE::update_index_file, rows_info |
Appends new rows to the end of the rows section of index file
| Parameters | |
|
rows_info |
array of structures representing rows to be appended |
INDEX_FILE::check_index_with_reality |
function INDEX_FILE::check_index_with_reality([expanded], [/verbose]) |
Checks the contents of the index file with the actual charcteristics of the files it lists, looking for inconsistencies
| Parameters | |
|
expanded |
is it allowable that an sdfits file has grown since this index file was created? |
| Keywords | |
|
verbose |
print details of all errors? |
INDEX_FILE::check_io_version_number |
function INDEX_FILE::check_io_version_number() |
Compares io version number found in index file with number coded in object
INDEX_FILE::set_debug_on |
procedure INDEX_FILE::set_debug_on |
Makes object verbose
INDEX_FILE::set_debug_off |
procedure INDEX_FILE::set_debug_off |
Makes object quiet