<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Mary,<div><br></div><div>In the examples you have given, in the case of CI_PASC you are specifying a channel and location code. With IC_ENH you are not specifying either, you wouldn't you expect more than one record (or in Matlab language, structure of 1x2 arrays)? Maybe try specifying a channel and/or loc code and see what you get back.</div><div><br></div><div>Best regards,</div><div>- Rob N</div><div><br></div><div><br></div><div><div><div>On Feb 7, 2013, at 3:01 PM, Mary Templeton wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>I'm running a matlab amplitude check on GSN stations for the recent Santa <br>Cruz Islands event. &nbsp;I've done this for past event of M&gt;=7 with no problem.<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>Today my routine is failing because the structure returned by irisFetch.Traces <br>for IC.ENH.00.BHZ (for example) is a structure of 1x2 arrays having duplicate <br>values rather than a structure of single values. &nbsp;I'm not getting this behavior with <br>CI.PASC.00.BHZ. &nbsp;<br><br>Here's what I'm used to:<br><br><blockquote type="cite"><blockquote type="cite">net='CI'<br></blockquote></blockquote>net =CI<br><blockquote type="cite"><blockquote type="cite">sta='PASC'<br></blockquote></blockquote>sta =PASC<br><blockquote type="cite"><blockquote type="cite">loc='00'<br></blockquote></blockquote>loc =00<br><blockquote type="cite"><blockquote type="cite">chan='BHZ'<br></blockquote></blockquote>chan =BHZ<br><blockquote type="cite"><blockquote type="cite">starttime<br></blockquote></blockquote>starttime =2013-02-06 01:12:35<br><blockquote type="cite"><blockquote type="cite">endtime<br></blockquote></blockquote>endtime =2013-02-06 03:12:35<br><br><blockquote type="cite"><blockquote type="cite">primary = irisFetch.Traces(net,sta,loc,chan,starttime,endtime)<br></blockquote></blockquote>primary = <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;network: 'CI'<br> &nbsp;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nbsp;&nbsp;&nbsp;&nbsp;dip: -90<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sensitivity: 5.9199e+09<br> &nbsp;&nbsp;&nbsp;sensitivityFrequency: 0.0300<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;instrument: 'STS-1'<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sensitivityUnits: 'M/S'<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data: [288000x1 single]<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sampleCount: 288000<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sampleRate: 40<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startTime: 7.3527e+05<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endTime: 7.3527e+05<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sacpz: [1x1 struct]<br><br><br>Here's how IC.ENH differs:<br><br><blockquote type="cite"><blockquote type="cite">net='IC'<br></blockquote></blockquote>net =IC<br><blockquote type="cite"><blockquote type="cite">sta='ENH'<br></blockquote></blockquote>sta =ENH<br><br><blockquote type="cite"><blockquote type="cite">secondary = irisFetch.Traces(net,sta,loc,chan,starttime,endtime)<br></blockquote></blockquote>secondary = <br>1x2 struct array with fields:<br> &nbsp;&nbsp;&nbsp;network<br> &nbsp;&nbsp;&nbsp;station<br> &nbsp;&nbsp;&nbsp;location<br> &nbsp;&nbsp;&nbsp;channel<br> &nbsp;&nbsp;&nbsp;quality<br> &nbsp;&nbsp;&nbsp;latitude<br> &nbsp;&nbsp;&nbsp;longitude<br> &nbsp;&nbsp;&nbsp;elevation<br> &nbsp;&nbsp;&nbsp;depth<br> &nbsp;&nbsp;&nbsp;azimuth<br> &nbsp;&nbsp;&nbsp;dip<br> &nbsp;&nbsp;&nbsp;sensitivity<br> &nbsp;&nbsp;&nbsp;sensitivityFrequency<br> &nbsp;&nbsp;&nbsp;instrument<br> &nbsp;&nbsp;&nbsp;sensitivityUnits<br> &nbsp;&nbsp;&nbsp;data<br> &nbsp;&nbsp;&nbsp;sampleCount<br> &nbsp;&nbsp;&nbsp;sampleRate<br> &nbsp;&nbsp;&nbsp;startTime<br> &nbsp;&nbsp;&nbsp;endTime<br> &nbsp;&nbsp;&nbsp;sacpz<br><br><blockquote type="cite"><blockquote type="cite">secondary.sampleRate<br></blockquote></blockquote>ans = &nbsp;&nbsp;&nbsp;20<br>ans = &nbsp;&nbsp;&nbsp;20<br><blockquote type="cite"><blockquote type="cite">secondary.network<br></blockquote></blockquote>ans =IC<br>ans =IC<br><br>etc.<br><br>The only field where the values aren't duplicated is sampleCount:<br><blockquote type="cite"><blockquote type="cite">secondary.sampleCount<br></blockquote></blockquote>ans = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;75712<br>ans = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;60270<br><br>Is this what you would expect? &nbsp;If so, can you explain when/why it occurs? &nbsp;I'm wondering <br>if this is an error or something I need to catch and handle.<br><br>Thanks a bunch,<br>Mary Templeton<br><br><br><br>_______________________________________________<br>webservices mailing list<br><a href="mailto:webservices@iris.washington.edu">webservices@iris.washington.edu</a><br>http://www.iris.washington.edu/mailman/listinfo/webservices<br></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Spranq eco sans'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Spranq eco sans'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Spranq eco sans'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">_____________________________________________<br><br>Rob Newman</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Technology Architect, IRIS DMC</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">[e]&nbsp;<a href="mailto:rnewman@iris.washington.edu">rnewman@iris.washington.edu</a><br><br><br></div></span></div></span></span>
</div>
<br></div></body></html>