JuliaOcean / OceanRobots.jl

Analysis, processing, and simulation of data generated by scientific robots in the Ocean.
https://JuliaOcean.github.io/OceanRobots.jl/dev
MIT License
23 stars 3 forks source link

NOAA example #11

Closed AndrewIrwin closed 2 years ago

AndrewIrwin commented 2 years ago

In the NWP_NOAA example, the function call to draw the line plot references "var" but I think this should be var_b: lines(dt,x[!,Symbol(var)])

gaelforget commented 2 years ago

It's a bit tricky but I think it should be var since var_b is rather the output of the @bind macro (a PlutoRunner.Bond according to typeof(var_b)). The UI element gets inserted in the markdown by $(var_b) (second line below) but it ultimately sets var (see to the right of @bind in the first line below).

var_b = @bind var Select(names(x), default="PRES")
md"""Select variable : $(var_b)"""
gaelforget commented 2 years ago

I'll close this under the assumption that you agree