You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In pyart.core.Grid.to_xarray, only one dimension of the longitude (resp. latitude) 2-dimensional array is used to create the xarray object.
By doing so, we make the assumption that the Grid is regular in longitude and latitude, which is not.
This involves displacements in the Grid object when plotting using longitude and latitude. This displacement increases with the distance to the origin of the Grid. At 100km range, there is a displacement of ~7km when using 1-dimensional lon / lat compared to the 2-dimensional lon / lat coming from Grid.get_point_longitude_latitude function.
Solution
lon / lat coordinates in the xarray.Dataset object should be defined as 2-dimensional along (y, x).
@mgrover1
## Context
In
pyart.core.Grid.to_xarray
, only one dimension of the longitude (resp. latitude) 2-dimensional array is used to create thexarray
object.By doing so, we make the assumption that the Grid is regular in longitude and latitude, which is not.
This involves displacements in the Grid object when plotting using longitude and latitude. This displacement increases with the distance to the origin of the Grid. At 100km range, there is a displacement of ~7km when using 1-dimensional lon / lat compared to the 2-dimensional lon / lat coming from
Grid.get_point_longitude_latitude
function.Solution
lon / lat coordinates in the
xarray.Dataset
object should be defined as 2-dimensional along (y, x).The text was updated successfully, but these errors were encountered: