DavidT3 / XGA

X-ray: Generate and Analyse is a module designed to make the analysis of XMM observations simple and efficient. It provides an interface with SAS for the creation of XMM data products, as well as a way to easily perform fits (scalable for multiple observations) and retrieve information about an object, all within a Python package.
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

Declare a source, retrieve a Chandra image, and view it #1239

Closed DavidT3 closed 1 week ago

DavidT3 commented 3 weeks ago

This shouldn't even require any addition to XGA - it relies on the utils modifications being made and your configuration file being set up.

Being able to retrieve an already generated image from the processed dataset we're working with is a good test to see if existing 'products' are being read and loaded in correctly.

You should declare a 'BaseSource' rather than a 'GalaxyCluster' instance, because there are fewer setup steps that might go wrong and give us too much information too soon.

Once declared, you can look at the hidden product storage structure (the src._products attribute - should never be accessed directly by the user, only internal XGA code) and that will show you what (if anything) has been read in.

From there, you can run the get_images() method and see what is returned - then pick one of those and use the .view() method.