Last modified: 20 Nov 2023

URL: https://cxc.cfa.harvard.edu/sherpa/threads/gettingstarted/

Obtaining data used in Sherpa threads

Sherpa Threads (CIAO 4.16 Sherpa)


Overview

Synopsis:

This thread lists instructions for obtaining the data used in each of the Sherpa thread examples.

Last Update: 20 Nov 2023 - reviewed for CIAO 4.16: Sherpa start-up banner updated


Getting Started

All the data used in the Sherpa threads are available in sherpa.tar.gz (243 MB tarred & gzipped). Download and unpack this file before continuing.

Move to the directory that contains the thread data:

unix% cd /localpath/sherpa
unix% ls -1
2dpsf
aciss_grating_sim
aciss_sim
basic
confidence_manual
expmap
fakeit
grating
grating_hrcsletg
guide
lines_acishetg
lines_acisletg
manual_source
pha_intro
pha_regroup
pileup
plot
pyblocxs
setplot_manual
simspec
simultaneous
sourceandbg
spatial
spectra
user_model

Locate and move into the sub-directory for your specific thread and start a Sherpa session; e.g. for the Introduction to Fitting PHA Spectra thread:

unix% cd pha_intro
unix% sherpa
-----------------------------------------------------
Welcome to Sherpa: CXC's Modeling and Fitting Package
-----------------------------------------------------
Sherpa 4.16.0+3.g80b22a87

Python 3.11.6 | packaged by conda-forge | (main, Oct  3 2023, 10:40:37) [Clang 15.0.7 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.17.2 -- An enhanced Interactive Python. Type '?' for help.

IPython profile: sherpa
Installed osx event loop hook.
Using matplotlib backend: MacOSX

sherpa> pwd
/localpath/sherpa/pha_intro

The contents of this directory may be examined with the Unix command ls:

sherpa> ls
3c273.arf       3c273.rmf       
3c273.pi        3c273_bg.pi

To view the contents of an ASCII file from within Sherpa, the Unix command more may be used; e.g.,:

sherpa> !more /localpath/sherpa/basic/data1.dat
0.5    1.6454   0.04114
1.5    1.7236   0.04114
2.5    1.9472   0.04114
3.5    2.2348   0.04114
4.5    2.6187   0.04114
5.5    2.8642   0.04114
6.5    3.1263   0.04114
7.5    3.2073   0.04114
8.5    3.2852   0.04114
9.5    3.3092   0.04114
10.5   3.4496   0.04114

Note that Unix commands issued in Sherpa must be preceded by the '!' symbol, except for cd, ls, and pwd.


History

14 Jan 2005 reviewed for CIAO 3.2: no changes
07 Jul 2005 updated tarfile information
21 Dec 2005 reviewed for CIAO 3.3: no changes
09 Feb 2006 updated tarfile information
01 Dec 2006 updated for CIAO 3.4: Sherpa version
09 Dec 2008 updated for Sherpa 4.1
17 Dec 2009 updated for CIAO 4.2; contents of sherpa.tar.gz updated
13 Jul 2010 contents of tarfile updated for CIAO 4.2 Sherpa v2
15 Dec 2010 Sherpa start-up banner updated for CIAO 4.3
15 Dec 2011 reviewed for CIAO 4.4: Sherpa start-up banner updated; new 'pyblocxs' directory added to Sherpa thread data tarfile
13 Dec 2012 reviewed for CIAO 4.5: Sherpa start-up banner updated
03 Dec 2013 reviewed for CIAO 4.6: Sherpa start-up banner updated
25 Mar 2015 reviewed for CIAO 4.7: Sherpa start-up banner updated
14 Dec 2015 updated for CIAO 4.8; no content change.
06 Dec 2016 reviewed for CIAO 4.9: Sherpa start-up banner updated
12 Apr 2018 updated for CIAO 4.10; no content change.
11 Dec 2018 updated for CIAO 4.11; no content change.
29 Nov 2022 reviewed for CIAO 4.15: Sherpa start-up banner updated
20 Nov 2023 reviewed for CIAO 4.16: Sherpa start-up banner updated