Esempio n. 1
0
    def _get_moment0_err(self, axis=0):
        '''
        '''

        if self.moment_method is 'cube':
            return _cube0(self.cube, axis, self.scale)
        elif self.moment_method is 'slice':
            return _slice0(self.cube, axis, self.scale)
        elif self.moment_method is 'ray':
            raise NotImplementedError
Esempio n. 2
0
    def _get_int_intensity_err(self, axis=0):
        '''
        '''
        slab = self.cube.spectral_slab(*self.channel_range)

        if self.moment_method is 'cube':
            return _cube0(slab, axis, self.scale)
        elif self.moment_method is 'slice':
            return _slice0(slab, axis, self.scale)
        elif self.moment_method is 'ray':
            raise NotImplementedError