Changeset 4316
- Timestamp:
- Feb 17, 2020 7:30:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIimage.py
r4302 r4316 1524 1524 dtth = (LUtth[1]-LUtth[0])/numChans 1525 1525 esdMul = Masks['SpotMask']['esdMul'] 1526 mask = ma.make_mask_none(Image.shape) 1526 mask = ma.make_mask_none(Image.shape) 1527 band = ma.array(Image,mask=ma.nomask) 1527 1528 TA = Make2ThetaAzimuthMap(Controls,(0,Image.shape[0]),(0,Image.shape[1]))[0] #2-theta array 1528 1529 TThs = np.linspace(LUtth[0],LUtth[1],numChans,False) 1529 1530 for it,TTh in enumerate(TThs): 1530 band = ma.array(Image,mask=ma.getmask(ma.masked_outside(TA,TTh,TTh+dtth)))1531 band.mask = ma.masked_outside(TA,TTh,TTh+dtth).mask 1531 1532 std = ma.std(band) 1532 1533 anom = band.anom()/std 1533 1534 anom = ma.masked_greater(anom,esdMul,copy=False) 1534 mask ^= ( ma.getmask(anom)^ma.getmask(band))1535 mask ^= (anom.mask^band.mask) 1535 1536 if not dlg is None: 1536 1537 GoOn = dlg.Update(it,newmsg='Processed 2-theta rings = %d'%(it))
Note: See TracChangeset
for help on using the changeset viewer.