Skip to content

Latest commit

 

History

History
109 lines (91 loc) · 5.08 KB

export_data.rst

File metadata and controls

109 lines (91 loc) · 5.08 KB

Exporting Data from Imviz

Spatial Regions

You can extract supported spatial regions as follows:

regions = imviz.get_interactive_regions()
regions

Aperture Photometry

If you opted to fit a ~astropy.modeling.functional_models.Gaussian1D to the radial profile, the last fitted model parameters will be displayed under the radial profile plot. The model itself can be obtained as follows. See :ref:`astropy:astropy-modeling` on how to manipulate the model:

my_gaussian1d = imviz.app.fitted_models['phot_radial_profile']

You can also retrieve the photometry results as ~astropy.table.QTable as follows, assuming imviz is the instance of your Imviz application:

results = imviz.get_aperture_photometry_results()

When multiple calculations are done in the same session (e.g., calculating aperture photometry for the same region across different images or for different regions on the same image), imviz.get_aperture_photometry_results() will return all the calculations in the same table, if possible. However, if the newest result is incompatible with the existing ones (e.g., two images have very different units), only the newest is kept in the table. When you are unsure, save the results after each calculation as different variables in your Python session.

The output table contains the results you see in the plugin and then some. The columns are as follow:

Once you have the results in a table, you can further manipulated them as documented in :ref:`astropy:astropy-table`.