ymira(1)
π ymira β NAME π
hiii bestie, welcome to ymira(1) β the MiRA image reconstruction algorithm page, but make it β¨aestheticβ¨ π¦
ymira β reconstruct an image from optical interferometric data π₯
π SYNOPSIS π
ymira [OPTION]... INPUT... OUTPUT
β¨ DESCRIPTION β¨
okay so. MiRA is a software that reconstructs images from optical interferometric data, and it's genuinely iconic π
The way it works: the algorithm does a regularized fit of the data, plus some extra constraints on top β normalization, and lower and/or upper bounds. No cap π«Ά
So like, INPUT... are your input OI-FITS data file(s), and OUTPUT is the result, saved into a FITS file. That's the whole vibe. Periodt.
π OPTIONS π
Options are introduced by a word prefixed with one or two hyphens β whichever you prefer, at your convenience bestie π. And heads up: if your first input file starts with a hyphen, you can drop a double hyphen to say "okay options are done, everything after this is files."
Some options have units, and you cannot skip them, fr fr:
- Angles must be suffixed with
mas,milliarcsec,milliarcsecond,milliarcseconds,deg,degree,degrees,rad,radianorradians. - Lengths must be suffixed with
m,meter,meters,mm,millimeter,millimeters,Β΅m,micron,microns,micrometer,micrometers,nm,nanometerornanometers.
Some options may take several values, and those get separated by commas. Easy.
π Data Selection
These options let you pick which data gets considered. And lowkey important: if you give no spectral range at all (meaning neither with options -effwave and -effband, nor with options -wavemin and -wavemax), then the image gets reconstructed from all available wavelengths. Every single one. Slay.
-target=nameβ Specify the name of the astrophysical object. This option is used to select a specific target from the input file(s). If there's a single target that's identical in all input files, you can justβ¦ not bother with this one, bestie π-effwave=lengthβ Specify the effective wavelength; for example,-effwave=1.6micron. This is the central wavelength of the spectral range you're considering.-effband=lengthβ Specify the effective bandwidth; for example,-effband=200nm. This is the full width of the spectral range you're considering.-wavemin=lengthβ Specify the minimum wavelength; for example,-wavemin=1.5Β΅m. This is the lower bound of the spectral range you're considering.-wavemax=lengthβ Specify the maximum wavelength; for example,-wavemin=1.7Β΅m(yes literally, that's what the page says, I'm not touching it π). This is the upper bound of the spectral range you're considering.
πΈ Image Settings
Bestie listen: at minimum you MUST specify the pixel size (with option -pixelsize) and the image dimensions (with options -fov or -dim). Non-negotiable.
-pixelsize=angleβ Specify the angular size of pixels. For example,-pixelsize=0.1mas.-fov=angleβ Specify the angular size of the field of view. For example,-fov=20mas.-dim=numberβ Specify the number of pixels per side of the image. For example,-dim=200.-normalization=valueβ Specify the sum of pixels. A recommended setting is:-normalization=1.-min=lowerβ Specify the lower bound for the pixel values. A recommended setting is:-min=0.-max=upperβ Specify the upper bound for the pixel values.
π¦ Direct Model
-xform=nameβ Specify the method to compute the nonequispaced Fourier transform. Argument name can benfft,exactorfft.
okay so about that last one β the fft value is however not recommended. Like, it's there, it exists, butβ¦ no. π
π Regularization Settings
-regul=nameβ Specify the name of the regularization method.-mu=value(s)β Specify the global regularization weight(s) Β΅. If a single value is given, it will be used for all reconstructions. If two values are given (separated by comas), a different value of Β΅ will be used for each reconstructions with the values of Β΅ spaced at equal ratios from start to stop (that is, equally spaced logarithmically).-tau=valueβ Specify the edge preserving threshold. value must be strictly positive. (Like, actually. Strictly.)-eta=value(s)β Specify the gradient scales along dimensions.-gamma=angleβ Specify the a priori full half width at half maximum (FWHM). For example:-gamma=15mas.
π§ Initial Image
-initial=nameβ Specify the FITS file or method for initial image.-seed=valueβ Specify the seed for the random generator.
π Reconstruction Strategy
-bootstrap=countβ Specify the number of bootstrapping iterations.-recenterβ Recenter result of bootstrapping iterations.-threshold=fractionβ Specify the level for soft-thresholding input image(s).
β Information and Graphics
-quietβ Suppress most messages. (Shhh bestie π€«)-verb=countβ Set the verbose level. Information will be printed every count iteration. Also see option-view.-view=bitsβ Bitwise value to specify which graphics to show each time some information is printed. The least significant bits of bits indicate which sub-panel to display. Use-view=0to suppress all graphics and-view=-1to show all graphics. The default is to not display anything. If some graphics are shown, the graphic window has to be closed at the end of the reconstruction to effectively quit the program.
not me warning you twice: if you turn graphics ON, you gotta close that window when the reconstruction ends or the program will just sit there. Main character energy but make it stuck π
π₯ Optimizer Settings
-mem=numberβ Specify the number of previous steps to memorize in VMLMB.-ftol=realβ Specify the function tolerance for the global convergence.-gtol=realβ Specify the gradient tolerance for the global convergence.-maxiter=numberβ Specify the maximum number of iterations for all reconstructions.-maxeval=numberβ Specify the maximum number of evaluations of the objective function for all reconstructions.
π Line Search Parameters
-sftol=realβ Specify the function tolerance for the line search.-sgtol=realβ Specify the gradient tolerance for the line search.-sxtol=realβ Specify the step tolerance for the line search.
π Output File
-overwriteβ Overwrite output file if it exists.-bitpix=numberβ Specify the bits per pixel for the output FITS file. Default is-32, that is 32-bit floating point values.-save_initialβ Save initial image as a secondary HDU in the output file.
π Miscellaneous
-helpβ Print out this help.-versionβ Print out version number.
π«Ά AUTHOR π«Ά
Γric ThiΓ©baut <https://github.com/emmt/MiRA> β an absolute legend, we stan π
π REFERENCES π
- ThiΓ©baut, Γ.: MiRA: an effective imaging algorithm for optical interferometry, in SPIE Proc. Astronomical Telescopes and Instrumentation 7013, 70131I-1-70131I-12 (2008) <http://dx.doi.org/10.1117/12.788822>
- ThiΓ©baut, Γ. & Giovannelli, J.-F.: Image Reconstruction in Optical Interferometry, in IEEE Signal Processing Magazine 27, pp. 97-109 (2010) <http://dx.doi.org/10.1109/MSP.2009.934870>
okay bestie that's the whole page, every last crumb of it, and I'm obsessed π so go forth and reconstruct, and if you're ever wondering which build of this you're holding: it's Version 1.1.0, dated 23 january 2017 β iconic era, no cap πβ¨π
π¦ where this page comes from
- debian trixie: yorick-mira 1.1.0+git20170124.3bd1c3~dfsg1-3 Β· GPL-2.0-or-later
- ubuntu jammy: yorick-mira 1.1.0+git20170124.3bd1c3~dfsg1-2 Β· GPL-2.0-or-later
- ubuntu noble: yorick-mira 1.1.0+git20170124.3bd1c3~dfsg1-2 Β· GPL-2.0-or-later
- ubuntu questing: yorick-mira 1.1.0+git20170124.3bd1c3~dfsg1-3
- ubuntu resolute: yorick-mira 1.1.0+git20170124.3bd1c3~dfsg1-3build1 Β· GPL-2.0-or-later
- ubuntu stonking: yorick-mira 1.1.0+git20170124.3bd1c3~dfsg1-3build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms