Skip to content

dual python embedding with gridded data and point_obs not working #2713

Closed Locked Answered by Wesley-J-Davis
Wesley-J-Davis asked this question in Configuration
Discussion options

You must be logged in to vote

Strictly doing that in my configs returns this error:

Traceback (most recent call last):
File "/usr/local/share/met/wrappers/write_tmp_point_nc.py", line 56, in
tmp_point_obs.put_data(met_in.met_point_data)
File "/usr/local/share/met/python/met_point_obs.py", line 245, in put_data
self.use_var_id = point_obs_dict['use_var_id']
TypeError: list indices must be integers or slices, not str 

I ended up getting it to work before I left for the day yesterday but had to follow the instructions laid out in this discussion:

#2391

Specifically adding the following lines of code to my point reader. (I'm using version 11.0.1 in a singularity container)


from met_point_obs import convert_point_data
…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CPKalb
Comment options

Answer selected by Wesley-J-Davis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants