Model¶
-
class
pysm.
Model
(nside, map_dist=None, dataurl=None)[source] [edit on github]¶ Bases:
object
This is the template object for PySM objects.
If a MPI communicator is passed as input and
pixel_indices
is None, the class automatically distributes the maps across processes. You can implement your own pixel distribution passing both a MPI communicator andpixel_indices
, however that won’t support smoothing withlibsharp
. Iflibsharp
is available, the rings are distributed as expected bylibsharp
to perform distributed spherical harmonics transforms, seepysm.mpi.distribute_rings_libsharp()
, thelibsharp
grid object is saved inself.libsharp_grid
. If libsharp is not available, pixels are distributed uniformly across processes, seepysm.mpi.distribute_pixels_uniformly()
- Parameters
- mpi_comm: object
MPI communicator object (optional, default=None).
- nside: int
Resolution parameter at which this model is to be calculated.
- smoothing_lmaxint
\(\ell_{max}\) for the smoothing step, by default \(2*N_{side}\)
Methods Summary
read_map
(self, path[, unit, field])Wrapper of the PySM read_map function that automatically uses nside, pixel_indices and mpi_comm defined in this Model
read_txt
(self, path, \*\*kwargs)Methods Documentation
-
read_map
(self, path, unit=None, field=0)[source] [edit on github]¶ Wrapper of the PySM read_map function that automatically uses nside, pixel_indices and mpi_comm defined in this Model
-
read_txt
(self, path, **kwargs)[source] [edit on github]¶