|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox/io io_sdfits_writer__define.pro
IO | +-IO_SDFITS | +-IO_SDFITS_LINE | +-io_sdfits_writer
IO_SDFITS_WRITER is intended for use by users who wish to write spectral line data to sdfits. See UML for all IO Classes, or IO_SDFITS UML for just the line and continuum sdfits classes.
Routine Summary 11 routines |
procedure io_sdfits_writer__define | |
IO_SDFITS_WRITER is intended for use by users who wish to write spectral line data to sdfits. |
procedure IO_SDFITS_WRITER::set_output_file, file_name | |
Sets the name of the output file, and if the file exists, creates an sdfits object for it |
procedure IO_SDFITS_WRITER::set_file, file_name, file_path=string, index_name=string | |
Sets the file which this object will exclusively be writing to and reading from. |
procedure IO_SDFITS_WRITER::nsave_spectrum, spectrum, nsave[, status] | |
Writes a single spectrum to the sdfits file, saving an NSAVE number in the index file corresponding to this spectrum |
function IO_SDFITS_WRITER::get_nsave_index(nsave) | |
procedure IO_SDFITS_WRITER::overwrite_spectrum, index, spectrum | |
procedure IO_SDFITS_WRITER::write_spectra, spectra, file_name=string | |
Writes given spectra to an sdfits file. |
procedure IO_SDFITS_WRITER::set_sprotect_on | |
Sets index file so nsave numbers cannot be overwritten |
procedure IO_SDFITS_WRITER::set_sprotect_off | |
Sets index file so nsave numbers can be overwritten |
function IO_SDFITS_WRITER::get_sprotect() | |
Retrieves the state of nsave protection |
function IO_SDFITS_WRITER::is_gbtidl_sdfits(version) | |
Does the passed in version string start with 'GBTIDL'? Only fits files with primary header keyword 'SDFITVER' values that are of the form 'GBTIDL ver#. |
Routine Details |
io_sdfits_writer__define |
procedure io_sdfits_writer__define |
IO_SDFITS_WRITER is intended for use by users who wish to write spectral line data to sdfits. See UML for all IO Classes, or IO_SDFITS UML for just the line and continuum sdfits classes.
IO_SDFITS_WRITER::set_output_file |
procedure IO_SDFITS_WRITER::set_output_file, file_name |
Sets the name of the output file, and if the file exists, creates an sdfits object for it
Parameters | |
file_name |
full path name to the file to write to |
IO_SDFITS_WRITER::set_file |
procedure IO_SDFITS_WRITER::set_file, file_name, file_path=string, index_name=string |
Sets the file which this object will exclusively be writing to and reading from. Acts much like IO_SDFITS::set_file in the way it forces creation of a new index file
Parameters | |
file_name |
file name (full path or not) of file to use exclusively |
Keywords | |
file_path |
file path where file_name is found |
index_name |
name to use for the index file |
IO_SDFITS_WRITER::nsave_spectrum |
procedure IO_SDFITS_WRITER::nsave_spectrum, spectrum, nsave[, status] |
Writes a single spectrum to the sdfits file, saving an NSAVE number in the index file corresponding to this spectrum
IO_SDFITS_WRITER::get_nsave_index |
function IO_SDFITS_WRITER::get_nsave_index(nsave) |
Parameters | |
nsave |
. |
IO_SDFITS_WRITER::overwrite_spectrum |
procedure IO_SDFITS_WRITER::overwrite_spectrum, index, spectrum |
Parameters | |
index |
. |
spectrum |
. |
IO_SDFITS_WRITER::write_spectra |
procedure IO_SDFITS_WRITER::write_spectra, spectra, file_name=string |
Writes given spectra to an sdfits file. The spectra are translated to their proper form for sdfits, and the rows are written to the output file in extensions based off the data size of each spectrum.
Parameters | |
spectra |
array of spectrum data containers to write to disk |
Keywords | |
file_name |
if passed in, this is the name of the output file |
IO_SDFITS_WRITER::set_sprotect_on |
procedure IO_SDFITS_WRITER::set_sprotect_on |
Sets index file so nsave numbers cannot be overwritten
IO_SDFITS_WRITER::set_sprotect_off |
procedure IO_SDFITS_WRITER::set_sprotect_off |
Sets index file so nsave numbers can be overwritten
IO_SDFITS_WRITER::get_sprotect |
function IO_SDFITS_WRITER::get_sprotect() |
Retrieves the state of nsave protection
IO_SDFITS_WRITER::is_gbtidl_sdfits |
function IO_SDFITS_WRITER::is_gbtidl_sdfits(version) |
Does the passed in version string start with 'GBTIDL'? Only fits files with primary header keyword 'SDFITVER' values that are of the form 'GBTIDL ver#.#' are allowed to be written to. This is the value that is used when GBTIDL creates an sdfits file.
Parameters | |
version |
string value for the keyword 'SDFITVER' in primary header |