<customUI  onLoad="RibbonOnLoad" 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="idViewerCreate" 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" tag="ViewerCreate01"  getEnabled ="GetEnabledMAC" />
        </group>
    <group id="idCleanData" label="Clean Data" >
          <button id="idClearBAD" label="Conditional" size="normal" supertip="Bad data conditionally can be commented and/or eliminated." onAction="RunUtility" imageMso="SubprocessCreateFromSelection" tag="TRACKCleanData11"  getEnabled ="GetEnabledMAC" />
           <button id="idSelectPOINTload" label="Points" size="normal" supertip="Bad data in a single series can be commented and/or eliminated graphically." onAction="RunUtility" imageMso="ObjectEditPoints" tag="TRACKCleanData12"  getEnabled ="GetEnabledMAC" />
           <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" tag="TRACKCleanData13"  getEnabled ="GetEnabledMAC" />
           <button id="idGuideSHIFTload" label="Align" size="normal" supertip="Shift data segments with guide wells.  Specify guide-well IDs, slopes, estimated shift, and range of applied shift." onAction="RunUtility" imageMso="ObjectsAlignMiddleVertical" tag="TRACKCleanData14"  getEnabled ="GetEnabledMAC" />
           <button id="idAVERAGEload" label="Average" size="normal" supertip="Data reduction by averaging where oversampled." onAction="RunUtility" imageMso="TablePropertiesWidthInfoPath" tag="TRACKCleanData15"  getEnabled ="GetEnabledMAC" />
           <button id="idFLOATload" label="Float" size="normal" supertip="Float series to tape downs." onAction="RunUtility" imageMso="WindowsArrangeIcons" tag="TRACKCleanData16"  getEnabled ="GetEnabledMAC" />
           <button id="idTRACKload" label="Track" size="large" supertip="TRACK will force an explanation to be appended to each alteration. Each alteration will have a sequence code where 1 occurence of explanation" onAction="RunUtility" imageMso="GroupTracking" tag="TRACKCleanData17"  getEnabled ="GetEnabledMAC" />
        </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" tag="TRACKAnalysis21"  getEnabled ="GetEnabledMAC" />
           <button id="idSeriesSCALEload" label="Rescale" size="normal" supertip="Series can be normalized to common scales." onAction="RunUtility" imageMso="SelectCurrentRegion" tag="Analysis22"  getEnabled ="GetEnabledMAC" />
           <button id="idDerivedREMOVEload" label="Remove" size="normal" supertip="Removes derived series thta are created by Compare or Rescale." onAction="RunUtility" imageMso="ReviewDeleteAllMarkupOnSlide" tag="Analysis23"  getEnabled ="GetEnabledMAC" />
           <button id="idPeriodicWeightLOAD" label="Period" size="large" supertip="Create periodic weighting" onAction="RunUtility" image="TempCLIP" tag="Analysis24"  getEnabled ="GetEnabledMAC" />
        </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" tag="Tools31"  getEnabled ="GetEnabledMAC" />
           <button id="idQreduceLOAD" label="SimpleQ" size="normal" supertip="Reduces pumping rates to a simple schedule." onAction="RunUtility" imageMso="OverallocationGoTo" tag="Tools32"  getEnabled ="GetEnabledMAC" />
           <button id="idPolyLINEload" label="PolyFit" size="normal" supertip="Geophysical logs are approximated with a simple polyline." onAction="RunUtility" imageMso="ResetConnector" tag="Tools33"  getEnabled ="GetEnabledMAC" />
           <button id="idWLmodelLOAD" label="WLM" size="large" supertip="Model water levels interactively in a new workbook, where water levels are simulated with a FORTRAN program and differences are minimized with PEST. " onAction="RunUtility" image="WLmodel" tag="Tools34"  getEnabled ="GetEnabledMAC" />
        </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" tag="Import41"  getEnabled ="GetEnabledMAC" />
           <button id="idSplitSTRING" label="Split" size="normal" supertip="Split a string of Ids, time, and water levels into SeriesSEE input" onAction="RunUtility" imageMso="EquationMatrixInsertColumnBefore" tag="Import42"  getEnabled ="GetEnabledMAC" />
        </group>
    <group id="idExport" label="Export" >
          <button id="idASCIIoutput" label="ASCII" size="normal" supertip="Output from workbook, any workbook, to selected ASCII formats. " onAction="RunUtility" imageMso="GroupTextbox" tag="Export51"  getEnabled ="GetEnabledMAC" />
           <button id="idSeriesOUTPUT" label="Series" size="normal" supertip="Export individual series with options to create DD observations. DD observations require shifting, binning, and truncating to a time window." onAction="RunUtility" imageMso="SaveAttachments" tag="Export52"  getEnabled ="GetEnabledMAC" />
           <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" tag="Export53"  getEnabled ="GetEnabledMAC" />
           <button id="idPixOUTPUT" label="Pix" size="normal" supertip="Create multiple pictures of the magnify chart that display selected series." onAction="RunUtility" imageMso="OmsGroupCreateSlides" tag="Export54"  getEnabled ="GetEnabledMAC" />
        </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" tag="Adjust61"  getEnabled ="GetEnabledMAC" />
           <button id="idSaveUSERpref" label="UserPref" size="normal" supertip="User preferences for window size, overlap, orientation, etc. are saved." onAction="RunUtility" imageMso="SaveSelectionToQuickTablesGallery" tag="Adjust62"  getEnabled ="GetEnabledMAC" />
        </group>
    <group id="idChartTools" label="Chart Tools" >
          <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" tag="TRACKChartTools71"  getEnabled ="GetEnabledMAC" />
           <button id="idHyperHIDE" label="HyperData" size="normal" supertip="Create temporary hyperlinks between visible series and source data." onAction="RunUtility" imageMso="FollowCodeHyperlink" tag="TRACKChartTools72"  getEnabled ="GetEnabledMAC" />
           <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" tag="TRACKChartTools73"  getEnabled ="GetEnabledMAC" />
           <button id="idGroupView" label="Group" size="normal" supertip="View series by customizable groups." onAction="RunUtility" imageMso="MarketingAssistance2" tag="ChartTools74"  getEnabled ="GetEnabledMAC" />
        </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" tag="Info81"  getEnabled ="GetEnabledMAC" />
           <button id="idAboutSeriesSee" label="About" size="normal" supertip="Display ad copy about SeriesSEE." onAction="PopNote" image="USGSgreen" tag="Info82"  getEnabled ="GetEnabledMAC" />
        </group>
      </tab>                                                                          
   </tabs>
 <!-- repeated toolbar for chart access of Box Focus-->
    <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>
