astro bits

Warwick computing

Installing galario

  • Import modules, need at least GCCcore/6.4.0, OpenMPI/2.1.1, FFTW/3.3.6, CMake/3.9.5
  • Follow instructions here, including python binding
  • Find python site-packages, create galario directory, and copy contents of galario/build/python/galario (single, double, into it.

To use galario with emcee, set the number of galario threads to 1 with galario.double.threads(num=1). It won’t work otherwise.


Convert Gaussian \sigma to FWHM with FWHM = 2.35482 \, \sigma

The sky is 41252.961 square degrees, that’s 5.34638 \times 10^{11} square arcseconds or 2.35 \times 10^{-11} steradian per sq arcsecond.


When submitting a MNRAS paper to astro-ph, to make it look nice on US letter paper (rather than A4) you should use these at the top of your TeX file.




John Chambers’ web page with Mercury doesn’t work any more, but the code seems easy enough to find. There is a binary star version around too. If you get it make sure you implement the bug fix, I found that the binary star version wouldn’t work sensibly until I added it (would die when anything was ejected).


Watch out if you change the file in the standard download of swift, say for the number of test particles. The programs point to two different files, one in the root dir and one in the main dir (and another in the tools dir). You could change them both, I removed the one in the main dir and made a symbolic link.

If you try swift you’d be silly not to check out SwiftVis, very clever but make sure you allocate lots of memory with -Xmx2000M or something.