OITOOLS Installation

Overview of Dependencies

PackageUsageAlgorithm/Functions
NFFTCompute Fourier transformNon Equispaced Fourier Transform
OptimPackNextGenImage reconstructionVMLMB (Éric Thiébaut)
LsqFitModel fittingLevenberg-Marquardt
UltraNestModel fitting and model comparisonNested sampling
NLoptModel fittingSeveral local (Nelder-Mead) and global (Genetic) optimizers
SpecialFunctionsComplex visibility calculationsBessel Functions
NearestNeighborssimplify uv samplingKD trees
OIFITSdata importread OIFITS files

Step 1: installation of Python Packages (UltraNest, Astroquery)

OITOOLS downloads then uses a Conda installation with the UltraNest ad Astroquery packages. For this you should copy/paste the following line into the REPL:

ENV["PYTHON"]=""; ENV["MPLBACKEND"]="qt5agg"; using Pkg; Pkg.add("Conda"); using Conda; Conda.add("ultranest", channel="conda-forge"); Conda.add("astroquery", channel="astropy");

These operations should take a couple of minutes to complete. Feel free to remove the two ENV settings at the beginning of the line if you have already Python setup on your machine and do not want to use the Julia Conda python.

Step 2: installation of Julia Packages

Because some of OITOOLS dependencies are not registered packages, we elect to go through Pkg() again rather than the activate/instantiate mechanism of Julia. Here again, copy/paste the following line into the REPL:

using Pkg; pkg"registry add General"; pkg"registry add https://github.com/emmt/EmmtRegistry"; Pkg.add(["CFITSIO","AstroTime","Dates","DelimitedFiles","Documenter","DocumenterTools","FITSIO","Glob","LaTeXStrings","LinearAlgebra","FFTW", "NFFT","NLopt","UltraNest","LsqFit","NearestNeighbors","PyCall","PyPlot","Random","SparseArrays","Crayons", "Match", "SpecialFunctions","Statistics","Parameters", "ArrayTools", "LazyAlgebra", "OptimPackNextGen"]); Pkg.add(url="https://github.com/fabienbaron/OIFITS.jl", rev="t4"); Pkg.add(url="https://github.com/fabienbaron/OITOOLS.jl.git")

Installation may take between 2-10 minutes depending on OS and computer performance.