sorcha.modules.PPVisitsFootprintFilter

Attributes

logger

Functions

PPVisitsFootprint(field_df, query, visits_filename[, ...])

Determine whether detections fall on the sensors defined by the

_plotting_camera_footprint(polygons, rows, ...)

Plotting code for each camera footprint use only for debugging (handy for unit tests)

Module Contents

logger[source]
PPVisitsFootprint(field_df, query, visits_filename, ephermers_buffer=1.5, ra_name='RA_deg', dec_name='Dec_deg', fieldId='FieldID', ccd_num=3, plot=False)[source]

Determine whether detections fall on the sensors defined by the footprint. Also returns the ID for the sensor a detection is made on.

Parameters:
  • field_df (pandas.DataFrame) -- DataFrame containing detection information with pointings.

  • query (str) -- SQL query string for visits database. name columns as (llcra, llcdec, lrcra, lrcdec, urcra, urcdec, ulcra, ulcdec, ra_centre, dec_centre, detectorID, fieldFiveSigmaDepth_mag )

  • visits_filename (str) -- Path to SQLite database containing footprint data.

  • ra_name (str) -- Column names in field_df for RA, Dec, and field ID respectively.

  • dec_name (str) -- Column names in field_df for RA, Dec, and field ID respectively.

  • fieldId (str) -- Column names in field_df for RA, Dec, and field ID respectively.

  • ephermers_buffer (float) -- accounts for ar wraping RA points around 0-360, while yhe camera footprint doesnt to avoid the need to create complex shapes

  • ccd_num (int) -- number of ccds to check

  • plot (boolen) -- used to turning on plotting for debugging

Returns:

  • detected_list (list) -- List of indices in field_df that fall on a sensor footprint.

  • detector_id_list (list) -- List of detector IDs corresponding to each detected object.

_plotting_camera_footprint(polygons, rows, unique_ccd_indices, points_query, obs_id)[source]

Plotting code for each camera footprint use only for debugging (handy for unit tests)