RECTECorrector module

RECTECorrector.RECTECorrector1(t, orbits, orbits_transit, counts, p, expTime, include_transit=False)[source]

correct the ackbar model for one directional scan observations

Parameters:
  • t – time stamps of the exposures
  • orbits – orbit number of the exposures
  • orbits_transit – orbits in which transits/eclipses occur
  • counts – observed counts
  • p – Parameters objects to fit
  • expTime – exposure time
Returns:

RECTE profile for correciting the light curve, best fit

count rate array, ackbar output, slope :rtype: tuple of four numpy array

RECTECorrector.RECTECorrector2(t, orbits, orbits_transit, counts, p, expTime, scanDirect)[source]

correct the ackbar model for one directional scan observations

Parameters:
  • t – time stamps of the exposures
  • orbits – orbit number of the exposures
  • orbits_transit – orbits in which transits/eclipses occur
  • counts – observed counts
  • p – Parameters objects to fit
  • expTime – exposure time
  • scanDirect – scan direction (0 or 1) for each exposure
Returns:

RECTE profile for correciting the light curve, best fit

count rate array, ackbar output, slope :rtype: tuple of four numpy array

RECTECorrector.rampProfile(crate, slope, dTrap_s, dTrap_f, trap_pop_s, trap_pop_f, tExp, expTime)[source]

Ramp profile for single directional scan

And RECTE model parameters: number of traps, trapping coeeficient and trap life time

Parameters:
  • crate – average count rate in electron/second
  • slope – visit-long slope
  • dTrap_s – extra trapped slow charges between orbits
  • dTrap_f – extra trapped fast charges between orbits
  • trap_pop_s – initially trapped slow charges
  • trap_pop_f – initially trapped fast charges
  • tExp – beginning of each exposure
  • expTime – exposure time
Returns:

observed counts

Return type:

numpy.array

RECTECorrector.rampProfile2(crate1, slope1, crate2, slope2, dTrap_s, dTrap_f, trap_pop_s, trap_pop_f, tExp, expTime, scanDirect)[source]

Ramp profile for bi-directional scan And ackbar model

Parameters:
  • crate1 – average count rate in electron/second for the upward direction
  • slope1 – visit-long slope for upward direction
  • crate2 – average count rate in electron/second for downward direction
  • slope2 – visit-long slope for downward direction
  • dTrap_s – extra trapped slow charges between orbits
  • dTrap_f – extra trapped fast charges between orbits
  • trap_pop_s – initially trapped slow charges
  • trap_pop_f – initially trapped fast charges
  • tExp – beginning of each exposure
  • expTime – exposure time
  • scanDirect – scan direction (0 or 1) for each exposure
Returns:

observed counts

Return type:

numpy.array