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
When I plot a Raster with image that gives a wrong position. I can use heatmap to properly plot the data. The mismatch depends on some properties of the dimensions.
Below is an example script and I will attach the exemplary nc file. I would have expected that the position of the rectangle in the corner would be the same for heatmap and for image.
I could not reproduce the mismatch with a simple reverse ordered Y-Axis.
julia> r =Raster("./image_vs_heatmap_corner.nc")
[ Info: No `name` or `key` keyword provided, using first valid layer with name `:unnamed`559×561 Raster{Union{Missing, Float32},2} unnamed with dimensions:
X Mapped{Float64} Float64[635090.3685878773, 636033.1138663981, …, 1.1601994887240704e6, 1.1607739741281688e6] ForwardOrdered Irregular Points crs: EPSG mappedcrs: EPSG,
Y Mapped{Float64} Float64[6.306992429753325e6, 6.306049684474804e6, …, 5.779997819060089e6, 5.779202377731337e6] ReverseOrdered Irregular Points crs: EPSG mappedcrs: EPSG
extent:Extent(X = (635090.3685878773, 1.1607739741281688e6), Y = (5.779202377731337e6, 6.306992429753325e6))
missingval:missing
crs: EPSG:4326
mappedcrs: EPSG:4326
parent:6.30699e66.30605e66.30511e66.30416e6…5.78188e65.78094e65.78e65.7792e66.3509e51.01.01.01.00.00.00.00.06.36033e51.01.01.01.00.00.00.00.0⋮⋱1.1602e60.00.00.00.0…0.00.00.00.01.16077e60.00.00.00.00.00.00.00.0
julia>image(r, interpolate=false)
julia>heatmap(r, interpolate=false)
julia> figim, axim, im =image(r, interpolate=false)
julia>heatmap(r, interpolate=false, colormap=:greys)
julia>display(GLMakie.Screen(), figim)
GLMakie.Screen(...)
When I plot a Raster with image that gives a wrong position. I can use heatmap to properly plot the data. The mismatch depends on some properties of the dimensions.
Below is an example script and I will attach the exemplary nc file. I would have expected that the position of the rectangle in the corner would be the same for heatmap and for image.
I could not reproduce the mismatch with a simple reverse ordered Y-Axis.
image_vs_heatmap_corner.zip
I had to zip it because of github.
The text was updated successfully, but these errors were encountered: