thanks!


On Mon, Mar 17, 2014 at 11:38 AM, Stuart Mumford
<notifications@github.com>wrote:

> In sunpy/map/mapcube.py:
>
> > +            # Update the mapcube image data
> > +            self.maps[i].data = shifted_data
> > +
> > +            # Calculate the shifts required in physical units, which are
> > +            # presumed to be arcseconds.
> > +            xshift_arcseconds[i] = xshift_keep[i] * m.scale['x']
> > +            yshift_arcseconds[i] = yshift_keep[i] * m.scale['y']
> > +
> > +            # Adjust the positioning information accordingly.
> > +            self.maps[i].meta['xcen'] = self.maps[i].meta['xcen'] + xshift_arcseconds[i]
> > +            self.maps[i].meta['ycen'] = self.maps[i].meta['ycen'] + yshift_arcseconds[i]
> > +
> > +        # Return the mapcube, or optionally, the mapcube and the displacements
> > +        # used to create the mapcube.
> > +        if return_displacements:
> > +            return self, {"x": xshift_arcseconds, "y": yshift_arcseconds}
>
> do
>
> newmap = copy.deepcopy(self)newmap.data = aligned_datanewmap.meta['adsas'] = sadas
>
> etc.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/sunpy/sunpy/pull/904/files#r10661704>
> .
>