I'm working on a WRF-ARW model output sounding plot and while the code is 100% working, the data is coming from the wrong location.
As pictured below, this is the output from the pressure variable, the XLAT/XLONG (42.03N, 95.15W) are degrees away from the correct latlon_coord which is the CoordPair(lat=40.8764, lon=-93.5926).

Here is a snippit of lines from my code meant to achieve this:
point_lat = 40.8764
point_lon = -93.5926
lat_lon = [point_lat, point_lon]
x_y = ll_to_xy(ncfile, lat_lon[0], lat_lon[1])
p1 = getvar(ncfile, varname="p",timeidx=i,units='hPa')
p = p1[:,x_y[0],x_y[1]]
print(p) # (which is what is shown in the above image)
Shown below is a map showing the differences between the location (Marker A is the intended/inputted location, Marker B is the incorrect XLAT/XLONG where the data is coming from). What can I do to fix this issue, because the data being in the wrong place makes the point of the point sounding unusable.