skymapwrappers

skymapwrappers.modelwrapper

Module Description

This module contains three classes: GMOSS, ULSA, and SSM.

GMOSS - Generates the Galactic and extragalactic sky brightness temperature at frequencies ranging from 30 MHz to 80 MHz based on a table of precomputed values.

ULSA - Generates the ultra-large scale structure (ULSS) component of the sky brightness temperature at frequencies ranging from 30 MHz to 80 MHz based on a table of precomputed values.

SSM - Generates the sky temperature due to the Sunyaev-Zeldovich effect at a specified frequency and HEALPix resolution.

Dependencies: pandas, numpy, healpy, os, and functions from the common.py module.

Usage: Instantiate a class and call its “generate” method with a frequency in MHz as an argument. The “generate” method will return an array of brightness temperature values.

Note: These classes assume that the user has the necessary data files and functions installed on their system.

class GMOSS[source]

Bases: object

A class to generate the Galactic diffuse emission map from GMRT observations between 30-80 MHz based on the tabulated data.

Attributes

gmoss_map_DFpandas.DataFrame

Dataframe containing the GMRT observed spectra for Galactic diffuse emission between 30-80 MHz.

generate(frequency_MHz)[source]

Generates the Galactic diffuse emission map for the given frequency.

Parameters

frequency_MHzfloat

The frequency value in MHz for which the Galactic diffuse emission map needs to be generated.

Returns

numpy.ndarray

The generated Galactic diffuse emission map for the given frequency.

GlobalSkyModel

alias of AddCMB

HaslamSkyModel

alias of AddCMB

class SSM[source]

Bases: object

A class to generate the simulated sky maps from the Global Sky Model (GSM) based on the specified frequency and nside.

generate(frequency_MHz, nside=64)[source]

Parameters

frequency_MHzfloat

The frequency value in MHz for which the simulated sky map needs to be generated.

nsideint, optional

The value of nside to use for the generation of simulated sky map. The default value is 64.

Returns

numpy.ndarray

The generated simulated sky map from the Global Sky Model (GSM) for the given frequency and nside.

class ULSA(index_type: str = 'freq_dependent_index')[source]

Bases: object

A class to generate the UTR-2 Low-Frequency Sky Atlas maps from the tabulated data based on the specified index type.

Attributes

ulsa_map_DFpandas.DataFrame

Dataframe containing the UTR-2 Low-Frequency Sky Atlas maps between 30-80 MHz.

generate(frequency_MHz)[source]

Parameters

frequency_MHzfloat

The frequency value in MHz for which the UTR-2 Low-Frequency Sky Atlas map needs to be generated.

Returns

numpy.ndarray

The generated UTR-2 Low-Frequency Sky Atlas map for the given frequency.

add_CMB_decorator(cls)[source]

Decorator function to add the Cosmic Microwave Background (CMB) temperature to the output of a class.

Parameters

clsclass

The original class to be decorated.

Returns

class

The decorated class that adds the CMB temperature to the output.

Notes

The CMB temperature (2.7255 K) is added to the output generated by the decorated class.

Example

@add_CMB_decorator OriginalClass

# Decorate the class ModifiedClass = add_CMB_decorator(OriginalClass)

# Create an instance of the modified class modified = ModifiedClass()

# Generate the output with added CMB temperature result = modified.generate(freq)