File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -107,22 +107,18 @@ fig
107
107
using GLMakie
108
108
using AlgebraOfGraphics
109
109
GLMakie.activate!()
110
- # let's continue using the cmip6 dataset
111
- c = g["tas"]
112
110
````
113
111
112
+ let's continue using the cmip6 dataset
114
113
115
114
```` @example plots
116
- # let's continue using the cmip6 dataset
117
115
c = g["tas"]
118
116
````
119
117
120
118
and let's focus on the first time step:
121
119
122
120
```` @example plots
123
- dim_data = c[time=1][:,:] # read into memory first!
124
- plt = data(dim_data) * mapping(:lon, :lat; color=:value) * visual(Scatter, marker=:rect)
125
- draw(plt)
121
+ dim_data = readcubedata(c[time=1]) # read into memory first!
126
122
````
127
123
128
124
and now plot
@@ -149,7 +145,7 @@ dim_time = c[time=DateTime("2015-01-01") .. DateTime("2015-01-01T21:00:00")] # s
149
145
````
150
146
151
147
```` @example plots
152
- dim_time = dim_time[:,:,:] ; # read into memory first!
148
+ dim_time = readcubedata( dim_time) ; # read into memory first!
153
149
nothing # hide
154
150
````
155
151
You can’t perform that action at this time.
0 commit comments