Skip to content

Commit

Permalink
use CarioMakie in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Dec 19, 2023
1 parent 095c78c commit 3e45b97
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/src/tutorial1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -36,14 +36,18 @@ 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"
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"]
Expand Down

0 comments on commit 3e45b97

Please sign in to comment.