SMART Provided Scripts

A number of scripts are provided with SMART for various purposes. These are kept in the directories:

  • IDL Scripts : smart/scripts/pro
  • PERL Scripts : smart/scripts/perl

Script Directory Description
make_3plane.pro pro Creates a 3-plane FITS file from a one-plane BCD image, uncertainty data, and error file. This version runs in IDL.
sc_bcd_coadd.pro pro Uses sm_fair_coadd to coadd BCD images that are inputted via pointer array. Only images with the same AOR are added.
sc_bcd_diff.pro pro Accepts as input an array of BCD images and differences each image from others with the same AOR and field of view.
It is recommended to run sc_bcd_coadd first.
sc_bcd_diff_nod.pro pro Takes the difference between a BCD image and its nodded version. Both must be in the array provided.
The script automatically finds matching AORs and FOVs from the input array.
sc_ext_tapered.pro pro Performs Tapered column extraction on a series of images.
sc_ext_full.pro pro Performs full extraction on a series of images.
sc_ext_wrapper.pro pro This is a wrapper script for sc_ext_col_gauss. It processes each AOR separately, thus avoiding known memory problems in sc_ext_col_gauss.
sc_merge_aar.pro pro Merges all BCDs provided in the input array that are of the same target/position.
sc_mergeall.pro pro Takes as input an array of YAAAR files and merges them into one file. This is a script equivalent of gui_mergeall.
sc_phot.pro pro Processes an input array of IAAR files and produces an array of structures containing their photometry results.
sc_read_fits_bcd.pro pro Reads in a directory of FITS BCD files and creates an in-memory array containing the FITS files.
Note that all files are converted to 3-plane, with zeroed bitmasks and uncertainties if they do not exist in the FITS files.
sc_read_iaar.pro pro Reads in a directory (either specified or defaults) of either SMART-ISAP FITS files or XDR files (specified by keywords)
and returns a pointer array containing the data.
sc_write_fits_bcd.pro pro Writes an array of FITS files to a specified directory. Uses the filename from the data.
sc_write_iaar.pro pro Writes an array of IAAR files to a specified directory. Uses the correct format for SMART.
The filenames are obtained by extracting the AOR number, exposure number, and DCE number from the data passed in.
sc_zodi.pro pro Obtains zodiacal flux data for a BCD image, writes it to a file, and returns the zodi structure.
sm_make_3plane.pl perl Creates a 3-plane FITS file from a one-plane BCD image, uncertainty data, and error file. This version runs in Perl.

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