Пример #1
0
    def get_azimuthal(self, id=None, **kwargs):
        """
        The azimuthal angle (angle between plane and detector). This is fixed
        for all pixels at 0.0 radians.
        """
        # fix the units
        units = __get_units__(kwargs, "radian")
        if units!="radian":
            raise RuntimeError,"Do not understand units \"%s\"" % units

        return (0.,0.)
Пример #2
0
    def get_azimuthal(self, id=None, **kwargs):
        """
        The azimuthal angle (angle between plane and detector). This is fixed
        for all pixels at 0.0 radians.
        """
        # fix the units
        units = __get_units__(kwargs, "radian")
        if units != "radian":
            raise RuntimeError, "Do not understand units \"%s\"" % units

        return (0., 0.)
Пример #3
0
    def get_polar(self, id=None, **kwargs):
        """
        The polar angle (angle between incident beam and detector). This is
        fixed for all pixels at 0.785+/-0.005 radians.
        """
        # fix the units
        units = __get_units__(kwargs, "radian")
        if units != "radian":
            raise RuntimeError, "Do not understand units \"%s\"" % units

        return (0.785, 0.005)
Пример #4
0
    def get_polar(self, id=None, **kwargs):
        """
        The polar angle (angle between incident beam and detector). This is
        fixed for all pixels at 0.785+/-0.005 radians.
        """
        # fix the units
        units = __get_units__(kwargs, "radian")
        if units!="radian":
            raise RuntimeError,"Do not understand units \"%s\"" % units

        return (0.785, 0.005)
Пример #5
0
    def get_secondary(self, id=None, **kwargs):
        """
        The secondary flight path (neutronic distance from sample to detector).
        This is fixed for all pixels to 1.0+/-0.05 meters.
        """
        # fix the units
        units = __get_units__(kwargs, "meter")
        if units != "meter":
            raise RuntimeError, "Do not understand units \"%s\"" % units

        # calculate the position
        # return the result
        return self.__L1
Пример #6
0
    def get_secondary(self, id=None, **kwargs):
        """
        The secondary flight path (neutronic distance from sample to detector).
        This is fixed for all pixels to 1.0+/-0.05 meters.
        """
        # fix the units
        units = __get_units__(kwargs, "meter")
        if units!="meter":
            raise RuntimeError,"Do not understand units \"%s\"" % units

        # calculate the position
        # return the result
        return self.__L1
Пример #7
0
 def set_azimuthal(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs, "radian")
Пример #8
0
 def set_polar(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs, "radian")
Пример #9
0
 def set_azimuthal(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs, "radian")
Пример #10
0
 def set_polar(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs,"radian")