Saving SED Data in Iris
Iris Threads
Overview
Synopsis:
This thread describes how to save the SED data currently displayed in the Iris Visualizer to a file in one of the supported VOT or FITS formats, as well as record fitting sessions and fitted model parameters to file. Saved SED data and fitting session files may be read back into the application at a later time to restore the analysis session.
Last Update: 15 Jun 2012 - updated for Iris 1.1
Saving SED Data to File
The X and Y (spectral coordinate and flux) data values comprising the currently displayed SED data segment(s) in the Iris Visualizer, along with associated metadata, may be saved to a file in one of the following formats:
- VOTable (.vot) - XML standard for the interchange of data represented as a set of tables. Consists of an unordered set of rows, each of a uniform structure, as specified in the table metadata. Each row in a table is a sequence of table cells, and each of these contains either a primitive data type, or an array of such primitives.
- FITS (.fits) - consists of a series of Header Data Units (HDUs), each containing two components: an ASCII text header and the binary data. The header contains a series of header keywords that describe the data in a particular HDU and the data component immediately follows the header.
In order to write your SED data to file, simply select one of the two "Save" menu options in the SED Builder window: use the one at the top to save all open SED segments together, or the "Save" option in the "Segments" section to save a single segment to file. Doing so will open a small window where you can enter a filename and file format, VOT or FITS.
Iris copies the metadata from the input SED file to the saved output file. When multiple input files are plotted together in the main display, the output file contains the merged metadata from all input files together. The goal is to allow the SED builder to gather separate SED data segments from various places and save them together as an aggregate SED which complies with the IVOA Spectrum V1.03 model.
Saved SED data may be opened in a future session of Iris simply by selecting the Load File icon on the Iris desktop, and then using the Location on Disk option in the data-loading window which opens.
Saving Fitted Model Data
After fitting a model to SED data in Iris, the model X and Y data arrays may be saved separately from the source data by selecting the "Save" option in the Iris Fit window after finalizing a fit, and prior to exiting the fitting session with the "Dismiss" button (see the "Modeling and Fitting SED Data" section of the Iris How-to Guide for details). Saved custom fit parameters may be restored in a future Iris session by opening the saved CDB-format file from within the Iris Fit window, using the File->Read from File menu option.
Selecting File -> Write to text file, instead, saves the model data to a human-readable text file. The saved model values contained in such a text file would appear in the format shown below.
% more bpl_active_comps.txt File: Sed0 Fri Jun 15 16:35:05 EDT 2012 Iris 1.1 TARGNAME: 3C 273 Fit parameters: Final fit statistic: 0.01153118077229248 Reduced statistic: nan Probability [Q-value]: nan Degrees of freedom: 447.0 Data points: 450 Last function evaluation: 342 Component 1: brokenpowerlaw F refer = 5000.0 angstroms ampl = 0.008196716 index1 = 0.040695254 index2 = -0.18412833
History
08 Aug 2011 | updated for Iris Beta 2.5 |
25 Sep 2011 | updated for Iris 1.0 |
15 Jun 2012 | updated for Iris 1.1 |