Hello METRo developers.  I just ran into a case I haven't seen before.
METRo is crashing when it tries to combine the wind speed of forecast
and observation.  I just started looking into this, but thought I'd go
ahead and post in case any of you have experienced this problem before
and/or might have an idea what's going wrong.

I've attached the input files I'm using along with the log file that was
produced from this run.  The traceback info is:

Traceback (most recent call last):
  File "/home/jpresto/metro-3.0.3/metro/bin/metro", line 191, in ?
    main()
  File "/home/jpresto/metro-3.0.3/metro/bin/metro", line 184, in main
    metro_start(lExec_sequence)
  File "/home/jpresto/metro-3.0.3/metro/bin/metro", line 173, in metro_start
    metro_execute_module(lObject_execution_sequence)
  File "/home/jpresto/metro-3.0.3/metro/bin/metro", line 91, in
metro_execute_module
    object.start()
  File
"/home/jpresto/metro-3.0.3/metro/bin/executable_module/metro_preprocess_combine.py",
line 83, in start
    observation_data)
  File
"/home/jpresto/metro-3.0.3/metro/bin/executable_module/metro_preprocess_combine.py",
line 287, in __combine_WS
    naWS[i-self.NTP2] = fFactor*naWS[i-self.NTP2]
IndexError: Index out of range

Thanks in advance for any help you might be able to give me!

Julie
<?xml version ="1.0" ?>
<forecast>
  <header>
      <version>1.1</version>
      <production-date>2007-03-29T18:00Z</production-date>
      <station-id>72570039</station-id>
  </header>
  <prediction-list>
      <prediction>
          <forecast-time>2007-03-31T12:00Z</forecast-time>
          <at>-3.52</at>
          <td>-4.02</td>
          <ra>0.00</ra>
          <sn>2.17</sn>
          <ws>1.61</ws>
          <ap>734.84</ap>
          <cc>5</cc>
          <wd>356.38</wd>
      </prediction>
      <prediction>
          <forecast-time>2007-03-31T13:00Z</forecast-time>
          <at>-2.55</at>
          <td>-4.00</td>
          <ra>0.00</ra>
          <sn>2.17</sn>
          <ws>2.58</ws>
          <ap>735.00</ap>
          <cc>5</cc>
          <wd>338.08</wd>
      </prediction>
      <prediction>
          <forecast-time>2007-03-31T14:00Z</forecast-time>
          <at>-0.91</at>
          <td>-3.98</td>
          <ra>0.00</ra>
          <sn>2.17</sn>
          <ws>3.56</ws>
          <ap>735.16</ap>
          <cc>6</cc>
          <wd>316.80</wd>
      </prediction>
  </prediction-list>
</forecast>
<?xml version ="1.0" ?>
<observation>
 <header>
  <filetype>rwis-observation</filetype>
  <version>1.0</version>
  <road-station>72570039</road-station>
 </header>
 <measure-list>
  <measure>
    <observation-time>2007-03-31T01:00Z</observation-time>
    <at>2.54</at>
    <td>-7.84</td>
    <pi>1</pi>
    <ws>7.42</ws>
    <sc>34</sc>
    <st>10.25</st>
    <sst>12.76</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T02:00Z</observation-time>
    <at>1.18</at>
    <td>-6.67</td>
    <pi>1</pi>
    <ws>6.41</ws>
    <sc>34</sc>
    <st>7.11</st>
    <sst>12.76</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T03:00Z</observation-time>
    <at>0.10</at>
    <td>-5.50</td>
    <pi>1</pi>
    <ws>5.41</ws>
    <sc>34</sc>
    <st>5.24</st>
    <sst>12.76</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T04:00Z</observation-time>
    <at>-0.49</at>
    <td>-4.99</td>
    <pi>1</pi>
    <ws>4.24</ws>
    <sc>34</sc>
    <st>2.54</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T05:00Z</observation-time>
    <at>-0.75</at>
    <td>-4.48</td>
    <pi>0</pi>
    <ws>3.08</ws>
    <sc>33</sc>
    <st>3.06</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T06:00Z</observation-time>
    <at>-0.93</at>
    <td>-3.97</td>
    <pi>0</pi>
    <ws>1.91</ws>
    <sc>33</sc>
    <st>3.01</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T07:00Z</observation-time>
    <at>-1.22</at>
    <td>-3.94</td>
    <pi>0</pi>
    <ws>1.72</ws>
    <sc>33</sc>
    <st>2.78</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T08:00Z</observation-time>
    <at>-1.68</at>
    <td>-3.91</td>
    <pi>0</pi>
    <ws>1.54</ws>
    <sc>33</sc>
    <st>2.19</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T09:00Z</observation-time>
    <at>-2.31</at>
    <td>-3.88</td>
    <pi>0</pi>
    <ws>1.35</ws>
    <sc>33</sc>
    <st>1.60</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T10:00Z</observation-time>
    <at>-3.06</at>
    <td>-3.93</td>
    <pi>0</pi>
    <ws>1.44</ws>
    <sc>33</sc>
    <st>1.02</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T11:00Z</observation-time>
    <at>-3.60</at>
    <td>-3.97</td>
    <pi>0</pi>
    <ws>1.52</ws>
    <sc>33</sc>
    <st>0.46</st>
    <sst>12.72</sst>
  </measure>
  <measure>
    <observation-time>2007-03-31T12:00Z</observation-time>
    <at>-3.52</at>
    <td>-4.02</td>
    <pi>0</pi>
    <ws>1.61</ws>
    <sc>33</sc>
    <st>0.05</st>
    <sst>12.72</sst>
  </measure>
 </measure-list>
