Hi, Alex.<div><br></div><div>OK, I understand why I&#39;m getting duplicates. I do think, however, that the service should only return distinct StationEpochs. If the service returns this level of duplicated information, it makes me wonder whether the level=sta format has any utility. Why even provide it?</div>

<div><br></div><div>Thanks!</div><div><br></div><div>     -- John<br>
<br><br><div class="gmail_quote">On Mon, Nov 14, 2011 at 1:16 PM, Alex <span dir="ltr">&lt;<a href="mailto:alex@iris.washington.edu">alex@iris.washington.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word"><div><div><div>Hi John,</div><div><br></div><div>What happened is that you selected &quot;station level&quot; information using the -sta flag.  If you didn&#39;t use that, it would default to channel level and you would see that WS is returning one line for each channel and omitting the channel name, so it looks like lots of duplicates.  If you want only the earliest and latest station epochs, you will have to read them all to figure this out.</div>

<div><br></div><div>Also just as an FYI since you are interested in the epochs, sometimes a very tiny gap in station epochs can exist (like one sample point e.g. 0.05sec) or metadata gets changed and what happens is that you will see 2 epochs where the end of the first epoch will equal the start of the second.</div>

<div><br></div><div>epoch 1:  2002-03-17T00:00:00,2005-04-05T06:07:08</div><div>epoch 2: 2005-04-05T06:07:08,2599-12-31T23:59:59</div><div><br></div><div>Alex</div><div><br></div><div><br></div><div>channel level:</div><div>

<br></div><div>scoop synthetics/METADATA&gt; FetchMetadata -ua 2011-06-06 -N ND -vvv -s 2010-01-01 -e 2500-12-12</div><div>FetchMetadata (2011.172) at 2011-11-13 18:37:39</div><div>== Data selections ==</div><div>    ND||||2010-01-01T00:00:00|2500-12-12T00:00:00</div>

<div>Metadata URI: &#39;<a href="http://www.iris.edu/ws/station/query?level=chan&amp;network=ND&amp;timewindow=2010-01-01,2500-12-12&amp;updatedafter=2011-06-06" target="_blank">http://www.iris.edu/ws/station/query?level=chan&amp;network=ND&amp;timewindow=2010-01-01,2500-12-12&amp;updatedafter=2011-06-06</a>&#39;</div>

<div>Fetching metadata :: Received 108.1 KB  </div><div>Received 108.1 KB of metadata in 0.1 seconds (1.2 MB/s)</div><div>Parsing XML metadata... Done (0.1 seconds)</div><div>Processed metadata for 84 channel epochs in 0.2 seconds (488.3 KB/s)</div>

<div>Writing metadata (84 channel epochs) file</div><div>#net,sta,loc,chan,lat,lon,elev,depth,azimuth,SACdip,instrument,scale,scalefreq,scaleunits,samplerate,start,end</div><div>ND,KOUNC,--,BHE,-20.5507,164.2861,88.0,0.0,90.0,90,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,20,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,--,BHN,-20.5507,164.2861,88.0,0.0,0.0,90,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,20,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,--,BHZ,-20.5507,164.2861,88.0,0.0,0.0,0,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,20,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,--,BNE,-20.5507,164.2861,88.0,0.0,90.0,90,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,20,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,--,BNN,-20.5507,164.2861,88.0,0.0,0.0,90,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,20,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,--,BNZ,-20.5507,164.2861,88.0,0.0,0.0,0,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,20,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,--,HHE,-20.5507,164.2861,88.0,0.0,90.0,90,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,100,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,--,HHN,-20.5507,164.2861,88.0,0.0,0.0,90,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,100,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,--,HHZ,-20.5507,164.2861,88.0,0.0,0.0,0,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,100,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,--,HNE,-20.5507,164.2861,88.0,0.0,90.0,90,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,100,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,--,HNN,-20.5507,164.2861,88.0,0.0,0.0,90,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,100,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,--,HNZ,-20.5507,164.2861,88.0,0.0,0.0,0,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,100,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,LIFNC,--,BHE,-20.7771,167.2402,33.0,0.0,90.0,90,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,20,2010-08-28T00:00:00,2599-12-31T23:59:59</div>

<div>ND,LIFNC,--,BHN,-20.7771,167.2402,33.0,0.0,0.0,90,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,20,2010-08-28T00:00:00,2599-12-31T23:59:59</div><div>ND,LIFNC,--,BHZ,-20.7771,167.2402,33.0,0.0,0.0,0,Trillium 120P; 120 s; 1201 V/m/s-Kephren; gain 1;,1.28257E11,0.05,M/S,20,2010-08-28T00:00:00,2599-12-31T23:59:59</div>

