Deconvolution

36 views
Skip to first unread message

alfredo campos

unread,
Feb 5, 2016, 11:31:51 AM2/5/16
to hyperspy-users
Hello all

I am trying to do Richardson Lucy deconvolution. I’am using a spectrum image and a ZLP spectrum to do the deconvolution.

 

When I try I have this error:

operands could not be broadcast together with shapes (1589,) (1593,)


I think the problem is that the spectrum image and the ZLP spectrum do not have the same size in the energy axis.


Do you have any advice to this situation


Best wishes


Alfredo  

Josh Taillon

unread,
Feb 5, 2016, 11:38:25 AM2/5/16
to hypersp...@googlegroups.com
Hi Alfredo,

It should be simple enough to crop one of the signals in the energy dimension to match (assuming the ev/Ch scales are the same). Something like:

zlp = zlp.isig[:1589]

should probably work.

Best,
Josh

--
You received this message because you are subscribed to the Google Groups "hyperspy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyperspy-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Joshua Taillon
Materials Science and Engineering
University of Maryland, College Park

alfredo campos

unread,
Feb 5, 2016, 4:59:02 PM2/5/16
to hyperspy-users
Thanks a lot Joshua

It works very well

Best

Alfredo
Reply all
Reply to author
Forward
0 new messages