SpotList

class ctapointing.imagesolver.SpotList(prefix=None, **fields)

Bases: Container

Container for storing spot lists.

uuid

UUID

Type:

Field(default=None, type=str)

spot_type

spot type (0: UNKNOWN, 1: SKY, 2: LED, 3: LID

Type:

Field(default=None, dtype=int64, ndim=1)

coord_x

x coordinate of spot

Type:

Field(default=None, dtype=float64, ndim=1)

coord_y

y coordinate of spot

Type:

Field(default=None, dtype=float64, ndim=1)

var_x

variance of spot profile along x

Type:

Field(default=None, dtype=float64, ndim=1)

var_y

variance of spot profile along y

Type:

Field(default=None, dtype=float64, ndim=1)

cov_xy

covariance of spot profile

Type:

Field(default=None, dtype=float64, ndim=1)

flux

flux of spot

Type:

Field(default=None, dtype=float64, ndim=1)

peak

peak flux of spot

Type:

Field(default=None, dtype=float64, ndim=1)

mean_background

mean background in image

Type:

Field(default=nan, type=float)

rms_background

rms background in image

Type:

Field(default=nan, type=float)

start_time

start time of exposure

Type:

Field(default=None, type=Time)

duration

exposure duration

Type:

Field(default=nan s, unit=s)

moon_position_az

moon position azimuth

Type:

Field(default=nan deg, unit=deg)

moon_position_alt

moon position altitude

Type:

Field(default=nan deg, unit=deg)

moon_phase

moon phase

Type:

Field(default=-1.0, type=float)

sun_position_az

sun position azimuth

Type:

Field(default=nan deg, unit=deg)

sun_position_alt

sun position altitude

Type:

Field(default=nan deg, unit=deg)

chip_temperature

camera chip temperature

Type:

Field(default=nan K, unit=K)

camera_temperature

camera housing temperature

Type:

Field(default=nan K, unit=K)

camera_humidity

camera housing humidity

Type:

Field(default=-1.0, type=float)

image_uuid

image UUID

Type:

Field(default=None, type=str)

camera_uuid

camera UUID

Type:

Field(default=None, type=str)

extractor_uuid

spot extractor UUID

Type:

Field(default=None, type=str)

detection_threshold

spot detection threshold

Type:

Field(default=nan, type=float)

when_extracted

time of spot extraction

Type:

Field(default=None, type=str)

meta

dict of attached metadata

Type:

dict

prefix

Prefix attached to column names when saved to a table or file

Type:

str

Attributes Summary

camera_humidity

camera_temperature

camera_uuid

chip_temperature

coord_x

coord_y

coords_pix

Return the pixel coordinates as an array.

cov_xy

default_prefix

detection_threshold

duration

extractor_uuid

fields

flux

image_uuid

mean_background

meta

moon_phase

moon_position_alt

moon_position_az

peak

prefix

rms_background

spot_type

start_time

sun_position_alt

sun_position_az

uuid

var_x

var_y

when_extracted

Methods Summary

append(spot_list[, copy_meta])

Append spots of another SpotList object to self.

from_name(name, **kwargs)

Load SpotList from HDF5 file or database.

select_by_type(spot_type)

Return a copy of self, limited to spots of type spot_type

Attributes Documentation

camera_humidity
camera_temperature
camera_uuid
chip_temperature
coord_x
coord_y
coords_pix

Return the pixel coordinates as an array.

cov_xy
default_prefix = 'spotlist'
detection_threshold
duration
extractor_uuid
fields = {'camera_humidity': Field(default=-1.0, type=float), 'camera_temperature': Field(default=nan K, unit=K), 'camera_uuid': Field(default=None, type=str), 'chip_temperature': Field(default=nan K, unit=K), 'coord_x': Field(default=None, dtype=float64, ndim=1), 'coord_y': Field(default=None, dtype=float64, ndim=1), 'cov_xy': Field(default=None, dtype=float64, ndim=1), 'detection_threshold': Field(default=nan, type=float), 'duration': Field(default=nan s, unit=s), 'extractor_uuid': Field(default=None, type=str), 'flux': Field(default=None, dtype=float64, ndim=1), 'image_uuid': Field(default=None, type=str), 'mean_background': Field(default=nan, type=float), 'moon_phase': Field(default=-1.0, type=float), 'moon_position_alt': Field(default=nan deg, unit=deg), 'moon_position_az': Field(default=nan deg, unit=deg), 'peak': Field(default=None, dtype=float64, ndim=1), 'rms_background': Field(default=nan, type=float), 'spot_type': Field(default=None, dtype=int64, ndim=1), 'start_time': Field(default=None, type=Time), 'sun_position_alt': Field(default=nan deg, unit=deg), 'sun_position_az': Field(default=nan deg, unit=deg), 'uuid': Field(default=None, type=str), 'var_x': Field(default=None, dtype=float64, ndim=1), 'var_y': Field(default=None, dtype=float64, ndim=1), 'when_extracted': Field(default=None, type=str)}
flux
image_uuid
mean_background
meta
moon_phase
moon_position_alt
moon_position_az
peak
prefix
rms_background
spot_type
start_time
sun_position_alt
sun_position_az
uuid
var_x
var_y
when_extracted

Methods Documentation

append(spot_list, copy_meta: bool = False)

Append spots of another SpotList object to self. Only spot information is appended, i.e. any metadata, such as start time, is not touched, unless copy_meta is True

Parameters:
  • spot_list (SpotList or None) – Spot list the spots of which should be appended

  • copy_meta (bool) – flag that indicates to copy metadata

classmethod from_name(name, **kwargs)

Load SpotList from HDF5 file or database. See ctapointing.io.from_name() for details.

select_by_type(spot_type: SpotType)

Return a copy of self, limited to spots of type spot_type

Parameters:

spot_type (SpotType) – spot type

Returns:

spot_list – new SpotList, limited to spots matching the selected spot type

Return type:

SpotList

__init__(prefix=None, **fields)
append(spot_list, copy_meta: bool = False)

Append spots of another SpotList object to self. Only spot information is appended, i.e. any metadata, such as start time, is not touched, unless copy_meta is True

Parameters:
  • spot_list (SpotList or None) – Spot list the spots of which should be appended

  • copy_meta (bool) – flag that indicates to copy metadata

property coords_pix

Return the pixel coordinates as an array.

classmethod from_name(name, **kwargs)

Load SpotList from HDF5 file or database. See ctapointing.io.from_name() for details.

select_by_type(spot_type: SpotType)

Return a copy of self, limited to spots of type spot_type

Parameters:

spot_type (SpotType) – spot type

Returns:

spot_list – new SpotList, limited to spots matching the selected spot type

Return type:

SpotList