<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Module SYSTEM "file:/Repository/Level2/Soft/ProC/moduledef.dtd">
<module>
<intro>
<modulename name="syncbin"/>    <!-- The name of the module -->
<author name="Barth Netterfield"/> <!-- The name of the author -->
<description text="Synchronously coadd vector Y into bins defined by vector X.  Like a 1D map."/>
 <!-- A description of the module -->
<version minor="1" major="0"/>  <!-- The version number of the module -->
<state devstate="release"/>     <!-- The development state of the module -->
</intro>

<interface>
<!--inputs here-->
<input>
<table type="float" name="X in" descr="The index data (eg, azimuth)." />
</input>

<input>
<table type="float" name="Y in" descr="The data to bin (eg, bolometer)." />
</input>

<input>
<float name="Number of Bins" descr="The number of bins in X." />
</input>

<input>
<float name="X min" descr="The low end of the lowest bin in X." />
</input>

<input>
<float name="X max" descr="The high end of the highest bin in X. If Xmax = Xmin, auto binning used." />
</input>

<!--outputs here-->
<output>
<table type="float" name="X out" descr="The centre of each bin" />
</output>

<output>
<table type="float" name="Y out" descr="The mean of Y in each bin" />
</output>

<output>
<table type="float" name="Y error" descr="The standard deviation of Y in each bin" />
</output>

<output>
<table type="float" name="N" descr="The number of samples in each bin" />
</output>

</interface>

</module>
