Skip to content

Commit ad567e9

Browse files
committed
use readcubedata
1 parent 125fd7a commit ad567e9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/src/tutorials/plottingmaps.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,18 @@ fig
107107
using GLMakie
108108
using AlgebraOfGraphics
109109
GLMakie.activate!()
110-
# let's continue using the cmip6 dataset
111-
c = g["tas"]
112110
````
113111

112+
let's continue using the cmip6 dataset
114113

115114
````@example plots
116-
# let's continue using the cmip6 dataset
117115
c = g["tas"]
118116
````
119117

120118
and let's focus on the first time step:
121119

122120
````@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!
126122
````
127123

128124
and now plot
@@ -149,7 +145,7 @@ dim_time = c[time=DateTime("2015-01-01") .. DateTime("2015-01-01T21:00:00")] # s
149145
````
150146

151147
````@example plots
152-
dim_time = dim_time[:,:,:]; # read into memory first!
148+
dim_time = readcubedata(dim_time); # read into memory first!
153149
nothing # hide
154150
````
155151

0 commit comments

Comments
 (0)