sorcha.modules.PPMatchPointingToObservations

Functions

PPMatchPointingToObservations(padain, pointfildb)

Merges all relevant columns of each observation from the pointing

Module Contents

PPMatchPointingToObservations(padain, pointfildb)[source]

Merges all relevant columns of each observation from the pointing database onto the observations dataframe, then drops all observations which are not in one of the requested filters and any duplicate columns.

Adds the following columns to the dataframe of observations:

  • visitTime

  • visitExposureTime

  • optFilter

  • seeingFwhmGeom_arcsec

  • seeingFwhmEff_arcsec

  • fieldFiveSigmaDepth_mag

  • fieldRA_deg

  • fieldDec_deg

  • fieldRotSkyPos_deg

  • observationMidpointMJD_TAI

Parameters:
  • padain (pandas dataframe) -- Dataframe of observations.

  • pointfildb (pandas dataframe) -- Dataframe of the pointing database.

Returns:

res_df -- Merged dataframe of observations ("padain") with pointing database ("pointfildb"), with all superfluous observations dropped.

Return type:

Pandas dataframe