nenupy.observation.tapdatabase.ObsDatabase

class nenupy.observation.tapdatabase.ObsDatabase[source]

Bases: object

Class to access NenuFAR BST TAP service.

__init__()[source]

Methods

__init__()

reset()

Reset query parameters to default values.

search()

Run the TAP query on the NenuFAR BST service.

Attributes

conditions

Conditions summary of the query.

fov_center

Center of the field of view queried, in comination with the radius fov_radius.

fov_radius

Radius of the query, in combination with the query center fov_center.

freq_range

Frequency range selection for the ADQL query using search().

meta_names

Column names (observation properties) to return using search().

query

Full query, combining returned parameteres meta_names and the conditions conditions.

time_range

Time range selection for the ADQL query using search().

property conditions

Conditions summary of the query.

Getter:

Query conditions.

Type:

str

property fov_center

Center of the field of view queried, in comination with the radius fov_radius.

Setter:

Center of the field of view.

Getter:

Center of the field of view.

Type:

SkyCoord

Warning

Must be set after fov_radius.

property fov_radius

Radius of the query, in combination with the query center fov_center.

Setter:

Radius (in degrees if no unit is provided). Default is 180 deg.

Getter:

Radius in degrees.

Type:

float or Quantity

Warning

Must be set before fov_center.

property freq_range

Frequency range selection for the ADQL query using search(). Default is [None, None] which means that no condition based on observation frequencies will be applied.

Setter:

Length-2 list of [fmin, fmax]. fmin and fmax may be passed as Quantity instances or as float (assumed to be expressed in MHz).

Getter:

[fmin, fmax] list.

Type:

list

property meta_names

Column names (observation properties) to return using search().

Setter:

list of column names.

Getter:

Properties to query.

Type:

str

Seealso:

Database description

property query

Full query, combining returned parameteres meta_names and the conditions conditions.

Getter:

Query.

Type:

str

reset()[source]

Reset query parameters to default values.

search()[source]

Run the TAP query on the NenuFAR BST service.

Returns:

NenuFAR observation properties resulting from the ADQL query.

Return type:

Table

property time_range

Time range selection for the ADQL query using search(). Default is [None, None] which means that no condition based on observation time will be applied.

Setter:

Length-2 list of [start, stop]. start and stop may be passed as Time instances or as ISO/ISOT str.

Getter:

[start, stop] list.

Type:

list