-
Hi, radar=pyart.io.read_cfradial(filename) Here is my error Can you please tell me what I am doin wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hi @salbenson, are you plugging these parameters in a custom function? I see grid_size etc. Whichever parameter is feeding into your grid_shape, I would wrap in parenthesis to make it into a tuple. |
Beta Was this translation helpful? Give feedback.
-
Hi @zssherman, thanks for your help. I am using the function here on this page. I don't see grid_shape in the list of arguments. Do you mean I should be using ('auto') instead of just 'auto'? |
Beta Was this translation helpful? Give feedback.
-
I started looking at the code for pyart.map.grid_rhi_sweeps and I now think auto isn't an option for 'grid_size' So I used 801 for grid_size: This is the error I am now getting: Any ideas about what I am doing wrong here? |
Beta Was this translation helpful? Give feedback.
-
@salbenson Mistake on my part, I was looking at the wrong function grid_from_radars. For the grid_rhi_sweeps, I think there is an issue in the documentation, as grid_size does not take 'auto' in the code but I do see it in the docs for it (ill put in a fix for the docs, good catch!). grid_limits is fine as auto. But for grid_size you would have to provide a shape of how many points within your grid_limits for x, y, and z. A tuple of those three numbers. As a note: this code was originally tested on ARM San Diego experiment, I'll need to double check if it was tested on datasets outside of that. |
Beta Was this translation helpful? Give feedback.
-
@salbenson Ah yep good catch! Another documentation fail. The code needs a check for None, even though the docs state it does... I'll add that into a fix as well. I would provide a list or the specific sweep for now. |
Beta Was this translation helpful? Give feedback.
@salbenson Ah yep good catch! Another documentation fail. The code needs a check for None, even though the docs state it does... I'll add that into a fix as well. I would provide a list or the specific sweep for now.