
<!-- We can also use the HAT file to selectively replace the values
read in via a RESP file. In the following example the RESP file
hill.resp is used verbatim, except for all occurances of Blockette50,
field 4 will now read 30.2" and all Blockette53 field 3 (tranfer
function type) will now be type "B" (analog response).  -->

<SHAPEFILE>


<!-- To build up a response from a collection of snippet, we need to
know how to piece the snippets together. As a response is
hierarchical, we need to represent the hierarchy of the
blocketts. i.e. a station can have 0-N B51s. a B54 can have a B57 and a
B58. We are proposing that each snippet file have stages grouped together (i.e. B54/B57/B58 is one stage) Here is an example where we glue together 6 stages from 2 different files. -->

<station name="DAV">
	<init name="latitude">
	 <field> B50F4</field>
	 <val> 30.2 </val>
	</init>
	<init>
	 <field> B50F10</field>
	 <val> this is a station comment B50F10 </val>
	</init>
	<init name="longitude">
	 <field> B50F5</field>
	 <val> 40.5 </val>
	</init>

        <stationcomment>
            <!-- this builds a station comment from scratch -->
            <starttime>1999,001</starttime>
            <endtime>1999,011</endtime>
            <comment>this is my station comment</comment>
            <commentlevel>000002</commentlevel> 
	</stationcomment>

	<channel name="dav_BHZ">

	        <snipfile>hill4_BHZ.snip</snipfile> 
                <starttimefilter>1990,001</starttimefilter>
                <endtimefilter>2001,011</endtimefilter>

		<init>
			<field>B52F22</field>
			<val> 1998,100 </val>
                </init>
		<init>
			<field>B52F23</field>
			<val> 1999,100 </val>
                </init>


                <!-- For Channel blockettes (and station blockettes)
                we just look through a snippet file looking for the
                first channel (station) blockette -->

              <stage>
                <first>1</first>

			<snipfile>b58_1a.snip</snipfile>

              </stage>


	</channel>

	<channel name="dav_BHZ">

	        <snipfile>hill4_BHZ.snip</snipfile> 

                <starttimefilter>1990,001</starttimefilter>
                <endtimefilter>2001,011</endtimefilter>

		<init>
			<field>B52F22</field>
			<val> 1999,100 </val>
                </init>
		<init>
			<field>B52F23</field>
			<val> 2000,100 </val>
                </init>



                <!-- For Channel blockettes (and station blockettes)
                we just look through a snippet file looking for the
                first channel (station) blockette -->

           
              <stage>
                <first>1</first>

			<snipfile>b58_1b.snip</snipfile>

              </stage>


	</channel>
	
</station>


<!-- Here is an example of the combination of snippets and a RESP file. -->

<!-- I'm not really convinced that this is a good idea to mix the
snippets and a RESP file, but let's at least discuss it at this
point. -->



</SHAPEFILE>
