Difference between revisions of "User Manual"

From LIBISIS
Jump to navigation Jump to search
m
Line 16: Line 16:
  
 
==Data Manipulation Functions==
 
==Data Manipulation Functions==
 +
  
 
=== [[Input and Output Functions]] ===
 
=== [[Input and Output Functions]] ===
[[Input and Output Functions#RAW Files|getspectra]], [[Input and Output Functions#RAW Files|getspectrum]] - Read in spectra from IXTraw_file objects or from RAW files
 
  
[[Input and Output Functions#ASCII Files|read_ascii]], [[Input and Output Functions#ASCII Files|write_ascii]] - Read or write to text files
 
  
[[Input and Output Functions#Point Data|read_points]], [[Input and Output Functions#Point Data|write_points]] - Read or write to text files, forcing data to be point data
+
*[[Input and Output Functions#RAW Files|getspectra]], [[Input and Output Functions#RAW Files|getspectrum]] - Read in spectra from IXTraw_file objects or from RAW files
  
[[Input and Output Functions#Histogram Data|read_hist]], [[Input and Output Functions#Histogram Data|write_hist]] - Read or write to text files, forcing data to be histogram data
+
*[[Input and Output Functions#ASCII Files|read_ascii]], [[Input and Output Functions#ASCII Files|write_ascii]] - Read or write to text files
  
 +
*[[Input and Output Functions#Point Data|read_points]], [[Input and Output Functions#Point Data|write_points]] - Read or write to text files, forcing data to be point data
 +
 +
*[[Input and Output Functions#Histogram Data|read_hist]], [[Input and Output Functions#Histogram Data|write_hist]] - Read or write to text files, forcing data to be histogram data
  
  
  
 
=== [[Binary Operators]] ===
 
=== [[Binary Operators]] ===
 +
 +
 
Binary operators such as +, -, *, etc. are used to perform arithmetic operations between datasets and/or numbers  
 
Binary operators such as +, -, *, etc. are used to perform arithmetic operations between datasets and/or numbers  
 +
 +
  
 
=== [[Elementary Functions]]===
 
=== [[Elementary Functions]]===
 +
  
 
Elementary functions act on each signal element identically
 
Elementary functions act on each signal element identically
  
[[Elementary Functions|log]], [[Elementary Functions|exp]]
+
*[[Elementary Functions|log]], [[Elementary Functions|exp]] - logarithmic functions
 +
 
 +
*[[Elementary Functions|sin]], [[Elementary Functions|cos]], [[Elementary Functions|tan]] - trigonomic functions
 +
 
 +
*[[Elementary Functions|sinh]], [[Elementary Functions|cosh]], [[Elementary Functions|tanh]] - hyperbolic functions
  
[[Elementary Functions|sin]], [[Elementary Functions|cos]], [[Elementary Functions|tan]]
 
  
[[Elementary Functions|sinh]], [[Elementary Functions|cosh]], [[Elementary Functions|tanh]]
 
  
 
=== [[Data Manipulation Functions]] ===
 
=== [[Data Manipulation Functions]] ===
[[Data Manipulation Functions#Shift Functions|shift]], [[Data Manipulation Functions#Shift Functions|shift_x]], [[Data Manipulation Functions#Shift Functions|shift_y]], [[Data Manipulation Functions#Shift Functions|shift_xy]] - Shift data along an independent axis
 
  
[[Data Manipulation Functions#Scale Functions|scale]], [[Data Manipulation Functions#ScaleFunctions|scale_x]], [[Data Manipulation Functions#Scale Functions|scale_y]] - Scale one of the independent axes
 
  
[[Data Manipulation Functions#Flip Functions|flip]], [[Data Manipulation Functions#Flip Functions|flip_x]], [[Data Manipulation Functions#Flip Functions|flip_y]] - Reverse the data in a dataset
+
*[[Data Manipulation Functions#Shift Functions|shift]], [[Data Manipulation Functions#Shift Functions|shift_x]], [[Data Manipulation Functions#Shift Functions|shift_y]], [[Data Manipulation Functions#Shift Functions|shift_xy]] - Shift data along an independent axis
 +
 
 +
*[[Data Manipulation Functions#Scale Functions|scale]], [[Data Manipulation Functions#ScaleFunctions|scale_x]], [[Data Manipulation Functions#Scale Functions|scale_y]] - Scale one of the independent axes
 +
 
 +
*[[Data Manipulation Functions#Flip Functions|flip]], [[Data Manipulation Functions#Flip Functions|flip_x]], [[Data Manipulation Functions#Flip Functions|flip_y]] - Reverse the data in a dataset
 +
 
 +
 
  
 
=== [[Rebin Functions]] ===
 
=== [[Rebin Functions]] ===
 +
  
 
Three different methods exist for rebinning a function. Rebin will rebin the data into user defined bins. Rebunch will bunch together a user defined number of bins. Regroup rebins data using a minimum binwidth given by the user but insures that the new bins are coincident with the existing bins.  
 
Three different methods exist for rebinning a function. Rebin will rebin the data into user defined bins. Rebunch will bunch together a user defined number of bins. Regroup rebins data using a minimum binwidth given by the user but insures that the new bins are coincident with the existing bins.  
  
[[Rebin Functions#Rebin Functions|rebin]], [[Rebin Functions#Rebin Functions|rebin_x]], [[Rebin Functions#Rebin Functions|rebin_y]], [[Rebin Functions#Rebin Functions|rebin_xy]]
 
  
[[Rebin Functions#Rebunch Functions|rebunch]], [[Rebin Functions#Rebunch Functions|rebunch_x]], [[Rebin Functions#Rebunch Functions|rebunch_y]], [[Rebin Functions#Rebunch Functions|rebunch_xy]]
+
*[[Rebin Functions#Rebin Functions|rebin]], [[Rebin Functions#Rebin Functions|rebin_x]], [[Rebin Functions#Rebin Functions|rebin_y]], [[Rebin Functions#Rebin Functions|rebin_xy]]
  
[[Rebin Functions#Rgroup Functions|regroup]], [[Rebin Functions#Rgroup Functions|regroup_x]],  
+
*[[Rebin Functions#Rebunch Functions|rebunch]], [[Rebin Functions#Rebunch Functions|rebunch_x]], [[Rebin Functions#Rebunch Functions|rebunch_y]], [[Rebin Functions#Rebunch Functions|rebunch_xy]]
 +
 
 +
*[[Rebin Functions#Rgroup Functions|regroup]], [[Rebin Functions#Rgroup Functions|regroup_x]],  
 
[[Rebin Functions#Rgroup Functions|regroup_y]], [[Rebin Functions#Rgroup Functions|regroup_xy]]
 
[[Rebin Functions#Rgroup Functions|regroup_y]], [[Rebin Functions#Rgroup Functions|regroup_xy]]
 +
  
 
=== [[High Level Functions]] ===
 
=== [[High Level Functions]] ===
  
[[High Level Functions#First Derivative|deriv1x]], [[High Level Functions#Second Derivative|deriv2x]], [[High Level Functions#First Derivative|deriv1y]], [[High Level Functions#Second Derivative|deriv2y]], [[High Level Functions#First Derivative|deriv1]], [[High Level Functions#Second Derivative|deriv2]] - Takes derivatives of a dataset
 
  
[[High Level Functions#Integral Functions|integrate_x]], [[High Level Functions#Integral Functions|integrate_y]], [[High Level Functions#Integral Functions|integrate_xy]], [[High Level Functions#Integral Functions|integrate]] - Integrates a dataset between user defined limits
+
*[[High Level Functions#First Derivative|deriv1x]], [[High Level Functions#Second Derivative|deriv2x]], [[High Level Functions#First Derivative|deriv1y]], [[High Level Functions#Second Derivative|deriv2y]], [[High Level Functions#First Derivative|deriv1]], [[High Level Functions#Second Derivative|deriv2]] - Takes derivatives of a dataset
 +
 
 +
*[[High Level Functions#Integral Functions|integrate_x]], [[High Level Functions#Integral Functions|integrate_y]], [[High Level Functions#Integral Functions|integrate_xy]], [[High Level Functions#Integral Functions|integrate]] - Integrates a dataset between user defined limits
  
[[High Level Functions#Smooth Functions|smooth]] - Smooths out signal data to avoid small, sharp deviations
+
*[[High Level Functions#Smooth Functions|smooth]] - Smooths out signal data to avoid small, sharp deviations
  
[[High Level Functions#Interpolate Functions|interp_x]], [[High Level Functions#Interpolate Functions|interp_y]], [[High Level Functions#Interpolate Functions|interp]] - Interpolates data onto a different set of points
+
*[[High Level Functions#Interpolate Functions|interp_x]], [[High Level Functions#Interpolate Functions|interp_y]], [[High Level Functions#Interpolate Functions|interp]] - Interpolates data onto a different set of points
  
[[High Level Functions#Unspike Functions|unspike]] - Removes any large spikes from the data
+
*[[High Level Functions#Unspike Functions|unspike]] - Removes any large spikes from the data
  
[[High Level Functions#Fit Functions|fit]] - Fitting data to known functions and giving curves of best fit  
+
*[[High Level Functions#Fit Functions|fit]] - Fitting data to known functions and giving curves of best fit  
 +
 
 +
*[[High Level Functions#Function Evaluation|func_eval]] - Evaluate a function at the given x and y data points
  
[[High Level Functions#Function Evaluation|func_eval]] - Evaluate a function at the given x and y data points
 
  
 
=== [[Special Functions]] ===
 
=== [[Special Functions]] ===
 +
 +
 
Special functions are used to transform data between different types.
 
Special functions are used to transform data between different types.
  
[[Special Functions#Contract Functions|contract]] - Turn an array of [[IXTdataset_2d]] objects into a single [[IXTdataset_2d]] object
+
*[[Special Functions#Contract Functions|contract]] - Turn an array of [[IXTdataset_2d]] objects into a single [[IXTdataset_2d]] object
  
[[Special Functions#Expand Functions|expand_d1d]], [[Special Functions#Expand Functions|expand_listd1d]], [[Special Functions#Expand Functions|expand_d2d]], [[Special Functions#Expand Functions|expand_listd2d]] - Expand single objects into many objects
+
*[[Special Functions#Expand Functions|expand_d1d]], [[Special Functions#Expand Functions|expand_listd1d]], [[Special Functions#Expand Functions|expand_d2d]], [[Special Functions#Expand Functions|expand_listd2d]] - Expand single objects into many objects
  
[[Special Functions#Conversion Functions|oned_to_twod]] - Convert an [[IXTdataset_1d]] into an [[IXTdataset_2d]]
+
*[[Special Functions#Conversion Functions|oned_to_twod]] - Convert an [[IXTdataset_1d]] into an [[IXTdataset_2d]]
 +
 
 +
*[[Special Functions#Conversion Functions|hist2point]], [[Special Functions#Conversion Functions|hist2point_x]], [[Special Functions#Conversion Functions|hist2point_y]] - Convert between histogram and point data
  
[[Special Functions#Conversion Functions|hist2point]], [[Special Functions#Conversion Functions|hist2point_x]], [[Special Functions#Conversion Functions|hist2point_y]] - Convert between histogram and point data
 
  
 
==Graphics==
 
==Graphics==
 +
  
 
===[[Using Default Properties and Name Tags]]===
 
===[[Using Default Properties and Name Tags]]===
 +
  
 
Default properties and name tags are an integral part of Libisis graphics. They allow greater control of plots and it is particularly important to know about them when building applications on top of the Libisis structure. Names and tags can be used to easily identify and set properties for plots.  
 
Default properties and name tags are an integral part of Libisis graphics. They allow greater control of plots and it is particularly important to know about them when building applications on top of the Libisis structure. Names and tags can be used to easily identify and set properties for plots.  
 +
  
 
===[[Plot Commands]]===
 
===[[Plot Commands]]===
  
[[Plot Commands#One Dimensional Plots|dh]], [[Plot Commands#One Dimensional Plots|dl]], [[Plot Commands#One Dimensional Plots|dm]], [[Plot Commands#One Dimensional Plots|de]], [[Plot Commands#One Dimensional Plots|dp]], [[Plot Commands#One Dimensional Plots|dd]] - One dimensional plotting commands
 
  
[[Plot Commands#Overplots|ph]], [[Plot Commands#Overplots|pl]], [[Plot Commands#Overplots|pm]], [[Plot Commands#Overplots|pe]], [[Plot Commands#Overplots|pp]], [[Plot Commands#Overplots|pd]] - over plotting commands
+
*[[Plot Commands#One Dimensional Plots|dh]], [[Plot Commands#One Dimensional Plots|dl]], [[Plot Commands#One Dimensional Plots|dm]], [[Plot Commands#One Dimensional Plots|de]], [[Plot Commands#One Dimensional Plots|dp]], [[Plot Commands#One Dimensional Plots|dd]] - One dimensional plotting commands
 +
 
 +
*[[Plot Commands#Overplots|ph]], [[Plot Commands#Overplots|pl]], [[Plot Commands#Overplots|pm]], [[Plot Commands#Overplots|pe]], [[Plot Commands#Overplots|pp]], [[Plot Commands#Overplots|pd]] - over plotting commands
 +
 
 +
*[[Plot Commands#Two Dimensional Plots|ds]], [[Plot Commands#Two Dimensional Plots|da]], [[Plot Commands#Two Dimensional Plots|mp]] - Two dimensional plotting commands  
  
[[Plot Commands#Two Dimensional Plots|ds]], [[Plot Commands#Two Dimensional Plots|da]], [[Plot Commands#Two Dimensional Plots|mp]] - Two dimensional plotting commands
+
*[[Plot Commands#Three Dimensional Plots|sm]] - Sliceomatic (three dimensional) plotting
  
[[Plot Commands#Three Dimensional Plots|sm]] - Sliceomatic (three dimensional) plotting
 
  
 
===[[Pre-Emptive Formatting]]===
 
===[[Pre-Emptive Formatting]]===
  
[[Pre-Emptive Formatting#Colors|acolor]], [[Pre-Emptive Formatting#Lines|aline]], [[Pre-Emptive Formatting#Markers|amark]] - Change default properties of plots before they are made
+
 
 +
*[[Pre-Emptive Formatting#Colors|acolor]], [[Pre-Emptive Formatting#Lines|aline]], [[Pre-Emptive Formatting#Markers|amark]] - Change default properties of plots before they are made
 +
 
  
 
===[[Retrospective Formatting]]===
 
===[[Retrospective Formatting]]===
  
[[Retrospective Formatting#Limits|lx]], [[Retrospective Formatting#Limits|ly]], [[Retrospective Formatting#Limits|lz]] - Changes the limits of the axes
 
  
[[Retrospective Formatting#Changing the Scale to Log|linlogbutton]], [[Retrospective Formatting#Changing the Scale to Log|linlogmenu]], [[Retrospective Formatting#Changing the Scale to Log|linx]], [[Retrospective Formatting#Changing the Scale to Log|liny]], [[Retrospective Formatting#Changing the Scale to Log|linz]], [[Retrospective Formatting#Changing the Scale to Log|logx]] ,[[Retrospective Formatting#Changing the Scale to Log|logy]] ,[[Retrospective Formatting#Changing the Scale to Log|logz]] - changes the axes scale to logarithmic or linear
+
*[[Retrospective Formatting#Limits|lx]], [[Retrospective Formatting#Limits|ly]], [[Retrospective Formatting#Limits|lz]] - Changes the limits of the axes
 +
 
 +
*[[Retrospective Formatting#Changing the Scale to Log|linlogbutton]], [[Retrospective Formatting#Changing the Scale to Log|linlogmenu]], [[Retrospective Formatting#Changing the Scale to Log|linx]], [[Retrospective Formatting#Changing the Scale to Log|liny]], [[Retrospective Formatting#Changing the Scale to Log|linz]], [[Retrospective Formatting#Changing the Scale to Log|logx]] ,[[Retrospective Formatting#Changing the Scale to Log|logy]] ,[[Retrospective Formatting#Changing the Scale to Log|logz]] - changes the axes scale to logarithmic or linear
 +
 
 +
*[[Retrospective Formatting#Changing the Aspect Ratio|aspect]] - changes the aspect ratio
  
[[Retrospective Formatting#Changing the Aspect Ratio|aspect]] - changes the aspect ratio
+
*[[Retrospective Formatting#Finding Points on a Plot|dxyz]] - returns the co-ordinates of a clicked point on a plot, and/or marks the point with a label
  
[[Retrospective Formatting#Finding Points on a Plot|dxyz]] - returns the co-ordinates of a clicked point on a plot, and/or marks the point with a label
+
*[[Retrospective Formatting#Figure Control Functions|kf / keep_figure]], [[Retrospective Formatting#Figure Control Functions|rf / release_figure]] - hold or release a figure window
  
[[Retrospective Formatting#Figure Control Functions|kf / keep_figure]], [[Retrospective Formatting#Figure Control Functions|rf / release_figure]] - hold or release a figure window
+
*[[Retrospective Formatting#Advanced Controls|set_plot]], [[Retrospective Formatting#Advanced Controls|set_axes]], [[Retrospective Formatting#Advanced Controls|set_figure]] - set advanced properties in the figure, axes or plot
  
[[Retrospective Formatting#Advanced Controls|set_plot]], [[Retrospective Formatting#Advanced Controls|set_axes]], [[Retrospective Formatting#Advanced Controls|set_figure]] - set advanced properties in the figure, axes or plot  
+
*[[Retrospective Formatting#Adding a Legend|set_legend]] - adds a legend to the plot
  
[[Retrospective Formatting#Adding a Legend|set_legend]] - adds a legend to the plot
 
  
 
===[[Other Commands]]===
 
===[[Other Commands]]===
  
sdp, set_default_property, sup, set_user_propety, ra, reset_all, rd, reset_default
 
  
gallnt, gallh, check_figure, chkf, get_handle, gh, alias
+
*sdp, set_default_property, sup, set_user_propety, ra, reset_all, rd, reset_default
 +
 
 +
*gallnt, gallh, check_figure, chkf, get_handle, gh, alias
 +
 
 +
*undop
  
undop
+
*color_slider
  
color_slider
+
*rename
  
rename
+
*fromplot
  
fromplot
 
  
 
===[[User Reference]]===
 
===[[User Reference]]===
 +
 +
 
Information for reference purposes, such as valid linestyles, marker styles etc.
 
Information for reference purposes, such as valid linestyles, marker styles etc.
 +
  
 
==Redundant==
 
==Redundant==
  
 
[[dean's test page]]
 
[[dean's test page]]

Revision as of 11:23, 31 March 2008

There are many different Matlab commands within Libisis. These include basic commands, such as taking the exponential of a dataset, through to integration and plotting commands. The following is an online user manual for the matlab interface of the Libisis software.

Overview

There are many different object types within Libisis used to store experimental data. Once an object is created, functions exist to manipulate the data contained within. The most common objects for plotting and data manipulation are IXTdataset_1d and IXTdataset_2d objects. IXTrunfile objects contain all raw data from a run.


IXTdataset_1d objects store signal and error information against one dimension (the x axis). Label and titling information is also stored. IXTdataset_2d objects also contain a second dimension (the y axis). All relevant data pertaining to a run can be stored in an IXTrunfile object. The object can be thought of as an array of IXTdataset_2d objects with a lot of additional information.


Data is read into these objects (using methods described below) and can then be manipulated using many different tools and functions described in this documentation.


General Behaviour

Most functions share a general behaviour outlined here

Data Manipulation Functions

Input and Output Functions


Binary Operators

Binary operators such as +, -, *, etc. are used to perform arithmetic operations between datasets and/or numbers


Elementary Functions

Elementary functions act on each signal element identically

  • log, exp - logarithmic functions


Data Manipulation Functions


Rebin Functions

Three different methods exist for rebinning a function. Rebin will rebin the data into user defined bins. Rebunch will bunch together a user defined number of bins. Regroup rebins data using a minimum binwidth given by the user but insures that the new bins are coincident with the existing bins.


regroup_y, regroup_xy


High Level Functions

  • smooth - Smooths out signal data to avoid small, sharp deviations
  • unspike - Removes any large spikes from the data
  • fit - Fitting data to known functions and giving curves of best fit
  • func_eval - Evaluate a function at the given x and y data points


Special Functions

Special functions are used to transform data between different types.


Graphics

Using Default Properties and Name Tags

Default properties and name tags are an integral part of Libisis graphics. They allow greater control of plots and it is particularly important to know about them when building applications on top of the Libisis structure. Names and tags can be used to easily identify and set properties for plots.


Plot Commands

  • ds, da, mp - Two dimensional plotting commands
  • sm - Sliceomatic (three dimensional) plotting


Pre-Emptive Formatting


Retrospective Formatting

  • lx, ly, lz - Changes the limits of the axes
  • aspect - changes the aspect ratio
  • dxyz - returns the co-ordinates of a clicked point on a plot, and/or marks the point with a label


Other Commands

  • sdp, set_default_property, sup, set_user_propety, ra, reset_all, rd, reset_default
  • gallnt, gallh, check_figure, chkf, get_handle, gh, alias
  • undop
  • color_slider
  • rename
  • fromplot


User Reference

Information for reference purposes, such as valid linestyles, marker styles etc.


Redundant

dean's test page