We had a bug in our code that caused the input forecast file to only have one hour of forecast data. We fixed our bug and we no longer have this case. It makes sense to me that METRo would need more than one hour of forecast data in order to interpolate, but I guess my question is still a valid one, regarding a required number of forecast hours.
Julie Julie Prestopnik wrote: > We have a case where we only have one hour of forecast data. METRo > crashes for this case: > > EXECUTION : METRO_PREPROCESS_INTERPOL_FORECAST module: start execution > 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_interpol_forecast.py", > line 76, in start > forecast_data.get_interpolated_data() ) > File > "/home/jpresto/metro-3.0.3/metro/bin/executable_module/metro_preprocess_interpol_forecast.py", > line 158, in __interpolate_FT > metro_constant.fTimeStep) > File "/home/jpresto/metro-3.0.3/metro/bin/toolbox/metro_util.py", line > 221, in interpolate > raise "METRoUtilError", sMetroUtilError > METRoUtilError: In interpolate, the arrays have only one value (1) > > > It looks like METRo can't interpolate with one forecast value. Should > it be case that METRo has to have more than one hour's worth of forecast > data? I checked in the documentation on the wiki, but I didn't see any > restrictions regarding the number of hours of forecast data that is > required, so I thought I'd check with you. > > Thanks, > Julie > > > ------------------------------------------------------------------------ > > <?xml version ="1.0" ?> > <forecast> > <header> > <version>1.1</version> > <production-date>2007-04-06T17:10Z</production-date> > <station-id>72469081</station-id> > </header> > <prediction-list> > <prediction> > <forecast-time>2007-04-08T08:00Z</forecast-time> > <at>0.22</at> > <td>-2.47</td> > <ra>0.00</ra> > <sn>3.40</sn> > <ws>2.25</ws> > <ap>786.10</ap> > <cc>8</cc> > <wd>54.14</wd> > </prediction> > </prediction-list> > </forecast> > > > ------------------------------------------------------------------------ > > <?xml version ="1.0" ?> > <observation> > <header> > <filetype>rwis-observation</filetype> > <version>1.0</version> > <road-station>72469081</road-station> > </header> > <measure-list> > <measure> > <observation-time>2007-04-07T21:00Z</observation-time> > <at>2.93</at> > <td>-2.23</td> > <pi>1</pi> > <ws>11.39</ws> > <sc>34</sc> > <st>10.71</st> > <sst>2.93</sst> > </measure> > <measure> > <observation-time>2007-04-07T22:00Z</observation-time> > <at>3.04</at> > <td>-2.55</td> > <pi>1</pi> > <ws>11.20</ws> > <sc>34</sc> > <st>10.24</st> > <sst>3.04</sst> > </measure> > <measure> > <observation-time>2007-04-07T23:00Z</observation-time> > <at>3.28</at> > <td>-2.87</td> > <pi>1</pi> > <ws>11.00</ws> > <sc>34</sc> > <st>9.32</st> > <sst>3.28</sst> > </measure> > <measure> > <observation-time>2007-04-08T00:00Z</observation-time> > <at>3.59</at> > <td>-3.19</td> > <pi>1</pi> > <ws>10.81</ws> > <sc>34</sc> > <st>5.90</st> > <sst>3.58</sst> > </measure> > <measure> > <observation-time>2007-04-08T01:00Z</observation-time> > <at>3.87</at> > <td>-3.00</td> > <pi>1</pi> > <ws>8.56</ws> > <sc>34</sc> > <st>5.19</st> > <sst>3.86</sst> > </measure> > <measure> > <observation-time>2007-04-08T02:00Z</observation-time> > <at>3.90</at> > <td>-2.80</td> > <pi>1</pi> > <ws>6.32</ws> > <sc>34</sc> > <st>4.49</st> > <sst>3.90</sst> > </measure> > <measure> > <observation-time>2007-04-08T03:00Z</observation-time> > <at>3.46</at> > <td>-2.61</td> > <pi>1</pi> > <ws>4.07</ws> > <sc>34</sc> > <st>3.74</st> > <sst>3.47</sst> > </measure> > <measure> > <observation-time>2007-04-08T04:00Z</observation-time> > <at>2.41</at> > <td>-2.52</td> > <pi>1</pi> > <ws>3.96</ws> > <sc>34</sc> > <st>3.00</st> > <sst>2.43</sst> > </measure> > <measure> > <observation-time>2007-04-08T05:00Z</observation-time> > <at>1.16</at> > <td>-2.44</td> > <pi>1</pi> > <ws>3.84</ws> > <sc>34</sc> > <st>2.46</st> > <sst>1.18</sst> > </measure> > <measure> > <observation-time>2007-04-08T06:00Z</observation-time> > <at>0.25</at> > <td>-2.35</td> > <pi>1</pi> > <ws>3.72</ws> > <sc>34</sc> > <st>1.80</st> > <sst>0.27</sst> > </measure> > <measure> > <observation-time>2007-04-08T07:00Z</observation-time> > <at>0.02</at> > <td>-2.41</td> > <pi>1</pi> > <ws>2.99</ws> > <sc>34</sc> > <st>1.30</st> > <sst>0.02</sst> > </measure> > <measure> > <observation-time>2007-04-08T08:00Z</observation-time> > <at>0.22</at> > <td>-2.47</td> > <pi>0</pi> > <ws>2.25</ws> > <sc>33</sc> > <st>1.16</st> > <sst>0.22</sst> > </measure> > </measure-list> > </observation> > > > ------------------------------------------------------------------------ > > <?xml version ="1.0" ?> > <station> > <header> > <filetype>rwis-configuration</filetype> > <version>1.0</version> > <road-station>72469081</road-station> > <time-zone>MST7MDT</time-zone> > <production-date>2007-04-06T17:10Z</production-date> > <coordinate> > <latitude>39.70</latitude> > <longitude>-105.19</longitude> > </coordinate> > <station-type>bridge</station-type> > </header> > <roadlayer-list> > <roadlayer> > <position>1</position> > <type>cement</type> > <thickness>0.2750</thickness> > </roadlayer> > </roadlayer-list> > </station> > > > ------------------------------------------------------------------------ > > _______________________________________________ > METRo-developers mailing list > [email protected] > https://mail.gna.org/listinfo/metro-developers _______________________________________________ METRo-developers mailing list [email protected] https://mail.gna.org/listinfo/metro-developers
