Getting Started¶
Installation¶
PAINTER.jl
uses the following registered Julia packages:
- OptimPack.jl: the Julia interface to OptimPack for solving the phases proximal operator.
- OIFITS.jl: Julia support for OI-FITS (optical interferometry data format).
- NFFT.jl: Julia implementation of the Non-equidistant Fast Fourier Transform (NFFT).
- Wavelets.jl: A Julia package for fast wavelet transforms.
- HDF5.jl: for writing JLD (“Julia data”) variables.
They will be automaticaly installed during PAINTER.jl
installation.
Note that they require development tools included for example for
OSX in Command Line Tools
and for ubuntu in the build-essential
package.
To install PAINTER.jl
, type from a Julia session the following commands:
Pkg.update()
Pkg.add("PAINTER")
and relax!
It is recommended to install PyPlot.jl
to monitor the iterations of the algorithm when the number
of wavelengths is small, e.g. < 30. See PyPlot.jl page.
Usage¶
To load the PAINTER.jl
module, type from a Julia session:
using PAINTER
If PyPlot
is installed, it will be automatically loaded.
Iteration steps of PAINTER.jl
are parallelized.
To use parallel computing, start Julia with nprocs
local process
and load the module on all process:
$ julia -p nprocs
julia> using PAINTER
Path to OptimPack
options¶
The file optpckpt.jl
located in source file of PAINTER
contains all OptimPack parameters for the phases proximal operator.
ls
,scl
,gat
,grt
,vt
,memsize
,mxvl
,mxtr
,stpmn
,stpmx
. See OptimPack for details.Default values are:
ls=OptimPack.MoreThuenteLineSearch(ftol=1e-8,gtol=0.95) scl=OptimPack.SCALING\_OREN\_SPEDICATO gat=0 grt=0 vt=false memsize=100 mxvl=1000 mxtr=1000 stpmn=1E-20 stpmx=1E+20