<div dir="ltr"><div>Hi Madison,</div><div><br></div><div>I want to take the data I see in the composited map. Is that what you mean by rasterizing?</div><div><br></div><div>Namely, If I have an initial black image (full of zeros) and I overplot it with an image which is <i>half</i> in size containing a white (full of 1s) rectangle, I want to obtain the data of the final image which is a black background (the initial image) with a white rectangle (the second image). In this final image, the originally black pixels have been replaced with white pixels where appropriate.<br></div><div><br></div><div>I hope its more clear now!<br></div><div><br></div><div>Thanks!</div><div>Evangelia<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 30, 2021 at 6:20 PM E. Madison Bray <<a href="mailto:erik.m.bray@gmail.com">erik.m.bray@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Jan 29, 2021 at 9:30 AM Evangelia Samara<br>
<<a href="mailto:evangelia.sam@gmail.com" target="_blank">evangelia.sam@gmail.com</a>> wrote:<br>
><br>
> Dear,<br>
><br>
> I would very much appreciate your help in the following, I am stuck to this problem for a long time.<br>
><br>
> I want to composite two sunpy Maps together, obtain the composited data in a new fits file and save them. I have tried everything but i cannot obtain somehow the composited data together (there is no such function as comp_map.data, for example). Using get.data() function will only give me the data of the one or the other map, separately, while I want the new overplotted data all together.<br>
><br>
> Do you maybe have a solution on this?<br>
><br>
> Thank you very much in advance!<br>
<br>
Hi Evangelina,<br>
<br>
What exactly do you mean by "obtain the composited data in a new FITS<br>
file"?  As I understand it, from both the documentation and looking at<br>
the code, the CompositeMap just saves a list of multiple maps, and<br>
when plotting them overlays one on the other depending on their<br>
relative z-order.<br>
<br>
Do you just want the rasterized pixels of the resulting RGB image?<br>
_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@python.org" target="_blank">AstroPy@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/astropy</a><br>
</blockquote></div>