Review: LAT Data Analysis

Compare: pyLikelihood - Unbinned and Binned Analysis

Perform:

  1. Setup: SLAC Central Linux
  1. Get Data (using the Astro Server)
  1. UnbinnedAnalysis
    a.) Prerequisite Science Tools: UnbinnedAnalysis

    b.) pyLikelihood: UnbinnedAnalysis
  1. BinnedAnalysis
    a.) Prerequisite Science Tools: BinnedAnalysis

    b.) pyLikelihood: BinnedAnalysis
  1. Interactively Explore pyLikelihood Functions

Example: gt_apps python Script Used in Binaries RSP Analysis; (For more examples, see Richard Dubois' confluence page "Scripts used in Binaries RSP Analysis".

See pyLikelihood:

Also see:

Get Data (using the Astro Server)

At your workstation:

  1. From the workbook's LAT Data Access (green navbar) page.
    1. Click on the Data Portal button.
    2. Then select the Astro Server tab.
  1. For the purposes of the unbinned pyLikelihood exercise, we'll be analyzing 3C454.3; enter/select the following to obtain the data:
    1. Job Name — enter a meaningful name for your job (e.g., pyLike)
    2. Event Sample — select p6_public_v2
    3. Energy Range — Min: 100 Max:300000
    4. Time Range — Min: 243756000 Max: 243842400
    5. Position — RA: 343.6566 DEC: 16.1494
    6. Radius — 15.0 degrees
    7. Event Classes — Diffuse
    8. Output — FT2 30 second (fits)
    9. Output — FT1 (fits); Event-List (text)
    10. Debug Mode — False
    11. User Comment — optional
    12. Click on the Proceed button

The job summary will be displayed:

  1. Verify and correct the information, then click on the submit button; a message will be displayed telling you where your data will be available for download and your job number.

Note: Though this job completes very quickly, you can check the progress of longer jobs in the Pipeline. When your job has completed you will receive an email from DataPortal@slac.stanford.edu.

Tip: ftp-glast.slac.stanford.edu/glast.u53/DataServer/your_jobNumber equates to: /nfs/farm/g/glast/u53/DataServer/your_jobNumber.

Copy the files to your SLAC Cnetral Linux work area:

  1. Make sure you are in your work directory (e.g., mypyLike), then copy your data files to that directory by issuing the command:

    cp /nfs/farm/g/glast/u53/DataServer/yourJobNumber/*.* .

Caution! Take care to copy your own data; these files can be quite large.

  1. Issue the ls command to verify that you have the following files in your directory:

pyLike-README.html pyLike-eventlist.txt pyLike-ft1.fits pyLike-ft2-30s.fits

Note: The pyLike-eventlist.txt file will not be featured in this tutorial; please note, however, that it is available from the Astro Server.

You are now ready to run the prerequisite Science Tools for an Unbinned (or Binned) pyLikelihood analysis; for the purposes of this tutorial, proceed to Prerequisite Science Tools: Prerequisite Science Tools: UnbinnedAnalysis


Owned by: Jim Chiang
Last updated by: Chuck Patterson 04/01/2011