Closed luflarois closed 1 month ago
You don't need to use NCDatasets directly. It's just:
raster = Raster(arquivo_nc; name=:t2m)
Or
st = RasterStack(arquivo_nc)
raster = st[:t2m]
We only need to do import NCDatasets
so the backend package is available to Rasters to use behind the scenes.
Hi @rafaqz , using this way it works. But I can't plot the data. Do U know how to plot it?
Well, it depends on the dimensionality of :t2m
. If its 2d, you can just do Makie.plot(raster)
. If its 3d you need to take a slice, like this if you have a time dimension for example Makie.plot(raster[Ti=1])
.
There is also Rasters.rplot(raster)
that will tile multiple slices.
I did the following code:
when I run it I receive the error:
I did try to inform the dimensions:
what I doing wrong?