Xrf fit

```
bg_index  = background > temp
background[bg_index] = temp[bg_index]
```