From 3e45b9791d7608944ed1a994bc6720a9a59081ad Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Tue, 19 Dec 2023 07:59:28 +0100 Subject: [PATCH] use CarioMakie in CI --- docs/src/tutorial1.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/src/tutorial1.jl b/docs/src/tutorial1.jl index 67b1223..1229181 100644 --- a/docs/src/tutorial1.jl +++ b/docs/src/tutorial1.jl @@ -6,8 +6,8 @@ using CommonDataModel: @select, @CF_str, @groupby, groupby using Dates using Downloads: download -#using CairoMakie # use GLMakie for interactive plots -using GLMakie +using CairoMakie # use GLMakie for interactive plots +#using GLMakie using IntervalSets using NCDatasets using Statistics @@ -36,6 +36,10 @@ function nicetimeseries(v::AbstractVector; time = v["time"][:], title = nothing, return fig end +# Download the data file (unless already downloaded) +# The dataset contains the variables `lon` (longitude), `lat` (latitude), `time` +# and `sst` (sea surface temperature). + url = "https://psl.noaa.gov/thredds/fileServer/Datasets/noaa.oisst.v2.highres/sst.day.mean.2023.nc" fname = "sst.day.mean.2023.nc" @@ -43,7 +47,7 @@ if !isfile(fname) download(url,fname) end - +# Open the dataset and access the variable sst ds = NCDataset(fname) ncsst = ds["sst"] lon = ds[CF"longitude"]