USDA-ARS-NWRC / smrf

SMRF was designed to increase the flexibility of taking measured weather data, or atmospheric models, and distributing the data across a watershed.
Other
12 stars 4 forks source link

testConfig_alldata.ini throws error #48

Closed micahjohnson150 closed 5 years ago

micahjohnson150 commented 7 years ago

As of 0.4.5, testConfig_alldata.ini does not run. Crashes in wind.py after a pandas warning.

When running it not threaded you get this error:


Traceback (most recent call last):
  File "/home/micahjohnson/projects/micahenv/bin/run_smrf", line 8, in <module>
    execfile(__file__)
  File "/home/micahjohnson/projects/smrf/scripts/run_smrf", line 53, in <module>
    run()
  File "/home/micahjohnson/projects/smrf/scripts/run_smrf", line 41, in run
    s.distributeData()
  File "/home/micahjohnson/projects/smrf/smrf/framework/model_framework.py", line 445, in distributeData
    self.distributeData_single()
  File "/home/micahjohnson/projects/smrf/smrf/framework/model_framework.py", line 498, in distributeData_single
    self.distribute['air_temp'].distribute(self.data.air_temp.ix[t])
  File "/home/micahjohnson/projects/smrf/smrf/distribute/air_temp.py", line 88, in distribute
    self._distribute(data)
  File "/home/micahjohnson/projects/smrf/smrf/distribute/image_data.py", line 182, in _distribute
    zeros=zeros)
  File "/home/micahjohnson/projects/smrf/smrf/spatial/idw.py", line 107, in detrendedIDW
    self.detrendData(data, flag, zeros)
  File "/home/micahjohnson/projects/smrf/smrf/spatial/idw.py", line 186, in detrendData
    pv = np.polyfit(self.mz[~nan_val], data[~nan_val], 1)
IndexError: boolean index did not match indexed array along dimension 0; dimension is 43 but corresponding boolean dimension is 47

I think this is because of some kind of dimension mismatch on the stations.

scotthavens commented 5 years ago

Are we still supporting this config file? This is an old version of SMRF and we're now using unit tests instead.

micahjohnson150 commented 5 years ago

I don't think so. I don't see it anywhere.

scotthavens commented 5 years ago

This used to live in the test_data directory which was removed in v0.6.0