|
User Documentation |
|||||||||
| prev file | next file | ||||||||||
| SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox/io io_sdfits_line__define.pro
IO | +-IO_SDFITS | +-io_sdfits_line
IO_SDFITS_LINE is intended for end users wishing to work with spectral line data. It's the child class of IO_SDFITS used for reading, writing, navigating sdfits spectrual line files, and for translating their info to spectrum data containers. See UML for all IO Classes, or IO_SDFITS UML for just the line and continuum sdfits classes.
| Routine Summary 10 routines |
procedure io_sdfits_line__define | |
IO_SDFITS_LINE is intended for end users wishing to work with spectral line data. |
procedure IO_SDFITS_LINE::cleanup | |
Class destructor |
procedure IO_SDFITS::update_index_obj_with_fits_obj, index_obj, fits_obj | |
Given an object that manages a fits file, and an object for the index file, use the fits object to update the index object. |
function IO_SDFITS_LINE::get_spectra([count][, indicies], [_EXTRA=_EXTRA], useflag=useflag, skipflag=skipflag) | |
This function searches the index file using the keyword parameters passed into it, reads the appropriate parts of the sdfits files, and tranlates this data into spectrum structures, which are returned. |
procedure IO_SDFITS_LINE::load_new_sdfits_rows | |
Determines if any files have grown, and appends new rows to the index file |
function IO_SDFITS_LINE::get_online_files([newest_acs][, newest_dcr][, newest_sp][, newest_zpec][, status]) | |
Finds the latest files in the online directory (reads status file produced by online sdfits). |
function IO_SDFITS_LINE::get_online_infos([newest_acs][, newest_dcr][, newest_sp][, newest_zpec][, status]) | |
Finds the latest online info structs for all of the lines in the current online sdfits info file. |
procedure IO_SDFITS_LINE::set_online, file_name, [test=bool] | |
Connects to a file in the online directory, and sets up object so that every time a query of the index file is done, the update method is called. |
procedure IO_SDFITS_LINE::update | |
Reads the new lines in an index file into memory, if the size of the index file has changed. |
function IO_SDFITS_LINE::get_index_class_name() | |
Check on the existance of a lock file. |
| Routine Details |
| io_sdfits_line__define |
procedure io_sdfits_line__define |
IO_SDFITS_LINE is intended for end users wishing to work with spectral line data. It's the child class of IO_SDFITS used for reading, writing, navigating sdfits spectrual line files, and for translating their info to spectrum data containers. See UML for all IO Classes, or IO_SDFITS UML for just the line and continuum sdfits classes.
| IO_SDFITS_LINE::cleanup |
procedure IO_SDFITS_LINE::cleanup |
Class destructor
| IO_SDFITS::update_index_obj_with_fits_obj |
procedure IO_SDFITS::update_index_obj_with_fits_obj, index_obj, fits_obj |
Given an object that manages a fits file, and an object for the index file, use the fits object to update the index object. Avoids making the costly effort of reading the DATA column from the fits file.
| Parameters | |
|
index_obj |
object representing an index file |
|
fits_obj |
object representing a fits file |
| IO_SDFITS_LINE::get_spectra |
function IO_SDFITS_LINE::get_spectra([count][, indicies], [_EXTRA=_EXTRA], useflag=useflag, skipflag=skipflag) |
This function searches the index file using the keyword parameters passed into it, reads the appropriate parts of the sdfits files, and tranlates this data into spectrum structures, which are returned.
| Keywords | |
|
_EXTRA |
see search_for_row_info for more info |
|
useflag |
. |
|
skipflag |
. |
| IO_SDFITS_LINE::load_new_sdfits_rows |
procedure IO_SDFITS_LINE::load_new_sdfits_rows |
Determines if any files have grown, and appends new rows to the index file
| IO_SDFITS_LINE::get_online_files |
function IO_SDFITS_LINE::get_online_files([newest_acs][, newest_dcr][, newest_sp][, newest_zpec][, status]) |
Finds the latest files in the online directory (reads status file produced by online sdfits).
| IO_SDFITS_LINE::get_online_infos |
function IO_SDFITS_LINE::get_online_infos([newest_acs][, newest_dcr][, newest_sp][, newest_zpec][, status]) |
Finds the latest online info structs for all of the lines in the current online sdfits info file.
| IO_SDFITS_LINE::set_online |
procedure IO_SDFITS_LINE::set_online, file_name, [test=bool] |
Connects to a file in the online directory, and sets up object so that every time a query of the index file is done, the update method is called. This depends on another process(es) that should be updating the sdfits and index files for the current project.
| Parameters | |
|
file_name |
base or full filename to connect to |
| Keywords | |
|
test |
if true, this is a test, and the online directory does not need to be visible |
| IO_SDFITS_LINE::update |
procedure IO_SDFITS_LINE::update |
Reads the new lines in an index file into memory, if the size of the index file has changed. Uses a lock file since other processes might be reading/writing the index file.
| IO_SDFITS_LINE::get_index_class_name |
function IO_SDFITS_LINE::get_index_class_name() |
Check on the existance of a lock file. If it exists, then this likely means that the on-line filler is currently writing to this file. In that case, a message is printed out informing the user that the online information may not be up to date.