Models

This module provides empty ATK data structures, allowing ATK methods to be used on external data. These structures will initialise with all attributes set to None, unless a source or position is given in which case some attributes are automatically generated.

Note: the savedata method is not currently supported for custom data structures.

AstroToolkit.Models.CustomDataStruct(source/pos)[source]

Generates an empty DataStruct, as returned by data queries.

Optionally, the pos/source to which the data structure will refer may be passed. Some attributes will then be automatically filled. If a source or pos is not provided, the returned structure will be entirely empty (i.e. all attributes will be set to None).

Parameters:
  • source (int) – Target GAIA DR3 Source ID

  • pos (list<float>) – Position [right ascension, declination] in degrees

Returns:

DataStruct

Return type:

class


AstroToolkit.Models.CustomHrdStruct(source/pos)[source]

Generates an empty HrdStruct, as returned by hrd queries.

Optionally, the list of sources to which the data structure will refer may be passed. Some attributes will then be automatically filled. If these are not provided, the returned structure will be entirely empty (i.e. all attributes will be set to None).

Parameters:

sources (list<int>) – Gaia source IDs

Returns:

HrdStruct

Return type:

class


AstroToolkit.Models.CustomImageStruct(source/pos)[source]

Generates an empty ImageStruct, as returned by image queries.

Optionally, the pos/source to which the data structure will refer may be passed. Some attributes will then be automatically filled. If a source or pos is not provided, the returned structure will be entirely empty (i.e. all attributes will be set to None).

Parameters:
  • source (int) – Target GAIA DR3 Source ID

  • pos (list<float>) – Position [right ascension, declination] in degrees

Returns:

ImageStruct

Return type:

class


AstroToolkit.Models.CustomLightcurveStruct(source/pos)[source]

Generates an empty LightcurveStruct, as returned by lightcurve queries.

Optionally, the pos/source to which the data structure will refer may be passed. Some attributes will then be automatically filled. If a source or pos is not provided, the returned structure will be entirely empty (i.e. all attributes will be set to None).

Parameters:
  • source (int) – Target GAIA DR3 Source ID

  • pos (list<float>) – Position [right ascension, declination] in degrees

Returns:

LightcurveStruct

Return type:

class


AstroToolkit.Models.CustomSedStruct(source/pos)[source]

Generates an empty SedStruct, as returned by sed queries.

Optionally, the pos/source to which the data structure will refer may be passed. Some attributes will then be automatically filled. If a source or pos is not provided, the returned structure will be entirely empty (i.e. all attributes will be set to None).

Parameters:
  • source (int) – Target GAIA DR3 Source ID

  • pos (list<float>) – Position [right ascension, declination] in degrees

Returns:

SedStruct

Return type:

class


AstroToolkit.Models.CustomSpectrumStruct(source/pos)[source]

Generates an empty SpectrumStruct, as returned by spectrum queries <spectrum-query>.

Optionally, the pos/source to which the data structure will refer may be passed. Some attributes will then be automatically filled. If a source or pos is not provided, the returned structure will be entirely empty (i.e. all attributes will be set to None).

Parameters:
  • source (int) – Target GAIA DR3 Source ID

  • pos (list<float>) – Position [right ascension, declination] in degrees

Returns:

SpectrumStruct

Return type:

class