<description>REQUIRED. Initial estimates as array of numerical values for the spectral index function coefficients. eg [1.5, -0.8] if fitting a plp function thought to be close to 1.5*(x/div)**(-0.8) or [0.4055, -0.8] if fitting an lpt function thought to be close to ln(1.5) - 0.8*ln(x/div).</description>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" ?>
<casaxml xmlns="http://casa.nrao.edu/schema/psetTypes.html"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd
file:///opt/casa/code/xmlcasa/xml/casa.xsd">
<task type="function" name="spxfit" category="analysis" visibility="experimental">
<shortdescription>Fit a 1-dimensional model(s) to an image(s) or region for determination of spectral index.</shortdescription>
<param type="any" name="imagename" >
<any type="variant" listtypes="string stringArray"/>
<description>Name of the input image(s)</description>
<value type="string"></value>
<example>imagename='ngc5921_task.image'</example>
<param type="string" direction="in" name="box">
<description>Rectangular region to select in direction plane. Default is to use the entire direction plane.</description>
<example>box="4,4,10,10"</example>
<param type="string" direction="in" name="region">
<description>Region selection. Default is to use the full image.</description>
<example>region="myregion.rgn"</example>
<param type="string" direction="in" name="chans">
<description>Channels to use. Default is to use all channels.</description>
<param type="string" direction="in" name="stokes">
<description>Stokes planes to use. Default is to use all Stokes planes.</description>
<example>stokes="I"</example>
<param type="int" direction="in" name="axis">
<description>The profile axis. Default: use the spectral axis if one exists, axis 0 otherwise (<0).</description>
<example>axis=3</example>
<param type="string" direction="in" name="mask">
<description>Mask to use. Default is none.</description>
<param type="int" direction="in" name="minpts">
<description>Minimum number of unmasked points necessary to attempt fit.</description>
<param type="bool" direction="in" name="multifit">
<description>If true, fit a profile along the desired axis at each pixel in the specified region. If false, average the non-fit axis pixels and do a single fit to that average profile. Default False.</description>
<example>multifit=True</example>
<param type="string" direction="in" name="spxtype">
<description>Type of function to fit. "plp" = power logarithmic polynomial, "ltp" = logarithmic transformed polynomial.</description>