tjpcov.tools#

Module Contents#

Functions#

read_map_from_hdf5(fname, name, nside)

Return the map stored in the hdf5 TXPipe-like file.

read_map(fname[, name, nside])

Return the map stored in the file given.

tjpcov.tools.read_map_from_hdf5(fname, name, nside)[source]#

Return the map stored in the hdf5 TXPipe-like file.

Parameters:
  • fname (str) – Path to the hdf5 file

  • name (str) – Name of the map in th hdf5 file

  • nside (int) – Map’s HEALPix nside.

Returns:

HEALPix map

Return type:

array

tjpcov.tools.read_map(fname, name=None, nside=None)[source]#

Return the map stored in the file given.

Parameters:
  • fname (str) – Path to the map file. If hdf5 it will call read_map_from_hdf5 and name and nside arguments are needed. Elsewise, it will be assumed a HEALPix map and read it.

  • name (str) – Name of the map in the hdf5 file

  • nside (int) – Map’s HEALPix nside.

Returns:

HEALPix map

Return type:

array