Beispiel #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.)
Beispiel #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.)
Beispiel #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)
Beispiel #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)
Beispiel #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
Beispiel #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
Beispiel #7
0
 def set_azimuthal(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs, "radian")
Beispiel #8
0
 def set_polar(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs, "radian")
Beispiel #9
0
 def set_azimuthal(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs, "radian")
Beispiel #10
0
 def set_polar(self, angles, id=None, **kwargs):
     units = __get_units__(kwargs,"radian")