<div>ND,LIFNC,--,BNE,-20.7771,167.2402,33.0,0.0,90.0,90,Episensor; DC to &gt;200 Hz;  20V differential full s,2.18979E8,0.05,M/S**2,20,2010-08-28T00:00:00,2599-12-31T23:59:59</div></div></div><div><br></div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>

<div>station level  (-sta flag):</div><div><br></div><div><div>scoop synthetics/METADATA&gt; FetchMetadata -ua 2011-06-06 -N ND -vvv -s 2010-01-01 -e 2500-12-12 -sta</div><div>FetchMetadata (2011.172) at 2011-11-13 18:36:27</div>

<div>== Data selections ==</div><div>    ND||||2010-01-01T00:00:00|2500-12-12T00:00:00</div><div>Metadata URI: &#39;<a href="http://www.iris.edu/ws/station/query?level=sta&amp;network=ND&amp;timewindow=2010-01-01,2500-12-12&amp;updatedafter=2011-06-06" target="_blank">http://www.iris.edu/ws/station/query?level=sta&amp;network=ND&amp;timewindow=2010-01-01,2500-12-12&amp;updatedafter=2011-06-06</a>&#39;</div>

<div>Fetching metadata :: Received 38.3 KB   </div><div>Received 38.3 KB of metadata in 0.1 seconds (492.5 KB/s)</div><div>Parsing XML metadata... Done (0.0 seconds)</div><div>Processed metadata for 84 station epochs in 0.1 seconds (323.3 KB/s)</div>

<div>Writing metadata (84 station epochs) file</div><div>#net,sta,lat,lon,elev,site,start,end</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div>

<div>ND,KOUNC,-20.5507,164.2861,88.0,Koumac; New Caledonia,2011-03-17T00:00:00,2599-12-31T23:59:59</div><div>ND,LIFNC,-20.7771,167.2402,33.0,Lifou; Loyalty Islands; New Caledonia,2010-08-28T00:00:00,2599-12-31T23:59:59</div>

<div>ND,LIFNC,-20.7771,167.2402,33.0,Lifou; Loyalty Islands; New Caledonia,2010-08-28T00:00:00,2599-12-31T23:59:59</div><div>ND,LIFNC,-20.7771,167.2402,33.0,Lifou; Loyalty Islands; New Caledonia,2010-08-28T00:00:00,2599-12-31T23:59:59</div>

<div>ND,LIFNC,-20.7771,167.2402,33.0,Lifou; Loyalty Islands; New Caledonia,2010-08-28T00:00:00,2599-12-31T23:59:59</div></div><div><br></div><div><br></div><br><div><div><div class="h5"><div>On Nov 13, 2011, at 4:05 PM, John D. West wrote:</div>

<br></div></div><blockquote type="cite"><div><div class="h5"><font face="arial, helvetica, sans-serif">Hi.</font><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">The query <a href="http://www.iris.edu/ws/station/query?updatedafter=2011-06-06&amp;level=sta&amp;net=ND&amp;timewindow=2010-01-01,2500-12-12" target="_blank">http://www.iris.edu/ws/station/query?updatedafter=2011-06-06&amp;level=sta&amp;net=ND&amp;timewindow=2010-01-01,2500-12-12</a></font></div>



<div><font face="arial, helvetica, sans-serif">returns multiple duplicates of the <span style="font-size:13px">&lt;StationEpoch&gt; sections for each station. </span></font></div>

<div><font face="arial, helvetica, sans-serif"><span style="font-size:13px"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:13px">Makes my sync to a local copy procedure very slow...</span></font></div>



<div><font face="arial, helvetica, sans-serif"><span style="font-size:13px"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size:13px">Thanks!</span></font></div>

<div><font face="arial, helvetica, sans-serif"><span style="font-size:13px"><br></span></font></div><div><font face="arial, helvetica, sans-serif">     -- John</font><br>


</div></div></div>
_______________________________________________<br>webservices mailing list<br><a href="mailto:webservices@iris.washington.edu" target="_blank">webservices@iris.washington.edu</a><br><a href="http://www.iris.washington.edu/mailman/listinfo/webservices" target="_blank">http://www.iris.washington.edu/mailman/listinfo/webservices</a><br>

</blockquote></div><br></div></blockquote></div><br></div>