In [1]:
%matplotlib inline
import numpy as np
import dmsky.targets
import dmsky.skymap
In [2]:
# Build the library of pre-defined targets
library = dmsky.targets.TargetLibrary()
In [3]:
# Create the target
name = 'galactic:ackermann2013_nfw'
gc = library.create_target(name)
Target names follow the convention:
where
In [4]:
# List existing configuretions for the 'galactic' target
library.library['galactic']
Out[4]:
In [5]:
# Create a skymap and fill it with the jfactor of the target
skymap = dmsky.skymap.Skymap(gc, nside=128)
skymap.fill()
In [6]:
# Do some plotting
import healpy
healpy.mollview(np.log10(skymap.values))