nenupy.observation.obs_config.PulsarSingleConfig

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

Bases: _UnDySPuTeDConfig

UnDySPuTeD Pulsar-SINGLE mode observation configuration.

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

  • nPolars (int) – Number of polarizations (min: 1, max: 4, default: 4).

  • dsTime (int) – Downsampling (min: 1, max: 4096, default: 128).

  • nBits (int) – Number of bits on which are recorded data elements (min: 8, max: 64, default: 32).

  • 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 PulsarSingleConfig instance in which UnDySPuTeD Pulsar-SINGLE 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-SINGLE 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 PulsarSingleConfig instance in which UnDySPuTeD Pulsar-SINGLE observation configuration properties are set as defined by the parset.

Parameters:

parset (str or Parset) – Observation parset file.

Returns:

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

Return type:

PulsarSingleConfig

Example:
>>> from nenupy.observation import PulsarSingleConfig
>>> waveconf = PulsarSingleConfig.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-SINGLE observation file.

Getter:

Data volume.

Type:

Quantity

Example:
>>> from nenupy.observation import PulsarSingleConfig
>>> singleconf = PulsarSingleConfig(
        durationSec=3600
    )
>>> singleconf.volume
15.454134 Gibyte
>>> from nenupy.observation import PulsarSingleConfig
>>> singleconf = PulsarSingleConfig.fromParset(
        'nenufar_obs.parset'
    )
>>> singleconf.volume
XXX Gibyte