nenupy.observation.obs_config.PulsarWaveConfig

class nenupy.observation.obs_config.PulsarWaveConfig(_setFromParset=False, **kwargs)[source]

Bases: _UnDySPuTeDConfig

UnDySPuTeD Pulsar-WAVEOLAF mode observation configuration.

Parameters:
  • nSubBands (int) – Number of sub-bands (min: 1, max: 192, default: 192).

  • durationSec (int or TimeDelta) – Observation duration in seconds (default: 0).

Added in version 1.2.0.

__init__(_setFromParset=False, **kwargs)[source]

Methods

__init__([_setFromParset])

fromParset(parset)

Returns a PulsarWaveConfig instance in which UnDySPuTeD Pulsar-WAVEOLAF observation configuration properties are set as defined by the parset.

Attributes

dsTime

Downsampling, can take values in [1, 2, 4, 8, 16, 32, 64, 128]

durationSec

freqRes

nBins

nBits

nChannels

nMAs

nPolars

nSubBands

tFold

timeRes

volume

Computes an estimation of the data volume of an UnDySPuTeD Pulsar-WAVEOLAF observation file.

property dsTime

Downsampling, can take values in [1, 2, 4, 8, 16, 32, 64, 128]

property durationSec
property freqRes
classmethod fromParset(parset)[source]

Returns a PulsarWaveConfig instance in which UnDySPuTeD Pulsar-WAVEOLAF observation configuration properties are set as defined by the parset.

Parameters:

parset (str or Parset) – Observation parset file.

Returns:

UnDySPuTeD Pulsar-WAVEOLAF configuration as defined by the parset file.

Return type:

PulsarWaveConfig

Example:
>>> from nenupy.observation import PulsarWaveConfig
>>> waveconf = PulsarWaveConfig.fromParset('nenufar_obs.parset')
property nBins
property nBits
property nChannels
property nMAs
property nPolars
property nSubBands
property tFold
property timeRes
property volume

Computes an estimation of the data volume of an UnDySPuTeD Pulsar-WAVEOLAF observation file.

Getter:

Data volume.

Type:

Quantity

Example:
>>> from nenupy.observation import PulsarWaveConfig
>>> waveconf = PulsarWaveConfig(
        durationSec=3600
    )
>>> waveconf.volume
285.85707 Gibyte
>>> from nenupy.observation import PulsarWaveConfig
>>> waveconf = PulsarWaveConfig.fromParset(
        'nenufar_obs.parset'
    )
>>> waveconf.volume
XXX Gibyte