-
DescriptionWhen converting Working example shown below. What I Did
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
@isilber - sorry for the delay here, do you have a sample file we can test this with? |
Beta Was this translation helpful? Give feedback.
-
anxkasacrcfrcorppivM1.c1.20200312.003009.zip |
Beta Was this translation helpful? Give feedback.
-
Thank you!! |
Beta Was this translation helpful? Give feedback.
-
@isilber - with your current settings, you are configuring the elevation to grid to as 0 meters (above ground level). The scan strategy outlined in the data would look something like this: You are using the default gridding parameters, which is the barnes scheme, as indicated in the documentation The default minimum radius for the scheme is 500 meter. Looking at the scan strategy visualization here, it would make sense for the 2 degree elevation scan to be beyond 500 meters from the desired grid level, at that ~15 km point we see in the data. I attached the original code snippet, using 0 meters as the grid level If we change the following snippet to use 500 meters as the lower bound instead: for sweep, ax_ind in zip([1, 3], range(2)):
sweep_obj = radar_obj.extract_sweeps((sweep,))
grid = pyart.map.grid_from_radars(
(sweep_obj,),
grid_shape=(1, 1601, 1601),
# Use 500 meters as the lower bound for z
grid_limits=((500, 10000.), [-40000, 40000], [-40000, 40000]),
fields=[processed_field],
)
ax = fig2.add_subplot(1, 2, ax_ind + 1)
ax.imshow(grid.fields[processed_field]["data"][0], origin="lower", extent=(-40, 40, -40, 40)) Does this make sense? Where in the documentation do you think we could be more clear here? |
Beta Was this translation helpful? Give feedback.
-
@isilber - is it okay if we transfer this over to a discussion? |
Beta Was this translation helpful? Give feedback.
@isilber - with your current settings, you are configuring the elevation to grid to as 0 meters (above ground level). The scan strategy outlined in the data would look something like this:
You are using the default gridding parameters, which is the barnes scheme, as indicated in the documentation
https://arm-doe.github.io/pyart/API/generated/pyart.map.map_to_grid.html#pyart.map.map_to_grid
The default minimum radius for the scheme is 500 meter. Looking at the scan strategy visualization here, it would make sense for the 2 degree elevation scan to be beyond 500 meters from the desired grid level, at that ~15 km point we see in the data.
I attached the original code snippet, using 0 meters…