You are here: IRS>SmartDoc Web>DataStructures (04 Nov 2008, DonBarry)

SMART File Type and Data Structure Conversion

The tables here are a reference to currently available file type and data structure conversion in SMART.

Descriptions of the actual data structures are at : Data Structures

NOTE : The "Minimum Syntax" column lists only the minimum IDL syntax needed to run the routine.
For a full listing of all parameters and keyword syntax used by SMART procedures please see the Procedure Headers?.

*Original IDEA Software*

Program Name Minimum Syntax Program Description
   
ascii2yaaar? YAAAR = ascii2yaaar("file_in") Reads ASCII table (YAAAR format) to IDL variables in YAAAR format
writeascii? writeascii, YAAAR, "file_out" Writes ASCII table (YAAAR format) from IDL variables in YAAAR format
sap_rfits? status = sap_rfits("file_in", YAAAR) Reads FITS table (YAAAR format) to IDL variables in YAAAR format
sap_wfits? status = sap_wfits("file_out", YAAAR) Writes FITS table (YAAAR format) from IDL variables in YAAAR format

*!AstroLib*

Program Name Minimum Syntax Program Description
   
|readfits |data = readfits("file_in", header) |Reads image/spectral FITS file to IDL variables
Extended (multi-plane) file data can be read with "EXTEN_NO" keyword
NOTE : When reading a spectral FITS file this command
will ignore any secondary header. | |writefits |writefits, "file_out", data, header |Writes image/spectral FITS file from IDL variables
Use "/append" keyword for multi-plane files.
NOTE : When writing a spectral FITS file this command
will ignore any secondary header. | |rdfits_struct |rdfits_struct, "file_in", struct |Reads image/spectral FITS file to IDL variables
Extended (multi-plane) file data returned as IDL data structure.
NOTE : When reading a spectral FITS file this command
will ignore any secondary header. |

*SMART Specific*

Program Name Minimum Syntax Program Description
   
sm_spfits2yaaar? YAAAR = sm_spfits2yaaar("file_in") Reads a spectral FITS file to a YAAAR format set of IDL variables
sm_yaaar2spfits? sm_yaaar2spfits, YAAAR, "file_out" Writes a spectral FITS file from a YAAAR format set of IDL variables
sm_spfits2isapfits? sm_spfits2isapfits, "file_in", "file_out" Converts a spectral FITS file to an ISAP FITS table file
sm_isapfits2spfits? sm_isapfits2spfits, "file_in", "file_out" Converts an ISAP FITS table file to a spectral FITS file
|sm_ipac2fits? |sm_ipac2fits, "file_in" |Converts an IPAC spectral table file to a FITS table file
(Same name at output, suffix changed from ".tbl" to ".fits".) | |sm_rd_spfits? |array = sm_rd_spfits("file_in") |Reads a spectral FITS file to IDL variable array with one row
per wavelength element or SMART IRS structure if relevant keyword is set. | |sm_wr_spfits? |sm_wr_spfits, "file_out", sp_data, len_array, |Writes a spectral FITS file from IDL variable array
with one row per wavelength element |
sm_sap_rfits_ptr? sm_sap_rfits_ptr, "file_in", pointer_out, Reads an ISAP FITS table file and creates a pointer from the data read
irs2isap? YAAAR = irs2isap(irs, status) Converts an IRS format IDL structure to a YAAAR format IDL structure
isap2irs? irs = isap2irs(YAAAR, status) Converts a YAAAR format IDL structure to an IRS format IDL structure
|sm_make_3plane.pl |sm_make_3plane "file_out" "header" "data" "unc" "bmask" |PERL Script - Combines seperate elements
(header, data, uncertainty/noise and bmask) to make a 3 plane data file.
"header" can be any valid file who's header is then placed at the head of the "data" plane. Omitting it leaves the data plane original header in place. |

 
This site is powered by FoswikiCopyright © 2002-2009 by the Cornell IRS Team.
Send feedback. We use Foswiki.