wmap3yr_magnetic_field.py 780 Bytes
Newer Older
Jiaxin Wang's avatar
Jiaxin Wang committed
1
2
3
4
5
6
# -*- coding: utf-8 -*-

from imagine.magnetic_fields.magnetic_field import MagneticField


class WMAP3yrMagneticField(MagneticField):
Theo Steininger's avatar
Theo Steininger committed
7

Jiaxin Wang's avatar
Jiaxin Wang committed
8
    @property
Theo Steininger's avatar
Theo Steininger committed
9
10
11
12
13
14
    def descriptor_lookup(self):
        lookup = \
            {'b0': ('./Galaxy/MagneticField/Regular/WMAP/b0', 'value'),
             'psi0': ('./Galaxy/MagneticField/Regular/WMAP/psi0', 'value'),
             'psi1': ('./Galaxy/MagneticField/Regular/WMAP/psi1', 'value'),
             'chi0': ('./Galaxy/MagneticField/Regular/WMAP/chi0', 'value'),
15
16
17
             'random_rms': ('./Galaxy/MagneticField/Random/Iso/rms', 'value'),
             'random_rho': ('./Galaxy/MagneticField/Random/Anisoglob/rho',
                            'value')}
Theo Steininger's avatar
Theo Steininger committed
18
        return lookup
Jiaxin Wang's avatar
Jiaxin Wang committed
19
20
21

    def _create_field(self):
        raise NotImplementedError