Meteo Service did not survive restructuring

I ran cornishpasdy and the error occured: `Traceback (most recent call last):

File "E:\UFZ\Repositories\cornishpasdy\module.py", line 7, in data=pasdy.main(configfile='.\examples\rover.cfg')

File "E:\UFZ\Repositories\cornishpasdy\instantPASDy.py", line 467, in main data['correct_p'] = C_press( data[p], gc(config, 'correction', 'pressure_ref', dtype=float),

File "E:\UFZ\Repositories\cornishpasdy\corny\corn.py", line 97, in C_press r = np.exp((p - pref) / beta)

File "c:\python\python382\lib\site-packages\pandas\core\ops\common.py", line 65, in new_method return method(self, other)

File "c:\python\python382\lib\site-packages\pandas\core\ops__init__.py", line 343, in wrapper result = arithmetic_op(lvalues, rvalues, op)

File "c:\python\python382\lib\site-packages\pandas\core\ops\array_ops.py", line 190, in arithmetic_op res_values = na_arithmetic_op(lvalues, rvalues, op)

File "c:\python\python382\lib\site-packages\pandas\core\ops\array_ops.py", line 150, in na_arithmetic_op result = masked_arith_op(left, right, op)

File "c:\python\python382\lib\site-packages\pandas\core\ops\array_ops.py", line 112, in masked_arith_op result[mask] = op(xrav[mask], y)

TypeError: unsupported operand type(s) for -: 'str' and 'float'`

It appears to be a problem, that data retrieval from DWD is not tested by the current examples. Hence, we do not realize errors (semi-automatically). I suggest:

  • Assign out of range meteorology to one record in the rover example in order to force the metereology module call
  • fix the bug
Edited by Erik Nixdorf