Iterating through the pixels in the EMData object
In your Python script you can use commands like this to iterate through the pixels in an EMData object
Note that you can do any of:
The fourth form allows getting and setting attributes equivalent to set_attr() and get_attr().