<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <!-- Add Custom tab to the ribbon with your favorite buttons-->
  <!-- Click on the "generate Callbacks" button in the UI editor to create the macro(s)-->
  <!-- You can copy them in a module in your workbook then and add your code-->
  <ribbon>
    <tabs>
      <tab id="idSeriesSEEtab" label="SeriesSEE">
    <group id="idCreateViewer" label="Create" >
          <button id="idSetView" label="View" size="large" supertip="Create Viewer file by selecting a cell in the block of data, which is copied to the viewer file.  All equations are converted to values in the Viewer file." onAction="RunUtility" imageMso="GroupSparklineGroup" />
        </group>
    <group id="idCleanData" label="Clean Data" >
          <button id="idClearBAD" label="Conditional" size="normal" supertip="Bad data conditionally can be marked or eliminated." onAction="RunUtility" imageMso="SubprocessCreateFromSelection" />
           <button id="idTrimINDY" label="Window" size="normal" supertip="Data are copied to a new workbook and reduced to a user-specified period." onAction="RunUtility" imageMso="SizeToControlHeightAndWidth" />
           <button id="idSelectPOINTload" label="Points" size="normal" supertip="Bad data in a single series can be marked or eliminated graphically." onAction="RunUtility" imageMso="ObjectEditPoints" />
           <button id="idDeleteMARKERS" label="Delete " size="normal" supertip="Marked data are eliminated." onAction="RunUtility" imageMso="GroupRemoveHiddenInformation" />
           <button id="idClearMARKERS" label="Clear" size="normal" supertip="Markers are cleared." onAction="RunUtility" imageMso="InkDeleteAllInk" />
           <button id="idFillGAPSload" label="GapFill" size="normal" supertip="Data gaps from the cleaning process can be filled by linear interpolation, loaded with a dummy value, or eliminated altogether." onAction="RunUtility" imageMso="ChartTypeLineInsertGallery" />
        </group>
    <group id="idAdjust" label="Adjust" >
          <button id="idOFFSETload" label="Offset" size="normal" supertip="Individual, selected, or all series can be shifted such that the average, minimum, maximum, or first value will equal zero." onAction="RunUtility" imageMso="ObjectNudgeUp" />
           <button id="idListREFRESH" label="Refresh" size="normal" supertip="Refresh the list of available series after manually adding or deleting series on the data page." onAction="RunUtility" imageMso="RecurringTaskInsert" />
        </group>
    <group id="idAnalysis" label="Analysis" >
          <button id="idSeriesCOMP" label="Compare" size="normal" supertip="Create new series by addition, subtraction, multiplication, and division of existing series.  Second series interpolated to  first series. Series can also be smoothed with a moving average." onAction="RunUtility" imageMso="LegalBlackline" />
           <button id="idSeriesSCALEload" label="Rescale" size="normal" supertip="Series can be normalized to common scales." onAction="RunUtility" imageMso="SelectCurrentRegion" />
           <button id="idDerivedREMOVEload" label="Remove" size="normal" supertip="Removes derived series thta are created by Compare or Rescale." onAction="RunUtility" imageMso="ReviewDeleteAllMarkupOnSlide" />
        </group>
    <group id="idTools" label="Tools" >
          <button id="idSubTOTALload" label="Subtotal" size="normal" supertip="Data in selected series are binned by time periods or depth intervals to compute statistics." onAction="RunUtility" imageMso="ApplyFilter" />
           <button id="idQreduceLOAD" label="SimpleQ" size="normal" supertip="Reduces pumping rates to a simple schedule." onAction="RunUtility" imageMso="OverallocationGoTo" />
           <button id="idPolyLINEload" label="PolyFit" size="normal" supertip="Geophysical logs are approximated with a simple polyline." onAction="RunUtility" imageMso="ResetConnector" />
           <button id="idWLmodelLOAD" label="WLmodel" size="large" supertip="Super-Duper water level modeling tool" onAction="RunUtility" image="WLmodel" />
        </group>
    <group id="idImport" label="Import" >
          <button id="idGetDATAfiles" label="GetLogger" size="normal" supertip="Series from data-logger files are read interactively and concatenated in a SeriesSEE format." onAction="RunUtility" imageMso="AutoFormatDialog" />
           <button id="idSplitSTRING" label="Split" size="normal" supertip="Split a string of Ids, time, and water levels into SeriesSEE input" onAction="RunUtility" imageMso="EquationMatrixInsertColumnBefore" />
        </group>
    <group id="idChartTools" label="Chart Tools" >
          <button id="idHyperHIDE" label="HyperData" size="normal" supertip="Create temporary hyperlinks between visible series and source data." onAction="RunUtility" imageMso="FollowCodeHyperlink" />
           <button id="idAddLoseBOX" label="BoxFocus" size="normal" supertip="Magnify subareas of plot.  First click adds a rectangle. Second click re-scales both axes to rectangle area. Third click restores plot." onAction="RunUtility" imageMso="CropTool" />
        </group>
    <group id="idInfo" label="Inform" >
          <button id="idGlobalHELP" label="Help" size="normal" supertip="Controls and usage of SeriesSEE are explained." onAction="RunUtility" imageMso="ButtonTaskSelfSupport" />
           <button id="idAboutSeriesSee" label="About" size="normal" supertip="Display ad copy about SeriesSEE." onAction="PopNote" image="USGSgreen" />
        </group>
   </tabs>
 <!-- repeated toolbar for chart access of Box Focs-->
    <contextualTabs>                                                                    
      <tabSet idMso="TabSetChartTools">                                                 
        <tab idMso="TabChartToolsLayout">                                               
          <group id="idChartTools2" label="Chart Tools" >
            <button id="idAddLoseBOX2" label="BoxFocus" size="large" onAction="RunUtility" imageMso="CropTool" />
          </group>
        </tab>                                                                          
      </tabSet>                                                                         
    </contextualTabs>                                                                   
 </ribbon>
</customUI>
