pyart.map.grid_from_radars gives strange values near the radar #1675
Replies: 5 comments 2 replies
-
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
h1
{mso-style-priority:9;
mso-style-link:"Heading 1 Char";
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:24.0pt;
font-family:"Aptos",sans-serif;
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-priority:9;
mso-style-link:"Heading 1";
font-family:"Aptos Display",serif;
color:#0F4761;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
-->Looks like some sort of interaction between the beam spacing and radius of influence. What was the scanning pattern of the radar (sweep angles)? Are you doing a CAPI at 1000M ASL or AGL? From: johnnypeste ***@***.***>Date: Monday, October 28, 2024 at 07:37To: ARM-DOE/pyart ***@***.***>Cc: Subscribed ***@***.***>Subject: [ARM-DOE/pyart] pyart.map.grid_from_radars gives strange values near the radar (Discussion #1675)porto_radar_bug.jpg (view on web)Hi,I'm using py-art to extract sigmet (Vaisala) data from Porto-Portugal radar (1047 m above sea level)The pseudo cappi of reflectivity at 1000 m altitude seems OK, sufficiently far from radar, but they form some kind of a strange consisting of nodata value near the radar, as you can see from the attached figure.Anyone can explain such behaviour?RegardsJoaoPSThe python code code is the following:import pyartimport matplotlib.pyplot as pltimport numpy as npimport cartopy.crs as ccrsfilename="input.iris"radar = pyart.io.read_sigmet(filename)#display = pyart.graph.RadarMapDisplay(radar)Setting projection and ploting the first tilt.projection = ccrs.LambertConformal(central_latitude=radar.latitude["data"][0],central_longitude=radar.longitude["data"][0],)z_grid_limits = (-47.,1002.)y_grid_limits = (-299580.9,299580.9)x_grid_limits = (-299580.9,299580.9)grid_resolution = 998.def compute_number_of_points(extent, resolution):return int((extent[1] - extent[0])/resolution)z_grid_points = compute_number_of_points(z_grid_limits, grid_resolution)x_grid_points = compute_number_of_points(x_grid_limits, grid_resolution)y_grid_points = compute_number_of_points(y_grid_limits, grid_resolution)grid = pyart.map.grid_from_radars(radar,grid_shape=(z_grid_points,y_grid_points,x_grid_points),grid_limits=(z_grid_limits,y_grid_limits,x_grid_limits),)pyart.io.write_grid("output.nc", grid, format='NETCDF4', include_fields='reflectivity', write_proj_coord_sys=True, proj_coord_sys=None, arm_time_variables=False, arm_alt_lat_lon_variables=False, write_point_x_y_z=False, write_point_lon_lat_alt=False)—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
PRT221213140528.zip |
Beta Was this translation helpful? Give feedback.
-
I think I solved my problem, but I'm not sure what are the consequences: So I changed the default min_radius from 250 m to 1000 m, and the strange cross pattern disappeared. The code is now: grid = pyart.map.grid_from_radars(radar, |
Beta Was this translation helpful? Give feedback.
-
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
-->Yep.For a good overview of gridding see Trapp and Doswellhttps://journals.ametsoc.org/view/journals/atot/17/2/1520-0426_2000_017_0105_rdoa_2_0_co_2.xml From: johnnypeste ***@***.***>Date: Monday, October 28, 2024 at 12:06To: ARM-DOE/pyart ***@***.***>Cc: Scott Collis ***@***.***>, Comment ***@***.***>Subject: Re: [ARM-DOE/pyart] pyart.map.grid_from_radars gives strange values near the radar (Discussion #1675)I think I solved my problem, but I'm not sure what are the consequences:So I changed the default min_radius from 250 m to 1000 m, and the strange cross pattern disappeared.The rest of the spatial pattern seems to be the same...The code is now:grid = pyart.map.grid_from_radars(radar,gridding_algo='map_gates_to_grid',roi_func="dist_beam",constant_roi=None,min_radius=1000.0, h_factor=(1.0, 1.0, 1.0), nb=1.0, bsp=1.0,grid_shape=(z_grid_points,y_grid_points,x_grid_points),grid_limits=(z_grid_limits,y_grid_limits,x_grid_limits),)—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot... It seems a rather complex article for me to explore it now... I will proceed as it is... |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm using py-art to extract sigmet (Vaisala) data from Porto-Portugal radar (1047 m above sea level)
The pseudo cappi of reflectivity at 1000 m altitude seems OK, sufficiently far from radar, but they form some kind of a strange consisting of nodata value near the radar, as you can see from the attached figure.
Anyone can explain such behaviour?
Regards
Joao
PS
The python code code is the following:
import pyart
import matplotlib.pyplot as plt
import numpy as np
import cartopy.crs as ccrs
filename="input.iris"
radar = pyart.io.read_sigmet(filename)
#display = pyart.graph.RadarMapDisplay(radar)
Setting projection and ploting the first tilt.
projection = ccrs.LambertConformal(
central_latitude=radar.latitude["data"][0],
central_longitude=radar.longitude["data"][0],
)
z_grid_limits = (-47.,1002.)
y_grid_limits = (-299580.9,299580.9)
x_grid_limits = (-299580.9,299580.9)
grid_resolution = 998.
def compute_number_of_points(extent, resolution):
return int((extent[1] - extent[0])/resolution)
z_grid_points = compute_number_of_points(z_grid_limits, grid_resolution)
x_grid_points = compute_number_of_points(x_grid_limits, grid_resolution)
y_grid_points = compute_number_of_points(y_grid_limits, grid_resolution)
grid = pyart.map.grid_from_radars(radar,
grid_shape=(z_grid_points,
y_grid_points,
x_grid_points),
grid_limits=(z_grid_limits,
y_grid_limits,
x_grid_limits),
)
pyart.io.write_grid("output.nc", grid, format='NETCDF4', include_fields='reflectivity', write_proj_coord_sys=True, proj_coord_sys=None, arm_time_variables=False, arm_alt_lat_lon_variables=False, write_point_x_y_z=False, write_point_lon_lat_alt=False)
Beta Was this translation helpful? Give feedback.
All reactions