nenupy.observation.obs_config.BSTConfig

class nenupy.observation.obs_config.BSTConfig(**kwargs)[source]

Bases: _BackendConfig

Beamlet Statistics observation configuration.

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

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

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

Added in version 1.2.0.

__init__(**kwargs)[source]

Methods

__init__(**kwargs)

fromParset(parset)

Returns a BSTConfig instance in which BST 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 a BST FITS 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 BSTConfig instance in which BST observation configuration properties are set as defined by the parset.

Parameters:

parset (str or Parset) – Observation parset file.

Returns:

BST configuration as defined by the parset file.

Return type:

BSTConfig

Example:
>>> from nenupy.observation import BSTConfig
>>> bstconf = BSTConfig.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 a BST FITS file.

Getter:

Data volume.

Type:

Quantity

Example:
>>> from nenupy.observation import BSTConfig
>>> bstconf = BSTConfig(
        durationSec=3600
    )
>>> bstconf.volume
21.09375 Mibyte
>>> from nenupy.observation import BSTConfig
>>> bstconf = BSTConfig.fromParset(
        'nenufar_obs.parset'
    )
>>> bstconf.volume
XXX Mibyte

Warning

The data volume estimation does not handle specificities of the FITS file in which the BST are stored (in particular metadata and FITS architecture). Therefore, the volume may be underestimated by a few MB.