diff --git a/jdaviz/components/tooltip.vue b/jdaviz/components/tooltip.vue index 3195d378da..623bce2f0d 100644 --- a/jdaviz/components/tooltip.vue +++ b/jdaviz/components/tooltip.vue @@ -108,6 +108,11 @@ const tooltips = { 'plugin-dq-show-all': 'Show all quality flags', 'plugin-dq-hide-all': 'Hide all quality flags', 'plugin-dq-color-picker': 'Change the color of this DQ flag', + 'plugin-vo-filter-coverage': `Only show surveys that report coverage within specified radius of provided coordinates. Queries may take longer to process

+
+ Note: + Surveys which have not implemented coverage information will also be excluded. If you are expecting a survey that doesn't appear, try disabling coverage filtering. +
` } diff --git a/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py b/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py index 81cea17122..b186717b2f 100644 --- a/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py +++ b/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.py @@ -25,6 +25,7 @@ class VoPlugin(PluginTemplateMixin, AddResultsMixin, TableMixin): viewer_selected = Unicode().tag(sync=True) wavebands = List().tag(sync=True) + resource_filter_coverage = Bool(True).tag(sync=True) resources = List([]).tag(sync=True) resources_loading= Bool(False).tag(sync=True) @@ -137,7 +138,7 @@ def vue_query_registry_resources(self, event=None): try: registry_args = [registry.Servicetype("sia"), registry.Waveband(self.waveband_selected)] - if coord != None: + if coord != None and self.resource_filter_coverage: registry_args.append(registry.Spatial(coord, self.radius_deg, intersect="overlaps")) self._full_registry_results = registry.search(*registry_args) self.resources = list(self._full_registry_results.getcolumn("short_name")) diff --git a/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.vue b/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.vue index 55e8b6833f..878f6b6c05 100644 --- a/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.vue +++ b/jdaviz/configs/default/plugins/virtual_observatory/vo_plugin.vue @@ -52,6 +52,17 @@ Survey Collections + + + + + mdi-filter{{ resource_filter_coverage ? '' : '-remove' }} + + Filter by Coverage + + + + - - Query Archive - + + Query Archive +