We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aa55c8 commit cffd8a2Copy full SHA for cffd8a2
1 file changed
src/projections.jl
@@ -39,5 +39,10 @@ function map_to_grid(lon, lat, xshift, yshift)
39
x[:,j] .+= xshift * (x[2, j] - x[1, j])
40
end
41
42
+ # center the x-grid
43
+ for j = 1:size(lon,2)
44
+ x[:, j] .+= - dlon_m[:, j].* (lon[end, j] - lon[1, j])/2
45
+ end
46
+
47
return x, y
48
0 commit comments