aces.survey.survey_class

Module Contents

Classes

ASKAP_Survey

SurveyFiles

Functions

t_string(db_time)

no_translate(a)

make_beam_csv_name(sbid, field)

make_brt_err_csv_name(sbid, field)

make_astrom_bb_csv_name(sbid, field)

make_cat_match_csv_name(sbid, field, tag)

make_leakage_csv_name(sbid, field, pol)

make_statistics_name(sbid, field)

make_fits_name(sbid, field)

parse_filename(file_name)

access_db([t, wd, tmax])

release_db([wd, content])

ASKAP_Survey_factory([epoch, read_write, verbose])

param epoch:

Integer epoch number. An exception is raised if the description table lack a row for this epoch.

Attributes

field_name

image_stats_name

aces.survey.survey_class.field_name = 'field_data.csv'[source]
aces.survey.survey_class.image_stats_name = 'image_statistics.csv'[source]
aces.survey.survey_class.t_string(db_time)[source]
aces.survey.survey_class.no_translate(a)[source]
aces.survey.survey_class.make_beam_csv_name(sbid, field)[source]
aces.survey.survey_class.make_brt_err_csv_name(sbid, field)[source]
aces.survey.survey_class.make_astrom_bb_csv_name(sbid, field)[source]
aces.survey.survey_class.make_cat_match_csv_name(sbid, field, tag)[source]
aces.survey.survey_class.make_leakage_csv_name(sbid, field, pol)[source]
aces.survey.survey_class.make_statistics_name(sbid, field)[source]
aces.survey.survey_class.make_fits_name(sbid, field)[source]
aces.survey.survey_class.parse_filename(file_name)[source]
aces.survey.survey_class.access_db(t=0, wd=Path('.'), tmax=10)[source]
aces.survey.survey_class.release_db(wd=Path('.'), content=' ')[source]
aces.survey.survey_class.ASKAP_Survey_factory(epoch=0, read_write=False, verbose=False)[source]
Parameters:

epoch – Integer epoch number. An exception is raised if the description table lack a row for this epoch.

class aces.survey.survey_class.ASKAP_Survey(field_table, description)[source]

Bases: object

__len__()[source]
_select(criteria)[source]

Return a table selected by the criteria :param criteria: List of three-element criteria. Items of the list combined with AND

eg: critera = [[‘COL1’, ‘==’, 21], [‘COL2’, ‘>’, 1.4]]

select_indices(criteria)[source]

Return a table selected by the criteria :param criteria: List of three-element criteria. Items of the list combined with AND

select(criteria)[source]

Return a table selected by the criteria :param criteria: List of three-element criteria. Items of the list combined with AND

set_select()[source]
get_sbs_cal()[source]
get_sbs_sci(calsb)[source]
get_sbids()[source]
get_fields(sbid)[source]
get_nfields(sbid)[source]
find_field(field_name, translate=no_translate)[source]

Return the indices of rows with FIELD_NAME match with input. Several may be returned if the one field were observed more than once. :param field_name: :return: list of indices.

find_position(ra, dec)[source]
get_column(col)[source]
get_row(inx)[source]
get_field_data(inx, cols)[source]
put_field_data(inx, cols, data)[source]

Over-write values in the field data table :param inx: row number of table :param cols: Names of columns to receive new values :param data: List of values. Length must match length of cols list.

get_field_table()[source]

Return the field table as an astropy Table :return: (Table) field_table

get_sub_table(fld, sbid, which, **kw)[source]
Parameters:
  • fld

  • sbid

  • which – Select which table from ‘beam’, ‘cat’, ‘ast_bb’, ‘statistics’

:returns astropy Table

get_sub_fitsdata(fld, sbid, which)[source]
Parameters:
  • fld

  • sbid

  • which – Select which file from ‘bpa’, ‘bmi’, ‘bpa’

:returns ndarray image

get_inx_from_fld_sbid(fld, sbid)[source]
get_row_from_prod_name(pname)[source]
sort_field_data(cols)[source]
Parameters:

cols – List of column names

get_data_root()[source]
get_freq_ref()[source]
show_one(inx)[source]
write_field_table()[source]
release()[source]
class aces.survey.survey_class.SurveyFiles(survey, file_templates)[source]

Bases: object

file_name(ftype, inx, taylor=0, stokes='i', beam=0)[source]
cal_table_name(ftype, cal_sbid)[source]

Name of bandpass calibration tables.

Parameters:
  • ftype – str, bp_table or bp_leakage_table.

  • cal_sbid – int, SB ID of calibrator scan.

Returns:

PosixPath to calibration table of choice.