soi()UndefVarError: `soi` not defined Stacktrace: [1] top-level scope @ In[2]:1
Retrieve SOI (Southern Oscillation Index) data.
Data is NOAA CPC’s monthly index, fetched from NOAA PSL (https://psl.noaa.gov/data/correlation/soi.data). If plotted, the positive SOI (La Niña) is shown in blue and the negative (El Niño) in red, the same colours enso gives those phases. A plot is generated by default unless data or data0 is set to true, case in which the index data is returned and no figure is generated.
Arguments - data::Bool=false: If true, return the SOI data as a [date index] pair in a GMTdataset.
data0::Bool=false: If true, similar to above, but return a 3 column matrix with second column all equal to zero. This is useful for plotting purposes when using the wiggle function.
kwargs...: Additional keyword arguments passed to underlying plotting function.
Note, the plot is created with a figure size of (14,4), with x-axis labeled “Year” and title “Southern Oscillation Index”, but this can be overwritten via the xlabel and title options. The default plotting command is:
where D is the dataset returned when data0=true (the ampscale makes the largest swing 2 cm). You can use this to customize a new plot further.
SOI data indices in a GMTdataset or nothing depending on the data and data0 flags.
Example
Precompiling packages... Info Given GMT was explicitly requested, output will be shown live ERROR: LoadError: ArgumentError: Package GMT does not have Artifacts in its dependencies: - You may have a partially installed environment. Try `Pkg.instantiate()` to ensure all packages in the environment are installed. - Or, if you have GMT checked out for development and have added Artifacts as a dependency but haven't updated your primary environment's manifest file, try `Pkg.resolve()`. - Otherwise you may need to report an issue with GMT Stacktrace: [1] macro expansion @ .\loading.jl:1850 [inlined] [2] macro expansion @ .\lock.jl:270 [inlined] [3] __require(into::Module, mod::Symbol) @ Base .\loading.jl:1827 [4] #invoke_in_world#3 @ .\essentials.jl:926 [inlined] [5] invoke_in_world @ .\essentials.jl:923 [inlined] [6] require(into::Module, mod::Symbol) @ Base .\loading.jl:1820 [7] include @ .\Base.jl:495 [inlined] [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing) @ Base .\loading.jl:2306 [9] top-level scope @ stdin:5 in expression starting at C:\Users\j\.julia\dev\GMT\src\GMT.jl:1 in expression starting at stdin:5 ✗ GMT 0 dependencies successfully precompiled in 4 seconds. 80 already precompiled.
The following 1 direct dependency failed to precompile: GMT Failed to precompile GMT [5752ebe1-31b9-557e-87aa-f909b540aa54] to "C:\\Users\\j\\.julia\\compiled\\v1.10\\GMT\\jl_3284.tmp". ERROR: LoadError: ArgumentError: Package GMT does not have Artifacts in its dependencies: - You may have a partially installed environment. Try `Pkg.instantiate()` to ensure all packages in the environment are installed. - Or, if you have GMT checked out for development and have added Artifacts as a dependency but haven't updated your primary environment's manifest file, try `Pkg.resolve()`. - Otherwise you may need to report an issue with GMT Stacktrace: [1] macro expansion @ .\loading.jl:1850 [inlined] [2] macro expansion @ .\lock.jl:270 [inlined] [3] __require(into::Module, mod::Symbol) @ Base .\loading.jl:1827 [4] #invoke_in_world#3 @ .\essentials.jl:926 [inlined] [5] invoke_in_world @ .\essentials.jl:923 [inlined] [6] require(into::Module, mod::Symbol) @ Base .\loading.jl:1820 [7] include @ .\Base.jl:495 [inlined] [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing) @ Base .\loading.jl:2306 [9] top-level scope @ stdin:5 in expression starting at C:\Users\j\.julia\dev\GMT\src\GMT.jl:1 in expression starting at stdin: Stacktrace: [1] _precompilepkgs(pkgs::Vector{…}, internal_call::Bool, strict::Bool, warn_loaded::Bool, timing::Bool, _from_loading::Bool, io::IOContext{…}, fancyprint::Bool, manifest::Bool) @ Pkg.API.Precompilation C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\precompilation.jl:1029 [2] #precompilepkgs#5 @ C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\precompilation.jl:332 [inlined] [3] (::Pkg.API.var"#225#226"{Bool, Bool, Bool, Bool, Bool, Vector{Pkg.Types.PackageSpec}})() @ Pkg.API C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\API.jl:1090 [4] activate(f::Pkg.API.var"#225#226"{Bool, Bool, Bool, Bool, Bool, Vector{Pkg.Types.PackageSpec}}, new_project::String) @ Pkg.API C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\API.jl:1315 [5] precompile(ctx::Pkg.Types.Context, pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{…}) @ Pkg.API C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\API.jl:1088 [6] precompile(pkgs::Vector{…}; io::IJulia.IJuliaStdio{…}, kwargs::@Kwargs{…}) @ Pkg.API C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\API.jl:159 [7] precompile @ C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\API.jl:147 [inlined] [8] #precompile#114 @ C:\programs\Julia-1.10\share\julia\stdlib\v1.10\Pkg\src\API.jl:146 [inlined] [9] #invokelatest#2 @ .\essentials.jl:894 [inlined] [10] invokelatest @ .\essentials.jl:889 [inlined] [11] _require(pkg::Base.PkgId, env::String) @ Base .\loading.jl:2037 [12] __require_prelocked(uuidkey::Base.PkgId, env::String) @ Base .\loading.jl:1886 [13] #invoke_in_world#3 @ .\essentials.jl:926 [inlined] [14] invoke_in_world @ .\essentials.jl:923 [inlined] [15] _require_prelocked(uuidkey::Base.PkgId, env::String) @ Base .\loading.jl:1877 [16] macro expansion @ .\loading.jl:1864 [inlined] [17] macro expansion @ .\lock.jl:270 [inlined] [18] __require(into::Module, mod::Symbol) @ Base .\loading.jl:1827 [19] #invoke_in_world#3 @ .\essentials.jl:926 [inlined] [20] invoke_in_world @ .\essentials.jl:923 [inlined] [21] require(into::Module, mod::Symbol) @ Base .\loading.jl:1820 Some type information was truncated. Use `show(err)` to see complete types.