Changeset 2671 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Jan 29, 2017 6:00:26 PM (5 years ago)
Author:
toby
Message:

Set calib d-min as option for xfer angles; fix trig error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r2630 r2671  
    360360   
    361361def GetDetXYfromThAzm(Th,Azm,data):
    362     'Needs a doc string'
     362    '''Computes a detector position from a 2theta angle and an azimultal
     363    angle (both in degrees)
     364    '''
    363365    dsp = data['wavelength']/(2.0*npsind(Th))   
    364366    return GetDetectorXY(dsp,Azm,data)
    365367                   
    366368def GetTthAzmDsp(x,y,data): #expensive
    367     'Needs a doc string - checked OK for ellipses & hyperbola'
     369    '''Computes a 2theta, etc. from a detector position and calibration constants
     370    - checked OK for ellipses & hyperbola
     371    :returns: np.array(tth,azm,G,dsp) where tth is 2theta, azm is the azimutal angle,
     372       G is ? and dsp is the d-space
     373    '''
    368374    wave = data['wavelength']
    369375    cent = data['center']
Note: See TracChangeset for help on using the changeset viewer.