</observation>
<?xml version ="1.0" ?>
<station>
  <header>
      <filetype>rwis-configuration</filetype>
      <version>1.0</version>
      <road-station>72570039</road-station>
      <time-zone>MST7MDT</time-zone>
      <production-date>2007-03-29T18:00Z</production-date>
      <coordinate>
          <latitude>39.69</latitude>
          <longitude>-106.68</longitude>
      </coordinate>
      <station-type>road</station-type>
  </header>
  <roadlayer-list>
      <roadlayer>
          <position>1</position>
          <type>asphalt</type>
          <thickness>0.4064</thickness>
      </roadlayer>
      <roadlayer>
          <position>2</position>
          <type>crushed rock</type>
          <thickness>0.6605</thickness>
      </roadlayer>
  </roadlayer-list>
</station>

============================================
METRo version   : 3.0.3 (2007-02-27)
METRo started   : Thu Mar 29 18:17:02 2007 UTC
command line    : /home/jpresto/metro-3.0.3/metro/bin/metro --input-forecast 
met.0.12.xml --input-station station.0.12.xml --input-observation obs.0.12.xml
logger verbosity: Full

============================================


EXECUTION  : METRO_READ_FORECAST module: start execution
INFORMATIVE: File 'met.0.12.xml' read with success
EXECUTION  : METRO_READ_FORECAST module: end of execution


EXECUTION  : METRO_VALIDATE_FORECAST module: start execution
INFORMATIVE: FORECAST XML string has been validated
EXECUTION  : METRO_VALIDATE_FORECAST module: end of execution


EXECUTION  : METRO_STRING2DOM_FORECAST module: start execution
EXECUTION  : METRO_STRING2DOM_FORECAST module: end of execution


EXECUTION  : METRO_READ_OBSERVATION module: start execution
INFORMATIVE: File 'obs.0.12.xml' read with success
EXECUTION  : METRO_READ_OBSERVATION module: end of execution


EXECUTION  : METRO_VALIDATE_OBSERVATION module: start execution
INFORMATIVE: OBSERVATION XML string has been validated
EXECUTION  : METRO_VALIDATE_OBSERVATION module: end of execution


EXECUTION  : METRO_STRING2DOM_OBSERVATION module: start execution
EXECUTION  : METRO_STRING2DOM_OBSERVATION module: end of execution


EXECUTION  : METRO_READ_STATION module: start execution
INFORMATIVE: File 'station.0.12.xml' read with success
EXECUTION  : METRO_READ_STATION module: end of execution


EXECUTION  : METRO_VALIDATE_STATION module: start execution
INFORMATIVE: STATION XML string has been validated
EXECUTION  : METRO_VALIDATE_STATION module: end of execution


EXECUTION  : METRO_STRING2DOM_STATION module: start execution
EXECUTION  : METRO_STRING2DOM_STATION module: end of execution


EXECUTION  : METRO_DOM2METRO module: start execution
EXECUTION  : METRO_DOM2METRO module: end of execution


EXECUTION  : METRO_PREPROCESS_VALIDATE_INPUT module: start execution
INFORMATIVE: Roadcast start date set to the date of
             the last observation: '2007-03-31T12:00Z'
EXECUTION  : METRO_PREPROCESS_VALIDATE_INPUT module: end of execution


EXECUTION  : METRO_PREPROCESS_QA_QC_FORECAST module: start execution


EXECUTION  : METRO_PREPROCESS_QA_QC_FORECAST module: start execution
EXECUTION  : METRO_PREPROCESS_QA_QC_FORECAST module: end of execution


EXECUTION  : METRO_PREPROCESS_INTERPOL_FORECAST module: start execution
EXECUTION  : METRO_PREPROCESS_INTERPOL_FORECAST module: end of execution


EXECUTION  : METRO_PREPROCESS_FSINT2 module: start execution
INFORMATIVE: For the date 31-3-2007,
             at the latitude 39.69 N and longitude 106.68 W
             sunrise is at 12:52:22 UTC
             sunset  is at 25:29:26 UTC
EXECUTION  : METRO_PREPROCESS_FSINT2 module: end of execution


EXECUTION  : METRO_PREPROCESS_QA_QC_OBSERVATION module: start execution


EXECUTION  : METRO_PREPROCESS_QA_QC_OBSERVATION module: start execution
INFORMATIVE: First atmospheric forecast time:2007-03-31T12:00Z
INFORMATIVE: First valid observation   : 2007-03-31T01:00Z
EXECUTION  : METRO_PREPROCESS_QA_QC_OBSERVATION module: end of execution


EXECUTION  : METRO_PREPROCESS_VALIDATE_INPUT module: start execution
EXECUTION  : METRO_PREPROCESS_VALIDATE_INPUT module: end of execution


EXECUTION  : METRO_PREPROCESS_INTERPOL_OBSERVATION module: start execution
EXECUTION  : METRO_PREPROCESS_INTERPOL_OBSERVATION module: end of execution


EXECUTION  : METRO_PREPROCESS_COMBINE module: start execution
_______________________________________________
METRo-developers mailing list
[email protected]
https://mail.gna.org/listinfo/metro-developers

Reply via email to