Loving ISIS - Confessions of a Former XSPEC User | ||
|
Five Basics
The ISIS manual
gives an overview of its commands and syntax, as well as an
introduction to
unix%> isis -g
Welcome to ISIS Version 1.6.0-3
Copyright (C) 1998-2010 Massachusetts Institute of Technology
isis> () = evalfile("/path/my_script.sl");
isis> () = evalfile("/path/.isisrc") % Happens automatically if .isisrc
% is placed in home directory
isis> () = evalfile("./analysis_script.sl") % Run the analysis on these web pages
In the above, the -g option gives extra debugging information
when running a script. Note the presence of ()= before
evalfile. The evalfile returns a success/fail flag
which otherwise would be "placed on the stack", and then "popped off
the stack" and printed to screen, (The S- in S-lang stands for
"stack".) The ()= captures and discards this value.
For the case of multiple return values, let's say a, b, c,
first a is placed on the stack, then b, then c. The
"popping off the stack" happens in the reverse order: c,
b, then a. This is the order they will print to the
screen. Thus we would have:
isis> returns_abc(); % Dump the output to screen c b a isis> (a,b,c) = returns_abc(); % Capture the output to variables isis> (,,) = returns_abc(); % Discard the outputOnce you've gotten used to that basic syntax, there are five other useful things to remember that will help you during an analysis session:
.isisrc file has
been loaded on startup):
Welcome to ISIS Version 1.6.0-3
Copyright (C) 1998-2010 Massachusetts Institute of Technology
isis> a = [0:10]; b = 3.5; c = "pizza";
isis> who;
a: Integer_Type[11]
b: 3.5
c: pizza
isis> .apropos load
Found 26 function matches in namespace Global:
add_to_isis_load_path append_to_isis_load_path autoload
get_isis_load_path get_slang_load_path load_alt_ioniz
load_arf load_buf load_conf
load_data load_dataset load_fit_method
load_fit_statistic load_kernel load_line_profile_function
load_model load_par load_radio
load_rmf load_xspec_fun load_xspec_local_models
load_xspec_symbol mt_load_model prepend_to_isis_load_path
set_isis_load_path set_slang_load_path
isis> .help load_arf
Searched: /usr/local/isis/doc/local_help.txt
Searched: /usr/local/isis/doc/cfitsio.hlp
load_arf
SYNOPSIS
Load an effective area (ARF) file
USAGE
status = load_arf ("filename")
DESCRIPTION
This function loads either a FITS Type I or Type II ARF file;
the updated list of currently loaded ARFs is automatically
displayed. On return, status is equal to the integer index of
the ARF just loaded ( status > 0); a return value of status =
-1 is used to indicate failure. (For Type II ARF input, a
return value of zero indicates success).
SEE ALSO
load_dataset, list_arf, delete_arf, assign_arf, unassign_arf
isis> load_radio;
radio_id = load_radio(radio_struct);
Takes the structure output from `read_radio();' and loads
it up for fitting. Also ignores all the zero count
channels. (Note: Those could come back if any further filters
are applied.)
isis> alias("load_arf","arf");
isis> alias("fit_fun","model");
Next up: Loading the Data. |
This page was last updated Sep 16, 2013 by Michael Nowak. To comment on it or the material presented here, send email to mnowak@space.mit.edu.
![]()