|
User Documentation |
||||||||
| prev file | next file | |||||||||
| SUMMARY: fields | routine DETAILS: routine | |||||||||
./toolbox/io File fits__define.pro
Provides basic interface for reading and writing fits files
| Routine Summary 20 routines |
procedure fits__define | |
Provides basic interface for reading and writing fits files |
function FITS::init([file_name]) | |
Class Constructor - if file name is passed and it exists, the properties of this file are determined and stored |
procedure FITS::update_properties | |
Determins properties of file and last extension, and sotres them |
procedure FITS::update_file_properties | |
Determines and stores the fits files number of extenions, names & types of each extension, and more info on each extension |
procedure FITS::update_last_extension_properties | |
Determines and stores info on the last extension of the file |
procedure FITS::set_file_name, file_name | |
Sets the full path name of the fits file |
function FITS::get_full_file_name() | |
Retrieves the full path name of the fits file |
function FITS::get_file_name() | |
Retrieves just the file name of the fits file (no path) |
function FITS::file_exists([file_name=string]) | |
Checks if fits file represented by object (or keyword) exist on disk |
function FITS::get_number_extensions() | |
Returns the number of extensions of this fits file |
function FITS::get_extension_type(ext_num) | |
Returns the type of the given extension |
function FITS::get_extension_name(ext_num) | |
Returns the name of the given extension |
function FITS::get_ext_num_rows(ext_num) | |
REturns the number of rows for this extension |
function FITS::get_rows([ext=long], [row_nums=array]) | |
Returns the contents of the gvein extension and row numbers for this fits file. |
procedure FITS::list_extension_header | |
Prints the contents of the header of the last read extension |
function FITS::get_extension_header_value(keyword) | |
Retrieves the value of a keyword in the last read extension |
procedure FITS::create_sdfits_file, file_name | |
Creates a new blank fits file, with primary header info tagged for Green Bank |
procedure FITS::write_rows_new_extension, rows, virtuals | |
Appends a new extension to fits file and adds rows to it. |
procedure FITS::append_rows_to_extension, rows | |
Appends rows to last extension in fits file |
function FITS::make_header_array(virtuals) | |
Converts a structure containing keyword-values and returns a string array suitable for using to add to extension header |
| Routine Details |
fits__define |
procedure fits__define |
Provides basic interface for reading and writing fits files
FITS::init |
function FITS::init([file_name]) |
Class Constructor - if file name is passed and it exists, the properties of this file are determined and stored
| Parameters | |
|
file_name |
full path name to fits file |
FITS::update_properties |
procedure FITS::update_properties |
Determins properties of file and last extension, and sotres them
FITS::update_file_properties |
procedure FITS::update_file_properties |
Determines and stores the fits files number of extenions, names & types of each extension, and more info on each extension
FITS::update_last_extension_properties |
procedure FITS::update_last_extension_properties |
Determines and stores info on the last extension of the file
FITS::set_file_name |
procedure FITS::set_file_name, file_name |
Sets the full path name of the fits file
| Parameters | |
|
file_name |
full path name of fits file |
FITS::get_full_file_name |
function FITS::get_full_file_name() |
Retrieves the full path name of the fits file
FITS::get_file_name |
function FITS::get_file_name() |
Retrieves just the file name of the fits file (no path)
FITS::file_exists |
function FITS::file_exists([file_name=string]) |
Checks if fits file represented by object (or keyword) exist on disk
| Keywords | |
|
file_name |
full path name of file to check |
FITS::get_number_extensions |
function FITS::get_number_extensions() |
Returns the number of extensions of this fits file
FITS::get_extension_type |
function FITS::get_extension_type(ext_num) |
Returns the type of the given extension
| Parameters | |
|
ext_num |
extension number in question |
FITS::get_extension_name |
function FITS::get_extension_name(ext_num) |
Returns the name of the given extension
| Parameters | |
|
ext_num |
extension number in question |
FITS::get_ext_num_rows |
function FITS::get_ext_num_rows(ext_num) |
REturns the number of rows for this extension
| Parameters | |
|
ext_num |
extension number |
FITS::get_rows |
Returns the contents of the gvein extension and row numbers for this fits file. Also updates properties of this extension that was read.
| Keywords | |
|
ext |
extension to read, default = 1 |
|
row_nums |
array of row numbers to read, default=all |
FITS::list_extension_header |
procedure FITS::list_extension_header |
Prints the contents of the header of the last read extension
FITS::get_extension_header_value |
function FITS::get_extension_header_value(keyword) |
Retrieves the value of a keyword in the last read extension
| Parameters | |
|
keyword |
extension header keyword |
FITS::create_sdfits_file |
procedure FITS::create_sdfits_file, file_name |
Creates a new blank fits file, with primary header info tagged for Green Bank
| Parameters | |
|
file_name |
full path name of fits file to create |
FITS::write_rows_new_extension |
Appends a new extension to fits file and adds rows to it. Additional keywords are added to the extesnion header, and fits files properties are updated.
| Parameters | |
|
rows |
array of structures that mirror rows to be writtein |
|
virtuals |
keywords to be written to new extension (other then column specs) |
FITS::append_rows_to_extension |
procedure FITS::append_rows_to_extension, rows |
Appends rows to last extension in fits file
| Parameters | |
|
rows |
array of structs mirroring rows to be appended |
FITS::make_header_array |
function FITS::make_header_array(virtuals) |
Converts a structure containing keyword-values and returns a string array suitable for using to add to extension header
| Parameters | |
|
virtuals |
structure cointing keyword-values for header |