﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.6622.8829"?>
<regions xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings dpi="96">
    <identity>
      <id>d44d2e67-406f-4630-b64f-00bdbbbee76e</id>
      <revision>57</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Portrait" width="850" height="1100" />
      <margins left="59" right="31" top="39" bottom="47" />
      <header alignment="Center" color="#a9a9a9" />
      <footer alignment="Center" color="#a9a9a9"> &amp;[FILENAME] - &amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.6622.8829" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Mathcad File Access Functions" version="1.0.6520.39061" guid="02a1c2c5-590e-46bb-bcf6-c87856a8b14b" />
      <assembly name="Custom Functions" version="1.1.6585.40283" guid="18dadffd-79a3-4cf9-aee1-d66deb0ea720" />
      <assembly name="Special Functions" version="1.11.6622.8831" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="Area Region" version="0.99.6622.8829" guid="4974b228-4974-44cf-8274-bf2936b4a766" />
      <assembly name="Writer Region" version="0.9.6604.42933" guid="5922d677-323f-4327-8c68-be902d8339ad" />
      <assembly name="XLSX Import/Export" version="1.1.6616.19995" guid="621b8a62-bd79-47fc-948b-d4c4ab3b8588" />
      <assembly name="Statistical Tools" version="1.0.6599.21762" guid="76f6e9f5-ac86-4ffb-9e4d-284c8daecaf9" />
    </dependencies>
  </settings>
  <region id="0" left="27" top="18" width="297" height="28" color="#000000" bgColor="#ffffff">
    <writer lang="eng"><![CDATA[<span style="font-family: 'Tw Cen MT Condensed Extra Bold'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Yellow; text-align: left; line-height: 115%">
<div><span style="font-family: 'Arial Unicode MS'"><strong><span style="background-color: #CCFFFF">1. Import Water Level Data (from EXCEL file)</span></strong></span></div></span>]]></writer>
  </region>
  <region id="1" left="27" top="54" width="480" height="24" color="#000000" bgColor="#ffffff" fontSize="9">
    <math>
      <description active="true" position="Top" lang="eng">
        <p>Directory of  Excel file to import</p>
      </description>
      <input>
        <e type="operand">MyDirectory</e>
        <e type="operand" style="string" />
        <e type="function" args="1">DocumentDirectory</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand" style="string">C:\Users\Andrey\Downloads\</e>
      </result>
    </math>
  </region>
  <region id="2" left="27" top="117" width="354" height="24" color="#000000" bgColor="#ffffff" fontSize="9">
    <math optimize="2">
      <description active="true" position="Top" lang="eng">
        <p>Name of Excel File</p>
      </description>
      <input>
        <e type="operand">MyFile</e>
        <e type="operand">MyDirectory</e>
        <e type="operand" style="string">1.July WL&amp;RT.xlsx</e>
        <e type="function" args="2">concat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="3" left="27" top="180" width="328" height="28" color="#000000" bgColor="#ffffff" fontSize="9">
    <math optimize="2" decimalPlaces="6">
      <description active="true" position="Top" lang="eng">
        <p>To import: Sheet Name, Start cell and End cell</p>
      </description>
      <input>
        <e type="operand">WL</e>
        <e type="operand">MyFile</e>
        <e type="operand" style="string">WL</e>
        <e type="operand" style="string">C5</e>
        <e type="operand" style="string">AX35</e>
        <e type="function" args="4">importData.XLSX</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="4" left="27" top="252" width="424" height="189" color="#000000" bgColor="#ffffff" fontSize="10">
    <math matrixOptions="0,0,9,9">
      <description active="true" position="Top" lang="eng">
        <p>WL imported as a Matrix to SMath(Only part shown)</p>
      </description>
      <input>
        <e type="operand">WL</e>
      </input>
      <result action="numeric">
        <e type="operand">0.85</e>
        <e type="operand">0.74</e>
        <e type="operand">0.74</e>
        <e type="operand">0.75</e>
        <e type="operand">0.73</e>
        <e type="operand">0.72</e>
        <e type="operand">0.72</e>
        <e type="operand">0.72</e>
        <e type="operand">0.73</e>
        <e type="operand">0.72</e>
        <e type="operand">0.71</e>
        <e type="operand">0.69</e>
        <e type="operand">0.7</e>
        <e type="operand">0.71</e>
        <e type="operand">0.72</e>
        <e type="operand">0.7</e>
        <e type="operand">0.7</e>
        <e type="operand">0.7</e>
        <e type="operand">0.67</e>
        <e type="operand">0.71</e>
        <e type="operand">0.7</e>
        <e type="operand">0.7</e>
        <e type="operand">0.68</e>
        <e type="operand">0.68</e>
        <e type="operand">0.69</e>
        <e type="operand">0.69</e>
        <e type="operand">0.69</e>
        <e type="operand">0.67</e>
        <e type="operand">0.67</e>
        <e type="operand">0.67</e>
        <e type="operand">0.68</e>
        <e type="operand">0.7</e>
        <e type="operand">0.68</e>
        <e type="operand">0.67</e>
        <e type="operand">0.68</e>
        <e type="operand">0.67</e>
        <e type="operand">0.67</e>
        <e type="operand">0.67</e>
        <e type="operand">0.66</e>
        <e type="operand">0.68</e>
        <e type="operand">0.68</e>
        <e type="operand">0.67</e>
        <e type="operand">0.67</e>
        <e type="operand">0.66</e>
        <e type="operand">0.65</e>
        <e type="operand">0.86</e>
        <e type="operand">0.9</e>
        <e type="operand">0.9</e>
        <e type="operand">0.89</e>
        <e type="operand">0.93</e>
        <e type="operand">0.9</e>
        <e type="operand">0.9</e>
        <e type="operand">1.11</e>
        <e type="operand">1.13</e>
        <e type="operand">0.89</e>
        <e type="operand">0.9</e>
        <e type="operand">0.95</e>
        <e type="operand">0.98</e>
        <e type="operand">0.9</e>
        <e type="operand">0.9</e>
        <e type="operand">0.87</e>
        <e type="operand">0.87</e>
        <e type="operand">0.89</e>
        <e type="operand">0.64</e>
        <e type="operand">0.63</e>
        <e type="operand">0.63</e>
        <e type="operand">0.65</e>
        <e type="operand">0.64</e>
        <e type="operand">0.63</e>
        <e type="operand">0.62</e>
        <e type="operand">0.63</e>
        <e type="operand">0.62</e>
        <e type="operand">0.85</e>
        <e type="operand">0.92</e>
        <e type="operand">0.9</e>
        <e type="operand">0.9</e>
        <e type="operand">0.91</e>
        <e type="operand">0.91</e>
        <e type="operand">0.9</e>
        <e type="operand">0.93</e>
        <e type="operand">0.94</e>
        <e type="operand">9</e>
        <e type="operand">9</e>
        <e type="function" args="83">mat</e>
      </result>
    </math>
  </region>
  <region id="5" left="27" top="486" width="149" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">WL</e>
        <e type="function" args="1">length</e>
      </input>
      <result action="numeric">
        <e type="operand">1488</e>
      </result>
    </math>
  </region>
  <region id="6" left="198" top="486" width="117" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">WL</e>
        <e type="function" args="1">rows</e>
      </input>
      <result action="numeric">
        <e type="operand">31</e>
      </result>
    </math>
  </region>
  <region id="7" left="342" top="486" width="117" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">WL</e>
        <e type="function" args="1">cols</e>
      </input>
      <result action="numeric">
        <e type="operand">48</e>
      </result>
    </math>
  </region>
  <region id="8" left="27" top="531" width="221" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">WL.col</e>
        <e type="operand">WL</e>
        <e type="function" args="1">mat2sys</e>
        <e type="function" args="1">sys2mat</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="9" left="27" top="576" width="152" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">WL.col</e>
        <e type="function" args="1">rows</e>
      </input>
      <result action="numeric">
        <e type="operand">1488</e>
      </result>
    </math>
  </region>
  <region id="10" left="243" top="576" width="128" height="32" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">WL.col</e>
        <e type="function" args="1">cols</e>
      </input>
      <result action="numeric">
        <e type="operand">1</e>
      </result>
    </math>
  </region>
  <region id="11" left="27" top="630" width="328" height="28" color="#000000" bgColor="#ffffff" fontSize="9">
    <math optimize="2" decimalPlaces="6">
      <description active="true" position="Top" lang="eng">
        <p>Similarly, Import Rating Table (RT)</p>
      </description>
      <input>
        <e type="operand">RT</e>
        <e type="operand">MyFile</e>
        <e type="operand" style="string">RT</e>
        <e type="operand" style="string">B4</e>
        <e type="operand" style="string">C404</e>
        <e type="function" args="4">importData.XLSX</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="12" left="27" top="702" width="140" height="225" color="#000000" bgColor="#ffffff" fontSize="10">
    <math matrixOptions="0,0,2,11">
      <description active="true" position="Top" lang="eng">
        <p>RT as a Matrix to SMath(Only part shown)</p>
      </description>
      <input>
        <e type="operand">RT</e>
      </input>
      <result action="numeric">
        <e type="operand">0.5</e>
        <e type="operand">4.3</e>
        <e type="operand">0.51</e>
        <e type="operand">4.57</e>
        <e type="operand">0.52</e>
        <e type="operand">4.84</e>
        <e type="operand">0.53</e>
        <e type="operand">5.11</e>
        <e type="operand">0.54</e>
        <e type="operand">5.38</e>
        <e type="operand">0.55</e>
        <e type="operand">5.65</e>
        <e type="operand">0.56</e>
        <e type="operand">5.92</e>
        <e type="operand">0.57</e>
        <e type="operand">6.19</e>
        <e type="operand">0.58</e>
        <e type="operand">6.46</e>
        <e type="operand">0.59</e>
        <e type="operand">6.73</e>
        <e type="operand">0.6</e>
        <e type="operand">7</e>
        <e type="operand">11</e>
        <e type="operand">2</e>
        <e type="function" args="24">mat</e>
      </result>
    </math>
  </region>
  <region id="13" left="27" top="1017" width="289" height="27" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">RT</e>
        <e type="operand">0.85</e>
        <e type="operand">1</e>
        <e type="function" args="3">findrows</e>
      </input>
      <result action="numeric">
        <e type="operand">0.85</e>
        <e type="operand">16.75</e>
        <e type="operand">1</e>
        <e type="operand">2</e>
        <e type="function" args="4">mat</e>
      </result>
    </math>
  </region>
  <region id="14" left="27" top="1062" width="443" height="157" color="#000000" bgColor="#ffffff" fontSize="10">
    <math optimize="2">
      <input>
        <e type="operand">wl</e>
        <e type="operand">rt</e>
        <e type="function" args="2">Q</e>
        <e type="operand">j</e>
        <e type="operand">1</e>
        <e type="operand">wl</e>
        <e type="function" args="1">rows</e>
        <e type="function" args="2">range</e>
        <e type="operand" style="string">Convert water level (wl) to 2 decimals</e>
        <e type="operand" style="string">As Rating Table (rt) has 2 decimals</e>
        <e type="operand">wll</e>
        <e type="operand">j</e>
        <e type="function" args="2">el</e>
        <e type="operand">wl</e>
        <e type="operand">j</e>
        <e type="function" args="2">el</e>
        <e type="operand">2</e>
        <e type="function" args="2">round</e>
        <e type="operator" args="2">:</e>
        <e type="operand">q</e>
        <e type="operand">j</e>
        <e type="function" args="2">el</e>
        <e type="operand">rt</e>
        <e type="operand">wll</e>
        <e type="operand">j</e>
        <e type="function" args="2">el</e>
        <e type="operand">1</e>
        <e type="function" args="3">findrows</e>
        <e type="operand">2</e>
        <e type="function" args="2">el</e>
        <e type="operator" args="2">:</e>
        <e type="operand">4</e>
        <e type="operand">1</e>
        <e type="function" args="6">line</e>
        <e type="function" args="3">for</e>
        <e type="operand">q</e>
        <e type="function" args="1">mat2sys</e>
        <e type="function" args="1">sys2mat</e>
        <e type="operand">2</e>
        <e type="operand">1</e>
        <e type="function" args="4">line</e>
        <e type="operator" args="2">:</e>
      </input>
    </math>
  </region>
  <region id="15" left="27" top="1224" width="274" height="387" color="#000000" bgColor="#ffffff" fontSize="10">
    <math matrixOptions="0,0,1,20">
      <input>
        <e type="operand">Discharge</e>
        <e type="operand">WL.col</e>
        <e type="operand">RT</e>
        <e type="function" args="2">Q</e>
        <e type="operator" args="2">:</e>
      </input>
      <result action="numeric">
        <e type="operand">16.75</e>
        <e type="operand">11</e>
        <e type="operand">11</e>
        <e type="operand">11.5</e>
        <e type="operand">10.5</e>
        <e type="operand">10</e>
        <e type="operand">10</e>
        <e type="operand">10</e>
        <e type="operand">10.5</e>
        <e type="operand">11.5</e>
        <e type="operand">10.5</e>
        <e type="operand">27.4</e>
        <e type="operand">41.83</e>
        <e type="operand">38.38</e>
        <e type="operand">33.4</e>
        <e type="operand">33.4</e>
        <e type="operand">34.6</e>
        <e type="operand">38.38</e>
        <e type="operand">36.4</e>
        <e type="operand">38.38</e>
        <e type="operand">20</e>
        <e type="operand">1</e>
        <e type="function" args="22">mat</e>
      </result>
    </math>
  </region>
  <region id="16" left="369" top="1368" width="181" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Discharge</e>
        <e type="function" args="1">max</e>
      </input>
      <result action="numeric">
        <e type="operand">74.1</e>
      </result>
    </math>
  </region>
  <region id="17" left="369" top="1395" width="197" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math decimalPlaces="2" exponentialThreshold="2">
      <input>
        <e type="operand">Discharge</e>
        <e type="function" args="1">Mean</e>
      </input>
      <result action="numeric">
        <e type="operand">28.27</e>
      </result>
    </math>
  </region>
  <region id="18" left="369" top="1422" width="205" height="26" color="#000000" bgColor="#ffffff" fontSize="10">
    <math>
      <input>
        <e type="operand">Discharge</e>
        <e type="function" args="1">length</e>
      </input>
      <result action="numeric">
        <e type="operand">1488</e>
      </result>
    </math>
  </region>
</regions>