High Performance Computing & AI
Practical notes on Python, JupyterHub, Kubernetes and AI for science — from the San Diego Supercomputer Center.
-
Basic fork/pull git workflow
Typical simple workflow for a (github) repository with few users.
-
Interactive 3D plot of a sky map
update May 2024: See the new version of this tutorial Mayavi is a Python package from Enthought for 3D visualization, here a simple example of creating a 3D interactive map starting from a HEALPix pixelization sky map:
-
How to cite HDF5 in bibtex
here the bibtex entry: reference: https://www.hdfgroup.org/solutions/hdf5/
-
Compile healpix C++ to javascript
Compile C++ -> LLVM with clang Convert LLVM -> Javascript: https://github.com/kripken/emscripten/wiki/Tutorial
-
Elliptic beams, FWHM and ellipticity
The relationship between the Full Width Half Max, FWHM (min, max, and average) and the ellipticity is: FWHM = sqrt(FWHMmin FWHMmax) e = FWHMmax/FWHMmin
-
Ubuntu PPA for HEALPix and healpy
HEALPix C, C++ version 3.00 and healpy version 1.4.1 are now available in a PPA repository for Ubuntu 12.04 Precise and Ubuntu 12.10 Quantal.
-
Butterworth filter with Python
Using IPython notebook of course: http://nbviewer.ipython.org/3843014/
-
IPython.parallel for Planck data analysis at NERSC
Planck is a Space mission for high precision measurements of the Cosmic Microwave Background (CMB), data are received as timestreams of output voltages from the 2 instruments on-board, the Low and High Frequency Instruments [LFI / HFI].
-
homepage on about.me
moved my homepage to about.me: http://about.me/andreazonca it is quite nice, and essential, as most of it is just links to other websites, i.e. arXiv for publications, Linkedin for CV, github for code. So I'm going to use andreazonca.com as blog, hosted on blogger.
-
doctests and unittests happiness 2
nosetests -v --with-doctest Doctest: healpy.pixelfunc.ang2pix ... ok Doctest: healpy.pixelfunc.getallneighbours ... ok Doctest: healpy.pixelfunc.getinterpval ... ok Doctest: healpy.pixelfunc.getmapsize ... ok Doctest: healpy.pixelfunc.getminvalidnside ... ok Doctest: healpy.pixelfunc.getneighbours ...
-
compile python module with mpi support
CC=mpicc LDSHARED="mpicc -shared" python setup.py buildext -i
-
some python resources
python tutorial: https://docs.python.org/3/tutorial/ numpy tutorial [arrays]: https://numpy.org/doc/stable/user/quickstart.html plotting tutorial: https://matplotlib.org/stable/tutorials/pyplot.html free online books: https://diveintopython3.net/ https://python.swaroopch.com/ install python (recommended): https://www.a
-
cfitsio wrapper in python
After several issues with pyfits, and tired of it being so overengineered, I've wrote my own fits I/O package in python, wrapping the C library cfitsio with ctypes. Pretty easy, first version completely developed in 1 day. https://github.com/zonca/pycfitsio
-
unit testing happiness
nosetests -v testallcols (pycfitsio.test.TestPyCfitsIoRead) ... ok testcolnames (pycfitsio.test.TestPyCfitsIoRead) ... ok testmove (pycfitsio.test.TestPyCfitsIoRead) ... ok testopenfile (pycfitsio.test.TestPyCfitsIoRead) ... ok testreadcol (pycfitsio.test.TestPyCfitsIoRead) ...
-
Pink noise (1/f noise) simulations in numpy
Pink noise (1/f noise) simulations in numpy