pynkowski.data

This module contains all the classes to work with data in several conventions. Currently, the implemented formats are the following:

  • base_da: the base class for data fields, to be used as the base for the other fields.
  • array: fields in the form of numpy arrays of arbitrary dimension, typically used for 2D or 3D maps.
  • healpix: scalar maps on the sphere in the healpix convention. An optional interface for $P^2$ is included.

  • There is also a general utilities submodule called utils_da.

 1'''This module contains all the classes to work with data in several conventions. Currently, the implemented formats are the following:
 2
 3- [`base_da`](data/base_da.html): the base class for data fields, to be used as the base for the other fields.
 4- [`array`](data/array.html): fields in the form of numpy arrays of arbitrary dimension, typically used for 2D or 3D maps.
 5- [`healpix`](data/healpix.html): scalar maps on the sphere in the healpix convention. An optional interface for $P^2$ is included.
 6
 7- There is also a general utilities submodule called [`utils_da`](data/utils_da.html).
 8'''
 9
10from .base_da import DataField
11from .array import DataArray
12
13try:
14    import healpy as hp
15    from .healpix import Healpix, HealpixP2
16    from .so3data import SO3Healpix, SO3Patch
17except ImportError:
18    hp = None
19    print("healpy was not loaded, some functionality will be unavailable")
20
21# __all__ = ["Healpix", "HealpixP2"]
22__docformat__ = "numpy"