Home

Cosmology
 CosmoCoffee
 CAMB
 CosmoMC
 CMB Lensing
 Polarization
 Talks and Notes

General
 Utilities
 Books

Crosswords
 Crossword Maker
 Crossword Puzzles

Words
 WordWeb
 WordWeb Online
 WordWeb Developer

Contact

Room O16, IoA


Utilities

Arxiv References

See this CosmoCoffee topic for MNRAS, ApJ and Elsevier BibTex style files that support eprint numbers and hyperlinking.

Program parameters

The inifile.f90 for reading in parameter files of the form "name = value" in provided here. See the CAMB inidriver.F90 for example usage. There's a command line script for changing parameters in a .ini file written by Ludo Waerbeke here, e.g.
cambmenu.scr -f params_ref.ini -out fileout.ini "-omega_cdm" 0.21 "-omega_baryon" 0.23

Healpix

Some F90 healpix wrapper routines for reading, writings, transforming and visualising healpix maps are available in LensPix. See also VPython visualization scripts.

Windows utilities

Converting text files

TextToUnix is a command line tool for converting Windows text files to Unix format.

Opening .ps.gz files

IE has problems opening .ps.gz files (at least with WinZip installed). Ideally you want them to unzip automatically and open in GhostView. Download this little program, openps. Associate .gz files with with openps (in Windows Explorer, Tools menu, Folder Options). Associate .ps, .ps[1], .ps[2] and .ps[3] with your postscript viewer (e.g. GhostView). Associate .gzip files with whatever you want to open other compressed files with (e.g. WinZip/WinRAR). That's it! Openps checks to see if it is a ps.gz file, if so it renames in as a .ps file (IE automatically decompresses it, but doesn't change the file name correctly), and opens it. If not, it renames it to a .gzip file, and opens it.

Converting data files

Fortran unformatted files are little or big endian depending on whether created under Windows or Unix. Download these two Windows command line programs, convwin and convunix, for converting formats. Usage: "convwin myfiles*.data". The programs should work on any Fortran unformatted file in which all the records are integers or single precision reals, as the CosmoMC .data files are.

Converting maple fortran to F90

Maple outputs equations in a messy F77 format. Download a small windows program to convert to F90 format. Temporary variables are now elements of an array, so you can just define a single extra array and continue to use Implicit None. It won't work with functions, etc., just multi-line x=y equations. Paste the Maple output on the left, F90 will come out on the right.

Useful programs