The Kst Handbook I
Total Page:16
File Type:pdf, Size:1020Kb
The Kst Handbook i The Kst Handbook The Kst Handbook ii Copyright © 2004 The University of British Columbia Copyright © 2005 The University of Toronto Copyright © 2007,2008,2009,2010 The University of British Columbia Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License" [184]. Funding of this project was provided in part by the Canadian Space Agency. The Kst Handbook iii COLLABORATORS TITLE : REFERENCE : The Kst Handbook ACTION NAME DATE SIGNATURE WRITTEN BY Duncan Hanson, 2010-11-29 Rick Chern, Philip Rodrigues, Barth Netterfield, Yiwen Mao, and Zongyi Zhang The Kst Handbook iv Contents 1 Introduction 1 1.1 What is Kst? . 1 1.2 Getting Started . 1 1.2.1 Importing Data . 1 1.2.2 Plot Manipulation . 8 1.2.3 Basic Analysis and the Data Manager . 10 2 Common Tasks 13 2.1 Plotting Simple Graphs . 13 2.2 Customizing Plot Settings . 15 2.3 Curve Fitting . 21 2.4 Generating a Histogram . 23 2.5 Creating an Event Monitor . 25 2.6 Creating a Power Spectrum . 31 3 Working With Data 36 3.1 Data Objects Overview . 36 3.1.1 The Data Manager . 37 3.1.2 Creating and Deleting Data Objects . 38 3.2 Data Types . 38 3.2.1 Vectors . 38 3.2.1.1 Data Vectors . 38 3.2.1.2 Static Vectors . 39 3.2.1.3 Generating Vectors from KstScript . 40 3.2.2 Curves . 40 3.2.2.1 Using the Curves Class in KstScript . 42 3.2.3 Equations . 42 3.2.3.1 Using the Equation Class in KstScript . 43 3.2.4 Histograms . 44 3.2.4.1 Using the Histogram Class in KstScript . 45 3.2.5 Spectrum . 46 The Kst Handbook v 3.2.5.1 Using the PowerSpectrum Class in Kst . 48 3.2.6 Spectrogram . 49 3.2.6.1 Using the Spectrogram Class in KstScript . 51 3.2.7 Plugins . 52 3.2.8 Event Monitors . 52 3.2.9 Matrix . 54 3.2.9.1 Data Matrix . 55 3.2.9.1.1 Example of a Simple Matrix Source File . 56 3.2.9.1.2 Example of Specifying a portion of matrix . 56 3.2.9.2 Static Matrix . 57 3.2.9.3 Using Matrices through KstScript . 58 3.2.10 Images . 59 3.2.10.1 The Image Class in KstScript . 60 3.2.11 Vector View . 60 3.3 Data Tools . 61 3.3.1 The Data Wizard . 61 3.3.1.1 Configuring Data Source . 62 3.3.1.2 Selecting Data . 63 3.3.1.3 Presentation . 64 3.3.1.4 Configure Plot Layout . 65 3.3.2 The Data Menu . 66 3.3.3 Data View Mode . 68 3.3.4 Change Data File . 69 3.3.5 Change Data Sample Ranges . 71 3.3.6 Common Icons . 71 3.4 Datasources . 72 3.4.1 ASCII . 73 3.4.2 Dirfiles . 75 3.4.3 HEALPix FITS files . 76 3.4.4 QImage . 78 3.4.5 Indirect . 79 3.4.6 CDF . 79 3.4.7 netCDF . 79 3.4.8 LFIIO . 80 3.4.9 WMAP Reader . 80 3.4.10 SCUBA File Reader . 80 The Kst Handbook vi 4 Working with Views 81 4.1 View Objects Overview . 81 4.1.1 View Object Concepts . 81 4.1.2 The View Manager . 82 4.1.3 Context Menus . 83 4.1.4 Switching among Different Modes . 84 4.2 View Object Types . 86 4.2.1 Plots . ..