From 6ea2839657b4e15b4d09223ac4f0be6f4ba652a1 Mon Sep 17 00:00:00 2001 From: Zack Li Date: Thu, 22 Aug 2024 16:16:13 -0700 Subject: [PATCH] Update README.md --- README.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/README.md b/README.md index d04a485..4a95f1d 100644 --- a/README.md +++ b/README.md @@ -9,24 +9,3 @@ `XGPaint.jl` paints maps of extragalactic foregrounds using halo catalogs. Please read the [documentation](https://WebSky-CITA.github.io/XGPaint.jl/dev). -## Example (Planck 2013 CIB) - -```julia -using XGPaint -using Healpix - -## Load halos from HDF5 files, establish a CIB model and cosmology -halo_pos, halo_mass = read_halo_catalog_hdf5( - "/home/zequnl/websky_halos-light.hdf5") -cosmo = get_cosmology(h=0.7f0, OmegaM=0.25f0) -model = CIBModel_Planck2013{Float32}() - -## Allocate some arrays and file them up for centrals and satellites -sources = generate_sources(model, cosmo, halo_pos, halo_mass); - -## Deposit the sources into maps -m = HealpixMap{Float64, RingOrder}(model.nside) -@time result = XGPaint.paint!(nu_obs=143.0f9, - result_map=m.pixels, sources=sources, model=model) -Healpix.saveToFITS(m, "/media/data/cib143.fits") -```