ImageQuerier

class ImageQuerier[source]

A class to handle image queries using HiPS2FITS. Inherits from HIPS2FITS to utilize its methods and properties.

__init__(catalog_key=None)[source]

Initializes the ImageQuerier with the specified catalog key.

Parameters:

catalog_key (str) – Key for the catalog to query.

Methods

query(self, width, height, ra, dec, pixelscale, telinfo, save_path=None, objname=None, rotation_angle=0.0, verbose=True, n_processes=4)

Run HiPS2FITS queries with split tiles using multiprocessing.

Return type:

list of astropy.io.fits.HDUList

check_coverage(self, ra, dec, radius_deg=1.0, search_all=False, verbose=True)

Check if the current HiPS catalog has coverage at the given RA/Dec.

Parameters:
  • ra (float) – Right Ascension in degrees

  • dec (float) – Declination in degrees

  • radius_deg (float) – Search radius in degrees

  • verbose (bool) – If True, prints whether coverage exists

Returns:

coverage_dict – Dictionary of catalog_key -> bool (True if covered).

Return type:

dict

change_catalog(self, catalog_key)

Change the current catalog to query.

Parameters:

catalog_key (str) – The catalog key to change to.

Return type:

None

show_available_catalogs(self)

Display available catalogs.

Parameters:

None

Returns:

list of catalog keys – List of available catalogs.

Return type:

list

Properties

Key Properties

Property

Description

catalog_ids

config