Title: CEDAR Demo
1CEDAR Demo
- Stéphane Béland
- Center for Astrophysics and Space Astronomy
- University of Colorado
- September 9, 2008
2- CEDAR Package
- Download from http//cos.colorado.edu/CEDAR
- Reference files available at http//cos.colorado.
edu/CEDAR/REFERENCE/ - Help Files (seriously outdated)
http//cos.colorado.edu/CEDAR/CEDAR_HELP.tar.gz
- Requirements
- IDL 6.0 or later (now at 7.0)
- ASTRON Library at http//idlastro.gsfc.nasa.gov/
- Tested on Mac OS X, Windows XP and Vista, Solaris
- Should run on any platform IDL runs (Unix, Linux,
Windows) - Installation
- Stand Alone
- Copy and expand the tar file in a separate CEDAR
directory (/CEDAR) - Copy the file cedar.def.dist to cedar.def and
edit to reflect local directory structure - Add the new CEDAR directory to IDL search path
- Start cedar from within IDL or using the shell
script named cedar - Server
- Copy and expand the tar file in a separate CEDAR
directory on the server - Edit the file cedar.def.dist and cedar.dist to
reflect the installation directories
3SDI file format (cos_dm06_revI.pdf)
4- CEDAR Properties
- Interface to update and modify the environment
variables defining directories and parameters
used by CEDAR. - Reads and updates the file cedar.def
5- Viewers
- Viewer -gt SDI Header (starts show_sdi_header)
- Viewer -gt Science Data (starts sdi_viewer)
- Viewer -gt X1D Spectra or X1D Fit (starts either
plot_x1d or plot_x1d_fit) - Viewer -gt HV/Aux/Rate Monitor (starts plot_hvi)
- Viewer -gt Pulse Height Dump (starts plot_phd)
- Tools -gt HEXVIEW (starts hexview)
6- Tools
- Display specific telemetry items
- Tools -gt Show Header Items (starts
show_header_items) - Select either FITS or SDI files
- Enter a list of FITS keywords or telemetry
mnemonics (DM06) (case insensitive) - Display results in a Table that can be edited,
plotted and saved - Convert SDI to FITS
- Tools -gt Process1 (FITSTCGC) (starts
calcos_process1)
7- Tools (cont.)
- Extract X1D
- Tools -gt Extract FUV Spectra (starts
extract_fuv_spect) - Outputs data to the directory defined as
CEDAR_RESULTS_PATH - CSIL_x1d_s.fits for the science spectra through
the PSA - CSIL_x1d_c.fits for the calibration spectra
through the WCA - User specifies extraction boxes from either
Reference file, fixed or Auto - Looks for USERCOORD keyword to determine if USER
or DETECTOR coordinate (uses appropriate
reference file) - Tools -gt Extract NUV Stripes (starts
extract_nuv_stripes) - Outputs data to the directory defined as
CEDAR_RESULTS_PATH - CSIL_x1d_sa.fits, CSIL_x1d_sb.fits,
CSIL_x1d_sc.fits for the 3 science stripes
through the PSA - CSIL_x1d_ca.fits, CSIL_x1d_cb.fits,
CSIL_x1d_cc.fits for the calibration stripes
through the WCA - User specifies extraction boxes from either
Reference file, fixed or Auto - Looks for USERCOORD keyword to determine if USER
or DETECTOR coordinate (uses appropriate
reference file)
8- Tools (cont.)
- Tools -gt Wavelength Calibration (starts
cos_wavecal) - Read in a X1D file
- Tool determines optical element and central
wavelength from FITS keywords and uses solutions
from reference files - Handles data in either USER or DETECTOR
coordinate system - Use Drag to manually align the input spectra
with the NIST PtNe Vacuum spectra (align close to
center) - Adjust Min. Peak. value according to the data
(enough of the brightest lines) - Auto Find does a decent job for the FUV if
initial solution is close and alignment is good
can pick blends and miss lines - Manual line identification is better
- Zoom on a line
- Click on line in plot to select corresponding
NIST line - Click on Find Line Center and select the best
fit Centroid or Gaussian Fit - The Wavelength and corresponding line center
pixel position will be added to the list - Continue until full spectra is covered
- Click Dispersion Solution
- Select the order of the fit
- Click on Fit Polynomial (W vs X)
- Edit the mis-identified points on the plot and
re-evaluate the dispersioon solution until
satisfied
9Tools (cont.) Wavelength Calibration
10Science Data Viewer (sdi_viewer) Will display
SDI, POD and FITS files (COS, FUSE, STIS and
generic image FITS files) Feature rich Plot
data, Statistics, Gaussfit, spectral lines
extraction, TimeTag filtering, Pulse Height
Filtering, TimeTag movie, list specific events,
sisplay the FITS header, multiple contrasts,
transform in USER or DETECT coordinates Useful
from the command line (any 2D array)
11- Additional Tools
- Database
- Create a new dB, Add entries, Make backup, Query
selected DB (cedar-gtproperties) - FITS file entries add all KEYWORDS (FITS and _spt
files) - Query Tool
- Select from list of KEYWORDS or type in any
KEYWORDS (case insensitive) - Add logical combination of KEYWORDS
- NOT SQL query format
- View the details of the FITS headers
- Save the result of query
- Display selected file
12Additional Tools (cont.) Tools -gt Data Compare
Used to compare two memory dump files Tools -gt
Memory Dump Statistics Used to get basic
statistics from a memory dump file Tools -gt
Number of Events Prints in the IDL command
window, the total number of events and rates from
a list of selected files Tools -gt Lab
Configuration Allows to edit the KEYWORDS
reflecting the setting during Thermal Vac tests
for a list of files Tools -gt Spectral Lines
Extraction Automatic spectral line extraction
from a list of files and a a list of approximate
positions Tools -gt Extract All NUV Lines
Performs an Automatic findlines on NUV data and
saves all lines found in ASCII file Tools -gt
Extract NUV Resolution automatically find line
positions for wavelength calibration and
resolution determination Tools -gt Track Lines in
TimeTag Tracks the centroid and width of a list
of spectral lines from a single TTAG
exposure Tools -gt Combine Files Combine TimeTag
or ACCUM files together IDL Command Line
Tools accum2ttag guess what it
does cos_nuv_addwave adds wavelength data to x1d
files after WCA xcorrel flipcoord transform data
from oen coordinate system to the
other get_rate_stats get the count rates from
either FITS or SDI file get_stim_rates,
get_stim_stats gets information on FUV stim
data plot_data, plot_multi general purpose
plotting toolsgvim timeshi timeshift slices and
overlays TTAG data from a single file timeslice
extract a time slice from a TTAG data file and
creates a new output file More