SimpleAperturePhotometry#

class jdaviz.configs.imviz.plugins.aper_phot_simple.aper_phot_simple.SimpleAperturePhotometry(*args, **kwargs)[source]#

Bases: PluginTemplateMixin, ApertureSubsetSelectMixin, DatasetMultiSelectMixin, TableMixin, PlotMixin, MultiselectMixin

The Aperture Photometry plugin performs aperture photometry for drawn regions. See the Aperture Photometry Plugin Documentation for more details.

Only the following attributes and methods are available through the public plugin API:

Public constructor

Attributes Summary

aperture_area

An int trait.

background_items

An instance of a Python list.

background_selected

A trait for unicode strings.

background_value

Mixin to handle empty floating point field.

counts_factor

Mixin to handle empty floating point field.

cube_slice

A trait for unicode strings.

current_plot_type

A trait for unicode strings.

fit_radial_profile

A boolean (True, False) trait.

fit_results

An instance of a Python list.

flux_scaling

Mixin to handle empty floating point field.

flux_scaling_multi_auto

A boolean (True, False) trait.

flux_scaling_warning

A trait for unicode strings.

is_cube

A boolean (True, False) trait.

pixel_area

Mixin to handle empty floating point field.

pixel_area_multi_auto

A boolean (True, False) trait.

plot_available

A boolean (True, False) trait.

plot_types

An instance of a Python list.

radial_plot

A trait which allows any value.

result_available

A boolean (True, False) trait.

result_failed_msg

A trait for unicode strings.

results

An instance of a Python list.

template_file

uses_active_status

A boolean (True, False) trait.

Methods Summary

calculate_batch_photometry(*args, **kwargs)

calculate_photometry(*args, **kwargs)

unpack_batch_options(**options)

Unpacks a dictionary of options for batch mode, including all combinations of any values passed as tuples or lists. For example::.

vue_do_aper_phot(*args, **kwargs)

Attributes Documentation

aperture_area#

An int trait.

background_items#

An instance of a Python list.

background_selected#

A trait for unicode strings.

background_value#

Mixin to handle empty floating point field.

counts_factor#

Mixin to handle empty floating point field.

cube_slice#

A trait for unicode strings.

current_plot_type#

A trait for unicode strings.

fit_radial_profile#

A boolean (True, False) trait.

fit_results#

An instance of a Python list.

flux_scaling#

Mixin to handle empty floating point field.

flux_scaling_multi_auto#

A boolean (True, False) trait.

flux_scaling_warning#

A trait for unicode strings.

is_cube#

A boolean (True, False) trait.

pixel_area#

Mixin to handle empty floating point field.

pixel_area_multi_auto#

A boolean (True, False) trait.

plot_available#

A boolean (True, False) trait.

plot_types#

An instance of a Python list.

radial_plot#

A trait which allows any value.

result_available#

A boolean (True, False) trait.

result_failed_msg#

A trait for unicode strings.

results#

An instance of a Python list.

template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz/envs/latest/lib/python3.11/site-packages/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py', 'aper_phot_simple.vue')#
uses_active_status#

A boolean (True, False) trait.

Methods Documentation

calculate_batch_photometry(*args, **kwargs)#
calculate_photometry(*args, **kwargs)#
unpack_batch_options(**options)[source]#

Unpacks a dictionary of options for batch mode, including all combinations of any values passed as tuples or lists. For example:

unpack_batch_options(dataset=['image1', 'image2'],
                     aperture=['Subset 1', 'Subset 2'],
                     background=['Subset 3'],
                     flux_scaling=3
                     )

would result in:

[{'aperture': 'Subset 1',
  'dataset': 'image1',
  'background': 'Subset 3',
  'flux_scaling': 3},
 {'aperture': 'Subset 2',
  'dataset': 'image1',
  'background': 'Subset 3',
  'flux_scaling': 3},
 {'aperture': 'Subset 1',
  'dataset': 'image2',
  'background': 'Subset 3',
  'flux_scaling': 3},
 {'aperture': 'Subset 2',
  'dataset': 'image2',
  'background': 'Subset 3',
  'flux_scaling': 3}]
Parameters:
optionsdict, optional

Dictionary of values to override from the values set in the plugin/traitlets. Each entry can either be a single value, or a list. All combinations of those that contain a list will be exposed. If not provided and the plugin is in multiselect mode (multiselect = True), then the current values set in the plugin will be used.

Returns:
optionslist

List of all combinations of input parameters, which can then be used as input to calculate_batch_photometry.

vue_do_aper_phot(*args, **kwargs)[source]#