Open meteorolog90 opened 1 year ago
The background (background_elab_type) must be a background object and not a string.
I have not implemented exactly this test in pysurfex, but there is another first guess using the range_check test from titan where I have interpolated observations and background using gridpp:
https://github.com/metno/pysurfex/blob/master/pysurfex/titan.py#L277
Greetings. My goal is to set up a first guess test using Python. The Wiki only has R-code examples, so I converted them to Python syntax. My setup looks like this:
Here is the error message I get:
File "first_quess_test.py", line 152, in <module> basic File "/users/nwp999/bin/pynwp/lib64/python3.6/site-packages/titanlib.py", line 892, in fgt return _titanlib.fgt(points, values, obs_to_check, background_values, background_uncertainties, background_elab_type, num_min_outer , num_max_outer, inner_radius, outer_radius, num_iterations, num_min_prof, min_elev_diff, value_mina, value_maxa, value_minv, value_max v, tpos, tneg, debug, basic) TypeError: in method 'fgt', argument 6 of type 'titanlib::BackgroundType'
Is it possible to run this test using Python ?