nenupy.observation.obs_config.PulsarSingleConfig
- class nenupy.observation.obs_config.PulsarSingleConfig(_setFromParset=False, **kwargs)[source]
Bases:
_UnDySPuTeDConfigUnDySPuTeD 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 (
intorTimeDelta) – Observation duration in seconds (default:0).
Added in version 1.2.0.
Methods
__init__([_setFromParset])fromParset(parset)Returns a
PulsarSingleConfiginstance in which UnDySPuTeD Pulsar-SINGLE observation configuration properties are set as defined by theparset.Attributes
Downsampling, can take values in [1, 2, 4, 8, 16, 32, 64, 128]
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
PulsarSingleConfiginstance in which UnDySPuTeD Pulsar-SINGLE observation configuration properties are set as defined by theparset.- Parameters:
- Returns:
UnDySPuTeD Pulsar-SINGLE configuration as defined by the
parsetfile.- Return type:
- 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:
- 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