\File{(stdin)}{Fri Sep 26 11:45:33 2008}

\PythonNoMath

\PythonDocBlock
\verb""\\ 
\verb"Provides interfaces to Healpix_cxx, which was developed at the "\\ 
\verb"Max-Planck-Institut fuer Astrophysik and financially supported by the "\\ 
\verb"Deutsches Zentrum fuer Luft- und Raumfahrt (DLR)."\\ 
\verb"Adds data to the HealpixBase class using numpy arrays, and interfaces to"\\ 
\verb"FITS files using pyfits."\\ 

\PythonDocBlockEnd







\I{18}{0}$\K{def}\ \F{mk\_arr}\,(\V{val},\V{dtype}\Y{=}n.\V{double})\Y{:}$


\I{22}{0}$\K{class}\ \F{HealpixMap}\,(\V{HealpixBase})\Y{:}$
\DS{23}{1}{%
\verb"Collection of utilities for mapping data on a sphere.  Adds a data map "\\ 
\verb"to the infrastructure in _healpix.HealpixBase."}\vskip 5pt 
\I{25}{1}$\K{def}\ \F{\_\_init\_\_}\,(\V{self},\Y{*}\V{args},\O{**}\V{kwargs})\Y{:}$









\I{35}{1}$\K{def}\ \F{set\_interpol}\,(\V{self},\V{onoff})\Y{:}$
\DS{36}{2}{%
\verb"Choose whether __getitem___ (i.e. HealpixMap[crd]) returns an"\\ 
\verb"interpolated value or just nearest pixel.  Default upon creating a"\\ 
\verb"HealpixMap is to not interpolate."}\vskip 5pt 

\I{40}{1}$\K{def}\ \F{set\_map}\,(\V{self},\V{data},\V{scheme}\Y{=}{}$
\DS{41}{2}{%
\verb"Assign data to HealpixMap.map.  Infers Nside from # of pixels via"\\ 
\verb"Npix = 12 * Nside**2."}\vskip 5pt 







\I{50}{1}$\K{def}\ \F{get\_map}\,(\V{self})\Y{:}$
\DS{51}{2}{%
\verb"Return Healpix data as a 1 dimensional numpy array."}\vskip 5pt 

\I{53}{1}$\K{def}\ \F{change\_scheme}\,(\V{self},\V{scheme})\Y{:}$
\DS{54}{2}{%
\verb"Reorder the pixels in map to be ""\verb"RING""\verb" or ""\verb"NEST""\verb" ordering."}\vskip 5pt 





\I{60}{1}$\K{def}\ \F{\_\_getitem\_\_}\,(\V{self},\V{crd})\Y{:}$
\DS{61}{2}{%
\verb"Access data on a sphere via hpm[crd]."\\ 
\verb"crd = either 1d array of pixel indices, (th,phi), or (x,y,z), where"\\ 
\verb"th,phi,x,y,z are numpy arrays of coordinates."}\vskip 5pt 








\I{72}{1}$\K{def}\ \F{\_\_setitem\_\_}\,(\V{self},\V{crd},\V{val})\Y{:}$
\DS{73}{2}{%
\verb"Assign data to a sphere via hpm[crd] = val.  Functionality slightly"\\ 
\verb"complicated to make repeat coordinates assign sum of values (i.e."\\ 
\verb"crd = ([1,1], [2,2]), val = [3,3] will assign 6 to location (1,2)."\\ 
\verb"crd = either 1d array of pixel indices, (th,phi), or (x,y,z), where"\\ 
\verb"th,phi,x,y,z are numpy arrays of coordinates."}\vskip 5pt 















\I{93}{1}$\K{def}\ \F{from\_hpm}\,(\V{self},\V{hpm})\Y{:}$
\DS{94}{2}{%
\verb"Initialize this HealpixMap with data from another.  Takes care"\\ 
\verb"of upgrading or downgrading the resolution, and swaps ordering"\\ 
\verb"scheme if necessary."}\vskip 5pt 
















\I{113}{1}$\K{def}\ \F{from\_alm}\,(\V{self},\V{alm})\Y{:}$
\DS{114}{2}{%
\verb"Set data to the map generated by the spherical harmonic"\\ 
\verb"coefficients contained in alm."}\vskip 5pt 

\I{117}{1}$\K{def}\ \F{to\_alm}\,(\V{self},\V{lmax},\V{mmax},\V{iter}\Y{=}\NUM{1}{})\Y{:}$
\DS{118}{2}{%
\verb"Return an Alm object containing the spherical harmonic components"\\ 
\verb"of a map (in RING mode) up to the specified lmax,mmax.  Greater"\\ 
\verb"accuracy can be achieved by increasing iter."}\vskip 5pt 




\I{125}{1}$\K{def}\ \F{from\_fits}\,(\V{self},\V{filename},\V{hdunum}\Y{=}\NUM{1}{},\V{colnum}\Y{=}\NUM{0}{})\Y{:}$
\DS{126}{2}{%
\verb"Read a HealpixMap from the specified location in a fits file."}\vskip 5pt 




\I{131}{1}$\K{def}\ \F{\_set\_fits\_header}\,(\V{self},\V{hdr})\Y{:}$









\I{141}{1}$\K{def}\ \F{to\_fits}\,(\V{self},\V{filename},\V{format}\Y{=}\V{None})\Y{:}$
\DS{142}{2}{%
\verb"Write a HealpixMap to a fits file in the fits format specified by"\\ 
\verb"'format'.  Default uses mapping of numpy types to fits format types"\\ 
\verb"stored in default_fits_format_codes."}\vskip 5pt 









